Tests for module 'lgamma'.
[gnulib.git] / ChangeLog
1 2010-01-24  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'lgamma'.
4         * modules/lgamma-tests: New file.
5         * tests/test-lgamma.c: New file.
6
7         Tests for module 'ldexp'.
8         * modules/ldexp-tests: New file.
9         * tests/test-ldexp.c: New file.
10
11         Tests for module 'jn'.
12         * modules/jn-tests: New file.
13         * tests/test-jn.c: New file.
14
15         Tests for module 'j1'.
16         * modules/j1-tests: New file.
17         * tests/test-j1.c: New file.
18
19         Tests for module 'j0'.
20         * modules/j0-tests: New file.
21         * tests/test-j0.c: New file.
22
23         Tests for module 'hypot'.
24         * modules/hypot-tests: New file.
25         * tests/test-hypot.c: New file.
26
27         Tests for module 'fmod'.
28         * modules/fmod-tests: New file.
29         * tests/test-fmod.c: New file.
30
31         Tests for module 'fabs'.
32         * modules/fabs-tests: New file.
33         * tests/test-fabs.c: New file.
34
35         Tests for module 'exp'.
36         * modules/exp-tests: New file.
37         * tests/test-exp.c: New file.
38
39         Tests for module 'erfc'.
40         * modules/erfc-tests: New file.
41         * tests/test-erfc.c: New file.
42
43         Tests for module 'erf'.
44         * modules/erf-tests: New file.
45         * tests/test-erf.c: New file.
46
47         Tests for module 'cosh'.
48         * modules/cosh-tests: New file.
49         * tests/test-cosh.c: New file.
50
51         Tests for module 'cos'.
52         * modules/cos-tests: New file.
53         * tests/test-cos.c: New file.
54
55         Tests for module 'copysign'.
56         * modules/copysign-tests: New file.
57         * tests/test-copysign.c: New file.
58
59         Tests for module 'cbrt'.
60         * modules/cbrt-tests: New file.
61         * tests/test-cbrt.c: New file.
62
63         Tests for module 'atan2'.
64         * modules/atan2-tests: New file.
65         * tests/test-atan2.c: New file.
66
67         Tests for module 'atan'.
68         * modules/atan-tests: New file.
69         * tests/test-atan.c: New file.
70
71         Tests for module 'asin'.
72         * modules/asin-tests: New file.
73         * tests/test-asin.c: New file.
74
75         Tests for module 'acos'.
76         * modules/acos-tests: New file.
77         * tests/test-acos.c: New file.
78
79 2010-01-24  Bruno Haible  <bruno@clisp.org>
80
81         Fix tests for common <math.h> functions.
82         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
83         code snippet that references the function pointer, rather than merely
84         calling the function. Substitute the FUNC_LIBM variable.
85         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
86         * modules/acos (configure.ac): Likewise.
87         * modules/asin (configure.ac): Likewise.
88         * modules/atan (configure.ac): Likewise.
89         * modules/atan2 (configure.ac): Likewise.
90         * modules/cbrt (configure.ac): Likewise.
91         * modules/copysign (configure.ac): Likewise.
92         * modules/cos (configure.ac): Likewise.
93         * modules/cosh (configure.ac): Likewise.
94         * modules/erf (configure.ac): Likewise.
95         * modules/erfc (configure.ac): Likewise.
96         * modules/exp (configure.ac): Likewise.
97         * modules/fabs (configure.ac): Likewise.
98         * modules/fmod (configure.ac): Likewise.
99         * modules/hypot (configure.ac): Likewise.
100         * modules/j0 (configure.ac): Likewise.
101         * modules/j1 (configure.ac): Likewise.
102         * modules/jn (configure.ac): Likewise.
103         * modules/ldexp (configure.ac): Likewise.
104         * modules/lgamma (configure.ac): Likewise.
105         * modules/log (configure.ac): Likewise.
106         * modules/log10 (configure.ac): Likewise.
107         * modules/log1p (configure.ac): Likewise.
108         * modules/logb (configure.ac): Likewise.
109         * modules/modf (configure.ac): Likewise.
110         * modules/nextafter (configure.ac): Likewise.
111         * modules/pow (configure.ac): Likewise.
112         * modules/remainder (configure.ac): Likewise.
113         * modules/rint (configure.ac): Likewise.
114         * modules/sin (configure.ac): Likewise.
115         * modules/sinh (configure.ac): Likewise.
116         * modules/tan (configure.ac): Likewise.
117         * modules/tanh (configure.ac): Likewise.
118         * modules/y0 (configure.ac): Likewise.
119         * modules/y1 (configure.ac): Likewise.
120         * modules/yn (configure.ac): Likewise.
121
122 2010-01-24  Bruno Haible  <bruno@clisp.org>
123
124         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
125         * tests/test-acosl.c (x): New variable.
126         (main): Store argument in x and fetch it from x.
127         * tests/test-asinl.c (x): New variable.
128         (main): Store argument in x and fetch it from x.
129         * tests/test-atanl.c (x): New variable.
130         (main): Store argument in x and fetch it from x.
131         * tests/test-cosl.c (x): New variable.
132         (main): Store argument in x and fetch it from x.
133         * tests/test-expl.c (x): New variable.
134         (main): Store argument in x and fetch it from x.
135         * tests/test-logl.c (x): New variable.
136         (main): Store argument in x and fetch it from x.
137         * tests/test-sinl.c (x): New variable.
138         (main): Store argument in x and fetch it from x.
139         * tests/test-sqrtl.c (x): New variable.
140         (main): Store argument in x and fetch it from x.
141         * tests/test-tanl.c (x): New variable.
142         (main): Store argument in x and fetch it from x.
143
144 2010-01-24  Bruno Haible  <bruno@clisp.org>
145
146         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
147         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
148         assignments to the initial TESTS_ENVIRONMENT.
149         * doc/gnulib.texi (Unit test modules): Document it.
150         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
151         TESTS_ENVIRONMENT.
152         * modules/btowc-tests (Makefile.am): Likewise.
153         * modules/c-stack-tests (Makefile.am): Likewise.
154         * modules/c-strcase-tests (Makefile.am): Likewise.
155         * modules/copy-file-tests (Makefile.am): Likewise.
156         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
157         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
158         * modules/mbrtowc-tests (Makefile.am): Likewise.
159         * modules/mbscasecmp-tests (Makefile.am): Likewise.
160         * modules/mbscasestr-tests (Makefile.am): Likewise.
161         * modules/mbschr-tests (Makefile.am): Likewise.
162         * modules/mbscspn-tests (Makefile.am): Likewise.
163         * modules/mbsinit-tests (Makefile.am): Likewise.
164         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
165         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
166         * modules/mbspbrk-tests (Makefile.am): Likewise.
167         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
168         * modules/mbsrchr-tests (Makefile.am): Likewise.
169         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
170         * modules/mbsspn-tests (Makefile.am): Likewise.
171         * modules/mbsstr-tests (Makefile.am): Likewise.
172         * modules/nl_langinfo-tests (Makefile.am): Likewise.
173         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
174         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
175         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
176         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
177         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
178         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
179         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
180         * modules/wcrtomb-tests (Makefile.am): Likewise.
181         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
182         * modules/wcsrtombs-tests (Makefile.am): Likewise.
183         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
184         assignments from TESTS_ENVIRONMENT.
185         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
186         augmentation.
187         * modules/argp-version-etc-tests (Makefile.am): Likewise.
188         * modules/atexit-tests (Makefile.am): Likewise.
189         * modules/binary-io-tests (Makefile.am): Likewise.
190         * modules/closein-tests (Makefile.am): Likewise.
191         * modules/dprintf-posix-tests (Makefile.am): Likewise.
192         * modules/exclude-tests (Makefile.am): Likewise.
193         * modules/fflush-tests (Makefile.am): Likewise.
194         * modules/fpending-tests (Makefile.am): Likewise.
195         * modules/fprintf-posix-tests (Makefile.am): Likewise.
196         * modules/freadahead-tests (Makefile.am): Likewise.
197         * modules/freadptr-tests (Makefile.am): Likewise.
198         * modules/freadseek-tests (Makefile.am): Likewise.
199         * modules/fseek-tests (Makefile.am): Likewise.
200         * modules/fseeko-tests (Makefile.am): Likewise.
201         * modules/ftell-tests (Makefile.am): Likewise.
202         * modules/ftello-tests (Makefile.am): Likewise.
203         * modules/idpriv-drop-tests (Makefile.am): Likewise.
204         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
205         * modules/lseek-tests (Makefile.am): Likewise.
206         * modules/parse-duration-tests (Makefile.am): Likewise.
207         * modules/perror-tests (Makefile.am): Likewise.
208         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
209         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
210         * modules/pipe-tests (Makefile.am): Likewise.
211         * modules/pread-tests (Makefile.am): Likewise.
212         * modules/printf-posix-tests (Makefile.am): Likewise.
213         * modules/select-tests (Makefile.am): Likewise.
214         * modules/sigpipe-tests (Makefile.am): Likewise.
215         * modules/tsearch-tests (Makefile.am): Likewise.
216         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
217         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
218         * modules/uniname/uniname-tests (Makefile.am): Likewise.
219         * modules/uniwidth/width-tests (Makefile.am): Likewise.
220         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
221         * modules/version-etc-tests (Makefile.am): Likewise.
222         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
223         * modules/vprintf-posix-tests (Makefile.am): Likewise.
224         * modules/xalloc-die-tests (Makefile.am): Likewise.
225         * modules/xprintf-posix-tests (Makefile.am): Likewise.
226         * modules/xstrtoimax-tests (Makefile.am): Likewise.
227         * modules/xstrtol-tests (Makefile.am): Likewise.
228         * modules/xstrtoumax-tests (Makefile.am): Likewise.
229         * modules/yesno-tests (Makefile.am): Likewise.
230         Suggested by Jim Meyering.
231
232 2010-01-24  Bruno Haible  <bruno@clisp.org>
233
234         More documentation.
235         * doc/gnulib.texi (Writing modules): New chapter.
236         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
237         the new chapter.
238
239 2010-01-24  Jim Meyering  <meyering@redhat.com>
240
241         maint.mk: do not prepend "./" after filtering
242         * top/maint.mk (_prepend_srcdir_prefix): New variable
243         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
244         "./" when $(srcdir) is ".".
245
246         define STREQ(a,b) consistently, removing useless parentheses
247         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
248         since the only risk is that "a" or "b" contains an unparenthesized
249         comma, but if either did that, STREQ would have 3 or more arguments.
250         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
251         * lib/fts.c (STREQ): Remove unnecessary parentheses.
252         * lib/hash-triple.c (STREQ): Likewise.
253         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
254         * lib/getugroups.c (STREQ): Likewise.
255
256 2010-01-23  Jim Meyering  <meyering@redhat.com>
257
258         maint.mk: fix syntax-check in a non-srcdir build directory
259         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
260         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
261
262 2010-01-22  Jim Meyering  <meyering@redhat.com>
263
264         userspec: add unit tests
265         * tests/test-userspec.c: New file.
266         * modules/userspec-tests: Likewise.
267
268 2010-01-21  Jim Meyering  <meyering@redhat.com>
269
270         maint.mk: handle source file names containing "." robustly
271         * top/maint.mk (_dot_escaped_srcdir): Define.
272         (VC_LIST): Use it in LHS of sed substitution.
273
274 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
275
276         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
277         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
278         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
279         from a non-srcdir build.
280
281 2010-01-20  Eric Blake  <ebb9@byu.net>
282
283         warn-on-use: use instead of link-warning
284         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
285         * modules/unistd (Depends-on, Makefile.am): Likewise.
286         * modules/arpa_inet (Depends-on): Replace link-warning with
287         warn-on-use.
288         (Makefile.am): Update rules accordingly.
289         * modules/ctype (Depends-on, Makefile.am): Likewise.
290         * modules/dirent (Depends-on, Makefile.am): Likewise.
291         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
292         * modules/inttypes (Depends-on, Makefile.am): Likewise.
293         * modules/langinfo (Depends-on, Makefile.am): Likewise.
294         * modules/locale (Depends-on, Makefile.am): Likewise.
295         * modules/math (Depends-on, Makefile.am): Likewise.
296         * modules/search (Depends-on, Makefile.am): Likewise.
297         * modules/signal (Depends-on, Makefile.am): Likewise.
298         * modules/spawn (Depends-on, Makefile.am): Likewise.
299         * modules/stdlib (Depends-on, Makefile.am): Likewise.
300         * modules/string (Depends-on, Makefile.am): Likewise.
301         * modules/strings (Depends-on, Makefile.am): Likewise.
302         * modules/sys_file (Depends-on, Makefile.am): Likewise.
303         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
304         * modules/sys_select (Depends-on, Makefile.am): Likewise.
305         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
306         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
307         * modules/sys_times (Depends-on, Makefile.am): Likewise.
308         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
309         * modules/wchar (Depends-on, Makefile.am): Likewise.
310         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
311         should be poisoned.
312         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
313         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
314         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
315         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
316         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
317         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
318         * m4/math_h.m4 (gl_MATH_H): Likewise.
319         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
320         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
321         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
322         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
323         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
324         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
325         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
326         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
327         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
328         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
329         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
330         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
331         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
332         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
333         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
334         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
335         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
336         GL_LINK_WARNING.
337         * lib/ctype.in.h: Likewise.
338         * lib/dirent.in.h: Likewise.
339         * lib/fcntl.in.h: Likewise.
340         * lib/inttypes.in.h: Likewise.
341         * lib/langinfo.in.h: Likewise.
342         * lib/locale.in.h: Likewise.
343         * lib/math.in.h: Likewise.
344         * lib/search.in.h: Likewise.
345         * lib/signal.in.h: Likewise.
346         * lib/spawn.in.h: Likewise.
347         * lib/stdio.in.h: Likewise.
348         * lib/stdlib.in.h: Likewise.
349         * lib/string.in.h: Likewise.
350         * lib/strings.in.h: Likewise.
351         * lib/sys_file.in.h: Likewise.
352         * lib/sys_ioctl.in.h: Likewise.
353         * lib/sys_select.in.h: Likewise.
354         * lib/sys_socket.in.h: Likewise.
355         * lib/sys_stat.in.h: Likewise.
356         * lib/sys_times.in.h: Likewise.
357         * lib/sys_utsname.in.h: Likewise.
358         * lib/unistd.in.h: Likewise.
359         * lib/wchar.in.h: Likewise.
360
361 2010-01-20  Bruno Haible  <bruno@clisp.org>
362
363         Avoid duplicate -lm.
364         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
365         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
366         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
367         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
368         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
369         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
370         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
371         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
372         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
373         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
374         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
375         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
376         Reported by Paolo Bonzini.
377
378 2010-01-19  Bruno Haible  <bruno@clisp.org>
379
380         langinfo, nl_langinfo: Relicense under LGPLv2+.
381         * modules/langinfo (License): Change to LGPLv2+.
382         * modules/nl_langinfo (License): Likewise.
383         Patch by David Lutterkort <lutter@redhat.com>.
384
385 2010-01-19  Bruno Haible  <bruno@clisp.org>
386
387         Avoid compilation error with cc on OSF/1 5.1.
388         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
389         statement, not before.
390         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
391
392 2010-01-18  Bruno Haible  <bruno@clisp.org>
393
394         Avoid a link error due to the __printf__ symbol.
395         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
396         and 2.6.x.
397         (__format__, __printf__): Remove definitions.
398         * lib/argp-fmtstream.h: Likewise.
399         * lib/argp.h: Likewise.
400         * lib/error.h: Likewise.
401         * lib/vasnprintf.h: Likewise.
402         * lib/xprintf.h: Likewise.
403         * lib/xvasprintf.h: Likewise.
404         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
405
406 2010-01-18  Bruno Haible  <bruno@clisp.org>
407
408         Tests for module 'tanl'.
409         * modules/tanl-tests: New file.
410         * tests/test-tanl.c: New file.
411
412         Tests for module 'sqrtl'.
413         * modules/sqrtl-tests: New file.
414         * tests/test-sqrtl.c: New file.
415
416         Tests for module 'sinl'.
417         * modules/sinl-tests: New file.
418         * tests/test-sinl.c: New file.
419
420         Tests for module 'logl'.
421         * modules/logl-tests: New file.
422         * tests/test-logl.c: New file.
423
424         Tests for module 'expl'.
425         * modules/expl-tests: New file.
426         * tests/test-expl.c: New file.
427
428         Tests for module 'cosl'.
429         * modules/cosl-tests: New file.
430         * tests/test-cosl.c: New file.
431
432         Tests for module 'atanl'.
433         * modules/atanl-tests: New file.
434         * tests/test-atanl.c: New file.
435
436         Tests for module 'asinl'.
437         * modules/asinl-tests: New file.
438         * tests/test-asinl.c: New file.
439
440         Tests for module 'acosl'.
441         * modules/acosl-tests: New file.
442         * tests/test-acosl.c: New file.
443
444         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
445         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
446         tanl): Use the standard gnulib idiom.
447         * lib/cosl.c: Don't include trigl.c and sincosl.c.
448         * lib/sinl.c: Likewise.
449         * lib/tanl.c: Don't include trigl.c.
450         (kernel_tanl): Make static.
451         * lib/sincosl.c: Include trigl.h first.
452         * lib/trigl.c: Likewise.
453         * m4/acosl.m4: New file.
454         * m4/asinl.m4: New file.
455         * m4/atanl.m4: New file.
456         * m4/cosl.m4: New file.
457         * m4/expl.m4: New file.
458         * m4/logl.m4: New file.
459         * m4/sinl.m4: New file.
460         * m4/sqrtl.m4: New file.
461         * m4/tanl.m4: New file.
462         * m4/mathl.m4: Remove file.
463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
464         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
465         Don't initialize GNULIB_MATHL.
466         * modules/acosl: New file.
467         * modules/asinl: New file.
468         * modules/atanl: New file.
469         * modules/cosl: New file.
470         * modules/expl: New file.
471         * modules/logl: New file.
472         * modules/sinl: New file.
473         * modules/sqrtl: New file.
474         * modules/tanl: New file.
475         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
476         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
477         substitute GNULIB_MATHL.
478         * modules/mathl: Rewritten.
479         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
480         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
481         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
482         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
483         * doc/posix-functions/expl.texi: Mention the 'expl' module.
484         * doc/posix-functions/logl.texi: Mention the 'logl' module.
485         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
486         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
487         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
488
489 2010-01-18  Bruno Haible  <bruno@clisp.org>
490
491         sqrt: Make gl_FUNC_SQRT requirable.
492         * m4/sqrt.m4: New file.
493         * modules/sqrt (Files): Add it.
494         (configure.ac): Invoke gl_FUNC_SQRT.
495
496 2010-01-18  Bruno Haible  <bruno@clisp.org>
497
498         New modules for common <math.h> functions.
499         * m4/mathfunc.m4: New file.
500         * modules/acos: New file.
501         * modules/asin: New file.
502         * modules/atan: New file.
503         * modules/atan2: New file.
504         * modules/cbrt: New file.
505         * modules/copysign: New file.
506         * modules/cos: New file.
507         * modules/cosh: New file.
508         * modules/erf: New file.
509         * modules/erfc: New file.
510         * modules/exp: New file.
511         * modules/fabs: New file.
512         * modules/fmod: New file.
513         * modules/hypot: New file.
514         * modules/j0: New file.
515         * modules/j1: New file.
516         * modules/jn: New file.
517         * modules/ldexp: New file.
518         * modules/lgamma: New file.
519         * modules/log: New file.
520         * modules/log10: New file.
521         * modules/log1p: New file.
522         * modules/logb: New file.
523         * modules/modf: New file.
524         * modules/nextafter: New file.
525         * modules/pow: New file.
526         * modules/remainder: New file.
527         * modules/rint: New file.
528         * modules/sin: New file.
529         * modules/sinh: New file.
530         * modules/sqrt: New file.
531         * modules/tan: New file.
532         * modules/tanh: New file.
533         * modules/y0: New file.
534         * modules/y1: New file.
535         * modules/yn: New file.
536         * doc/posix-functions/acos.texi: Mention the 'acos' module.
537         * doc/posix-functions/asin.texi: Mention the 'asin' module.
538         * doc/posix-functions/atan.texi: Mention the 'atan' module.
539         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
540         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
541         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
542         * doc/posix-functions/cos.texi: Mention the 'cos' module.
543         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
544         * doc/posix-functions/erf.texi: Mention the 'erf' module.
545         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
546         * doc/posix-functions/exp.texi: Mention the 'exp' module.
547         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
548         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
549         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
550         * doc/posix-functions/j0.texi: Mention the 'j0' module.
551         * doc/posix-functions/j1.texi: Mention the 'j1' module.
552         * doc/posix-functions/jn.texi: Mention the 'jn' module.
553         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
554         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
555         * doc/posix-functions/log.texi: Mention the 'log' module.
556         * doc/posix-functions/log10.texi: Mention the 'log10' module.
557         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
558         * doc/posix-functions/logb.texi: Mention the 'logb' module.
559         * doc/posix-functions/modf.texi: Mention the 'modf' module.
560         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
561         * doc/posix-functions/pow.texi: Mention the 'pow' module.
562         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
563         * doc/posix-functions/rint.texi: Mention the 'rint' module.
564         * doc/posix-functions/sin.texi: Mention the 'sin' module.
565         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
566         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
567         * doc/posix-functions/tan.texi: Mention the 'tan' module.
568         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
569         * doc/posix-functions/y0.texi: Mention the 'y0' module.
570         * doc/posix-functions/y1.texi: Mention the 'y1' module.
571         * doc/posix-functions/yn.texi: Mention the 'yn' module.
572
573 2010-01-18  Jim Meyering  <meyering@redhat.com>
574
575         ignore-value: relax license to LGPLv2+
576         * modules/ignore-value (License): Relax to LGPLv2+.
577
578         getdate: don't leak when TZ contains two or more '"'s
579         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
580         double quote in TZ after the first one.
581
582         readtokens: do not leak internal token_lengths buffer
583         * lib/readtokens.c (readtokens): Free the local, lengths,
584         when the supplied "token_lengths" parameter is NULL.
585
586 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
587
588         Fix a couple of missing LIBTHREAD link failures on AIX.
589         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
590         $(LIBTHREAD).
591         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
592
593         Link test-poll against INET_PTON_LIB.
594         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
595         for inet_pton on Solaris 10.
596
597 2010-01-17  Bruno Haible  <bruno@clisp.org>
598
599         unistdio/*-sprintf: Fix typo in module description.
600         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
601         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
602         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
603         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
604         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
605         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
606         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
607         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
608
609 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
610
611         gnulib-tool: fix filelist for AIX, HP-UX ksh.
612         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
613         variables in shell case patterns, for AIX and HP-UX ksh.
614
615         Split large sed scripts, for HP-UX sed.
616         * modules/stdio: Split sed scripts around 50 sed commands,
617         to avoid HP-UX limit of 99 commands, in the near future.
618         * modules/string: Likewise.
619         * modules/unistd: Likewise.
620
621         gnulib-tool: avoid writing in the current directory.
622         * gnulib-tool (func_emit_lib_Makefile_am)
623         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
624         not in the current directory, so concurrent gnulib-tool
625         instances do not interfere.
626
627 2010-01-16  Jim Meyering  <meyering@redhat.com>
628
629         doc: update users.txt
630         * users.txt: Add grep.
631         (diffutils, gzip): Update URLs.
632
633 2010-01-12  Bruno Haible  <bruno@clisp.org>
634
635         posix_spawn: Avoid test failure on Cygwin.
636         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
637         characters.
638         Reported by Simon Josefsson.
639
640 2010-01-12  Bruno Haible  <bruno@clisp.org>
641
642         * tests/test-cond.c (main): When skipping the test, show the reason.
643
644 2010-01-12  Simon Josefsson  <simon@josefsson.org>
645
646         * lib/striconv.c (str_cd_iconv): Avoid if before free.
647
648 2010-01-12  Simon Josefsson  <simon@josefsson.org>
649
650         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
651         VC_LIST_ALWAYS_EXCLUDE_REGEX.
652
653 2010-01-12  Eric Blake  <ebb9@byu.net>
654
655         build: guarantee AS_VAR_IF
656         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
657         (gl_AS_VAR_IF): Move...
658         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
659         Reported by Simon Josefsson.
660
661 2010-01-12  Simon Josefsson  <simon@josefsson.org>
662
663         * lib/stdio.in.h: Fix typo.
664
665 2010-01-12  Simon Josefsson  <simon@josefsson.org>
666
667         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
668         libgpg-error.
669
670 2010-01-12  Simon Josefsson  <simon@josefsson.org>
671
672         * tests/test-xalloc-die.sh: Use $EXEEXT.
673
674 2010-01-12  Simon Josefsson  <simon@josefsson.org>
675             Bruno Haible  <bruno@clisp.org>
676
677         getlogin, getlogin_r: Avoid test failure.
678         * tests/test-getlogin.c: Include <stdio.h>.
679         (main): Skip the test when the function fails because stdin is not a
680         tty.
681         * tests/test-getlogin_r.c: Include <stdio.h>.
682         (main): Skip the test when the function fails because stdin is not a
683         tty.
684
685 2010-01-11  Eric Blake  <ebb9@byu.net>
686
687         tests: avoid more large file warnings
688         * tests/test-fflush.c: Avoid warning about ftell use.
689         * tests/test-fseek.c: Avoid warning about fseek use.
690
691 2010-01-10  Bruno Haible  <bruno@clisp.org>
692
693         nproc: Work better on Linux when /proc and /sys are not mounted.
694         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
695         as lower bound when, on glibc/Linux systems,
696         sysconf (_SC_NPROCESSORS_CONF) returns 1.
697         Suggested by Pádraig Brady <P@draigbrady.com>.
698         Reported by Dmitry V. Levin <ldv@altlinux.org>.
699
700         nproc: Refactor.
701         * lib/nproc.c (num_processors_via_affinity_mask): New function,
702         extracted from num_processors.
703         (num_processors): Call it.
704
705 2010-01-11  Jim Meyering  <meyering@redhat.com>
706
707         utimecmp: avoid new warning from upcoming gcc-4.5.0
708         * lib/utimecmp.c (BILLION): Define using #define rather than an
709         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
710
711 2010-01-11  Eric Blake  <ebb9@byu.net>
712
713         math: add portability warnings for classification macros
714         * modules/math (Depends-on): Add warn-on-use.
715         (Makefile.am): Provide new substitutions.
716         * m4/math_h.m4 (gl_MATH_H): Require inline.
717         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
718         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
719         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
720         implement warnings.
721
722         unistd: warn on use of environ without module
723         * modules/unistd (Depends-on): Add warn-on-use.
724         (Makefile.am): Provide new substitutions.
725         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
726         * lib/unistd.in.h (environ): Wrap with a warning helper function.
727
728         stdio: warn on suspicious uses
729         * modules/stdio (Depends-on): Add warn-on-use.
730         (Makefile.am): Provide new substitutions.
731         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
732         fseeko.
733         * lib/stdio.in.h (gets): Always warn on use.
734         (fseek, ftell): Adjust when warnings are issued, and honor
735         _GL_NO_LARGE_FILES as a way to silence the warning.
736         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
737         any warning about large file offsets.
738         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
739         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
740         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
741         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
742         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
743         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
744         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
745         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
746
747         warn-on-use: new module
748         * modules/warn-on-use: New file.
749         * build-aux/warn-on-use.h: Likewise.
750         * m4/warn-on-use.m4: Likewise.
751         * MODULES.html.sh (Support for building): Mention it.
752
753 2010-01-10  Bruno Haible  <bruno@clisp.org>
754
755         Tests for module 'unistr/u32-strdup'.
756         * modules/unistr/u32-strdup-tests: New file.
757         * tests/unistr/test-u32-strdup.c: New file.
758
759         Tests for module 'unistr/u16-strdup'.
760         * modules/unistr/u16-strdup-tests: New file.
761         * tests/unistr/test-u16-strdup.c: New file.
762
763         Tests for module 'unistr/u8-strdup'.
764         * modules/unistr/u8-strdup-tests: New file.
765         * tests/unistr/test-u8-strdup.c: New file.
766         * tests/unistr/test-strdup.h: New file.
767
768         Tests for module 'unistr/u32-strncmp'.
769         * modules/unistr/u32-strncmp-tests: New file.
770         * tests/unistr/test-u32-strncmp.c: New file.
771
772         Tests for module 'unistr/u16-strncmp'.
773         * modules/unistr/u16-strncmp-tests: New file.
774         * tests/unistr/test-u16-strncmp.c: New file.
775
776         Tests for module 'unistr/u8-strncmp'.
777         * modules/unistr/u8-strncmp-tests: New file.
778         * tests/unistr/test-u8-strncmp.c: New file.
779         * tests/unistr/test-strncmp.h: New file.
780
781         Tests for module 'unistr/u32-strcoll'.
782         * modules/unistr/u32-strcoll-tests: New file.
783         * tests/unistr/test-u32-strcoll.c: New file.
784
785         Tests for module 'unistr/u16-strcoll'.
786         * modules/unistr/u16-strcoll-tests: New file.
787         * tests/unistr/test-u16-strcoll.c: New file.
788
789         Tests for module 'unistr/u8-strcoll'.
790         * modules/unistr/u8-strcoll-tests: New file.
791         * tests/unistr/test-u8-strcoll.c: New file.
792
793         Tests for module 'unistr/u32-strcmp'.
794         * modules/unistr/u32-strcmp-tests: New file.
795         * tests/unistr/test-u32-strcmp.c: New file.
796         * tests/unistr/test-u32-strcmp.h: New file.
797
798         Tests for module 'unistr/u16-strcmp'.
799         * modules/unistr/u16-strcmp-tests: New file.
800         * tests/unistr/test-u16-strcmp.c: New file.
801         * tests/unistr/test-u16-strcmp.h: New file.
802
803         Tests for module 'unistr/u8-strcmp'.
804         * modules/unistr/u8-strcmp-tests: New file.
805         * tests/unistr/test-u8-strcmp.c: New file.
806         * tests/unistr/test-u8-strcmp.h: New file.
807         * tests/unistr/test-strcmp.h: New file.
808
809         Tests for module 'unistr/u32-strncat'.
810         * modules/unistr/u32-strncat-tests: New file.
811         * tests/unistr/test-u32-strncat.c: New file.
812
813         Tests for module 'unistr/u16-strncat'.
814         * modules/unistr/u16-strncat-tests: New file.
815         * tests/unistr/test-u16-strncat.c: New file.
816
817         Tests for module 'unistr/u8-strncat'.
818         * modules/unistr/u8-strncat-tests: New file.
819         * tests/unistr/test-u8-strncat.c: New file.
820         * tests/unistr/test-strncat.h: New file.
821
822         Tests for module 'unistr/u32-strcat'.
823         * modules/unistr/u32-strcat-tests: New file.
824         * tests/unistr/test-u32-strcat.c: New file.
825
826         Tests for module 'unistr/u16-strcat'.
827         * modules/unistr/u16-strcat-tests: New file.
828         * tests/unistr/test-u16-strcat.c: New file.
829
830         Tests for module 'unistr/u8-strcat'.
831         * modules/unistr/u8-strcat-tests: New file.
832         * tests/unistr/test-u8-strcat.c: New file.
833         * tests/unistr/test-strcat.h: New file.
834
835         Tests for module 'unistr/u32-stpncpy'.
836         * modules/unistr/u32-stpncpy-tests: New file.
837         * tests/unistr/test-u32-stpncpy.c: New file.
838
839         Tests for module 'unistr/u16-stpncpy'.
840         * modules/unistr/u16-stpncpy-tests: New file.
841         * tests/unistr/test-u16-stpncpy.c: New file.
842
843         Tests for module 'unistr/u8-stpncpy'.
844         * modules/unistr/u8-stpncpy-tests: New file.
845         * tests/unistr/test-u8-stpncpy.c: New file.
846         * tests/unistr/test-stpncpy.h: New file.
847
848         Tests for module 'unistr/u32-strncpy'.
849         * modules/unistr/u32-strncpy-tests: New file.
850         * tests/unistr/test-u32-strncpy.c: New file.
851
852         Tests for module 'unistr/u16-strncpy'.
853         * modules/unistr/u16-strncpy-tests: New file.
854         * tests/unistr/test-u16-strncpy.c: New file.
855
856         Tests for module 'unistr/u8-strncpy'.
857         * modules/unistr/u8-strncpy-tests: New file.
858         * tests/unistr/test-u8-strncpy.c: New file.
859         * tests/unistr/test-strncpy.h: New file.
860
861         Tests for module 'unistr/u32-stpcpy'.
862         * modules/unistr/u32-stpcpy-tests: New file.
863         * tests/unistr/test-u32-stpcpy.c: New file.
864
865         Tests for module 'unistr/u16-stpcpy'.
866         * modules/unistr/u16-stpcpy-tests: New file.
867         * tests/unistr/test-u16-stpcpy.c: New file.
868
869         Tests for module 'unistr/u8-stpcpy'.
870         * modules/unistr/u8-stpcpy-tests: New file.
871         * tests/unistr/test-u8-stpcpy.c: New file.
872         * tests/unistr/test-stpcpy.h: New file.
873
874         Tests for module 'unistr/u32-strcpy'.
875         * modules/unistr/u32-strcpy-tests: New file.
876         * tests/unistr/test-u32-strcpy.c: New file.
877
878         Tests for module 'unistr/u16-strcpy'.
879         * modules/unistr/u16-strcpy-tests: New file.
880         * tests/unistr/test-u16-strcpy.c: New file.
881
882         Tests for module 'unistr/u8-strcpy'.
883         * modules/unistr/u8-strcpy-tests: New file.
884         * tests/unistr/test-u8-strcpy.c: New file.
885         * tests/unistr/test-strcpy.h: New file.
886
887         Tests for module 'unistr/u32-strnlen'.
888         * modules/unistr/u32-strnlen-tests: New file.
889         * tests/unistr/test-u32-strnlen.c: New file.
890
891         Tests for module 'unistr/u16-strnlen'.
892         * modules/unistr/u16-strnlen-tests: New file.
893         * tests/unistr/test-u16-strnlen.c: New file.
894
895         Tests for module 'unistr/u8-strnlen'.
896         * modules/unistr/u8-strnlen-tests: New file.
897         * tests/unistr/test-u8-strnlen.c: New file.
898         * tests/unistr/test-strnlen.h: New file.
899
900         Tests for module 'unistr/u32-strlen'.
901         * modules/unistr/u32-strlen-tests: New file.
902         * tests/unistr/test-u32-strlen.c: New file.
903
904         Tests for module 'unistr/u16-strlen'.
905         * modules/unistr/u16-strlen-tests: New file.
906         * tests/unistr/test-u16-strlen.c: New file.
907
908         Tests for module 'unistr/u8-strlen'.
909         * modules/unistr/u8-strlen-tests: New file.
910         * tests/unistr/test-u8-strlen.c: New file.
911
912         Tests for module 'unistr/u32-prev'.
913         * modules/unistr/u32-prev-tests: New file.
914         * tests/unistr/test-u32-prev.c: New file.
915
916         Tests for module 'unistr/u16-prev'.
917         * modules/unistr/u16-prev-tests: New file.
918         * tests/unistr/test-u16-prev.c: New file.
919
920         Tests for module 'unistr/u8-prev'.
921         * modules/unistr/u8-prev-tests: New file.
922         * tests/unistr/test-u8-prev.c: New file.
923
924         Tests for module 'unistr/u32-next'.
925         * modules/unistr/u32-next-tests: New file.
926         * tests/unistr/test-u32-next.c: New file.
927
928         Tests for module 'unistr/u16-next'.
929         * modules/unistr/u16-next-tests: New file.
930         * tests/unistr/test-u16-next.c: New file.
931
932         Tests for module 'unistr/u8-next'.
933         * modules/unistr/u8-next-tests: New file.
934         * tests/unistr/test-u8-next.c: New file.
935
936         Tests for module 'unistr/u32-strmbtouc'.
937         * modules/unistr/u32-strmbtouc-tests: New file.
938         * tests/unistr/test-u32-strmbtouc.c: New file.
939
940         Tests for module 'unistr/u16-strmbtouc'.
941         * modules/unistr/u16-strmbtouc-tests: New file.
942         * tests/unistr/test-u16-strmbtouc.c: New file.
943
944         Tests for module 'unistr/u8-strmbtouc'.
945         * modules/unistr/u8-strmbtouc-tests: New file.
946         * tests/unistr/test-u8-strmbtouc.c: New file.
947
948         Tests for module 'unistr/u32-strmblen'.
949         * modules/unistr/u32-strmblen-tests: New file.
950         * tests/unistr/test-u32-strmblen.c: New file.
951
952         Tests for module 'unistr/u16-strmblen'.
953         * modules/unistr/u16-strmblen-tests: New file.
954         * tests/unistr/test-u16-strmblen.c: New file.
955
956         Tests for module 'unistr/u8-strmblen'.
957         * modules/unistr/u8-strmblen-tests: New file.
958         * tests/unistr/test-u8-strmblen.c: New file.
959
960         Tests for module 'unistr/u32-cpy-alloc'.
961         * modules/unistr/u32-cpy-alloc-tests: New file.
962         * tests/unistr/test-u32-cpy-alloc.c: New file.
963
964         Tests for module 'unistr/u16-cpy-alloc'.
965         * modules/unistr/u16-cpy-alloc-tests: New file.
966         * tests/unistr/test-u16-cpy-alloc.c: New file.
967
968         Tests for module 'unistr/u8-cpy-alloc'.
969         * modules/unistr/u8-cpy-alloc-tests: New file.
970         * tests/unistr/test-u8-cpy-alloc.c: New file.
971         * tests/unistr/test-cpy-alloc.h: New file.
972
973         Tests for module 'unistr/u32-mbsnlen'.
974         * modules/unistr/u32-mbsnlen-tests: New file.
975         * tests/unistr/test-u32-mbsnlen.c: New file.
976
977         Tests for module 'unistr/u16-mbsnlen'.
978         * modules/unistr/u16-mbsnlen-tests: New file.
979         * tests/unistr/test-u16-mbsnlen.c: New file.
980
981         Tests for module 'unistr/u8-mbsnlen'.
982         * modules/unistr/u8-mbsnlen-tests: New file.
983         * tests/unistr/test-u8-mbsnlen.c: New file.
984
985         Tests for module 'unistr/u32-chr'.
986         * modules/unistr/u32-chr-tests: New file.
987         * tests/unistr/test-u32-chr.c: New file.
988
989         Tests for module 'unistr/u16-chr'.
990         * modules/unistr/u16-chr-tests: New file.
991         * tests/unistr/test-u16-chr.c: New file.
992
993         Tests for module 'unistr/u8-chr'.
994         * modules/unistr/u8-chr-tests: New file.
995         * tests/unistr/test-u8-chr.c: New file.
996         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
997
998         Tests for module 'unistr/u32-cmp2'.
999         * modules/unistr/u32-cmp2-tests: New file.
1000         * tests/unistr/test-u32-cmp2.c: New file.
1001
1002         Tests for module 'unistr/u16-cmp2'.
1003         * modules/unistr/u16-cmp2-tests: New file.
1004         * tests/unistr/test-u16-cmp2.c: New file.
1005
1006         Tests for module 'unistr/u8-cmp2'.
1007         * modules/unistr/u8-cmp2-tests: New file.
1008         * tests/unistr/test-u8-cmp2.c: New file.
1009         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
1010
1011         Tests for module 'unistr/u32-cmp'.
1012         * modules/unistr/u32-cmp-tests: New file.
1013         * tests/unistr/test-u32-cmp.c: New file.
1014
1015         Tests for module 'unistr/u16-cmp'.
1016         * modules/unistr/u16-cmp-tests: New file.
1017         * tests/unistr/test-u16-cmp.c: New file.
1018
1019         Tests for module 'unistr/u8-cmp'.
1020         * modules/unistr/u8-cmp-tests: New file.
1021         * tests/unistr/test-u8-cmp.c: New file.
1022         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
1023
1024         Tests for module 'unistr/u32-set'.
1025         * modules/unistr/u32-set-tests: New file.
1026         * tests/unistr/test-u32-set.c: New file.
1027
1028         Tests for module 'unistr/u16-set'.
1029         * modules/unistr/u16-set-tests: New file.
1030         * tests/unistr/test-u16-set.c: New file.
1031
1032         Tests for module 'unistr/u8-set'.
1033         * modules/unistr/u8-set-tests: New file.
1034         * tests/unistr/test-u8-set.c: New file.
1035         * tests/unistr/test-set.h: New file.
1036
1037         Tests for module 'unistr/u32-move'.
1038         * modules/unistr/u32-move-tests: New file.
1039         * tests/unistr/test-u32-move.c: New file.
1040
1041         Tests for module 'unistr/u16-move'.
1042         * modules/unistr/u16-move-tests: New file.
1043         * tests/unistr/test-u16-move.c: New file.
1044
1045         Tests for module 'unistr/u8-move'.
1046         * modules/unistr/u8-move-tests: New file.
1047         * tests/unistr/test-u8-move.c: New file.
1048         * tests/unistr/test-move.h: New file.
1049
1050         Tests for module 'unistr/u32-cpy'.
1051         * modules/unistr/u32-cpy-tests: New file.
1052         * tests/unistr/test-u32-cpy.c: New file.
1053
1054         Tests for module 'unistr/u16-cpy'.
1055         * modules/unistr/u16-cpy-tests: New file.
1056         * tests/unistr/test-u16-cpy.c: New file.
1057
1058         Tests for module 'unistr/u8-cpy'.
1059         * modules/unistr/u8-cpy-tests: New file.
1060         * tests/unistr/test-u8-cpy.c: New file.
1061         * tests/unistr/test-cpy.h: New file.
1062
1063 2010-01-09  Bruno Haible  <bruno@clisp.org>
1064
1065         Tests for module 'unistr/u32-uctomb'.
1066         * modules/unistr/u32-uctomb-tests: New file.
1067         * tests/unistr/test-u32-uctomb.c: New file.
1068
1069         Tests for module 'unistr/u16-uctomb'.
1070         * modules/unistr/u16-uctomb-tests: New file.
1071         * tests/unistr/test-u16-uctomb.c: New file.
1072
1073         Tests for module 'unistr/u8-uctomb'.
1074         * modules/unistr/u8-uctomb-tests: New file.
1075         * tests/unistr/test-u8-uctomb.c: New file.
1076
1077         Tests for module 'unistr/u32-mbtoucr'.
1078         * modules/unistr/u32-mbtoucr-tests: New file.
1079         * tests/unistr/test-u32-mbtoucr.c: New file.
1080
1081         Tests for module 'unistr/u16-mbtoucr'.
1082         * modules/unistr/u16-mbtoucr-tests: New file.
1083         * tests/unistr/test-u16-mbtoucr.c: New file.
1084
1085         Tests for module 'unistr/u8-mbtoucr'.
1086         * modules/unistr/u8-mbtoucr-tests: New file.
1087         * tests/unistr/test-u8-mbtoucr.c: New file.
1088
1089         Tests for module 'unistr/u32-mbtouc'.
1090         * modules/unistr/u32-mbtouc-tests: New file.
1091         * tests/unistr/test-u32-mbtouc.c: New file.
1092
1093         Tests for module 'unistr/u16-mbtouc'.
1094         * modules/unistr/u16-mbtouc-tests: New file.
1095         * tests/unistr/test-u16-mbtouc.c: New file.
1096
1097         Tests for module 'unistr/u8-mbtouc'.
1098         * modules/unistr/u8-mbtouc-tests: New file.
1099         * tests/unistr/test-u8-mbtouc.c: New file.
1100
1101         Tests for module 'unistr/u32-mbtouc-unsafe'.
1102         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
1103         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
1104         * tests/unistr/test-u32-mbtouc.h: New file.
1105
1106         Tests for module 'unistr/u16-mbtouc-unsafe'.
1107         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
1108         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
1109         * tests/unistr/test-u16-mbtouc.h: New file.
1110
1111         Tests for module 'unistr/u8-mbtouc-unsafe'.
1112         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
1113         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
1114         * tests/unistr/test-u8-mbtouc.h: New file.
1115
1116         Tests for module 'unistr/u32-mblen'.
1117         * modules/unistr/u32-mblen-tests: New file.
1118         * tests/unistr/test-u32-mblen.c: New file.
1119
1120         Tests for module 'unistr/u16-mblen'.
1121         * modules/unistr/u16-mblen-tests: New file.
1122         * tests/unistr/test-u16-mblen.c: New file.
1123
1124         Tests for module 'unistr/u8-mblen'.
1125         * modules/unistr/u8-mblen-tests: New file.
1126         * tests/unistr/test-u8-mblen.c: New file.
1127
1128         Tests for module 'unistr/u32-to-u16'.
1129         * modules/unistr/u32-to-u16-tests: New file.
1130         * tests/unistr/test-u32-to-u16.c: New file.
1131
1132         Tests for module 'unistr/u32-to-u8'.
1133         * modules/unistr/u32-to-u8-tests: New file.
1134         * tests/unistr/test-u32-to-u8.c: New file.
1135
1136         Tests for module 'unistr/u16-to-u32'.
1137         * modules/unistr/u16-to-u32-tests: New file.
1138         * tests/unistr/test-u16-to-u32.c: New file.
1139
1140         Tests for module 'unistr/u16-to-u8'.
1141         * modules/unistr/u16-to-u8-tests: New file.
1142         * tests/unistr/test-u16-to-u8.c: New file.
1143
1144         Tests for module 'unistr/u8-to-u32'.
1145         * modules/unistr/u8-to-u32-tests: New file.
1146         * tests/unistr/test-u8-to-u32.c: New file.
1147
1148         Tests for module 'unistr/u8-to-u16'.
1149         * modules/unistr/u8-to-u16-tests: New file.
1150         * tests/unistr/test-u8-to-u16.c: New file.
1151
1152         Tests for module 'unistr/u32-check'.
1153         * modules/unistr/u32-check-tests: New file.
1154         * tests/unistr/test-u32-check.c: New file.
1155
1156         Tests for module 'unistr/u16-check'.
1157         * modules/unistr/u16-check-tests: New file.
1158         * tests/unistr/test-u16-check.c: New file.
1159
1160         Tests for module 'unistr/u8-check'.
1161         * modules/unistr/u8-check-tests: New file.
1162         * tests/unistr/test-u8-check.c: New file.
1163
1164         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
1165         (category_equals): New function.
1166         (main): Add more tests.
1167         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
1168
1169         * tests/unictype/test-bidi_byname.c (main): Add more tests.
1170
1171 2010-01-10  Bruno Haible  <bruno@clisp.org>
1172
1173         unistr/u*-strcoll: Try harder to distinguish different strings.
1174         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
1175         compare s1 and s2 to see if they are different.
1176
1177 2010-01-10  Bruno Haible  <bruno@clisp.org>
1178
1179         unistr/u*-stpncpy: Fix the return value.
1180         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
1181         description of the return value consistent with stpncpy in glibc.
1182         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
1183         written non-NUL unit.
1184
1185 2010-01-10  Bruno Haible  <bruno@clisp.org>
1186
1187         unistr/u*-next: Add missing dependencies.
1188         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
1189         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
1190         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
1191
1192 2010-01-10  Bruno Haible  <bruno@clisp.org>
1193
1194         unistr/u8-mbsnlen: Fix return value for incomplete character.
1195         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
1196         u8_mblen.
1197         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
1198         Remove unistr/u8-mblen.
1199         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
1200         u16_mblen.
1201         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
1202         Remove unistr/u16-mblen.
1203
1204 2010-01-10  Bruno Haible  <bruno@clisp.org>
1205
1206         wchar: Fix compilation error when <wchar.h> is used from coreutils.
1207         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
1208         Reported by Brian Gough <bjg@gnu.org> and
1209         Chris Clayton <chris2553@googlemail.com> via
1210         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
1211
1212 2010-01-09  Bruno Haible  <bruno@clisp.org>
1213
1214         unistr/u16-to-u32: Reject invalid input.
1215         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
1216         u16_mbtouc.
1217         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
1218         Remove unistr/u16-mbtouc.
1219
1220         unistr/u16-to-u8: Reject invalid input.
1221         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
1222         u16_mbtouc.
1223         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
1224         Remove unistr/u16-mbtouc.
1225
1226         unistr/u8-to-u32: Reject invalid input.
1227         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
1228         u8_mbtouc.
1229         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
1230         Remove unistr/u8-mbtouc.
1231
1232         unistr/u8-to-u16: Reject invalid input.
1233         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
1234         u8_mbtouc.
1235         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
1236         Remove unistr/u8-mbtouc.
1237
1238 2010-01-09  Bruno Haible  <bruno@clisp.org>
1239
1240         Tests for module 'getlogin'.
1241         * modules/getlogin-tests: New file.
1242         * tests/test-getlogin.c: New file.
1243
1244         New module 'getlogin'.
1245         * lib/unistd.in.h (getlogin): New declaration.
1246         * lib/getlogin.c: New file.
1247         * m4/getlogin.m4: New file.
1248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
1249         HAVE_GETLOGIN.
1250         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
1251         HAVE_GETLOGIN.
1252         * modules/getlogin: New file.
1253         * doc/posix-functions/getlogin.texi: Mention the new module.
1254         Reported by John W. Eaton <jwe@gnu.org>.
1255
1256 2010-01-09  Bruno Haible  <bruno@clisp.org>
1257
1258         getlogin_r: Support for native Windows.
1259         * lib/getlogin_r.c: Include <windows.h>
1260         (getlogin_r): Implement for native Windows.
1261         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
1262         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
1263         via John W. Eaton <jwe@gnu.org>.
1264
1265 2010-01-09  Bruno Haible  <bruno@clisp.org>
1266
1267         getlogin_r: Small fixes.
1268         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
1269         succeeds.
1270         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
1271         before testing whether getlogin_r is declared. No need to set
1272         HAVE_DECL_GETLOGIN_R to 1.
1273         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
1274
1275 2010-01-09  Bruno Haible  <bruno@clisp.org>
1276
1277         * lib/unistd.in.h (getlogin_r): Add comment.
1278
1279 2010-01-09  Bruno Haible  <bruno@clisp.org>
1280
1281         Tests for module 'getlogin_r'.
1282         * modules/getlogin_r-tests: New file.
1283         * tests/test-getlogin_r.c: New file.
1284
1285 2010-01-09  Jim Meyering  <meyering@redhat.com>
1286
1287         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
1288         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
1289         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
1290
1291 2010-01-08  Simon Josefsson  <simon@josefsson.org>
1292
1293         * lib/dup2.c (rpl_dup2): Improve comment.
1294
1295 2010-01-08  Eric Blake  <ebb9@byu.net>
1296
1297         maint.mk: allow packages to add makefile @@ exceptions
1298         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
1299         (sc_makefile_check): Rename...
1300         (sc_makefile_at_at_check): ...to this, and use hook.
1301
1302         dup2: work around mingw bug
1303         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
1304         Reported by Simon Josefsson.
1305
1306 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
1307
1308         glob: Fix C++ compilation.
1309         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
1310         C++.
1311
1312 2010-01-07  Bruno Haible  <bruno@clisp.org>
1313
1314         Fix indentation of wctype.in.h, broken since 2007-01-06.
1315         * lib/wctype.in.h: Fix indentation of preprocessor directives.
1316
1317 2010-01-07  Bruno Haible  <bruno@clisp.org>
1318
1319         mbslen: Avoid collision with system function.
1320         * lib/string.in.h [MirBSD]: Include <wchar.h>.
1321         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
1322         * m4/mbslen.m4: New file.
1323         * modules/mbslen (Files): Add it.
1324         (configure.ac): Invoke gl_MBSLEN.
1325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
1326         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
1327         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
1328         via Ian Beckwith <ianb@erislabs.net>.
1329
1330 2010-01-07  Bruno Haible  <bruno@clisp.org>
1331
1332         dirent: Document the last fix.
1333         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
1334
1335 2010-01-07  Bruno Haible  <bruno@clisp.org>
1336
1337         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
1338         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
1339         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
1340         va_list are defined.
1341         * doc/posix-headers/stdio.texi: Document the bug of missing types.
1342         Reported by Eric Blake.
1343
1344 2010-01-07  Bruno Haible  <bruno@clisp.org>
1345
1346         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
1347         * modules/xlist (Depends-on): Add 'list',
1348         * modules/xoset (Depends-on): Add 'oset'.
1349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1350
1351 2010-01-07  Bruno Haible  <bruno@clisp.org>
1352
1353         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
1354         * doc/posix-functions/strncasecmp.texi: Likewise.
1355
1356 2010-01-07  Bruno Haible  <bruno@clisp.org>
1357
1358         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
1359
1360 2010-01-07  John W. Eaton  <jwe@octave.org>
1361
1362         wctype: allow C++ use
1363         * lib/wctype.in.h: Add extern "C" block for C++.
1364
1365 2010-01-06  Eric Blake  <ebb9@byu.net>
1366
1367         maint.mk: detect incorrect GFDL usage
1368         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
1369
1370 2010-01-06  Jim Meyering  <meyering@redhat.com>
1371         and Eric Blake  <ebb9@byu.net>
1372
1373         maint.mk: ignore multi-line copyright in NEWS
1374         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
1375
1376 2010-01-06  Eric Blake  <ebb9@byu.net>
1377
1378         select: add missing dependency
1379         * modules/select-tests (Depends-on): Move sockets dependency...
1380         * modules/select (Depends-on): ...here.
1381         Reported by Ian Beckwith.
1382
1383         doc: regenerate INSTALL
1384         * doc/INSTALL: Reflect recent autoconf update.
1385         * doc/INSTALL.ISO: Likewise.
1386         * doc/INSTALL.UTF-8: Likewise.
1387
1388         pread: fix compilation on glibc
1389         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
1390         Reported by Ralf Wildenhues.
1391
1392         dirent: fix test failure
1393         * lib/dirent.in.h (includes): Guarantee ino_t.
1394         Reported by Ralf Wildenhues.
1395
1396 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
1397
1398         linkat, renameat: avoid bad free
1399         * lib/at-func2.c (at_func2): Fix typo.
1400         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
1401
1402 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1403
1404         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
1405         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
1406         to avoid failure of symlink test later.
1407
1408 2010-01-06  Eric Blake  <ebb9@byu.net>
1409
1410         stdio, unistd: guarantee ssize_t
1411         * lib/unistd.in.h (includes): Ensure that types required by POSIX
1412         2008 are exposed when needed.
1413         * lib/stdio.in.h (includes): Likewise.
1414         Reported by Ralf Wildenhues.
1415
1416 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
1417
1418         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
1419         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
1420         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
1421
1422 2010-01-06  Jim Meyering  <meyering@redhat.com>
1423
1424         readtokens: this module *does* require xalloc.h
1425         It uses only functions that were omitted by the old syntax-check rule.
1426         * lib/readtokens.c: Include "xalloc.h" once again.
1427         * modules/readtokens (Depends-on): Add xalloc.
1428         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
1429
1430 2010-01-05  Eric Blake  <ebb9@byu.net>
1431
1432         maint: support 'make announcement' from a VPATH build
1433         * top/maint.mk (announcement): Look for correct NEWS file.
1434
1435 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
1436
1437         utimens (fdutimens): ignore a negative FD, per contract
1438         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
1439         when we have a valid file descriptor.  Otherwise, using a brand
1440         new glibc (with just-patched futimens that now fails with EBADF)
1441         would cause this function to fail with ENOSYS.
1442         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
1443         See also http://bugzilla.redhat.com/552320.
1444
1445 2010-01-05  Eric Blake  <ebb9@byu.net>
1446
1447         strcase: document what it provides
1448         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
1449         gnulib module.
1450         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
1451         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
1452
1453 2010-01-05  Jim Meyering  <meyering@redhat.com>
1454
1455         maint: remove useless inclusions of "xalloc.h"
1456         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
1457         * lib/readtokens.c: Likewise.
1458         * lib/same.c: Likewise.
1459         * modules/getloadavg (Depends-on): Remove xalloc.
1460         * modules/readtokens: Likewise.
1461         * modules/same: Likewise.
1462
1463         maint.mk: include 4 more function names in alloca.h-checking regexp
1464         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
1465         regexp.  Before, we would give a false-positive (saying alloca.h
1466         is included unnecessarily) when the only uses involved omitted symbols.
1467
1468         xalloc.h: use consistent formatting
1469         * lib/xalloc.h: Move declarations to start in the first column.
1470
1471 2010-01-05  Eric Blake  <ebb9@byu.net>
1472
1473         mkdir: avoid xalloc
1474         * lib/mkdir.c (includes): Drop unused header.
1475         Reported by John W. Eaton.
1476
1477 2010-01-04  Jim Meyering  <meyering@redhat.com>
1478
1479         nl_langinfo: avoid configure-time syntax error
1480         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
1481         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
1482         the empty string.  Don't let that provoke a shell syntax error.
1483
1484         regcomp, regexec, fnmatch: avoid array bounds read error
1485         * lib/regcomp.c (build_equiv_class): From glibc:
1486         Use only the low 24 bits of a findidx return value as an index
1487         into the weights array.  Patch by Ulrich Drepper:
1488         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
1489         * lib/regexec.c (check_node_accept_bytes): Likewise.
1490         * lib/fnmatch_loop.c (FCT): Likewise.
1491
1492         regcomp: skip collseq lookup when there are no rules
1493         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
1494         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
1495
1496         regcomp: recognize ill-formed { } expressions
1497         * lib/regcomp.c (parse_dup_op): From glibc:
1498         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
1499
1500         regcomp: fix typo in comment
1501         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
1502         s/satisfy/satisfies/.
1503
1504         regcomp: sync from glibc: remove dead store
1505         * lib/regcomp.c (duplicate_node_closure): Remove useless
1506         search_duplicated_node call and dead store.
1507
1508         regcomp: sync from glibc; always use nl_langinfo
1509         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
1510         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
1511         * modules/regex (Depends-on): Add nl_langinfo.
1512
1513 2010-01-04  Eric Blake  <ebb9@byu.net>
1514
1515         fdopendir: fix configure test
1516         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
1517
1518 2010-01-01  Bruno Haible  <bruno@clisp.org>
1519
1520         wchar: Remove unused configure check.
1521         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
1522
1523 2010-01-01  Eric Blake  <ebb9@byu.net>
1524
1525         headers: make check of system header explicit
1526         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
1527         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
1528         ourselves.
1529         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1530         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1531         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
1532         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
1533         internals.
1534         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
1535         missing.
1536         Suggested by Bruno Haible.
1537
1538 2010-01-01  Jim Meyering  <meyering@redhat.com>
1539
1540         ChangeLog: tweak to eliminate unnecessary copyright line
1541         * ChangeLog: Remove a copyright line that was mistakenly updated
1542         by today's update-copyright run.  Reported by Eric Blake.
1543
1544         test-update-copyright: don't let envvar setting cause test failure
1545         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1546
1547 2010-01-01  Bruno Haible  <bruno@clisp.org>
1548
1549         localename: Avoid gcc warning.
1550         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
1551         function if it is not used.
1552
1553 2010-01-01  Jim Meyering  <meyering@redhat.com>
1554
1555         update nearly all FSF copyright year lists to include 2010
1556         Use the same procedure as for 2009, outlined in
1557         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
1558
1559         version-etc: set COPYRIGHT_YEAR to 2010
1560         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
1561
1562 2009-12-31  Eric Blake  <ebb9@byu.net>
1563
1564         doc: correct availability of cygwin 1.5.x getopt
1565         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
1566         variables.
1567         * doc/posix-functions/opterr.texi (opterr): Likewise.
1568         * doc/posix-functions/optind.texi (optind): Likewise.
1569         * doc/posix-functions/optopt.texi (optopt): Likewise.
1570         * doc/posix-functions/tzname.texi (tzname): Likewise.
1571
1572         openat: update maintainer
1573         * modules/openat (Maintainer): Add myself.
1574
1575         utimens: avoid shadowing warning
1576         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
1577         buffers into one, to avoid shadowing, as well as avoiding a
1578         redundant stat.
1579         Reported by Jim Meyering.
1580
1581         test-dup2: avoid compiler warning
1582         * tests/test-dup2.c (is_inheritable): Only define if used.
1583
1584 2010-01-01  Bruno Haible  <bruno@clisp.org>
1585
1586         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
1587         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
1588         defined, use wctomb instead of wcrtomb.
1589
1590 2010-01-01  Bruno Haible  <bruno@clisp.org>
1591
1592         iconv: Reject native Solaris iconv.
1593         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
1594         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
1595
1596 2009-12-31  Bruno Haible  <bruno@clisp.org>
1597
1598         * tests/test-signal.c (main): Remove test of 'SIG'.
1599
1600 2009-12-31  Bruno Haible  <bruno@clisp.org>
1601
1602         spawn: Fix incomplete fix.
1603         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
1604         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
1605         warnings for GNULIB_POSIXCHECK again.
1606         Reported by Eric Blake.
1607
1608 2009-12-31  Bruno Haible  <bruno@clisp.org>
1609
1610         Avoid namespace pollution on glibc systems.
1611         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
1612         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
1613         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
1614         glibc systems.
1615
1616 2009-12-31  Bruno Haible  <bruno@clisp.org>
1617
1618         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
1619         (gl_REPLACE_WCHAR_H): Turn into a no-op.
1620         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
1621         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1622         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1623         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1624         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1625
1626 2009-12-31  Bruno Haible  <bruno@clisp.org>
1627
1628         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1629         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
1630         afterwards.
1631
1632 2009-12-31  Bruno Haible  <bruno@clisp.org>
1633
1634         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
1635         SYS_UTSNAME_H.
1636
1637 2009-12-31  Bruno Haible  <bruno@clisp.org>
1638
1639         spawn: Fix misapplied patch.
1640         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
1641         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
1642         warnings for GNULIB_POSIXCHECK.
1643
1644 2009-12-31  Bruno Haible  <bruno@clisp.org>
1645
1646         times: Update after sys_times changed.
1647         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
1648         * modules/times (Files): Add it.
1649         (configure.ac): Invoke gl_FUNC_TIMES.
1650
1651 2009-12-31  Bruno Haible  <bruno@clisp.org>
1652
1653         Use AC_C_INLINE where necessary.
1654         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
1655         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1656         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
1657         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
1658         * m4/mbfile.m4 (gl_MBFILE): Likewise.
1659         * m4/mbiter.m4 (gl_MBITER): Likewise.
1660         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1661         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1662         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
1663         * modules/u64 (configure.ac): Likewise.
1664
1665 2009-12-31  Bruno Haible  <bruno@clisp.org>
1666
1667         Use AC_C_INLINE instead of module 'inline' where possible.
1668         * modules/inline (Description): Clarify purpose.
1669         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
1670         * modules/count-one-bits (Depends-on): Remove inline.
1671         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
1672         * modules/openat (Depends-on): Remove inline.
1673         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
1674         instead of depending on module 'inline'.
1675         * modules/filevercmp (Depends-on, configure.ac): Likewise.
1676         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
1677         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
1678         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
1679         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
1680         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
1681         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
1682         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
1683         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
1684         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
1685         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
1686         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
1687         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
1688         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
1689         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
1690         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
1691         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
1692         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
1693         Likewise.
1694         * modules/unictype/property-ascii-hex-digit (Depends-on,
1695         configure.ac): Likewise.
1696         * modules/unictype/property-bidi-arabic-digit (Depends-on,
1697         configure.ac): Likewise.
1698         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
1699         configure.ac): Likewise.
1700         * modules/unictype/property-bidi-block-separator (Depends-on,
1701         configure.ac): Likewise.
1702         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
1703         configure.ac): Likewise.
1704         * modules/unictype/property-bidi-common-separator (Depends-on,
1705         configure.ac): Likewise.
1706         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
1707         Likewise.
1708         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
1709         configure.ac): Likewise.
1710         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
1711         configure.ac): Likewise.
1712         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
1713         configure.ac): Likewise.
1714         * modules/unictype/property-bidi-european-digit (Depends-on,
1715         configure.ac): Likewise.
1716         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
1717         configure.ac): Likewise.
1718         * modules/unictype/property-bidi-left-to-right (Depends-on,
1719         configure.ac): Likewise.
1720         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
1721         configure.ac): Likewise.
1722         * modules/unictype/property-bidi-other-neutral (Depends-on,
1723         configure.ac): Likewise.
1724         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
1725         Likewise.
1726         * modules/unictype/property-bidi-segment-separator (Depends-on,
1727         configure.ac): Likewise.
1728         * modules/unictype/property-bidi-whitespace (Depends-on,
1729         configure.ac): Likewise.
1730         * modules/unictype/property-combining (Depends-on, configure.ac):
1731         Likewise.
1732         * modules/unictype/property-composite (Depends-on, configure.ac):
1733         Likewise.
1734         * modules/unictype/property-currency-symbol (Depends-on,
1735         configure.ac): Likewise.
1736         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
1737         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
1738         Likewise.
1739         * modules/unictype/property-default-ignorable-code-point (Depends-on,
1740         configure.ac): Likewise.
1741         * modules/unictype/property-deprecated (Depends-on, configure.ac):
1742         Likewise.
1743         * modules/unictype/property-diacritic (Depends-on, configure.ac):
1744         Likewise.
1745         * modules/unictype/property-extender (Depends-on, configure.ac):
1746         Likewise.
1747         * modules/unictype/property-format-control (Depends-on, configure.ac):
1748         Likewise.
1749         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
1750         Likewise.
1751         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
1752         Likewise.
1753         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
1754         Likewise.
1755         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
1756         Likewise.
1757         * modules/unictype/property-hyphen (Depends-on, configure.ac):
1758         Likewise.
1759         * modules/unictype/property-id-continue (Depends-on, configure.ac):
1760         Likewise.
1761         * modules/unictype/property-id-start (Depends-on, configure.ac):
1762         Likewise.
1763         * modules/unictype/property-ideographic (Depends-on, configure.ac):
1764         Likewise.
1765         * modules/unictype/property-ids-binary-operator (Depends-on,
1766         configure.ac): Likewise.
1767         * modules/unictype/property-ids-trinary-operator (Depends-on,
1768         configure.ac): Likewise.
1769         * modules/unictype/property-ignorable-control (Depends-on,
1770         configure.ac): Likewise.
1771         * modules/unictype/property-iso-control (Depends-on, configure.ac):
1772         Likewise.
1773         * modules/unictype/property-join-control (Depends-on, configure.ac):
1774         Likewise.
1775         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
1776         Likewise.
1777         * modules/unictype/property-line-separator (Depends-on, configure.ac):
1778         Likewise.
1779         * modules/unictype/property-logical-order-exception (Depends-on,
1780         configure.ac): Likewise.
1781         * modules/unictype/property-lowercase (Depends-on, configure.ac):
1782         Likewise.
1783         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
1784         * modules/unictype/property-non-break (Depends-on, configure.ac):
1785         Likewise.
1786         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
1787         Likewise.
1788         * modules/unictype/property-numeric (Depends-on, configure.ac):
1789         Likewise.
1790         * modules/unictype/property-other-alphabetic (Depends-on,
1791         configure.ac): Likewise.
1792         * modules/unictype/property-other-default-ignorable-code-point
1793         (Depends-on, configure.ac): Likewise.
1794         * modules/unictype/property-other-grapheme-extend (Depends-on,
1795         configure.ac): Likewise.
1796         * modules/unictype/property-other-id-continue (Depends-on,
1797         configure.ac): Likewise.
1798         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
1799         Likewise.
1800         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
1801         Likewise.
1802         * modules/unictype/property-other-math (Depends-on, configure.ac):
1803         Likewise.
1804         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
1805         Likewise.
1806         * modules/unictype/property-paired-punctuation (Depends-on,
1807         configure.ac): Likewise.
1808         * modules/unictype/property-paragraph-separator (Depends-on,
1809         configure.ac): Likewise.
1810         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
1811         Likewise.
1812         * modules/unictype/property-pattern-white-space (Depends-on,
1813         configure.ac): Likewise.
1814         * modules/unictype/property-private-use (Depends-on, configure.ac):
1815         Likewise.
1816         * modules/unictype/property-punctuation (Depends-on, configure.ac):
1817         Likewise.
1818         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
1819         Likewise.
1820         * modules/unictype/property-radical (Depends-on, configure.ac):
1821         Likewise.
1822         * modules/unictype/property-sentence-terminal (Depends-on,
1823         configure.ac): Likewise.
1824         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
1825         Likewise.
1826         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
1827         * modules/unictype/property-terminal-punctuation (Depends-on,
1828         configure.ac): Likewise.
1829         * modules/unictype/property-titlecase (Depends-on, configure.ac):
1830         Likewise.
1831         * modules/unictype/property-unassigned-code-value (Depends-on,
1832         configure.ac): Likewise.
1833         * modules/unictype/property-unified-ideograph (Depends-on,
1834         configure.ac): Likewise.
1835         * modules/unictype/property-uppercase (Depends-on, configure.ac):
1836         Likewise.
1837         * modules/unictype/property-variation-selector (Depends-on,
1838         configure.ac): Likewise.
1839         * modules/unictype/property-white-space (Depends-on, configure.ac):
1840         Likewise.
1841         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
1842         Likewise.
1843         * modules/unictype/property-xid-start (Depends-on, configure.ac):
1844         Likewise.
1845         * modules/unictype/property-zero-width (Depends-on, configure.ac):
1846         Likewise.
1847         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
1848         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
1849         Likewise.
1850
1851 2009-12-31  Bruno Haible  <bruno@clisp.org>
1852
1853         Remove unnecessary AC_C_INLINE invocation.
1854         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
1855         since 2009-08-21.
1856
1857 2009-12-31  Jim Meyering  <meyering@redhat.com>
1858
1859         maint.mk: don't require explicit gpg_key_ID in cfg.mk
1860         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
1861         With this change, we can all remove the gpg_key_ID = ... definition
1862         from our respective cfg.mk files.
1863
1864         maint.mk: create announcement template in ~/, not in /tmp
1865         * top/maint.mk (emit_upload_commands): Adjust.
1866         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
1867         Remove temporary file, .ci-msg.
1868
1869 2009-12-31  Eric Blake  <ebb9@byu.net>
1870
1871         link-warning: always build headers with link warnings
1872         * modules/arpa_inet (Makefile.am): Always build replacement
1873         header.
1874         * modules/ctype (Makefile.am): Likewise.
1875         * modules/dirent (Makefile.am): Likewise.
1876         * modules/inttypes (Makefile.am): Likewise.
1877         * modules/langinfo (Makefile.am): Likewise.
1878         * modules/locale (Makefile.am): Likewise.
1879         * modules/spawn (Makefile.am): Likewise.
1880         * modules/sys_file (Makefile.am): Likewise.
1881         * modules/sys_ioctl (Makefile.am): Likewise.
1882         * modules/sys_select (Makefile.am): Likewise.
1883         * modules/sys_socket (Makefile.am): Likewise.
1884         * modules/sys_times (Makefile.am): Likewise.
1885         * modules/sys_utsname (Makefile.am): Likewise.
1886         * modules/sys_wait (Makefile.am): Likewise.
1887         * modules/wchar (Makefile.am): Likewise.
1888         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
1889         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
1890         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
1891         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
1892         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
1893         Likewise.
1894         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1895         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1896         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
1897         Likewise.
1898         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
1899         Likewise.
1900         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1901         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
1902         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
1903         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1904         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1905         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1906         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1907         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
1908         (gl_WCHAR_H_DEFAULTS): Likewise.
1909
1910 2009-12-31  Eric Blake  <ebb9@byu.net>
1911
1912         signal, spawn: use link warnings
1913         * lib/signal.in.h (sigset_t): Make unconditional.
1914         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
1915         (sigpending, sigprocmask, sigaction): Add link warnings.
1916         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
1917         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
1918         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
1919         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
1920         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
1921         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
1922         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
1923         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
1924         (posix_spawn_file_actions_destroy)
1925         (posix_spawn_file_actions_addopen)
1926         (posix_spawn_file_actions_addclose)
1927         (posix_spawwn_file_actions_adddup2): Likewise.
1928         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
1929         * tests/test-signal.c (main): Enhance test.
1930
1931         spawn: improve wrapper support
1932         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
1933         (gl_SPAWN_H_DEFAULTS): New defaults.
1934         * modules/spawn (Makefile.am): Substitute them.
1935         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
1936         Only declare if missing or broken.
1937
1938         sys_times, sys_utsname: use include_next
1939         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
1940         header.
1941         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
1942         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1943         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1944         * modules/sys_times (Depends-on): Add include_next.
1945         (Makefile.am): Substitute additional values.
1946         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1947         * lib/sys_times.in.h (includes): Include native header, if
1948         available.
1949         * lib/sys_utsname.in.h (includes): Likewise.
1950         * tests/test-sys_times.c (main): Enhance test.
1951
1952         fdutimensat: revert prior patch
1953         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
1954         utimens.h.
1955         Reported by Bruno Haible.
1956
1957 2009-12-30  Eric Blake  <ebb9@byu.net>
1958
1959         sys_wait: drop link-warning dependency
1960         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
1961         link-warning efforts.
1962         * lib/sys_wait.in.h: Likewise.
1963
1964         fdutimensat: remove bogus dependency
1965         * modules/fdutimensat (Depends-on): Drop inline.
1966
1967         unistd: fix typo
1968         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
1969
1970 2009-12-30  Bruno Haible  <bruno@clisp.org>
1971
1972         Fix compilation error with Solaris cc.
1973         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
1974         * lib/unicase/u16-is-invariant.c: Likewise.
1975         * lib/unicase/u32-is-invariant.c: Likewise.
1976         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1977
1978 2009-12-30  Bruno Haible  <bruno@clisp.org>
1979
1980         Fix test crash.
1981         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
1982         locales.
1983         Reported by Simon Josefsson <simon@josefsson.org>.
1984
1985 2009-12-30  Bruno Haible  <bruno@clisp.org>
1986
1987         Fix compilation error on most platforms.
1988         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
1989         Reported by Simon Josefsson <simon@josefsson.org>
1990         and Nelson H. F. Beebe <beebe@math.utah.edu>.
1991
1992 2009-12-30  Eric Blake  <ebb9@byu.net>
1993
1994         futimens, utimensat: work around ntfs-3g bug
1995         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
1996         a ctime bug is present, and expand workaround to cover ntfs-3g.
1997         * lib/utimens.c (fdutimens, lutimens): Likewise.
1998         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
1999         (validate_timespec): Adjust return value.
2000         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
2001         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2002         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
2003
2004 2009-12-29  Eric Blake  <ebb9@byu.net>
2005
2006         link-warning: make usage consistent
2007         * modules/ctype (Depends-on): Add link-warning.
2008         (Makefile.am): Update rules accordingly.
2009         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2010         * modules/locale (Depends-on, Makefile.am): Likewise.
2011         * modules/sys_file (Makefile.am): Likewise.
2012         * modules/getopt-posix (Makefile.am): Delete unused link warning
2013         efforts.
2014         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
2015         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
2016         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
2017         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
2018
2019         stdio: remove unused variables
2020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
2021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2022         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2023
2024         tests: test more substitute headers
2025         * modules/ctype-tests: New file.
2026         * modules/dirent-tests: Likewise.
2027         * modules/spawn-tests: Likewise.
2028         * modules/sys_file-tests: Likewise.
2029         * modules/sys_ioctl-tests: Likewise.
2030         * modules/sys_wait-tests: Likewise.
2031         * tests/test-ctype.c: Likewise.
2032         * tests/test-dirent.c: Likewise.
2033         * tests/test-spawn.c: Likewise.
2034         * tests/test-sys_file.c: Likewise.
2035         * tests/test-sys_ioctl.c: Likewise.
2036         * tests/test-sys_wait.c: Likewise.
2037         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
2038         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
2039         whether or not flock is in use.
2040
2041         tests: remove License section from module
2042         * modules/arpa_inet-tests: Remove unneeded section.
2043         * modules/byteswap-tests: Likewise.
2044         * modules/ceilf-tests: Likewise.
2045         * modules/ceill-tests: Likewise.
2046         * modules/crypto/des-tests: Likewise.
2047         * modules/crypto/gc-arcfour-tests: Likewise.
2048         * modules/crypto/gc-arctwo-tests: Likewise.
2049         * modules/crypto/gc-des-tests: Likewise.
2050         * modules/crypto/gc-hmac-md5-tests: Likewise.
2051         * modules/crypto/gc-hmac-sha1-tests: Likewise.
2052         * modules/crypto/gc-md2-tests: Likewise.
2053         * modules/crypto/gc-md4-tests: Likewise.
2054         * modules/crypto/gc-md5-tests: Likewise.
2055         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
2056         * modules/crypto/gc-rijndael-tests: Likewise.
2057         * modules/crypto/gc-sha1-tests: Likewise.
2058         * modules/crypto/gc-tests: Likewise.
2059         * modules/crypto/md2-tests: Likewise.
2060         * modules/crypto/md4-tests: Likewise.
2061         * modules/fcntl-h-tests: Likewise.
2062         * modules/floorf-tests: Likewise.
2063         * modules/floorl-tests: Likewise.
2064         * modules/frexp-nolibm-tests: Likewise.
2065         * modules/frexp-tests: Likewise.
2066         * modules/frexpl-nolibm-tests: Likewise.
2067         * modules/frexpl-tests: Likewise.
2068         * modules/getaddrinfo-tests: Likewise.
2069         * modules/inttypes-tests: Likewise.
2070         * modules/isfinite-tests: Likewise.
2071         * modules/isinf-tests: Likewise.
2072         * modules/ldexpl-tests: Likewise.
2073         * modules/locale-tests: Likewise.
2074         * modules/math-tests: Likewise.
2075         * modules/netdb-tests: Likewise.
2076         * modules/netinet_in-tests: Likewise.
2077         * modules/printf-frexp-tests: Likewise.
2078         * modules/printf-frexpl-tests: Likewise.
2079         * modules/priv-set-tests: Likewise.
2080         * modules/random_r-tests: Likewise.
2081         * modules/round-tests: Likewise.
2082         * modules/roundf-tests: Likewise.
2083         * modules/roundl-tests: Likewise.
2084         * modules/search-tests: Likewise.
2085         * modules/select-tests: Likewise.
2086         * modules/signal-tests: Likewise.
2087         * modules/stdbool-tests: Likewise.
2088         * modules/stddef-tests: Likewise.
2089         * modules/stdint-tests: Likewise.
2090         * modules/stdio-tests: Likewise.
2091         * modules/stdlib-tests: Likewise.
2092         * modules/string-tests: Likewise.
2093         * modules/strings-tests: Likewise.
2094         * modules/sys_select-tests: Likewise.
2095         * modules/sys_socket-tests: Likewise.
2096         * modules/sys_stat-tests: Likewise.
2097         * modules/sys_time-tests: Likewise.
2098         * modules/sys_utsname-tests: Likewise.
2099         * modules/sysexits-tests: Likewise.
2100         * modules/time-tests: Likewise.
2101         * modules/trunc-tests: Likewise.
2102         * modules/truncf-tests: Likewise.
2103         * modules/truncl-tests: Likewise.
2104         * modules/tsearch-tests: Likewise.
2105         * modules/unistd-tests: Likewise.
2106         * modules/wchar-tests: Likewise.
2107         * modules/wctype-tests: Likewise.
2108
2109         tests: fix license on several tests
2110         * tests/test-des.c: Update to GPLv3+.
2111         * tests/test-flock.c: Likewise.
2112         * tests/test-fsync.c: Likewise.
2113         * tests/test-futimens.h: Likewise.
2114         * tests/test-gc-arcfour.c: Likewise.
2115         * tests/test-gc-arctwo.c: Likewise.
2116         * tests/test-gc-des.c: Likewise.
2117         * tests/test-gc-hmac-md5.c: Likewise.
2118         * tests/test-gc-hmac-sha1.c: Likewise.
2119         * tests/test-gc-md2.c: Likewise.
2120         * tests/test-gc-md4.c: Likewise.
2121         * tests/test-gc-md5.c: Likewise.
2122         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2123         * tests/test-gc-rijndael.c: Likewise.
2124         * tests/test-gc-sha1.c: Likewise.
2125         * tests/test-gc.c: Likewise.
2126         * tests/test-getcwd.c: Likewise.
2127         * tests/test-link.c: Likewise.
2128         * tests/test-link.h: Likewise.
2129         * tests/test-lutimens.h: Likewise.
2130         * tests/test-md2.c: Likewise.
2131         * tests/test-md4.c: Likewise.
2132         * tests/test-mkdir.h: Likewise.
2133         * tests/test-rename.c: Likewise.
2134         * tests/test-rename.h: Likewise.
2135         * tests/test-safe-alloc.c: Likewise.
2136         * tests/test-utimens-common.h: Likewise.
2137         * tests/test-utimens.h: Likewise.
2138
2139         maint: sync license texts
2140         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
2141         * doc/gpl-3.0.texi: Revert copyright year update.
2142         * doc/lgpl-3.0.texi: Likewise.
2143
2144 2009-12-29  Jim Meyering  <meyering@redhat.com>
2145
2146         update nearly all FSF copyright year lists to include 2009
2147         The files named by the following are exempted:
2148             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
2149               test -f "$dst" && { echo "$dst"; continue; }
2150               test -d "$dst" || continue
2151               echo "$dst"/$(basename "$src")
2152             done > exempt
2153             git ls-files tests/unictype >> exempt
2154         In the remaining files, convert to all-interval notation if
2155         - there is already at least one year interval like 2000-2003
2156         - the file is maintained by me
2157         - the file is in lib/uni*/, where that style already prevails
2158         Otherwise, use update-copyright's default.
2159
2160 2009-12-29  Simon Josefsson  <simon@josefsson.org>
2161         and Eric Blake  <ebb9@byu.net>
2162
2163         tests: don't require debug system() to pass
2164         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
2165         * tests/test-rmdir.h (test_rmdir_func): Likewise.
2166         * tests/test-unlink.h (test_unlink_func): Likewise.
2167         * tests/test-fstatat.c (main): ...into callers.
2168         * tests/test-lstat.c (main): Likewise.
2169         * tests/test-rmdir.c (main): Likewise.
2170         * tests/test-unlink.c (main): Likewise.
2171         * tests/test-unlinkat.c (main): Likewise.
2172         * tests/test-areadlink-with-size.c (main): Don't require a
2173         debug-only system call to pass, aiding cross-testing to mingw.
2174         * tests/test-areadlink.c (main): Likewise.
2175         * tests/test-areadlinkat-with-size.c (main): Likewise.
2176         * tests/test-areadlinkat.c (main): Likewise.
2177         * tests/test-canonicalize-lgpl.c (main): Likewise.
2178         * tests/test-canonicalize.c (main): Likewise.
2179         * tests/test-chown.c (main): Likewise.
2180         * tests/test-fchownat.c (main): Likewise.
2181         * tests/test-lchown.c (main): Likewise.
2182         * tests/test-fdutimensat.c (main): Likewise.
2183         * tests/test-futimens.c (main): Likewise.
2184         * tests/test-link.c (main): Likewise.
2185         * tests/test-linkat.c (main): Likewise.
2186         * tests/test-mkdir.c (main): Likewise.
2187         * tests/test-mkdirat.c (main): Likewise.
2188         * tests/test-mkfifo.c (main): Likewise.
2189         * tests/test-mkfifoat.c (main): Likewise.
2190         * tests/test-mknod.c (main): Likewise.
2191         * tests/test-readlink.c (main): Likewise.
2192         * tests/test-remove.c (main): Likewise.
2193         * tests/test-rename.c (main): Likewise.
2194         * tests/test-renameat.c (main): Likewise.
2195         * tests/test-symlink.c (main): Likewise.
2196         * tests/test-symlinkat.c (main): Likewise.
2197         * tests/test-utimens.c (main): Likewise.
2198         * tests/test-utimensat.c (main): Likewise.
2199
2200 2009-12-29  Simon Josefsson  <simon@josefsson.org>
2201
2202         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
2203         on $(UNUSED_PARAMETER_H) to avoid build failure.
2204
2205 2009-12-28  Jim Meyering  <meyering@redhat.com>
2206
2207         update-copyright: you may specify a max. line length other than 72
2208         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2209
2210         maint: use consistent FSF copyright line syntax
2211         * lib/posixtm.c: Add missing comma in FSF copyright line.
2212         * lib/posixtm.h: Likewise.
2213         * lib/getugroups.c: Add missing ", Inc.".
2214
2215         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
2216         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
2217         FSF copyright line.  Remove trailing blanks.
2218
2219 2009-12-28  Eric Blake  <ebb9@byu.net>
2220
2221         test-dup2: reduce dependencies
2222         * modules/cloexec (Configure.ac): Set witness.
2223         * modules/dup2-tests (Depends-on): Drop cloexec.
2224         * tests/test-dup2.c (main): Skip portion of test if cloexec module
2225         not present.
2226         Suggested by Bruno Haible.
2227
2228 2009-12-26  Bruno Haible  <bruno@clisp.org>
2229
2230         Remove an unneeded dependency.
2231         * modules/fseterr (Depends-on): Remove dup2.
2232
2233 2009-12-26  Eric Blake  <ebb9@byu.net>
2234
2235         tests: use macros.h in more places
2236         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
2237         (ASSERT_STREAM): Provide default of stderr.
2238         * tests/test-dirent-safer.c: Include macros.h, using alternate
2239         stream for assertions.
2240         * tests/test-dup-safer.c: Likewise.
2241         * tests/test-freopen-safer.c: Likewise.
2242         * tests/test-getopt.c: Likewise.
2243         * tests/test-openat-safer.c: Likewise.
2244         * tests/test-pipe.c: Likewise.
2245         * tests/test-popen-safer.c: Likewise.
2246         * modules/dirent-safer-tests (Files): Include macros.h.
2247         * modules/unistd-safer-tests (Files): Likewise.
2248         * modules/freopen-safer-tests (Files): Likewise.
2249         * modules/getopt-posix-tests (Files): Likewise.
2250         * modules/openat-safer-tests (Files): Likewise.
2251         * modules/pipe-tests (Files): Likewise.
2252
2253 2009-12-26  Bruno Haible  <bruno@clisp.org>
2254
2255         javacomp: Portability fix.
2256         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
2257         that it also works on Solaris.
2258
2259 2009-12-26  Bruno Haible  <bruno@clisp.org>
2260
2261         localename: Fix storage allocation of gl_locale_name_thread's result.
2262         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
2263         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
2264         all platforms that have 'uselocale'.
2265         (gl_locale_name_thread_unsafe): New function, extracted from
2266         gl_locale_name_thread.
2267         (gl_locale_name_thread): Call struniq on all platforms that have
2268         'uselocale'.
2269         * tests/test-localename.c (test_locale_name_thread): Check that the
2270         resulting strings are permanently allocated.
2271         * modules/localename-tests (Depends-on): Add strdup.
2272
2273 2009-12-26  Bruno Haible  <bruno@clisp.org>
2274
2275         * tests/test-localename.c (categories): Fill in the strings.
2276
2277 2009-12-26  Jim Meyering  <meyering@redhat.com>
2278
2279         isdir: complete the removal of m4/isdir.m4
2280         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
2281
2282         isdir: clean up, since at least grep still uses it
2283         * lib/isdir.c: Include "isdir.h".
2284         (S_ISDIR): Remove now-unneeded definition.
2285         * modules/isdir (Files): Add lib/isdir.h.
2286         * lib/isdir.h: New file, with declaration.
2287         * m4/isdir.m4: Remove file -- unneeded.
2288
2289 2009-12-25  Bruno Haible  <bruno@clisp.org>
2290
2291         selinux-h: Make generated .h files standalone.
2292         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
2293         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
2294         * lib/se-selinux.in.h: Likewise.
2295         * modules/selinux-h (Depends-on): Add unused-parameter.
2296         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
2297         selinux/selinux.h and selinux/context.h.
2298         Suggested by Eric Blake.
2299
2300 2009-12-25  Bruno Haible  <bruno@clisp.org>
2301
2302         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
2303         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
2304         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
2305         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
2306         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
2307
2308 2009-12-24  Bruno Haible  <bruno@clisp.org>
2309
2310         openat: Fix warning.
2311         * lib/openat-proc.c: Include <unistd.h>.
2312
2313 2009-12-24  Bruno Haible  <bruno@clisp.org>
2314
2315         New module 'unused-parameter'.
2316         * build-aux/unused-parameter.h: New file, extracted from earlier
2317         gnulib-common.m4.
2318         * modules/unused-parameter: New file.
2319         * lib/unistr.h: Include unused-parameter.h.
2320         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
2321         _GL_UNUSED.
2322         * modules/unistr/base (Depends-on): Add unused-parameter.
2323
2324 2009-12-24  Bruno Haible  <bruno@clisp.org>
2325
2326         Add missing dependencies to 'extensions' module.
2327         * m4/extensions.m4: Add comment.
2328         * modules/accept4 (Depends-on): Add extensions.
2329         * modules/dup3 (Depends-on): Likewise.
2330         * modules/fcntl (Depends-on): Likewise.
2331         * modules/futimens (Depends-on): Likewise.
2332         * modules/mknod (Depends-on): Likewise.
2333         * modules/pipe2 (Depends-on): Likewise.
2334         * modules/stat-time (Depends-on): Likewise.
2335         * modules/strcasestr-simple (Depends-on): Likewise.
2336         * modules/strsignal (Depends-on): Likewise.
2337         * modules/utimensat (Depends-on): Likewise.
2338         * modules/localcharset (Depends-on): Likewise. Needed because of
2339         gl_FCNTL_O_FLAGS.
2340         * modules/wcrtomb (Depends-on): Likewise. Needed because of
2341         AC_TYPE_MBSTATE_T.
2342         * modules/wcsnrtombs (Depends-on): Likewise.
2343         * modules/wcsrtombs (Depends-on): Likewise.
2344
2345 2009-12-24  Bruno Haible  <bruno@clisp.org>
2346
2347         binary-io: Avoid gcc warning due to SET_BINARY.
2348         * lib/binary-io.h (SET_BINARY): Cast the result to void.
2349         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
2350
2351 2009-12-24  Bruno Haible  <bruno@clisp.org>
2352
2353         Avoid future namespace pollution on glibc systems.
2354         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
2355         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
2356         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
2357         glibc systems.
2358
2359 2009-12-24  Bruno Haible  <bruno@clisp.org>
2360
2361         Refactor common macros used in tests.
2362         * tests/macros.h: New file.
2363         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
2364         and/or <stdlib.h>, if appropriate.
2365         (ASSERT, SIZEOF): Remove macros.
2366         * tests/test-areadlink-with-size.c: Likewise.
2367         * tests/test-areadlinkat.c: Likewise.
2368         * tests/test-areadlinkat-with-size.c: Likewise.
2369         * tests/test-argmatch.c: Likewise.
2370         * tests/test-argv-iter.c: Likewise.
2371         * tests/test-array-mergesort.c: Likewise.
2372         * tests/test-array_list.c: Likewise.
2373         * tests/test-array_oset.c: Likewise.
2374         * tests/test-avltree_list.c: Likewise.
2375         * tests/test-avltree_oset.c: Likewise.
2376         * tests/test-avltreehash_list.c: Likewise.
2377         * tests/test-base64.c: Likewise.
2378         * tests/test-binary-io.c: Likewise.
2379         * tests/test-bitrotate.c: Likewise.
2380         * tests/test-btowc.c: Likewise.
2381         * tests/test-byteswap.c: Likewise.
2382         * tests/test-c-ctype.c: Likewise.
2383         * tests/test-c-stack.c: Likewise.
2384         * tests/test-c-strcasecmp.c: Likewise.
2385         * tests/test-c-strcasestr.c: Likewise.
2386         * tests/test-c-strncasecmp.c: Likewise.
2387         * tests/test-c-strstr.c: Likewise.
2388         * tests/test-canonicalize-lgpl.c: Likewise.
2389         * tests/test-canonicalize.c: Likewise.
2390         * tests/test-carray_list.c: Likewise.
2391         * tests/test-ceilf1.c: Likewise.
2392         * tests/test-ceilf2.c: Likewise.
2393         * tests/test-ceill.c: Likewise.
2394         * tests/test-chown.c: Likewise.
2395         * tests/test-cloexec.c: Likewise.
2396         * tests/test-copy-acl.c: Likewise.
2397         * tests/test-copy-file.c: Likewise.
2398         * tests/test-count-one-bits.c: Likewise.
2399         * tests/test-dprintf-posix.c: Likewise.
2400         * tests/test-dup2.c: Likewise.
2401         * tests/test-dup3.c: Likewise.
2402         * tests/test-duplocale.c: Likewise.
2403         * tests/test-fbufmode.c: Likewise.
2404         * tests/test-fchdir.c: Likewise.
2405         * tests/test-fchownat.c: Likewise.
2406         * tests/test-fcntl-safer.c: Likewise.
2407         * tests/test-fcntl.c: Likewise.
2408         * tests/test-fdopendir.c: Likewise.
2409         * tests/test-fdutimensat.c: Likewise.
2410         * tests/test-fflush2.c: Likewise.
2411         * tests/test-file-has-acl.c: Likewise.
2412         * tests/test-filevercmp.c: Likewise.
2413         * tests/test-flock.c: Likewise.
2414         * tests/test-floorf1.c: Likewise.
2415         * tests/test-floorf2.c: Likewise.
2416         * tests/test-floorl.c: Likewise.
2417         * tests/test-fnmatch.c: Likewise.
2418         * tests/test-fopen.h: Likewise.
2419         * tests/test-fpending.c: Likewise.
2420         * tests/test-fprintf-posix.c: Likewise.
2421         * tests/test-fpurge.c: Likewise.
2422         * tests/test-freadable.c: Likewise.
2423         * tests/test-freadahead.c: Likewise.
2424         * tests/test-freading.c: Likewise.
2425         * tests/test-freadptr.c: Likewise.
2426         * tests/test-freadptr2.c: Likewise.
2427         * tests/test-freadseek.c: Likewise.
2428         * tests/test-freopen.c: Likewise.
2429         * tests/test-frexp.c: Likewise.
2430         * tests/test-frexpl.c: Likewise.
2431         * tests/test-fseek.c: Likewise.
2432         * tests/test-fseeko.c: Likewise.
2433         * tests/test-fstatat.c: Likewise.
2434         * tests/test-fstrcmp.c: Likewise.
2435         * tests/test-fsync.c: Likewise.
2436         * tests/test-ftell.c: Likewise.
2437         * tests/test-ftello.c: Likewise.
2438         * tests/test-func.c: Likewise.
2439         * tests/test-futimens.c: Likewise.
2440         * tests/test-fwritable.c: Likewise.
2441         * tests/test-fwriting.c: Likewise.
2442         * tests/test-getcwd.c: Likewise.
2443         * tests/test-getdate.c: Likewise.
2444         * tests/test-getdelim.c: Likewise.
2445         * tests/test-getdtablesize.c: Likewise.
2446         * tests/test-getgroups.c: Likewise.
2447         * tests/test-getline.c: Likewise.
2448         * tests/test-getndelim2.c: Likewise.
2449         * tests/test-glob.c: Likewise.
2450         * tests/test-hash.c: Likewise.
2451         * tests/test-i-ring.c: Likewise.
2452         * tests/test-iconv-utf.c: Likewise.
2453         * tests/test-iconv.c: Likewise.
2454         * tests/test-idpriv-drop.c: Likewise.
2455         * tests/test-idpriv-droptemp.c: Likewise.
2456         * tests/test-inet_ntop.c: Likewise.
2457         * tests/test-inet_pton.c: Likewise.
2458         * tests/test-isblank.c: Likewise.
2459         * tests/test-isfinite.c: Likewise.
2460         * tests/test-isinf.c: Likewise.
2461         * tests/test-isnan.c: Likewise.
2462         * tests/test-isnand.h: Likewise.
2463         * tests/test-isnanf.h: Likewise.
2464         * tests/test-isnanl.h: Likewise.
2465         * tests/test-lchown.c: Likewise.
2466         * tests/test-ldexpl.c: Likewise.
2467         * tests/test-link.c: Likewise.
2468         * tests/test-linkat.c: Likewise.
2469         * tests/test-linked_list.c: Likewise.
2470         * tests/test-linkedhash_list.c: Likewise.
2471         * tests/test-localename.c: Likewise.
2472         * tests/test-lseek.c: Likewise.
2473         * tests/test-lstat.c: Likewise.
2474         * tests/test-mbmemcasecmp.c: Likewise.
2475         * tests/test-mbmemcasecoll.c: Likewise.
2476         * tests/test-mbrtowc.c: Likewise.
2477         * tests/test-mbscasecmp.c: Likewise.
2478         * tests/test-mbscasestr1.c: Likewise.
2479         * tests/test-mbscasestr2.c: Likewise.
2480         * tests/test-mbscasestr3.c: Likewise.
2481         * tests/test-mbscasestr4.c: Likewise.
2482         * tests/test-mbschr.c: Likewise.
2483         * tests/test-mbscspn.c: Likewise.
2484         * tests/test-mbsinit.c: Likewise.
2485         * tests/test-mbsncasecmp.c: Likewise.
2486         * tests/test-mbsnrtowcs.c: Likewise.
2487         * tests/test-mbspbrk.c: Likewise.
2488         * tests/test-mbspcasecmp.c: Likewise.
2489         * tests/test-mbsrchr.c: Likewise.
2490         * tests/test-mbsrtowcs.c: Likewise.
2491         * tests/test-mbsspn.c: Likewise.
2492         * tests/test-mbsstr1.c: Likewise.
2493         * tests/test-mbsstr2.c: Likewise.
2494         * tests/test-mbsstr3.c: Likewise.
2495         * tests/test-memchr.c: Likewise.
2496         * tests/test-memchr2.c: Likewise.
2497         * tests/test-memcmp.c: Likewise.
2498         * tests/test-memmem.c: Likewise.
2499         * tests/test-memrchr.c: Likewise.
2500         * tests/test-mkdir.c: Likewise.
2501         * tests/test-mkdirat.c: Likewise.
2502         * tests/test-mkfifo.c: Likewise.
2503         * tests/test-mkfifoat.c: Likewise.
2504         * tests/test-mknod.c: Likewise.
2505         * tests/test-nanosleep.c: Likewise.
2506         * tests/test-nl_langinfo.c: Likewise.
2507         * tests/test-obstack-printf.c: Likewise.
2508         * tests/test-open.c: Likewise.
2509         * tests/test-openat.c: Likewise.
2510         * tests/test-pipe-filter-gi1.c: Likewise.
2511         * tests/test-pipe-filter-gi2-main.c: Likewise.
2512         * tests/test-pipe-filter-ii1.c: Likewise.
2513         * tests/test-pipe-filter-ii2-main.c: Likewise.
2514         * tests/test-pipe2.c: Likewise.
2515         * tests/test-popen.h: Likewise.
2516         * tests/test-posixtm.c: Likewise.
2517         * tests/test-pread.c: Likewise.
2518         * tests/test-printf-frexp.c: Likewise.
2519         * tests/test-printf-frexpl.c: Likewise.
2520         * tests/test-printf-posix.c: Likewise.
2521         * tests/test-priv-set.c: Likewise.
2522         * tests/test-quotearg.c: Likewise.
2523         * tests/test-random_r.c: Likewise.
2524         * tests/test-rawmemchr.c: Likewise.
2525         * tests/test-rbtree_list.c: Likewise.
2526         * tests/test-rbtree_oset.c: Likewise.
2527         * tests/test-rbtreehash_list.c: Likewise.
2528         * tests/test-readlink.c: Likewise.
2529         * tests/test-remove.c: Likewise.
2530         * tests/test-rename.c: Likewise.
2531         * tests/test-renameat.c: Likewise.
2532         * tests/test-rmdir.c: Likewise.
2533         * tests/test-round1.c: Likewise.
2534         * tests/test-roundf1.c: Likewise.
2535         * tests/test-roundl.c: Likewise.
2536         * tests/test-safe-alloc.c: Likewise.
2537         * tests/test-sameacls.c: Likewise.
2538         * tests/test-set-mode-acl.c: Likewise.
2539         * tests/test-setenv.c: Likewise.
2540         * tests/test-sigaction.c: Likewise.
2541         * tests/test-signbit.c: Likewise.
2542         * tests/test-sleep.c: Likewise.
2543         * tests/test-snprintf-posix.c: Likewise.
2544         * tests/test-snprintf.c: Likewise.
2545         * tests/test-sprintf-posix.c: Likewise.
2546         * tests/test-stat-time.c: Likewise.
2547         * tests/test-stat.c: Likewise.
2548         * tests/test-strcasestr.c: Likewise.
2549         * tests/test-strchrnul.c: Likewise.
2550         * tests/test-strerror.c: Likewise.
2551         * tests/test-striconv.c: Likewise.
2552         * tests/test-striconveh.c: Likewise.
2553         * tests/test-striconveha.c: Likewise.
2554         * tests/test-strsignal.c: Likewise.
2555         * tests/test-strstr.c: Likewise.
2556         * tests/test-strtod.c: Likewise.
2557         * tests/test-strverscmp.c: Likewise.
2558         * tests/test-symlink.c: Likewise.
2559         * tests/test-symlinkat.c: Likewise.
2560         * tests/test-trunc1.c: Likewise.
2561         * tests/test-trunc2.c: Likewise.
2562         * tests/test-truncf1.c: Likewise.
2563         * tests/test-truncf2.c: Likewise.
2564         * tests/test-truncl.c: Likewise.
2565         * tests/test-uname.c: Likewise.
2566         * tests/test-unlink.c: Likewise.
2567         * tests/test-unlinkat.c: Likewise.
2568         * tests/test-unsetenv.c: Likewise.
2569         * tests/test-usleep.c: Likewise.
2570         * tests/test-utimens.c: Likewise.
2571         * tests/test-utimensat.c: Likewise.
2572         * tests/test-vasnprintf-posix.c: Likewise.
2573         * tests/test-vasnprintf-posix2.c: Likewise.
2574         * tests/test-vasnprintf.c: Likewise.
2575         * tests/test-vasprintf-posix.c: Likewise.
2576         * tests/test-vasprintf.c: Likewise.
2577         * tests/test-vdprintf-posix.c: Likewise.
2578         * tests/test-vfprintf-posix.c: Likewise.
2579         * tests/test-vprintf-posix.c: Likewise.
2580         * tests/test-vsnprintf-posix.c: Likewise.
2581         * tests/test-vsnprintf.c: Likewise.
2582         * tests/test-vsprintf-posix.c: Likewise.
2583         * tests/test-wcrtomb.c: Likewise.
2584         * tests/test-wcsnrtombs.c: Likewise.
2585         * tests/test-wcsrtombs.c: Likewise.
2586         * tests/test-wctype.c: Likewise.
2587         * tests/test-wcwidth.c: Likewise.
2588         * tests/test-xfprintf-posix.c: Likewise.
2589         * tests/test-xmemdup0.c: Likewise.
2590         * tests/test-xprintf-posix.c: Likewise.
2591         * tests/test-xvasprintf.c: Likewise.
2592         * tests/unicase/test-locale-language.c: Likewise.
2593         * tests/unicase/test-mapping-part1.h: Likewise.
2594         * tests/unicase/test-predicate-part1.h: Likewise.
2595         * tests/unicase/test-u8-casecmp.c: Likewise.
2596         * tests/unicase/test-u8-casecoll.c: Likewise.
2597         * tests/unicase/test-u8-casefold.c: Likewise.
2598         * tests/unicase/test-u8-is-cased.c: Likewise.
2599         * tests/unicase/test-u8-is-casefolded.c: Likewise.
2600         * tests/unicase/test-u8-is-lowercase.c: Likewise.
2601         * tests/unicase/test-u8-is-titlecase.c: Likewise.
2602         * tests/unicase/test-u8-is-uppercase.c: Likewise.
2603         * tests/unicase/test-u8-tolower.c: Likewise.
2604         * tests/unicase/test-u8-totitle.c: Likewise.
2605         * tests/unicase/test-u8-toupper.c: Likewise.
2606         * tests/unicase/test-u16-casecmp.c: Likewise.
2607         * tests/unicase/test-u16-casecoll.c: Likewise.
2608         * tests/unicase/test-u16-casefold.c: Likewise.
2609         * tests/unicase/test-u16-is-cased.c: Likewise.
2610         * tests/unicase/test-u16-is-casefolded.c: Likewise.
2611         * tests/unicase/test-u16-is-lowercase.c: Likewise.
2612         * tests/unicase/test-u16-is-titlecase.c: Likewise.
2613         * tests/unicase/test-u16-is-uppercase.c: Likewise.
2614         * tests/unicase/test-u16-tolower.c: Likewise.
2615         * tests/unicase/test-u16-totitle.c: Likewise.
2616         * tests/unicase/test-u16-toupper.c: Likewise.
2617         * tests/unicase/test-u32-casecmp.c: Likewise.
2618         * tests/unicase/test-u32-casecoll.c: Likewise.
2619         * tests/unicase/test-u32-casefold.c: Likewise.
2620         * tests/unicase/test-u32-is-cased.c: Likewise.
2621         * tests/unicase/test-u32-is-casefolded.c: Likewise.
2622         * tests/unicase/test-u32-is-lowercase.c: Likewise.
2623         * tests/unicase/test-u32-is-titlecase.c: Likewise.
2624         * tests/unicase/test-u32-is-uppercase.c: Likewise.
2625         * tests/unicase/test-u32-tolower.c: Likewise.
2626         * tests/unicase/test-u32-totitle.c: Likewise.
2627         * tests/unicase/test-u32-toupper.c: Likewise.
2628         * tests/unicase/test-ulc-casecmp.c: Likewise.
2629         * tests/unicase/test-ulc-casecoll.c: Likewise.
2630         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
2631         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
2632         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
2633         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
2634         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
2635         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
2636         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
2637         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
2638         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
2639         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
2640         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
2641         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
2642         * tests/unictype/test-bidi_byname.c: Likewise.
2643         * tests/unictype/test-bidi_name.c: Likewise.
2644         * tests/unictype/test-bidi_of.c: Likewise.
2645         * tests/unictype/test-bidi_test.c: Likewise.
2646         * tests/unictype/test-block_list.c: Likewise.
2647         * tests/unictype/test-block_of.c: Likewise.
2648         * tests/unictype/test-block_test.c: Likewise.
2649         * tests/unictype/test-categ_and.c: Likewise.
2650         * tests/unictype/test-categ_and_not.c: Likewise.
2651         * tests/unictype/test-categ_byname.c: Likewise.
2652         * tests/unictype/test-categ_name.c: Likewise.
2653         * tests/unictype/test-categ_none.c: Likewise.
2654         * tests/unictype/test-categ_of.c: Likewise.
2655         * tests/unictype/test-categ_or.c: Likewise.
2656         * tests/unictype/test-categ_test_withtable.c: Likewise.
2657         * tests/unictype/test-combining.c: Likewise.
2658         * tests/unictype/test-decdigit.c: Likewise.
2659         * tests/unictype/test-digit.c: Likewise.
2660         * tests/unictype/test-mirror.c: Likewise.
2661         * tests/unictype/test-numeric.c: Likewise.
2662         * tests/unictype/test-pr_byname.c: Likewise.
2663         * tests/unictype/test-pr_test.c: Likewise.
2664         * tests/unictype/test-predicate-part1.h: Likewise.
2665         * tests/unictype/test-scripts.c: Likewise.
2666         * tests/unictype/test-sy_c_ident.c: Likewise.
2667         * tests/unictype/test-sy_java_ident.c: Likewise.
2668         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
2669         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
2670         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
2671         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
2672         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
2673         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
2674         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
2675         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
2676         * tests/uninorm/test-canonical-decomposition.c: Likewise.
2677         * tests/uninorm/test-compat-decomposition.c: Likewise.
2678         * tests/uninorm/test-composition.c: Likewise.
2679         * tests/uninorm/test-decomposing-form.c: Likewise.
2680         * tests/uninorm/test-decomposition.c: Likewise.
2681         * tests/uninorm/test-u8-nfc.c: Likewise.
2682         * tests/uninorm/test-u8-nfd.c: Likewise.
2683         * tests/uninorm/test-u8-nfkc.c: Likewise.
2684         * tests/uninorm/test-u8-nfkd.c: Likewise.
2685         * tests/uninorm/test-u8-normcmp.c: Likewise.
2686         * tests/uninorm/test-u8-normcoll.c: Likewise.
2687         * tests/uninorm/test-u16-nfc.c: Likewise.
2688         * tests/uninorm/test-u16-nfd.c: Likewise.
2689         * tests/uninorm/test-u16-nfkc.c: Likewise.
2690         * tests/uninorm/test-u16-nfkd.c: Likewise.
2691         * tests/uninorm/test-u16-normcmp.c: Likewise.
2692         * tests/uninorm/test-u16-normcoll.c: Likewise.
2693         * tests/uninorm/test-u32-nfc.c: Likewise.
2694         * tests/uninorm/test-u32-nfd.c: Likewise.
2695         * tests/uninorm/test-u32-nfkc.c: Likewise.
2696         * tests/uninorm/test-u32-nfkd.c: Likewise.
2697         * tests/uninorm/test-u32-normalize-big.c: Likewise.
2698         * tests/uninorm/test-u32-normcmp.c: Likewise.
2699         * tests/uninorm/test-u32-normcoll.c: Likewise.
2700         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
2701         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
2702         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
2703         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
2704         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
2705         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
2706         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
2707         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
2708         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
2709         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
2710         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
2711         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
2712         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
2713         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
2714         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
2715         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
2716         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
2717         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
2718         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
2719         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
2720         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
2721         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
2722         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
2723         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
2724         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
2725         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
2726         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
2727         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
2728         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
2729         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
2730         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
2731         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
2732         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
2733         * tests/uniwidth/test-u8-strwidth.c: Likewise.
2734         * tests/uniwidth/test-u8-width.c: Likewise.
2735         * tests/uniwidth/test-u16-strwidth.c: Likewise.
2736         * tests/uniwidth/test-u16-width.c: Likewise.
2737         * tests/uniwidth/test-u32-strwidth.c: Likewise.
2738         * tests/uniwidth/test-u32-width.c: Likewise.
2739         * tests/uniwidth/test-uc_width.c: Likewise.
2740         * tests/uniwidth/test-uc_width2.c: Likewise.
2741         * modules/acl-tests (Files): Add tests/macros.h.
2742         * modules/areadlink-tests (Files): Likewise.
2743         * modules/areadlink-with-size-tests (Files): Likewise.
2744         * modules/areadlinkat-tests (Files): Likewise.
2745         * modules/areadlinkat-with-size-tests (Files): Likewise.
2746         * modules/argmatch-tests (Files): Likewise.
2747         * modules/argv-iter-tests (Files): Likewise.
2748         * modules/array-list-tests (Files): Likewise.
2749         * modules/array-mergesort-tests (Files): Likewise.
2750         * modules/array-oset-tests (Files): Likewise.
2751         * modules/avltree-list-tests (Files): Likewise.
2752         * modules/avltree-oset-tests (Files): Likewise.
2753         * modules/avltreehash-list-tests (Files): Likewise.
2754         * modules/base64-tests (Files): Likewise.
2755         * modules/binary-io-tests (Files): Likewise.
2756         * modules/bitrotate-tests (Files): Likewise.
2757         * modules/btowc-tests (Files): Likewise.
2758         * modules/byteswap-tests (Files): Likewise.
2759         * modules/c-ctype-tests (Files): Likewise.
2760         * modules/c-stack-tests (Files): Likewise.
2761         * modules/c-strcase-tests (Files): Likewise.
2762         * modules/c-strcasestr-tests (Files): Likewise.
2763         * modules/c-strstr-tests (Files): Likewise.
2764         * modules/canonicalize-lgpl-tests (Files): Likewise.
2765         * modules/canonicalize-tests (Files): Likewise.
2766         * modules/carray-list-tests (Files): Likewise.
2767         * modules/ceilf-tests (Files): Likewise.
2768         * modules/ceill-tests (Files): Likewise.
2769         * modules/chown-tests (Files): Likewise.
2770         * modules/cloexec-tests (Files): Likewise.
2771         * modules/copy-file-tests (Files): Likewise.
2772         * modules/count-one-bits-tests (Files): Likewise.
2773         * modules/dprintf-posix-tests (Files): Likewise.
2774         * modules/dup2-tests (Files): Likewise.
2775         * modules/dup3-tests (Files): Likewise.
2776         * modules/duplocale-tests (Files): Likewise.
2777         * modules/fbufmode-tests (Files): Likewise.
2778         * modules/fchdir-tests (Files): Likewise.
2779         * modules/fcntl-safer-tests (Files): Likewise.
2780         * modules/fcntl-tests (Files): Likewise.
2781         * modules/fdopendir-tests (Files): Likewise.
2782         * modules/fdutimensat-tests (Files): Likewise.
2783         * modules/fflush-tests (Files): Likewise.
2784         * modules/filevercmp-tests (Files): Likewise.
2785         * modules/flock-tests (Files): Likewise.
2786         * modules/floorf-tests (Files): Likewise.
2787         * modules/floorl-tests (Files): Likewise.
2788         * modules/fnmatch-tests (Files): Likewise.
2789         * modules/fopen-safer-tests (Files): Likewise.
2790         * modules/fopen-tests (Files): Likewise.
2791         * modules/fpending-tests (Files): Likewise.
2792         * modules/fprintf-posix-tests (Files): Likewise.
2793         * modules/fpurge-tests (Files): Likewise.
2794         * modules/freadable-tests (Files): Likewise.
2795         * modules/freadahead-tests (Files): Likewise.
2796         * modules/freading-tests (Files): Likewise.
2797         * modules/freadptr-tests (Files): Likewise.
2798         * modules/freadseek-tests (Files): Likewise.
2799         * modules/freopen-tests (Files): Likewise.
2800         * modules/frexp-nolibm-tests (Files): Likewise.
2801         * modules/frexp-tests (Files): Likewise.
2802         * modules/frexpl-nolibm-tests (Files): Likewise.
2803         * modules/frexpl-tests (Files): Likewise.
2804         * modules/fseek-tests (Files): Likewise.
2805         * modules/fseeko-tests (Files): Likewise.
2806         * modules/fstrcmp-tests (Files): Likewise.
2807         * modules/fsync-tests (Files): Likewise.
2808         * modules/ftell-tests (Files): Likewise.
2809         * modules/ftello-tests (Files): Likewise.
2810         * modules/func-tests (Files): Likewise.
2811         * modules/futimens-tests (Files): Likewise.
2812         * modules/fwritable-tests (Files): Likewise.
2813         * modules/fwriting-tests (Files): Likewise.
2814         * modules/getcwd-tests (Files): Likewise.
2815         * modules/getdate-tests (Files): Likewise.
2816         * modules/getdelim-tests (Files): Likewise.
2817         * modules/getdtablesize-tests (Files): Likewise.
2818         * modules/getgroups-tests (Files): Likewise.
2819         * modules/getline-tests (Files): Likewise.
2820         * modules/getndelim2-tests (Files): Likewise.
2821         * modules/glob-tests (Files): Likewise.
2822         * modules/hash-tests (Files): Likewise.
2823         * modules/i-ring-tests (Files): Likewise.
2824         * modules/iconv-tests (Files): Likewise.
2825         * modules/iconv_open-utf-tests (Files): Likewise.
2826         * modules/idpriv-drop-tests (Files): Likewise.
2827         * modules/idpriv-droptemp-tests (Files): Likewise.
2828         * modules/inet_ntop-tests (Files): Likewise.
2829         * modules/inet_pton-tests (Files): Likewise.
2830         * modules/isblank-tests (Files): Likewise.
2831         * modules/isfinite-tests (Files): Likewise.
2832         * modules/isinf-tests (Files): Likewise.
2833         * modules/isnan-tests (Files): Likewise.
2834         * modules/isnand-nolibm-tests (Files): Likewise.
2835         * modules/isnand-tests (Files): Likewise.
2836         * modules/isnanf-nolibm-tests (Files): Likewise.
2837         * modules/isnanf-tests (Files): Likewise.
2838         * modules/isnanl-nolibm-tests (Files): Likewise.
2839         * modules/isnanl-tests (Files): Likewise.
2840         * modules/lchown-tests (Files): Likewise.
2841         * modules/ldexpl-tests (Files): Likewise.
2842         * modules/link-tests (Files): Likewise.
2843         * modules/linkat-tests (Files): Likewise.
2844         * modules/linked-list-tests (Files): Likewise.
2845         * modules/linkedhash-list-tests (Files): Likewise.
2846         * modules/localename-tests (Files): Likewise.
2847         * modules/lseek-tests (Files): Likewise.
2848         * modules/lstat-tests (Files): Likewise.
2849         * modules/mbmemcasecmp-tests (Files): Likewise.
2850         * modules/mbmemcasecoll-tests (Files): Likewise.
2851         * modules/mbrtowc-tests (Files): Likewise.
2852         * modules/mbscasecmp-tests (Files): Likewise.
2853         * modules/mbscasestr-tests (Files): Likewise.
2854         * modules/mbschr-tests (Files): Likewise.
2855         * modules/mbscspn-tests (Files): Likewise.
2856         * modules/mbsinit-tests (Files): Likewise.
2857         * modules/mbsncasecmp-tests (Files): Likewise.
2858         * modules/mbsnrtowcs-tests (Files): Likewise.
2859         * modules/mbspbrk-tests (Files): Likewise.
2860         * modules/mbspcasecmp-tests (Files): Likewise.
2861         * modules/mbsrchr-tests (Files): Likewise.
2862         * modules/mbsrtowcs-tests (Files): Likewise.
2863         * modules/mbsspn-tests (Files): Likewise.
2864         * modules/mbsstr-tests (Files): Likewise.
2865         * modules/memchr-tests (Files): Likewise.
2866         * modules/memchr2-tests (Files): Likewise.
2867         * modules/memcmp-tests (Files): Likewise.
2868         * modules/memmem-tests (Files): Likewise.
2869         * modules/memrchr-tests (Files): Likewise.
2870         * modules/mkdir-tests (Files): Likewise.
2871         * modules/mkfifo-tests (Files): Likewise.
2872         * modules/mkfifoat-tests (Files): Likewise.
2873         * modules/mknod-tests (Files): Likewise.
2874         * modules/nanosleep-tests (Files): Likewise.
2875         * modules/nl_langinfo-tests (Files): Likewise.
2876         * modules/obstack-printf-tests (Files): Likewise.
2877         * modules/open-tests (Files): Likewise.
2878         * modules/openat-tests (Files): Likewise.
2879         * modules/pipe-filter-gi-tests (Files): Likewise.
2880         * modules/pipe-filter-ii-tests (Files): Likewise.
2881         * modules/pipe2-tests (Files): Likewise.
2882         * modules/popen-safer-tests (Files): Likewise.
2883         * modules/popen-tests (Files): Likewise.
2884         * modules/posixtm-tests (Files): Likewise.
2885         * modules/pread-tests (Files): Likewise.
2886         * modules/printf-frexp-tests (Files): Likewise.
2887         * modules/printf-frexpl-tests (Files): Likewise.
2888         * modules/printf-posix-tests (Files): Likewise.
2889         * modules/priv-set-tests (Files): Likewise.
2890         * modules/quotearg-tests (Files): Likewise.
2891         * modules/random_r-tests (Files): Likewise.
2892         * modules/rawmemchr-tests (Files): Likewise.
2893         * modules/rbtree-list-tests (Files): Likewise.
2894         * modules/rbtree-oset-tests (Files): Likewise.
2895         * modules/rbtreehash-list-tests (Files): Likewise.
2896         * modules/readlink-tests (Files): Likewise.
2897         * modules/remove-tests (Files): Likewise.
2898         * modules/rename-tests (Files): Likewise.
2899         * modules/renameat-tests (Files): Likewise.
2900         * modules/rmdir-tests (Files): Likewise.
2901         * modules/round-tests (Files): Likewise.
2902         * modules/roundf-tests (Files): Likewise.
2903         * modules/roundl-tests (Files): Likewise.
2904         * modules/safe-alloc-tests (Files): Likewise.
2905         * modules/setenv-tests (Files): Likewise.
2906         * modules/sigaction-tests (Files): Likewise.
2907         * modules/signbit-tests (Files): Likewise.
2908         * modules/sleep-tests (Files): Likewise.
2909         * modules/snprintf-posix-tests (Files): Likewise.
2910         * modules/snprintf-tests (Files): Likewise.
2911         * modules/sprintf-posix-tests (Files): Likewise.
2912         * modules/stat-tests (Files): Likewise.
2913         * modules/stat-time-tests (Files): Likewise.
2914         * modules/strcasestr-tests (Files): Likewise.
2915         * modules/strchrnul-tests (Files): Likewise.
2916         * modules/strerror-tests (Files): Likewise.
2917         * modules/striconv-tests (Files): Likewise.
2918         * modules/striconveh-tests (Files): Likewise.
2919         * modules/striconveha-tests (Files): Likewise.
2920         * modules/strsignal-tests (Files): Likewise.
2921         * modules/strstr-tests (Files): Likewise.
2922         * modules/strtod-tests (Files): Likewise.
2923         * modules/strverscmp-tests (Files): Likewise.
2924         * modules/symlink-tests (Files): Likewise.
2925         * modules/symlinkat-tests (Files): Likewise.
2926         * modules/trunc-tests (Files): Likewise.
2927         * modules/truncf-tests (Files): Likewise.
2928         * modules/truncl-tests (Files): Likewise.
2929         * modules/uname-tests (Files): Likewise.
2930         * modules/unicase/cased-tests (Files): Likewise.
2931         * modules/unicase/ignorable-tests (Files): Likewise.
2932         * modules/unicase/locale-language-tests (Files): Likewise.
2933         * modules/unicase/tolower-tests (Files): Likewise.
2934         * modules/unicase/totitle-tests (Files): Likewise.
2935         * modules/unicase/toupper-tests (Files): Likewise.
2936         * modules/unicase/u8-casecmp-tests (Files): Likewise.
2937         * modules/unicase/u8-casecoll-tests (Files): Likewise.
2938         * modules/unicase/u8-casefold-tests (Files): Likewise.
2939         * modules/unicase/u8-is-cased-tests (Files): Likewise.
2940         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
2941         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
2942         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
2943         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
2944         * modules/unicase/u8-tolower-tests (Files): Likewise.
2945         * modules/unicase/u8-totitle-tests (Files): Likewise.
2946         * modules/unicase/u8-toupper-tests (Files): Likewise.
2947         * modules/unicase/u16-casecmp-tests (Files): Likewise.
2948         * modules/unicase/u16-casecoll-tests (Files): Likewise.
2949         * modules/unicase/u16-casefold-tests (Files): Likewise.
2950         * modules/unicase/u16-is-cased-tests (Files): Likewise.
2951         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
2952         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
2953         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
2954         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
2955         * modules/unicase/u16-tolower-tests (Files): Likewise.
2956         * modules/unicase/u16-totitle-tests (Files): Likewise.
2957         * modules/unicase/u16-toupper-tests (Files): Likewise.
2958         * modules/unicase/u32-casecmp-tests (Files): Likewise.
2959         * modules/unicase/u32-casecoll-tests (Files): Likewise.
2960         * modules/unicase/u32-casefold-tests (Files): Likewise.
2961         * modules/unicase/u32-is-cased-tests (Files): Likewise.
2962         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
2963         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
2964         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
2965         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
2966         * modules/unicase/u32-tolower-tests (Files): Likewise.
2967         * modules/unicase/u32-totitle-tests (Files): Likewise.
2968         * modules/unicase/u32-toupper-tests (Files): Likewise.
2969         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
2970         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
2971         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
2972         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
2973         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
2974         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
2975         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
2976         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
2977         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
2978         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
2979         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
2980         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
2981         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
2982         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
2983         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
2984         * modules/unictype/bidicategory-name-tests (Files): Likewise.
2985         * modules/unictype/bidicategory-of-tests (Files): Likewise.
2986         * modules/unictype/bidicategory-test-tests (Files): Likewise.
2987         * modules/unictype/block-list-tests (Files): Likewise.
2988         * modules/unictype/block-of-tests (Files): Likewise.
2989         * modules/unictype/block-test-tests (Files): Likewise.
2990         * modules/unictype/category-C-tests (Files): Likewise.
2991         * modules/unictype/category-Cc-tests (Files): Likewise.
2992         * modules/unictype/category-Cf-tests (Files): Likewise.
2993         * modules/unictype/category-Cn-tests (Files): Likewise.
2994         * modules/unictype/category-Co-tests (Files): Likewise.
2995         * modules/unictype/category-Cs-tests (Files): Likewise.
2996         * modules/unictype/category-L-tests (Files): Likewise.
2997         * modules/unictype/category-Ll-tests (Files): Likewise.
2998         * modules/unictype/category-Lm-tests (Files): Likewise.
2999         * modules/unictype/category-Lo-tests (Files): Likewise.
3000         * modules/unictype/category-Lt-tests (Files): Likewise.
3001         * modules/unictype/category-Lu-tests (Files): Likewise.
3002         * modules/unictype/category-M-tests (Files): Likewise.
3003         * modules/unictype/category-Mc-tests (Files): Likewise.
3004         * modules/unictype/category-Me-tests (Files): Likewise.
3005         * modules/unictype/category-Mn-tests (Files): Likewise.
3006         * modules/unictype/category-N-tests (Files): Likewise.
3007         * modules/unictype/category-Nd-tests (Files): Likewise.
3008         * modules/unictype/category-Nl-tests (Files): Likewise.
3009         * modules/unictype/category-No-tests (Files): Likewise.
3010         * modules/unictype/category-P-tests (Files): Likewise.
3011         * modules/unictype/category-Pc-tests (Files): Likewise.
3012         * modules/unictype/category-Pd-tests (Files): Likewise.
3013         * modules/unictype/category-Pe-tests (Files): Likewise.
3014         * modules/unictype/category-Pf-tests (Files): Likewise.
3015         * modules/unictype/category-Pi-tests (Files): Likewise.
3016         * modules/unictype/category-Po-tests (Files): Likewise.
3017         * modules/unictype/category-Ps-tests (Files): Likewise.
3018         * modules/unictype/category-S-tests (Files): Likewise.
3019         * modules/unictype/category-Sc-tests (Files): Likewise.
3020         * modules/unictype/category-Sk-tests (Files): Likewise.
3021         * modules/unictype/category-Sm-tests (Files): Likewise.
3022         * modules/unictype/category-So-tests (Files): Likewise.
3023         * modules/unictype/category-Z-tests (Files): Likewise.
3024         * modules/unictype/category-Zl-tests (Files): Likewise.
3025         * modules/unictype/category-Zp-tests (Files): Likewise.
3026         * modules/unictype/category-Zs-tests (Files): Likewise.
3027         * modules/unictype/category-and-not-tests (Files): Likewise.
3028         * modules/unictype/category-and-tests (Files): Likewise.
3029         * modules/unictype/category-byname-tests (Files): Likewise.
3030         * modules/unictype/category-name-tests (Files): Likewise.
3031         * modules/unictype/category-none-tests (Files): Likewise.
3032         * modules/unictype/category-of-tests (Files): Likewise.
3033         * modules/unictype/category-or-tests (Files): Likewise.
3034         * modules/unictype/category-test-withtable-tests (Files): Likewise.
3035         * modules/unictype/combining-class-tests (Files): Likewise.
3036         * modules/unictype/ctype-alnum-tests (Files): Likewise.
3037         * modules/unictype/ctype-alpha-tests (Files): Likewise.
3038         * modules/unictype/ctype-blank-tests (Files): Likewise.
3039         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
3040         * modules/unictype/ctype-digit-tests (Files): Likewise.
3041         * modules/unictype/ctype-graph-tests (Files): Likewise.
3042         * modules/unictype/ctype-lower-tests (Files): Likewise.
3043         * modules/unictype/ctype-print-tests (Files): Likewise.
3044         * modules/unictype/ctype-punct-tests (Files): Likewise.
3045         * modules/unictype/ctype-space-tests (Files): Likewise.
3046         * modules/unictype/ctype-upper-tests (Files): Likewise.
3047         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
3048         * modules/unictype/decimal-digit-tests (Files): Likewise.
3049         * modules/unictype/digit-tests (Files): Likewise.
3050         * modules/unictype/mirror-tests (Files): Likewise.
3051         * modules/unictype/numeric-tests (Files): Likewise.
3052         * modules/unictype/property-alphabetic-tests (Files): Likewise.
3053         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
3054         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
3055         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
3056         Likewise.
3057         * modules/unictype/property-bidi-block-separator-tests (Files):
3058         Likewise.
3059         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
3060         Likewise.
3061         * modules/unictype/property-bidi-common-separator-tests (Files):
3062         Likewise.
3063         * modules/unictype/property-bidi-control-tests (Files): Likewise.
3064         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
3065         Likewise.
3066         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
3067         Likewise.
3068         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
3069         Likewise.
3070         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
3071         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
3072         Likewise.
3073         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
3074         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
3075         Likewise.
3076         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
3077         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
3078         * modules/unictype/property-bidi-segment-separator-tests (Files):
3079         Likewise.
3080         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
3081         * modules/unictype/property-byname-tests (Files): Likewise.
3082         * modules/unictype/property-combining-tests (Files): Likewise.
3083         * modules/unictype/property-composite-tests (Files): Likewise.
3084         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
3085         * modules/unictype/property-dash-tests (Files): Likewise.
3086         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
3087         * modules/unictype/property-default-ignorable-code-point-tests (Files):
3088         Likewise.
3089         * modules/unictype/property-deprecated-tests (Files): Likewise.
3090         * modules/unictype/property-diacritic-tests (Files): Likewise.
3091         * modules/unictype/property-extender-tests (Files): Likewise.
3092         * modules/unictype/property-format-control-tests (Files): Likewise.
3093         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
3094         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
3095         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
3096         * modules/unictype/property-hex-digit-tests (Files): Likewise.
3097         * modules/unictype/property-hyphen-tests (Files): Likewise.
3098         * modules/unictype/property-id-continue-tests (Files): Likewise.
3099         * modules/unictype/property-id-start-tests (Files): Likewise.
3100         * modules/unictype/property-ideographic-tests (Files): Likewise.
3101         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
3102         * modules/unictype/property-ids-trinary-operator-tests (Files):
3103         Likewise.
3104         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
3105         * modules/unictype/property-iso-control-tests (Files): Likewise.
3106         * modules/unictype/property-join-control-tests (Files): Likewise.
3107         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
3108         * modules/unictype/property-line-separator-tests (Files): Likewise.
3109         * modules/unictype/property-logical-order-exception-tests (Files):
3110         Likewise.
3111         * modules/unictype/property-lowercase-tests (Files): Likewise.
3112         * modules/unictype/property-math-tests (Files): Likewise.
3113         * modules/unictype/property-non-break-tests (Files): Likewise.
3114         * modules/unictype/property-not-a-character-tests (Files): Likewise.
3115         * modules/unictype/property-numeric-tests (Files): Likewise.
3116         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
3117         * modules/unictype/property-other-default-ignorable-code-point-tests
3118         (Files): Likewise.
3119         * modules/unictype/property-other-grapheme-extend-tests (Files):
3120         Likewise.
3121         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
3122         * modules/unictype/property-other-id-start-tests (Files): Likewise.
3123         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
3124         * modules/unictype/property-other-math-tests (Files): Likewise.
3125         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
3126         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
3127         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
3128         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
3129         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
3130         * modules/unictype/property-private-use-tests (Files): Likewise.
3131         * modules/unictype/property-punctuation-tests (Files): Likewise.
3132         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
3133         * modules/unictype/property-radical-tests (Files): Likewise.
3134         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
3135         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
3136         * modules/unictype/property-space-tests (Files): Likewise.
3137         * modules/unictype/property-terminal-punctuation-tests (Files):
3138         Likewise.
3139         * modules/unictype/property-test-tests (Files): Likewise.
3140         * modules/unictype/property-titlecase-tests (Files): Likewise.
3141         * modules/unictype/property-unassigned-code-value-tests (Files):
3142         Likewise.
3143         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
3144         * modules/unictype/property-uppercase-tests (Files): Likewise.
3145         * modules/unictype/property-variation-selector-tests (Files): Likewise.
3146         * modules/unictype/property-white-space-tests (Files): Likewise.
3147         * modules/unictype/property-xid-continue-tests (Files): Likewise.
3148         * modules/unictype/property-xid-start-tests (Files): Likewise.
3149         * modules/unictype/property-zero-width-tests (Files): Likewise.
3150         * modules/unictype/scripts-tests (Files): Likewise.
3151         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
3152         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
3153         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
3154         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
3155         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
3156         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
3157         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
3158         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
3159         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
3160         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
3161         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
3162         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
3163         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
3164         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
3165         * modules/uninorm/composition-tests (Files): Likewise.
3166         * modules/uninorm/decomposing-form-tests (Files): Likewise.
3167         * modules/uninorm/decomposition-tests (Files): Likewise.
3168         * modules/uninorm/filter-tests (Files): Likewise.
3169         * modules/uninorm/nfc-tests (Files): Likewise.
3170         * modules/uninorm/nfd-tests (Files): Likewise.
3171         * modules/uninorm/nfkc-tests (Files): Likewise.
3172         * modules/uninorm/nfkd-tests (Files): Likewise.
3173         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
3174         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
3175         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
3176         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
3177         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
3178         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
3179         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
3180         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3181         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
3182         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
3183         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
3184         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
3185         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3186         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
3187         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
3188         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
3189         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
3190         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3191         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
3192         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
3193         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
3194         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
3195         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3196         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
3197         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
3198         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
3199         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
3200         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
3201         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
3202         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
3203         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
3204         * modules/uniwidth/u8-width-tests (Files): Likewise.
3205         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
3206         * modules/uniwidth/u16-width-tests (Files): Likewise.
3207         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
3208         * modules/uniwidth/u32-width-tests (Files): Likewise.
3209         * modules/uniwidth/width-tests (Files): Likewise.
3210         * modules/unlink-tests (Files): Likewise.
3211         * modules/unsetenv-tests (Files): Likewise.
3212         * modules/usleep-tests (Files): Likewise.
3213         * modules/utimens-tests (Files): Likewise.
3214         * modules/utimensat-tests (Files): Likewise.
3215         * modules/vasnprintf-posix-tests (Files): Likewise.
3216         * modules/vasnprintf-tests (Files): Likewise.
3217         * modules/vasprintf-posix-tests (Files): Likewise.
3218         * modules/vasprintf-tests (Files): Likewise.
3219         * modules/vdprintf-posix-tests (Files): Likewise.
3220         * modules/vfprintf-posix-tests (Files): Likewise.
3221         * modules/vprintf-posix-tests (Files): Likewise.
3222         * modules/vsnprintf-posix-tests (Files): Likewise.
3223         * modules/vsnprintf-tests (Files): Likewise.
3224         * modules/vsprintf-posix-tests (Files): Likewise.
3225         * modules/wcrtomb-tests (Files): Likewise.
3226         * modules/wcsnrtombs-tests (Files): Likewise.
3227         * modules/wcsrtombs-tests (Files): Likewise.
3228         * modules/wctype-tests (Files): Likewise.
3229         * modules/wcwidth-tests (Files): Likewise.
3230         * modules/xmemdup0-tests (Files): Likewise.
3231         * modules/xprintf-posix-tests (Files): Likewise.
3232         * modules/xvasprintf-tests (Files): Likewise.
3233
3234 2009-12-24  Eric Blake  <ebb9@byu.net>
3235
3236         test-nanosleep: fix typo
3237         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
3238         patch.
3239         Reported by Bruno Haible.
3240
3241 2009-12-24  Bruno Haible  <bruno@clisp.org>
3242
3243         Reduce namespace pollution on glibc systems.
3244         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
3245         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
3246         systems.
3247         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
3248         <getopt.h> on glibc systems.
3249         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
3250         systems.
3251         * lib/fcntl.c: Include <unistd.h> here instead.
3252
3253 2009-12-24  Bruno Haible  <bruno@clisp.org>
3254
3255         * lib/stdlib.in.h (includes): Fix typo in today's commit.
3256
3257 2009-12-24  Eric Blake  <ebb9@byu.net>
3258
3259         tests: add signature checks
3260         * tests/signature.h (SIGNATURE_CHECK): New file.
3261         * modules/atexit-tests (Files): Use it.
3262         * modules/btowc-tests (Files): Likewise.
3263         * modules/canonicalize-lgpl-tests (Files): Likewise.
3264         * modules/ceilf-tests (Files): Likewise.
3265         * modules/ceill-tests (Files): Likewise.
3266         * modules/chown-tests (Files): Likewise.
3267         * modules/dprintf-posix-tests (Files): Likewise.
3268         * modules/dup2-tests (Files): Likewise.
3269         * modules/dup3-tests (Files): Likewise.
3270         * modules/duplocale-tests (Files): Likewise.
3271         * modules/fchdir-tests (Files): Likewise.
3272         * modules/fcntl-tests (Files): Likewise.
3273         * modules/fdopendir-tests (Files): Likewise.
3274         * modules/fflush-tests (Files): Likewise.
3275         * modules/flock-tests (Files): Likewise.
3276         * modules/floorf-tests (Files): Likewise.
3277         * modules/floorl-tests (Files): Likewise.
3278         * modules/fnmatch-tests (Files): Likewise.
3279         * modules/fopen-tests (Files): Likewise.
3280         * modules/fprintf-posix-tests (Files): Likewise.
3281         * modules/freopen-tests (Files): Likewise.
3282         * modules/frexp-nolibm-tests (Files): Likewise.
3283         * modules/frexp-tests (Files): Likewise.
3284         * modules/frexpl-nolibm-tests (Files): Likewise.
3285         * modules/frexpl-tests (Files): Likewise.
3286         * modules/fseek-tests (Files): Likewise.
3287         * modules/fseeko-tests (Files): Likewise.
3288         * modules/fsync-tests (Files): Likewise.
3289         * modules/ftell-tests (Files): Likewise.
3290         * modules/ftello-tests (Files): Likewise.
3291         * modules/futimens-tests (Files): Likewise.
3292         * modules/getaddrinfo-tests (Files): Likewise.
3293         * modules/getcwd-tests (Files): Likewise.
3294         * modules/getdelim-tests (Files): Likewise.
3295         * modules/getdtablesize-tests (Files): Likewise.
3296         * modules/getgroups-tests (Files): Likewise.
3297         * modules/gethostname-tests (Files): Likewise.
3298         * modules/getline-tests (Files): Likewise.
3299         * modules/getopt-posix-tests (Files): Likewise.
3300         * modules/gettimeofday-tests (Files): Likewise.
3301         * modules/glob-tests (Files): Likewise.
3302         * modules/iconv-tests (Files): Likewise.
3303         * modules/inet_ntop-tests (Files): Likewise.
3304         * modules/inet_pton-tests (Files): Likewise.
3305         * modules/isblank-tests (Files): Likewise.
3306         * modules/lchown-tests (Files): Likewise.
3307         * modules/ldexpl-tests (Files): Likewise.
3308         * modules/link-tests (Files): Likewise.
3309         * modules/linkat-tests (Files): Likewise.
3310         * modules/lseek-tests (Files): Likewise.
3311         * modules/lstat-tests (Files): Likewise.
3312         * modules/mbrtowc-tests (Files): Likewise.
3313         * modules/mbsinit-tests (Files): Likewise.
3314         * modules/mbsnrtowcs-tests (Files): Likewise.
3315         * modules/mbsrtowcs-tests (Files): Likewise.
3316         * modules/memchr-tests (Files): Likewise.
3317         * modules/memcmp-tests (Files): Likewise.
3318         * modules/memmem-tests (Files): Likewise.
3319         * modules/memrchr-tests (Files): Likewise.
3320         * modules/mkdir-tests (Files): Likewise.
3321         * modules/mkfifo-tests (Files): Likewise.
3322         * modules/mkfifoat-tests (Files): Likewise.
3323         * modules/mknod-tests (Files): Likewise.
3324         * modules/nanosleep-tests (Files): Likewise.
3325         * modules/nl_langinfo-tests (Files): Likewise.
3326         * modules/obstack-printf-tests (Files): Likewise.
3327         * modules/open-tests (Files): Likewise.
3328         * modules/openat-tests (Files): Likewise.
3329         * modules/perror-tests (Files): Likewise.
3330         * modules/pipe2-tests (Files): Likewise.
3331         * modules/poll-tests (Files): Likewise.
3332         * modules/popen-tests (Files): Likewise.
3333         * modules/posix_spawn-tests (Files): Likewise.
3334         * modules/posix_spawnp-tests (Files): Likewise.
3335         * modules/pread-tests (Files): Likewise.
3336         * modules/printf-posix-tests (Files): Likewise.
3337         * modules/pty-tests (Files): Likewise.
3338         * modules/random_r-tests (Files): Likewise.
3339         * modules/rawmemchr-tests (Files): Likewise.
3340         * modules/readlink-tests (Files): Likewise.
3341         * modules/remove-tests (Files): Likewise.
3342         * modules/rename-tests (Files): Likewise.
3343         * modules/renameat-tests (Files): Likewise.
3344         * modules/rmdir-tests (Files): Likewise.
3345         * modules/round-tests (Files): Likewise.
3346         * modules/roundf-tests (Files): Likewise.
3347         * modules/roundl-tests (Files): Likewise.
3348         * modules/select-tests (Files): Likewise.
3349         * modules/setenv-tests (Files): Likewise.
3350         * modules/sigaction-tests (Files): Likewise.
3351         * modules/sleep-tests (Files): Likewise.
3352         * modules/snprintf-posix-tests (Files): Likewise.
3353         * modules/snprintf-tests (Files): Likewise.
3354         * modules/sprintf-posix-tests (Files): Likewise.
3355         * modules/stat-tests (Files): Likewise.
3356         * modules/strcasestr-tests (Files): Likewise.
3357         * modules/strchrnul-tests (Files): Likewise.
3358         * modules/strerror-tests (Files): Likewise.
3359         * modules/strsignal-tests (Files): Likewise.
3360         * modules/strstr-tests (Files): Likewise.
3361         * modules/strtod-tests (Files): Likewise.
3362         * modules/strverscmp-tests (Files): Likewise.
3363         * modules/symlink-tests (Files): Likewise.
3364         * modules/symlinkat-tests (Files): Likewise.
3365         * modules/times-tests (Files): Likewise.
3366         * modules/trunc-tests (Files): Likewise.
3367         * modules/truncf-tests (Files): Likewise.
3368         * modules/truncl-tests (Files): Likewise.
3369         * modules/tsearch-tests (Files): Likewise.
3370         * modules/uname-tests (Files): Likewise.
3371         * modules/unlink-tests (Files): Likewise.
3372         * modules/unsetenv-tests (Files): Likewise.
3373         * modules/usleep-tests (Files): Likewise.
3374         * modules/utimensat-tests (Files): Likewise.
3375         * modules/vasprintf-tests (Files): Likewise.
3376         * modules/vdprintf-posix-tests (Files): Likewise.
3377         * modules/vfprintf-posix-tests (Files): Likewise.
3378         * modules/vprintf-posix-tests (Files): Likewise.
3379         * modules/vsnprintf-posix-tests (Files): Likewise.
3380         * modules/vsnprintf-tests (Files): Likewise.
3381         * modules/vsprintf-posix-tests (Files): Likewise.
3382         * modules/wcrtomb-tests (Files): Likewise.
3383         * modules/wcsnrtombs-tests (Files): Likewise.
3384         * modules/wcsrtombs-tests (Files): Likewise.
3385         * modules/wcwidth-tests (Files): Likewise.
3386         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
3387         * tests/test-isinf.c (isinf): Likewise.
3388         * tests/test-isnan.c (isnan): Likewise.
3389         * tests/test-signbit.c (signbit): Likewise.
3390         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
3391         declaration, either as macro or with correct signature.
3392         (select): Ensure function under test is declared with correct
3393         signature in correct header.
3394         * tests/test-atexit.c (atexit): Likewise.
3395         * tests/test-btowc.c (btowc): Likewise.
3396         * tests/test-canonicalize-lgpl.c (realpath)
3397         (canonicalize_file_name): Likewise.
3398         * tests/test-ceilf1.c (ceilf): Likewise.
3399         * tests/test-ceill.c (ceill): Likewise.
3400         * tests/test-chown.c (chown): Likewise.
3401         * tests/test-dprintf-posix.c (dprintf): Likewise.
3402         * tests/test-dup2.c (dup2): Likewise.
3403         * tests/test-dup3.c (dup3): Likewise.
3404         * tests/test-duplocale.c (duplocale): Likewise.
3405         * tests/test-fchdir.c (fchdir): Likewise.
3406         * tests/test-fchownat.c (fchownat): Likewise.
3407         * tests/test-fcntl.c (fcntl): Likewise.
3408         * tests/test-fdopendir.c (fdopendir): Likewise.
3409         * tests/test-fflush.c (fflush): Likewise.
3410         * tests/test-flock.c (flock): Likewise.
3411         * tests/test-floorf1.c (floorf): Likewise.
3412         * tests/test-floorl.c (floorl): Likewise.
3413         * tests/test-fnmatch.c (fnmatch): Likewise.
3414         * tests/test-fopen.c (fopen): Likewise.
3415         * tests/test-fprintf-posix.c (fprintf): Likewise.
3416         * tests/test-freopen.c (freopen): Likewise.
3417         * tests/test-frexp.c (frexp): Likewise.
3418         * tests/test-frexpl.c (frexpl): Likewise.
3419         * tests/test-fseek.c (fseek): Likewise.
3420         * tests/test-fseeko.c (fseeko): Likewise.
3421         * tests/test-fstatat.c (fstatat): Likewise.
3422         * tests/test-fsync.c (fsync): Likewise.
3423         * tests/test-ftell.c (ftell): Likewise.
3424         * tests/test-ftello.c (ftello): Likewise.
3425         * tests/test-futimens.c (futimens): Likewise.
3426         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
3427         (gai_strerror): Likewise.
3428         * tests/test-getcwd.c (getcwd): Likewise.
3429         * tests/test-getdelim.c (getdelim): Likewise.
3430         * tests/test-getdtablesize.c (getdtablesize): Likewise.
3431         * tests/test-getgroups.c (getgroups): Likewise.
3432         * tests/test-gethostname.c (gethostname): Likewise.
3433         * tests/test-getline.c (getline): Likewise.
3434         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
3435         Likewise.
3436         * tests/test-gettimeofday.c (gettimeofday): Likewise.
3437         * tests/test-glob.c (glob, globfree): Likewise.
3438         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
3439         * tests/test-inet_ntop.c (inet_ntop): Likewise.
3440         * tests/test-inet_pton.c (inet_pton): Likewise.
3441         * tests/test-isblank.c (isblank): Likewise.
3442         * tests/test-lchown.c (lchown): Likewise.
3443         * tests/test-ldexpl.c (ldexpl): Likewise.
3444         * tests/test-link.c (link): Likewise.
3445         * tests/test-linkat.c (linkat): Likewise.
3446         * tests/test-lseek.c (lseek): Likewise.
3447         * tests/test-lstat.c (lstat): Likewise.
3448         * tests/test-mbrtowc.c (mbrtowc): Likewise.
3449         * tests/test-mbsinit.c (mbsinit): Likewise.
3450         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
3451         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
3452         * tests/test-memchr.c (memchr): Likewise.
3453         * tests/test-memcmp.c (memcmp): Likewise.
3454         * tests/test-memmem.c (memmem): Likewise.
3455         * tests/test-memrchr.c (memrchr): Likewise.
3456         * tests/test-mkdir.c (mkdir): Likewise.
3457         * tests/test-mkdirat.c (mkdirat): Likewise.
3458         * tests/test-mkfifo.c (mkfifo): Likewise.
3459         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
3460         * tests/test-mknod.c (mknod): Likewise.
3461         * tests/test-nanosleep.c (nanosleep): Likewise.
3462         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
3463         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
3464         Likewise.
3465         * tests/test-open.c (open): Likewise.
3466         * tests/test-openat.c (openat): Likewise.
3467         * tests/test-perror.c (perror): Likewise.
3468         * tests/test-pipe2.c (pipe2): Likewise.
3469         * tests/test-poll.c (poll): Likewise.
3470         * tests/test-popen.c (popen, pclose): Likewise.
3471         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
3472         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
3473         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
3474         (posix_spawn_file_actions_destroy)
3475         (posix_spawn_file_actions_addclose)
3476         (posix_spawn_file_actions_addopen)
3477         (posix_spawn_file_actions_adddup2): Likewise.
3478         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
3479         * tests/test-pread.c (pread): Likewise.
3480         * tests/test-printf-posix.c (printf): Likewise.
3481         * tests/test-pty.c (openpty, forkpty): Likewise.
3482         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
3483         (random_r): Likewise.
3484         * tests/test-rawmemchr.c (rawmemchr): Likewise.
3485         * tests/test-readlink.c (readlink): Likewise.
3486         * tests/test-remove.c (remove): Likewise.
3487         * tests/test-rename.c (rename): Likewise.
3488         * tests/test-renameat.c (renameat): Likewise.
3489         * tests/test-rmdir.c (rmdir): Likewise.
3490         * tests/test-round1.c (round): Likewise.
3491         * tests/test-roundf1.c (roundf): Likewise.
3492         * tests/test-roundl.c (roundl): Likewise.
3493         * tests/test-setenv.c (setenv): Likewise.
3494         * tests/test-sigaction.c (sigaction): Likewise.
3495         * tests/test-sleep.c (sleep): Likewise.
3496         * tests/test-snprintf.c (snprintf): Likewise.
3497         * tests/test-sprintf-posix.c (sprintf): Likewise.
3498         * tests/test-stat.c (stat): Likewise.
3499         * tests/test-stpncpy.c (stpncpy): Likewise.
3500         * tests/test-strcasestr.c (strcasestr): Likewise.
3501         * tests/test-strchrnul.c (strchrnul): Likewise.
3502         * tests/test-strerror.c (strerror): Likewise.
3503         * tests/test-strsignal.c (strsignal): Likewise.
3504         * tests/test-strstr.c (strstr): Likewise.
3505         * tests/test-strtod.c (strtod): Likewise.
3506         * tests/test-strverscmp.c (strverscmp): Likewise.
3507         * tests/test-symlink.c (symlink): Likewise.
3508         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
3509         * tests/test-times.c (times): Likewise.
3510         * tests/test-trunc1.c (trunc): Likewise.
3511         * tests/test-truncf1.c (truncf): Likewise.
3512         * tests/test-truncl.c (truncl): Likewise.
3513         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
3514         Likewise.
3515         * tests/test-uname.c (uname): Likewise.
3516         * tests/test-unlink.c (unlink): Likewise.
3517         * tests/test-unlinkat.c (unlinkat): Likewise.
3518         * tests/test-unsetenv.c (unsetenv): Likewise.
3519         * tests/test-usleep.c (usleep): Likewise.
3520         * tests/test-utimensat.c (utimensat): Likewise.
3521         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
3522         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
3523         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
3524         * tests/test-vprintf-posix.c (vprintf): Likewise.
3525         * tests/test-vsnprintf.c (vsnprintf): Likewise.
3526         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
3527         * tests/test-wcrtomb.c (wcrtomb): Likewise.
3528         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
3529         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
3530         * tests/test-wcwidth.c (wcwidth): Likewise.
3531
3532         build: pull in conditional headers during GNULIB_POSIXCHECK
3533         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
3534         definitions from any conditionally-included headers.
3535         * lib/stdlib.in.h (includes): Likewise.
3536         * lib/unistd.in.h (includes): Likewise.
3537
3538 2009-12-24  Bruno Haible  <bruno@clisp.org>
3539
3540         * tests/test-argv-iter.c: Include header file being tested immediately
3541         after config.h.
3542         * tests/test-base64.c: Likewise.
3543         * tests/test-flock.c: Likewise.
3544         * tests/test-fsync.c: Likewise.
3545         * tests/test-getdate.c: Likewise.
3546         * tests/test-getndelim2.c: Likewise.
3547         * tests/test-isfinite.c: Likewise.
3548         * tests/test-isinf.c: Likewise.
3549         * tests/test-strerror.c: Likewise.
3550         * tests/test-strsignal.c: Likewise.
3551
3552 2009-12-23  Eric Blake  <ebb9@byu.net>
3553
3554         unistd: work around cygwin bug
3555         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
3556         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
3557         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
3558
3559 2009-12-23  Bruno Haible  <bruno@clisp.org>
3560
3561         localename: More tests.
3562         * tests/test-localename.c (SIZEOF): New macro.
3563         (categories): New variable.
3564         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
3565         test_locale_name_default): Add test w.r.t. thread locale.
3566         (test_locale_name_thread): New function.
3567         (main): Invoke it.
3568
3569         localename: Make aware of thread locale.
3570         * lib/localename.h (gl_locale_name_thread): New declaration.
3571         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
3572         behaviour with respect to thread locale.
3573         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
3574         <langinfo.h>, glthread/lock.h.
3575         (SIZE_BITS): New macro.
3576         (string_hash): New function.
3577         (struct hash_node): New type.
3578         (HASH_TABLE_SIZE): New macro.
3579         (struniq_hash_table, struniq_lock): New variables.
3580         (struniq): New function.
3581         (gl_locale_name_thread): New function.
3582         (gl_locale_name): Invoke it.
3583         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
3584         * modules/localename (Depends-on): Add lock.
3585         Reported by Mike Gran <spk121@yahoo.com>.
3586
3587 2009-12-23  Eric Blake  <ebb9@byu.net>
3588
3589         va-args: new module
3590         * modules/va-args: New file.
3591         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
3592         * MODULES.html.sh (Core language properties): Mention it.
3593
3594         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
3595         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
3596         named alias for __attribute__((__unused__)).
3597         * lib/chown.c: Update client.
3598         * lib/fchmodat.c: Likewise.
3599         * lib/fts.c: Likewise.
3600         * lib/getdate.y: Likewise.
3601         * lib/getgroups.c: Likewise.
3602         * lib/getopt.c: Likewise.
3603         * lib/getugroups.c: Likewise.
3604         * lib/mkdir.c: Likewise.
3605         * lib/mkfifo.c: Likewise.
3606         * lib/mkfifoat.c: Likewise.
3607         * lib/mknod.c: Likewise.
3608         * lib/mknodat.c: Likewise.
3609         * lib/readlink.c: Likewise.
3610         * lib/se-context.in.h: Likewise.
3611         * lib/se-selinux.in.h: Likewise.
3612         * lib/sockets.c: Likewise.
3613         * lib/symlink.c: Likewise.
3614         * lib/symlinkat.c: Likewise.
3615         * lib/unicodeio.c: Likewise.
3616         * lib/unistr.h: Likewise.
3617         * tests/test-areadlink.c: Likewise.
3618         * tests/test-areadlinkat.c: Likewise.
3619         * tests/test-filenamecat.c: Likewise.
3620         * tests/test-fseeko.c: Likewise.
3621         * tests/test-ftello.c: Likewise.
3622         * tests/test-getdate.c: Likewise.
3623         * tests/test-getgroups.c: Likewise.
3624         * tests/test-gethostname.c: Likewise.
3625         * tests/test-quotearg.c: Likewise.
3626         * tests/test-version-etc.c: Likewise.
3627         * tests/test-xalloc-die.c: Likewise.
3628         * tests/test-xfprintf-posix.c: Likewise.
3629         * tests/test-xprintf-posix.c: Likewise.
3630         * tests/test-xvasprintf.c: Likewise.
3631
3632         tests: avoid compiler warnings
3633         * tests/test-fcntl.c (main): Delete unused parameters.
3634         * tests/test-freopen-safer.c (main): Likewise.
3635         * tests/test-xalloc-die.c (main): Mark unused parameters.
3636         * tests/test-fseeko.c (main): Likewise.
3637         * tests/test-ftello.c (main): Likewise.
3638         * tests/test-nanosleep.c (main): Avoid declaration warning.
3639         * tests/test-sleep.c (main): Likewise.
3640         * tests/test-unsetenv.c (main): Silence warning about string
3641         literal.
3642         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3643
3644 2009-12-23  Bruno Haible  <bruno@clisp.org>
3645
3646         * tests/test-localename.c (test_locale_name): New function, extracted
3647         from main. Also test mixed situations.
3648         (test_locale_name_posix, test_locale_name_environ,
3649         test_locale_name_default): New functions.
3650         (main): Invoke them all.
3651         * modules/localename-tests (configure.ac): Test for newlocale.
3652
3653 2009-12-23  Bruno Haible  <bruno@clisp.org>
3654
3655         unistd: Ensure getcwd gets declared before being overridden.
3656         * lib/unistd.in.h: Conditionally include <io.h>.
3657
3658 2009-12-22  Bruno Haible  <bruno@clisp.org>
3659
3660         wchar: Diagnose broken combination of glibc and gcc versions and flags.
3661         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
3662         (gl_WCHAR_H): Invoke it.
3663         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
3664         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
3665         Reported by Karl Berry <karl@freefriends.org>.
3666
3667 2009-12-22  Eric Blake  <ebb9@byu.net>
3668
3669         math, unistd: avoid redundant includes
3670         * lib/math.in.h (isnan): No need to re-include <math.h>.
3671         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
3672
3673         getsubopt: work around cygwin bug
3674         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
3675         avoid conflicting with system getsubopt.
3676         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
3677         bug.
3678
3679         getopt: synchronize from glibc
3680         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
3681         parameter order.  Adjust all callers.
3682         (_getopt_internal_r, main): Adjust quoting in error messages.
3683         Drop considerations for outdated POSIX 1003.2 error message.
3684         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
3685         callers.
3686         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
3687
3688         test-getopt: test stderr behavior
3689         * modules/getopt-posix-tests (Depends-on): Add dup2.
3690         * tests/test-getopt.c (ASSERT): Avoid stderr.
3691         (main): Move stderr to a temporary file.
3692         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
3693         Instead, add parameter to inform caller if output occurred.
3694         (test_getopt): Adjust all existing tests to expect silence, and
3695         add new tests of leading ":".
3696         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
3697         glibc shortcomings with leading "-:" or "+:" in optstring.
3698         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3699         Likewise.
3700         * doc/posix-functions/getopt.texi (getopt): Likewise.
3701
3702         test-getopt: enhance test
3703         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
3704         supports optind=0.
3705         * tests/test-getopt.c (OPTIND_MIN): Move...
3706         * tests/test-getopt.h (OPTIND_MIN): ...here.
3707         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
3708         Require that optind=0 works, since modern BSD supports it in
3709         addition to optreset, and since coreutils expects it.
3710         (test_getopt_long_only): New test.
3711         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
3712         glibc shortcomings with 'W;', and enforcement of optind=0.
3713         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3714         Likewise.
3715
3716 2009-12-21  Bruno Haible  <bruno@clisp.org>
3717
3718         localename: Improvements for MacOS X and Cygwin.
3719         * lib/localename.h (gl_locale_name_environ): New declaration.
3720         * lib/localename.c (gl_locale_name_environ): New function, extracted from
3721         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
3722         (gl_locale_name_posix): Invoke it.
3723         (gl_locale_name_default): Add comments. Use Windows native API also on
3724         Cygwin.
3725
3726 2009-12-21  Bruno Haible  <bruno@clisp.org>
3727
3728         Update list of Win32 locale ids.
3729         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
3730         (LANG_SAMI): Renamed from LANG_SAAMI.
3731         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
3732         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
3733         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
3734         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
3735         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
3736         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
3737         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
3738         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
3739         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
3740         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
3741         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
3742         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
3743         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
3744         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
3745         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
3746         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
3747         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
3748         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
3749         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
3750         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
3751         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
3752         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
3753         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
3754         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
3755         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
3756         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
3757         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
3758         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
3759         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
3760         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
3761         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
3762         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
3763         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
3764         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
3765         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
3766         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
3767         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
3768         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
3769         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
3770         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
3771         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
3772         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
3773         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
3774         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
3775         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
3776         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
3777         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
3778         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
3779         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
3780         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
3781         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
3782         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
3783         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
3784         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
3785         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
3786         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
3787         Add more languages and countries for Sami, Sorbian. Add more countries
3788         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
3789         for Pashto. Change country for Syriac, Tswana.
3790
3791 2009-12-21  Eric Blake  <ebb9@byu.net>
3792
3793         test-utimens: avoid spurious failure
3794         * tests/test-chown.h (nap): Factor...
3795         * tests/nap.h: ...into new file.
3796         * tests/test-lchown.h (nap): Avoid duplication.
3797         * tests/test-utimens-common.h (nap): Use shared implementation,
3798         necessary on file systems with 1-second resolution.
3799         * modules/chown-tests (Files): Include new file.
3800         * modules/fdutimensat-tests (Files): Likewise.
3801         * modules/futimens-tests (Files): Likewise.
3802         * modules/lchown-tests (Files): Likewise.
3803         * modules/openat-tests (Files): Likewise.
3804         * modules/utimens-tests (Files): Likewise.
3805         * modules/utimensat-tests (Files): Likewise.
3806
3807 2009-12-19  Eric Blake  <ebb9@byu.net>
3808
3809         futimens, utimensat: work around Linux bug
3810         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
3811         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3812         * lib/utimensat.c (rpl_utimensat): Work around it.
3813         * lib/futimens.c (rpl_futimens): Adjust comment.
3814
3815         utimens: work around Linux ctime bug
3816         * lib/utimens.c (detect_ctime_bug): New helper function.
3817         (update_timespec): Differentiate between workaround needed for
3818         this bug vs. what is needed for systems that lack utimensat.
3819         (fdutimens, lutimens): Work around bug.
3820
3821         utimens: check for ctime update
3822         * tests/test-utimens-common.h (check_ctime): Define.
3823         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
3824         * tests/test-futimens.h (test_futimens): Likewise.
3825         * tests/test-lutimens.h (test_lutimens): Likewise.
3826         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3827         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3828
3829 2009-12-19  Bruno Haible  <bruno@clisp.org>
3830
3831         dprintf-posix: Check against memory leak fixed on 2009-12-15.
3832         * tests/test-dprintf-posix2.sh: New file.
3833         * tests/test-dprintf-posix2.c: New file.
3834         * modules/dprintf-posix-tests (Files): Add them.
3835         (configure.ac): Check for getrlimit and setrlimit.
3836         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
3837
3838 2009-12-19  Bruno Haible  <bruno@clisp.org>
3839
3840         fprintf-posix: Check against memory leak fixed on 2009-12-15.
3841         * tests/test-fprintf-posix3.sh: New file.
3842         * tests/test-fprintf-posix3.c: New file.
3843         * modules/fprintf-posix-tests (Files): Add them.
3844         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
3845
3846 2009-12-19  Eric Blake  <ebb9@byu.net>
3847
3848         dirfd: fix prototype
3849         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
3850         * lib/dirfd.c (dirfd): Likewise.
3851
3852         canonicalize: reduce memory usage
3853         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
3854         allocation to size.
3855         Reported by Solar Designer <solar@openwall.com>.
3856
3857 2009-12-19  Bruno Haible  <bruno@clisp.org>
3858
3859         New module attribute 'Applicability'.
3860         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
3861         * gnulib-tool: New option --extract-applicability.
3862         (func_usage): Document it.
3863         (sed_extract_prog): Recognize it.
3864         (func_get_applicability): New function.
3865         (func_import): Generalize handling of 'link-warning' module.
3866         * modules/link-warning (Applicability): New section.
3867         * modules/arg-nonnull (Applicability): New section.
3868         Repoted by Simon Josefsson <simon@josefsson.org>.
3869
3870 2009-12-19  Bruno Haible  <bruno@clisp.org>
3871
3872         fflush: tweak
3873         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
3874         * lib/fseeko.c (rpl_fseeko): Likewise.
3875
3876 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
3877
3878         * lib/gl_list.h: Fix typo in comment.
3879
3880 2009-12-16  Eric Blake  <ebb9@byu.net>
3881
3882         fcntl: use to simplify other modules
3883         * modules/cloexec (Depends-on): Add fcntl.
3884         * modules/fchdir (Depends-on): Likewise.
3885         * modules/fd-safer-flag (Depends-on): Likewise.
3886         * modules/unistd-safer (Depends-on): Likewise.
3887         * modules/dup3 (configure.ac): Set module indicator.
3888         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
3889         missing.
3890         * lib/fchdir.c (_gl_register_dup): Fix comment.
3891         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
3892         * lib/dup-safer.c (dup_safer): Likewise.
3893         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
3894         * lib/dup3.c (dup3): Likewise.
3895         * tests/test-fchdir.c (main): Enhance test.
3896         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
3897
3898         fcntl: port portions of fcntl to mingw
3899         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
3900         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
3901         replacement for mingw.
3902         * modules/fcntl (Description): Update.
3903         (Depends-on): Add dup2.
3904         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
3905         * modules/fcntl-h (Makefile.am): Substitute it.
3906         * lib/fcntl.in.h (fcntl): Update declaration.
3907         (F_DUPFD, F_GETFD): New macros, when needed.
3908         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
3909         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
3910         * tests/test-fcntl.c (check_flags, main): Enhance test for items
3911         we now guarantee.
3912
3913         fcntl: work around cygwin bug in F_DUPFD
3914         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
3915         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
3916         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
3917         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
3918         * doc/posix-functions/fcntl.texi (fcntl): Document it.
3919
3920         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
3921         * modules/fcntl (Files): List new files.
3922         (configure.ac): Run a test.
3923         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
3924         * lib/fcntl.c (rpl_fcntl): Likewise.
3925         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
3926         (gl_FCNTL_H): Always replace fcntl.h.
3927         * modules/fcntl-h (Makefile.am): Substitute witnesses.
3928         * lib/fcntl.in.h (fcntl): Declare replacement.
3929         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
3930         needed, plus a witness.
3931         * doc/posix-functions/fcntl.texi (fcntl): Document this.
3932         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
3933         * tests/test-fcntl.c: New file.
3934         * modules/fcntl-tests: Likewise.
3935
3936         binary-io: avoid potential compilation warning
3937         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
3938         directives.
3939
3940         fflush: avoid compilation error on NetBSD
3941         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
3942         between off_t and fpos_t, since the latter is sometimes a struct.
3943         * lib/fseeko.c (rpl_fseeko): Likewise.
3944         Reported by Alexander Nasonov <alnsn@yandex.ru>.
3945
3946 2009-12-15  Eric Blake  <ebb9@byu.net>
3947
3948         fcntl-h, stdio, sys_ioctl: fix declarations
3949         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
3950         function must not take arguments.
3951         * lib/sys_ioctl.in.h (ioctl): Likewise.
3952         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
3953         (open): Add a link warning.
3954
3955 2009-12-15  Jim Meyering  <meyering@redhat.com>
3956
3957         areadlink, areadlink-with-size: relax license to LGPLv2+
3958         * modules/areadlink (License): Relax to LGPLv2+.
3959         * modules/areadlink-with-size (License): Likewise.
3960
3961 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
3962             Bruno Haible  <bruno@clisp.org>
3963
3964         *printf: Fix memory leak.
3965         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
3966         * lib/vfprintf.c (vfprintf): Likewise.
3967         * lib/dprintf.c (dprintf): Likewise.
3968         * lib/vdprintf.c (vdprintf): Likewise.
3969
3970 2009-12-14  Eric Blake  <ebb9@byu.net>
3971
3972         accept4: adjust module dependencies
3973         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
3974
3975         utimens: one more try at avoiding compiler warning
3976         * lib/utimens.c (lutimens): Lower scope of result.
3977
3978 2009-12-13  Bruno Haible  <bruno@clisp.org>
3979
3980         Move the malloc checking from module 'list' to new module 'xlist'.
3981         * modules/xlist: New file.
3982         * lib/gl_xlist.h: New file.
3983         * lib/gl_xlist.c: New file.
3984         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
3985         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
3986         gl_list_add_last, gl_list_add_before, gl_list_add_after,
3987         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
3988         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
3989         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
3990         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
3991         gl_sortedlist_nx_add): New declarations.
3992         (struct gl_list_implementation): Rename and change methods accordingly.
3993         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
3994         (gl_list_nx_create): Renamed from gl_list_create.
3995         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3996         (gl_list_nx_set_at): Renamed from gl_list_set_at.
3997         (gl_list_nx_add_first): Renamed from gl_list_add_first.
3998         (gl_list_nx_add_last): Renamed from gl_list_add_last.
3999         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4000         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4001         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4002         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4003         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
4004         gl_list_create_empty.
4005         (gl_list_nx_create): Renamed from gl_list_create.
4006         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4007         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4008         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4009         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4010         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4011         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4012         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4013         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4014         * lib/gl_array_list.c: Don't include xalloc.h.
4015         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
4016         NULL upon out-of-memory.
4017         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
4018         out-of-memory.
4019         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
4020         Change return type to 'int'.
4021         (gl_array_nx_set_at): Renamed from gl_array_set_at.
4022         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4023         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
4024         upon out-of-memory.
4025         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
4026         upon out-of-memory.
4027         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
4028         upon out-of-memory.
4029         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
4030         upon out-of-memory.
4031         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
4032         out-of-memory.
4033         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
4034         Update.
4035         (gl_array_list_implementation): Update.
4036         * lib/gl_carray_list.c: Don't include xalloc.h.
4037         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
4038         Return NULL upon out-of-memory.
4039         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
4040         out-of-memory.
4041         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
4042         Change return type to 'int'.
4043         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
4044         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4045         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
4046         upon out-of-memory.
4047         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
4048         upon out-of-memory.
4049         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
4050         out-of-memory.
4051         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
4052         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
4053         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
4054         Update.
4055         (gl_carray_list_implementation): Update.
4056         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
4057         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
4058         gl_linked_create_empty. Return NULL upon out-of-memory.
4059         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
4060         out-of-memory.
4061         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
4062         Change return type to 'int'. Return -1 upon out-of-memory.
4063         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
4064         out-of-memory.
4065         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
4066         upon out-of-memory.
4067         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
4068         upon out-of-memory.
4069         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
4070         NULL upon out-of-memory.
4071         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
4072         upon out-of-memory.
4073         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
4074         out-of-memory.
4075         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
4076         Update.
4077         * lib/gl_linked_list.c: Don't include xalloc.h.
4078         (gl_linked_list_implementation): Update.
4079         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
4080         (add_to_bucket): Change return type to 'int'.
4081         (gl_linkedhash_list_implementation): Update.
4082         * lib/gl_anytree_list1.h (free_subtree): New function.
4083         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
4084         gl_tree_create_empty. Return NULL upon out-of-memory.
4085         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
4086         Change return type to 'int'. Return -1 upon out-of-memory.
4087         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
4088         out-of-memory.
4089         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
4090         (gl_tree_remove_node): New function, moved here from
4091         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
4092         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
4093         Update.
4094         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
4095         malloc, not xmalloc. Return NULL upon out-of-memory.
4096         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4097         out-of-memory.
4098         (gl_tree_remove_node_from_tree): New function, extracted from
4099         gl_tree_remove_node.
4100         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4101         upon out-of-memory.
4102         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4103         out-of-memory.
4104         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4105         upon out-of-memory.
4106         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4107         upon out-of-memory.
4108         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4109         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
4110         not xmalloc. Return NULL upon out-of-memory.
4111         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4112         out-of-memory.
4113         (gl_tree_remove_node_from_tree): New function, extracted from
4114         gl_tree_remove_node.
4115         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4116         upon out-of-memory.
4117         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4118         out-of-memory.
4119         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4120         upon out-of-memory.
4121         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4122         upon out-of-memory.
4123         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4124         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
4125         gl_anytree_list1.h before gl_anyavltree_list2.h.
4126         (gl_avltree_list_implementation): Update.
4127         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
4128         gl_anytree_list1.h before gl_anyavltree_list2.h.
4129         (gl_rbtree_list_implementation): Update.
4130         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
4131         Change return type to 'int'. Return -1 upon out-of-memory. Use
4132         __builtin_expect.
4133         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
4134         (gl_avltreehash_list_implementation): Update.
4135         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
4136         (gl_rbtreehash_list_implementation): Update.
4137         * modules/array-list (Depends-on): Remove xalloc.
4138         * modules/carray-list (Depends-on): Likewise.
4139         * modules/linked-list (Depends-on): Likewise.
4140         * modules/linkedhash-list (Depends-on): Likewise.
4141         * modules/avltree-list (Depends-on): Likewise.
4142         * modules/rbtree-list (Depends-on): Likewise.
4143         * modules/avltreehash-list (Depends-on): Likewise.
4144         * modules/rbtreehash-list (Depends-on): Likewise.
4145
4146         * modules/xsublist: New file.
4147         * lib/gl_xsublist.h: New file.
4148         * lib/gl_xsublist.c: New file.
4149         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
4150         (gl_sublist_nx_create): New declaration.
4151         * lib/gl_sublist.c: Don't include xalloc.h.
4152         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
4153         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
4154         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
4155         Change return type to 'int'. Return -1 upon out-of-memory.
4156         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
4157         upon out-of-memory.
4158         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
4159         NULL upon out-of-memory.
4160         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
4161         upon out-of-memory.
4162         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
4163         NULL upon out-of-memory.
4164         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
4165         NULL upon out-of-memory.
4166         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
4167         upon out-of-memory.
4168         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
4169         (gl_sublist_list_implementation): Update.
4170         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
4171         upon out-of-memory.
4172         * modules/sublist (Depends-on): Remove xalloc.
4173
4174         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
4175         * tests/test-carray_list.c: Likewise.
4176         * tests/test-linked_list.c: Likewise.
4177         * tests/test-linkedhash_list.c: Likewise.
4178         * tests/test-avltree_list.c: Likewise.
4179         * tests/test-rbtree_list.c: Likewise.
4180         * tests/test-avltreehash_list.c: Likewise.
4181         * tests/test-rbtreehash_list.c: Likewise.
4182         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
4183         * modules/carray-list-tests (Makefile.am): Likewise.
4184         * modules/linked-list-tests (Makefile.am): Likewise.
4185         * modules/linkedhash-list-tests (Makefile.am): Likewise.
4186         * modules/avltree-list-tests (Makefile.am): Likewise.
4187         * modules/rbtree-list-tests (Makefile.am): Likewise.
4188         * modules/avltreehash-list-tests (Makefile.am): Likewise.
4189         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
4190
4191         * NEWS: Mention the changes.
4192
4193         * lib/clean-temp.c: Include gl_xlist.h.
4194         * modules/clean-temp (Depends-on): Add xlist.
4195
4196         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
4197         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
4198
4199         * tests/test-array_oset.c: Include gl_xlist.h.
4200         * modules/array-oset-tests (Depends-on): Add xlist.
4201
4202         Reported by José E. Marchesi <jemarch@gnu.org>.
4203
4204 2009-12-13  Bruno Haible  <bruno@clisp.org>
4205
4206         Move the malloc checking from module 'oset' to new module 'xoset'.
4207         * modules/xoset: New file.
4208         * lib/gl_xoset.h: New file.
4209         * lib/gl_xoset.c: New file.
4210         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
4211         declarations.
4212         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
4213         (struct gl_oset_implementation): Rename and change methods accordingly.
4214         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
4215         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
4216         'int'. Mark as __warn_unused_result__.
4217         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
4218         gl_oset_create_empty.
4219         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
4220         'int'.
4221         * lib/gl_array_oset.c: Don't include xalloc.h.
4222         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
4223         malloc, not xmalloc.
4224         (grow): Change return type to 'int'. Don't call xalloc_die.
4225         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
4226         to 'int'.
4227         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
4228         'int'.
4229         (gl_array_oset_implementation): Update.
4230         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
4231         gl_tree_create_empty.
4232         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
4233         'int'.
4234         * lib/gl_avltree_oset.c: Don't include xalloc.h.
4235         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
4236         xmalloc.
4237         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
4238         not xmalloc.
4239         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
4240         xmalloc.
4241         (gl_avltree_oset_implementation): Update.
4242         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
4243         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
4244         xmalloc.
4245         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
4246         not xmalloc.
4247         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
4248         xmalloc.
4249         (gl_rbtree_oset_implementation): Update.
4250         * modules/array-oset (Depends-on): Remove xalloc.
4251         * modules/avltree-oset (Depends-on): Likewise.
4252         * modules/rbtree-oset (Depends-on): Likewise.
4253         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
4254         * tests/test-avltree_oset.c: Likewise.
4255         * tests/test-rbtree_oset.c: Likewise.
4256         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
4257         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
4258         * modules/rbtree-oset-tests (Makefile.am): Likewise.
4259         * NEWS: Mention the change.
4260
4261 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
4262
4263         maint.mk: allow a project to override release-prep commands
4264         * top/maint.mk (alpha, beta, stable): Move release-preparatory
4265         commands into a new rule.
4266         (release-prep): New rule.
4267         (release-prep-hook): New overridable variable.
4268
4269 2009-12-13  Bruno Haible  <bruno@clisp.org>
4270
4271         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
4272
4273 2009-12-13  Jim Meyering  <meyering@redhat.com>
4274
4275         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
4276         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
4277
4278 2009-12-12  Bruno Haible  <bruno@clisp.org>
4279
4280         duplocale: Tweak.
4281         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
4282
4283 2009-12-12  Karl Berry  <karl@gnu.org>
4284
4285         * config/srclist.txt (strtoll.c): tab changes, no more sync.
4286
4287 2009-12-12  Bruno Haible  <bruno@clisp.org>
4288
4289         * m4/po.m4: Undo incorrect untabification.
4290
4291 2009-12-12  Bruno Haible  <bruno@clisp.org>
4292
4293         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
4294         * modules/c-strtod (Depends-on): Add locale.
4295         * modules/c-strtold (Depends-on): Likewise.
4296
4297 2009-12-12  Bruno Haible  <bruno@clisp.org>
4298
4299         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
4300
4301 2009-12-11  Eric Blake  <ebb9@byu.net>
4302
4303         setenv: relax requirement in light of POSIX ruling
4304         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
4305         not NULL.
4306         * tests/test-setenv.c (main): Relax test.
4307         * tests/test-unsetenv.c (main): Likewise.
4308         * doc/posix-functions/setenv.texi (setenv): Document this.
4309         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4310
4311 2009-12-11  Bruno Haible  <bruno@clisp.org>
4312
4313         New module 'fd-safer-flag'.
4314         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
4315         * lib/dup-safer.c (dup_safer_flag): Remove function.
4316         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
4317         * lib/fd-safer.c (fd_safer_flag): Remove function.
4318         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
4319         * modules/cloexec (configure.ac): Drop indicator macro.
4320         * modules/fd-safer-flag: New file.
4321         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
4322         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
4323         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
4324
4325 2009-12-11  Bruno Haible  <bruno@clisp.org>
4326
4327         Tests for module 'nl_langinfo'.
4328         * modules/nl_langinfo-tests: New file.
4329         * tests/test-nl_langinfo.sh: New file.
4330         * tests/test-nl_langinfo.c: New file.
4331
4332         New module 'nl_langinfo'.
4333         * lib/nl_langinfo.c: New file.
4334         * m4/nl_langinfo.m4: New file.
4335         * modules/nl_langinfo: New file.
4336         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
4337
4338 2009-12-11  Bruno Haible  <bruno@clisp.org>
4339
4340         Tests for module 'langinfo'.
4341         * modules/langinfo-tests: New file.
4342         * tests/test-langinfo.c: New file.
4343
4344         New module 'langinfo'.
4345         * lib/langinfo.in.h: New file.
4346         * m4/langinfo_h.m4: New file.
4347         * modules/langinfo: New file.
4348         * doc/posix-headers/langinfo.texi: Mention the new module.
4349
4350 2009-12-11  Bruno Haible  <bruno@clisp.org>
4351
4352         * lib/config.charset: Untabify.
4353
4354 2009-12-11  Bruno Haible  <bruno@clisp.org>
4355
4356         * modules/unistd-safer (configure.ac): Drop indicator macro.
4357
4358 2009-12-11  Bruno Haible  <bruno@clisp.org>
4359
4360         Move pipe2-safer code to its own file.
4361         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
4362         * lib/pipe-safer.c (pipe2_safer): Remove function.
4363         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
4364         (Makefile.am): Add it to lib_SOURCES.
4365
4366 2009-12-10  Bruno Haible  <bruno@clisp.org>
4367
4368         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
4369
4370 2009-12-10  Bruno Haible  <bruno@clisp.org>
4371
4372         Declare which arguments expect non-NULL values, for GCC and clang.
4373         * build-aux/arg-nonnull.h: New file.
4374         * modules/arg-nonnull: New file.
4375         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
4376         (inet_ntop, inet_pton): Use it.
4377         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
4378         (closedir, dirfd, opendir, scandir, alphasort): Use it.
4379         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
4380         (open, openat): Use it.
4381         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
4382         (fnmatch): Use it.
4383         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
4384         (getopt, getopt_long, getopt_long_only): Use it.
4385         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
4386         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
4387         Use it.
4388         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
4389         (iconv_open): Use it.
4390         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
4391         (strtoimax, strtoumax): Use it.
4392         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
4393         (duplocale): Use it.
4394         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
4395         (frexp, frexpl): Use it.
4396         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
4397         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
4398         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
4399         (tsearch, tfind, tdelete, twalk): Use it.
4400         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
4401         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
4402         sigpending): Use it.
4403         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
4404         (posix_spawn, posix_spawnp, posix_spawnattr_init,
4405         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
4406         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
4407         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
4408         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
4409         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
4410         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
4411         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
4412         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
4413         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
4414         Use it.
4415         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
4416         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
4417         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
4418         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
4419         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
4420         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
4421         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
4422         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
4423         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
4424         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
4425         strtoull, unsetenv): Use it.
4426         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
4427         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
4428         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
4429         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4430         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4431         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
4432         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
4433         (strcasecmp, strncasecmp): Use it.
4434         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
4435         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
4436         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
4437         rpl_setsockopt): Use it.
4438         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
4439         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
4440         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
4441         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
4442         (gettimeofday): Use it.
4443         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
4444         (times): Use it.
4445         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
4446         (uname): Use it.
4447         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
4448         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
4449         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
4450         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
4451         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
4452         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
4453         unlinkat, write): Use it.
4454         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
4455         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
4456         * lib/argv-iter.h: Include arg-nonnull.h.
4457         (_ATTRIBUTE_NONNULL_): Remove macro.
4458         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
4459         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
4460         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
4461         optimization.
4462         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
4463         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
4464         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
4465         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
4466         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
4467         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
4468         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
4469         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
4470         * modules/arpa_inet (Depends-on): Add arg-nonnull.
4471         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
4472         * modules/dirent (Depends-on): Add arg-nonnull.
4473         (Makefile.am): Insert arg-nonnull.h into dirent.h.
4474         * modules/fcntl-h (Depends-on): Add arg-nonnull.
4475         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
4476         * modules/fnmatch (Depends-on): Add arg-nonnull.
4477         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
4478         * modules/getopt-posix (Depends-on): Add arg-nonnull.
4479         (Makefile.am): Insert arg-nonnull.h into getopt.h.
4480         * modules/glob (Depends-on): Add arg-nonnull.
4481         (Makefile.am): Insert arg-nonnull.h into glob.h.
4482         * modules/iconv_open (Depends-on): Add arg-nonnull.
4483         (Makefile.am): Insert arg-nonnull.h into iconv.h.
4484         * modules/inttypes (Depends-on): Add arg-nonnull.
4485         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
4486         * modules/locale (Depends-on): Add arg-nonnull.
4487         (Makefile.am): Insert arg-nonnull.h into locale.h.
4488         * modules/math (Depends-on): Add arg-nonnull.
4489         (Makefile.am): Insert arg-nonnull.h into math.h.
4490         * modules/netdb (Depends-on): Add arg-nonnull.
4491         (Makefile.am): Insert arg-nonnull.h into netdb.h.
4492         * modules/search (Depends-on): Add arg-nonnull.
4493         (Makefile.am): Insert arg-nonnull.h into search.h.
4494         * modules/signal (Depends-on): Add arg-nonnull.
4495         (Makefile.am): Insert arg-nonnull.h into signal.h.
4496         * modules/spawn (Depends-on): Add arg-nonnull.
4497         (Makefile.am): Insert arg-nonnull.h into spawn.h.
4498         * modules/stdio (Depends-on): Add arg-nonnull.
4499         (Makefile.am): Insert arg-nonnull.h into stdio.h.
4500         * modules/stdlib (Depends-on): Add arg-nonnull.
4501         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
4502         * modules/string (Depends-on): Add arg-nonnull.
4503         (Makefile.am): Insert arg-nonnull.h into string.h.
4504         * modules/strings (Depends-on): Add arg-nonnull.
4505         (Makefile.am): Insert arg-nonnull.h into strings.h.
4506         * modules/sys_socket (Depends-on): Add arg-nonnull.
4507         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
4508         * modules/sys_stat (Depends-on): Add arg-nonnull.
4509         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
4510         * modules/sys_time (Depends-on): Add arg-nonnull.
4511         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
4512         * modules/sys_times (Depends-on): Add arg-nonnull.
4513         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
4514         * modules/sys_utsname (Depends-on): Add arg-nonnull.
4515         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
4516         * modules/time (Depends-on): Add arg-nonnull.
4517         (Makefile.am): Insert arg-nonnull.h into time.h.
4518         * modules/unistd (Depends-on): Add arg-nonnull.
4519         (Makefile.am): Insert arg-nonnull.h into unistd.h.
4520         * modules/wchar (Depends-on): Add arg-nonnull.
4521         (Makefile.am): Insert arg-nonnull.h into wchar.h.
4522         * modules/argv-iter (Depends-on): Add arg-nonnull.
4523         * tests/test-canonicalize.c (null_ptr): New function.
4524         (main): Use it.
4525         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
4526         (main): Use it.
4527         * tests/test-memmem.c (null_ptr): New function.
4528         (main): Use it.
4529         Reported by Jim Meyering.
4530
4531 2009-12-10  Bruno Haible  <bruno@clisp.org>
4532
4533         Use spaces for indentation, not tabs.
4534         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4535         * m4/*.m4: Untabify.
4536         * build-aux/*.h: Untabify.
4537         * tests/**/*.[hc]: Untabify.
4538         * README: New section "Indent with spaces, not TABs", based on
4539         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
4540         * NEWS: Mention the change.
4541
4542 2009-12-10  Bruno Haible  <bruno@clisp.org>
4543
4544         pty test: Fix link error.
4545         * modules/pty-tests (Makefile.am): Add the default LDADD value to
4546         test_pty_LDADD.
4547
4548 2009-12-07  Simon Josefsson  <simon@josefsson.org>
4549
4550         * modules/pty: New file.
4551         * modules/pty-tests: New file.
4552         * m4/pty.m4: New file.
4553         * tests/test-pty.c: New file.
4554         * doc/glibc-headers/pty.texi: Modified.
4555         * doc/glibc-functions/forkpty.texi: Modified.
4556         * doc/glibc-functions/openpty.texi: Modified.
4557
4558 2009-12-10  Bruno Haible  <bruno@clisp.org>
4559
4560         Avoid syntax error in C++ mode.
4561         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
4562
4563 2009-12-10  Bruno Haible  <bruno@clisp.org>
4564
4565         Use sed with option -e.
4566         * gnulib-tool (func_version, func_emit_copyright_notice,
4567         func_emit_initmacro_end, func_import, func_create_testdir): Pass
4568         option -e to sed.
4569         * modules/link-warning (Makefile.am): Likewise.
4570
4571 2009-12-10  Jim Meyering  <meyering@redhat.com>
4572
4573         mgetgroups: do not write bytes beyond end of malloc'd buffer
4574         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
4575         username, we call getgroups with a one-element-shorter buffer,
4576         but still told it the length was original, max_n_groups.
4577
4578 2009-12-09  Eric Blake  <ebb9@byu.net>
4579
4580         cloexec: relax license
4581         * modules/cloexec (Maintainer): Add myself.
4582         (License): Use LGPL, not GPL.
4583
4584         link-warning: optimize generation
4585         * modules/link-warning (Makefile.am): Reduce process usage.
4586
4587 2009-12-09  Bruno Haible  <bruno@clisp.org>
4588
4589         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
4590         workaround was added on 2009-11-17.
4591
4592 2009-12-09  Jim Meyering  <meyering@redhat.com>
4593             Bruno Haible  <bruno@clisp.org>
4594
4595         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
4596         * modules/link-warning (Makefile.am): Make the comment-removing sed
4597         command more robust in the face of bootstrap-prepended comment lines.
4598
4599 2009-12-09  Bruno Haible  <bruno@clisp.org>
4600
4601         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
4602         most one group.
4603
4604 2009-12-09  Simon Josefsson <simon@josefsson.org>
4605             Bruno Haible  <bruno@clisp.org>
4606
4607         * build-aux/link-warning.h: Add copyright notice.
4608         * modules/link-warning (Makefile.am): Generate link-warning.h from
4609         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
4610         * NEWS: Mention change in link-warning module.
4611         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
4612         * modules/dirent (Makefile.am): Add dependency to dirent.h.
4613         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
4614         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
4615         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
4616         * modules/math (Makefile.am): Add dependency to math.h.
4617         * modules/search (Makefile.am): Add dependency to search.h.
4618         * modules/signal (Makefile.am): Add dependency to signal.h.
4619         * modules/spawn (Makefile.am): Add dependency to spawn.h.
4620         * modules/stdio (Makefile.am): Add dependency to stdio.h.
4621         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
4622         * modules/string (Makefile.am): Add dependency to string.h.
4623         * modules/strings (Makefile.am): Add dependency to strings.h.
4624         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
4625         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
4626         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
4627         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
4628         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
4629         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
4630         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
4631         * modules/unistd (Makefile.am): Add dependency to unistd.h.
4632         * modules/wchar (Makefile.am): Add dependency to wchar.h.
4633
4634 2009-12-09  Bruno Haible  <bruno@clisp.org>
4635
4636         fchdir: Optimize away rpl_fstat when possible.
4637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
4638         REPLACE_OPEN_DIRECTORY.
4639         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
4640
4641 2009-12-09  Bruno Haible  <bruno@clisp.org>
4642
4643         * lib/fchdir.c: Update comment.
4644
4645 2009-12-09  Bruno Haible  <bruno@clisp.org>
4646
4647         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
4648
4649 2009-12-08  Eric Blake  <ebb9@byu.net>
4650
4651         fchdir: avoid memory leak on re-registration.
4652         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
4653
4654 2009-12-08  Jim Meyering  <meyering@redhat.com>
4655
4656         init.sh: avoid Solaris 10 /bin/sh portability problem
4657         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
4658         sourced script:
4659           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
4660           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
4661           bar
4662         tests/init.sh relied on that, accepting a --set-path=DIR argument,
4663         and two tests used that idiom.
4664         * tests/init.sh: Update suggested usage comments.
4665         (path_prepend_): New function, to be used in place
4666         of the --src-path=DIR option.
4667         (setup_): Move PATH-prepending code into path_prepend_.
4668         * tests/test-pread.sh: Adapt to new usage.
4669         * tests/test-xalloc-die.sh: Likewise.
4670
4671 2009-12-08  Simon Josefsson  <simon@josefsson.org>
4672
4673         * doc/gnulib.texi (Glibc pty.h): Add.
4674         * doc/glibc-functions/forkpty.texi: Add.
4675         * doc/glibc-functions/openpty.texi: Add.
4676         Suggested by Bruno Haible.
4677
4678 2009-12-08  Eric Blake  <ebb9@byu.net>
4679
4680         fchdir: fix logic bugs
4681         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
4682         * tests/test-fchdir.c (main): Enhance test.
4683         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
4684         is in use.
4685
4686         dup2: fix logic bugs
4687         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
4688         REPLACE_DUP2 to decide when rpl_dup2 is needed.
4689         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
4690         exists.
4691         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
4692
4693 2009-12-07  Eric Blake  <ebb9@byu.net>
4694
4695         unlink: fix m4 detection
4696         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
4697
4698         unistd-safer: add unit test
4699         * modules/unistd-safer-tests: New file.
4700         * tests/test-dup-safer.c: Likewise.
4701         * tests/test-cloexec.c (setmode): Avoid compiler warning.
4702         * tests/test-dup2.c (setmode): Likewise.
4703         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
4704
4705         cloexec: preserve text vs. binary across dup_cloexec
4706         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
4707         mode.
4708         * modules/dup2-tests (Depends-on): Add binary-io.
4709         * modules/cloexec-tests (Depends-on): Likewise.
4710         * tests/test-dup2.c (setmode, is_mode): New helpers.
4711         (main): Add tests that translation mode is preserved.
4712         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
4713         Reported by Bruno Haible.
4714
4715         mgetgroups: reduce duplicate listings
4716         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
4717         resulting array.
4718         * tests/test-chown.h (test_chown): Simplify client.
4719         * tests/test-lchown.h (test_lchown): Likewise.
4720
4721 2009-12-06  Bruno Haible  <bruno@clisp.org>
4722
4723         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
4724         value.
4725
4726 2009-12-06  Bruno Haible  <bruno@clisp.org>
4727
4728         * lib/progname.c: Include stdio.h, stdlib.h.
4729         (set_program_name): Reject a NULL argument.
4730
4731 2009-12-05  Eric Blake  <ebb9@byu.net>
4732
4733         pipe2-safer: new module
4734         * modules/pipe2-safer: New file.
4735         * lib/unistd-safer.h (pipe2_safer): New prototype.
4736         * lib/unistd--.h (pipe2): New wrapper.
4737         * lib/pipe-safer.c (pipe2_safer): New function.
4738         * modules/pipe (Depends-on): Add pipe2-safer.
4739         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
4740
4741         stdlib-safer: preserve cloexec flag for mkostemp[s]
4742         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
4743         fd_safer_flag.
4744
4745         unistd-safer: allow preservation of cloexec status via flag
4746         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
4747         prototypes.
4748         * lib/dup-safer.c (dup_safer_flag): New function.
4749         * lib/fd-safer.c (fd_safer_flag): Likewise.
4750         * modules/cloexec (configure.ac): Set witness.
4751
4752         test-dup2: enhance test
4753         * modules/dup2-tests (Depends-on): Add cloexec.
4754         * tests/test-dup2.c (main): Enhance test.
4755
4756         cloexec: add dup_cloexec
4757         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
4758         header and comments.
4759         * lib/cloexec.c (set_cloexec_flag): Add comments.
4760         (dup_cloexec): New function, with mingw implementation borrowed
4761         from...
4762         * lib/w32spawn.h (dup_noinherit): ...here.
4763         * modules/execute (Depends-on): Add cloexec.
4764         * modules/pipe (Depends-on): Likewise.
4765         * modules/cloexec (Depends-on): Add dup2.
4766         * modules/cloexec-tests (Files): New file.
4767         * tests/test-cloexec.c: Likewise.
4768
4769         test-xalloc-die: fix test for mingw
4770         * modules/xalloc-die-tests (Files): Add tests/init.sh.
4771         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
4772         directory and .exe suffix off argv[0] output.
4773
4774         test-fseeko: fix test for mingw
4775         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
4776         than undefining fseek, so test will pass on mingw.
4777
4778 2009-12-05  Bruno Haible  <bruno@clisp.org>
4779
4780         * lib/progname.h (set_program_name): Clarify specification.
4781         * lib/progname.c (set_program_name): Likewise.
4782         Reported by Jim Meyering.
4783
4784 2009-12-05  Jim Meyering  <meyering@redhat.com>
4785
4786         maint.mk: backslash-escape parens in default regexp
4787         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
4788         backslash-escape the literal parentheses.
4789
4790         maint.mk: news-date-check: use grep -E
4791         * top/maint.mk (today): Define a Make variable, not a...
4792         (news-date-check): ...shell variable.
4793         (news-date-regexp): Use the Make variable.
4794         Use grep's -E option.  Change the failing diagnostic to mention
4795         the variable, $(news-date-regexp).
4796
4797 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
4798
4799         maintainer-makefile: allow customization of NEWS entry format
4800         * top/maint.mk (news-date-regexp): New overridable variable.
4801         (news-date-check): Use it.
4802
4803 2009-12-04  Eric Blake  <ebb9@byu.net>
4804
4805         mgetgroups: add xgetgroups, and avoid ENOSYS failures
4806         * lib/mgetgroups.h (xgetgroups): New prototype.
4807         * lib/mgetgroups.c (xgetgroups): New wrapper.
4808         (mgetgroups): Handle ENOSYS.
4809         * modules/mgetgroups (Depends-on): Add realloc.
4810         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
4811
4812         mgetgroups: avoid argument promotion issues with -1
4813         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
4814         for invalid gid_t.
4815         * tests/test-chown.h (getegid, test_chown): Likewise.
4816         * tests/test-lchown.h (getegid, test_lchown): Likewise.
4817
4818 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
4819
4820         exclude: Fix header file problems.
4821         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
4822
4823 2009-12-01  Jim Meyering  <meyering@redhat.com>
4824
4825         fts: fts_open: do not let an empty string cause immediate failure
4826         This is required in support of GNU rm, for which the command
4827         "rm A '' B" must process and remove both A and B, in spite of
4828         the empty string argument.
4829         * lib/fts.c (fts_open): Do not let the presence of an empty string
4830         cause fts_open to fail immediately.  Most fts-using tools must be
4831         able to process all arguments, in order, and can be expected to
4832         diagnose such arguments themselves.
4833
4834 2009-11-30  Eric Blake  <ebb9@byu.net>
4835
4836         utimens: fix compilation error
4837         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
4838         Declare variable at right scope.
4839
4840 2009-11-29  Jim Meyering  <meyering@redhat.com>
4841
4842         bootstrap: handle perl-5.11's changed --version output
4843         * build-aux/bootstrap (get_version): Handle perl separately,
4844         since perl-5.11's --version output is different.
4845
4846 2009-11-28  Jim Meyering  <meyering@redhat.com>
4847
4848         userspec: depend on the inttostr module, too
4849         * modules/userspec (Depends-on): Add inttostr.
4850
4851         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
4852         * lib/userspec.c (parse_with_separator): Do not accept a user ID
4853         number of MAXUID when it evaluates to (uid_t) -1.
4854         Likewise for group ID.  Reported by Matt McCutchen in
4855         <http://savannah.gnu.org/bugs/?28113>
4856
4857         userspec: reformat to use spaces, not TABs
4858         * lib/userspec.c: Expand TABs to spaces.
4859         Add Emacs' "indent-tabs-mode: nil" hint.
4860
4861 2009-11-27  Eric Blake  <ebb9@byu.net>
4862
4863         getopt-gnu: flush out another BSD bug
4864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
4865         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
4866         flush out BSD bug.
4867         * tests/test-getopt.h (test_getopt): End lists with NULL.
4868         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4869         (test_getopt_long_posix): Enhance test.
4870         * modules/getopt-posix-tests (Depends-on): Add stdbool.
4871         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
4872         getopt-gnu.
4873         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4874         Likewise.
4875
4876 2009-11-27  Simon Josefsson  <simon@josefsson.org>
4877
4878         * modules/idpriv-droptemp-tests (Notice): Fix text.
4879
4880 2009-11-27  Jim Meyering  <meyering@redhat.com>
4881
4882         test-xalloc-die: avoid spurious failure due to libtool argv difference
4883         In a libtool-enabled project, this test would fail due to a difference
4884         in the emitted program name, e.g.,
4885         -test-xalloc-die: memory exhausted
4886         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
4887         Use program to avoid that.
4888         * modules/xalloc-die-tests (Depends-on): Add progname.
4889         * tests/test-xalloc-die.c: Include progname.h".
4890         (program_name): Remove decl.
4891         (main): Call set_program_name.
4892         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
4893
4894 2009-11-26  Richard Jones  <rjones@redhat.com>
4895
4896         w32sock: leave win32 error in place.
4897         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
4898
4899 2009-11-26  Eric Blake  <ebb9@byu.net>
4900
4901         init.sh: suggest to use skip_ and fail_ functions in comments
4902         * tests/init.sh: Add a sentence.
4903
4904 2009-11-25  Bruno Haible  <bruno@clisp.org>
4905
4906         init.sh: add documentation in comments
4907         * tests/init.sh: Add some developer and user documentation.
4908
4909 2009-11-26  Jim Meyering  <meyering@redhat.com>
4910
4911         init.sh: accommodate even those who specify bogus srcdir manually
4912         * tests/init.sh: Normally, srcdir is guaranteed by automake and
4913         configure-time tests to be sanitized, so that there is no need to
4914         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
4915         (with no double quotes) suffices.  However, since tests may be
4916         invoked manually, and since you may explicitly set srcdir to the
4917         name of a directory containing spaces, do quote its uses here.
4918         * tests/test-pread.sh: Likewise.
4919         Suggested by Bruno Haible.
4920
4921         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
4922         * tests/test-pread.sh: Write no data into the pipe, because
4923         test-pread actually reads none.  This avoids a diagnostic,
4924         "bash: echo: write error: Broken pipe", that arises in the unusual
4925         event something is ignoring SIGPIPE, and might be interpreted
4926         as some sort of failure.  Reported by Bruno Haible.
4927
4928 2009-11-25  Jim Meyering  <meyering@redhat.com>
4929
4930         test-pread: cover failure with ESPIPE and EINVAL
4931         * tests/test-pread.c (main): Test for failure, too.
4932         * tests/test-pread.sh: Invoke with stdin on a pipe.
4933         Suggested by Eric Blake.
4934
4935         pread: improvement and fix
4936         * modules/pread (Depends-on): Depend on lseek, for portability to
4937         e.g., mingw.  Suggested by Eric Blake.
4938         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
4939
4940         unistd.in.h: correct declaration of pread
4941         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
4942         Reported by Richard W.M. Jones.
4943
4944         test-pread.sh: distribute the test script
4945         * modules/pread-tests (Files): Include test-pread.sh.
4946
4947         test-pread.sh: clean up
4948         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
4949         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
4950         That is unnecessary, since it's always ".".
4951         Suggestion from Eric Blake.
4952
4953         test-pread.sh: make executable
4954         * tests/test-pread.sh: Set executable bit.
4955         Reported by Eric Blake.
4956
4957         correct typo in test-pread.sh
4958         * tests/test-pread.sh: Add #! line.
4959
4960         test pread
4961         * tests/test-pread.c: New file.
4962         * tests/test-pread.sh: Likewise.
4963         * modules/pread-tests: Likewise.
4964
4965         pread: new module
4966         * modules/pread: New file.
4967         * lib/unistd.in.h (pread): Define/declare.
4968         * lib/pread.c (pread): New file.
4969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
4970         * modules/unistd (Makefile.am): Substitute witnesses.
4971         * doc/posix-functions/pread.texi (pread): Update.
4972         * MODULES.html.sh: Add pread.
4973
4974 2009-11-25  Jim Meyering  <meyering@redhat.com>
4975
4976         tests/init.sh: new file to be used via most *.sh tests
4977         * tests/init.sh: New file.
4978
4979 2009-11-25  Eric Blake  <ebb9@byu.net>
4980
4981         utimens: work around older Linux failure with symlinks
4982         * lib/utimens.c (lutimensat_works_really): New variable.
4983         (fdutimens, lutimens): Use it to manage kernels that support
4984         nanosecond times on files, but not on symlinks.
4985         Reported by OndÅ™ej Vašík.
4986
4987         utimes: fix configure grammar
4988         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
4989
4990 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
4991
4992         regex: Fix fastmap for multibyte character ranges.
4993         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
4994         characters when a multibyte character range is included.
4995
4996 2009-11-22  Andy Wingo  <wingo@pobox.com>
4997
4998         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
4999         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
5000
5001 2009-11-24  Bruno Haible  <bruno@clisp.org>
5002
5003         doc: Most *_l functions exist in MacOS X 10.5.
5004         * doc/posix-functions/duplocale.texi: Update platforms list.
5005         * doc/posix-functions/freelocale.texi: Likewise.
5006         * doc/posix-functions/newlocale.texi: Likewise.
5007         * doc/posix-functions/uselocale.texi: Likewise.
5008         * doc/posix-functions/isalnum_l.texi: Likewise.
5009         * doc/posix-functions/isalpha_l.texi: Likewise.
5010         * doc/posix-functions/isblank_l.texi: Likewise.
5011         * doc/posix-functions/iscntrl_l.texi: Likewise.
5012         * doc/posix-functions/isdigit_l.texi: Likewise.
5013         * doc/posix-functions/isgraph_l.texi: Likewise.
5014         * doc/posix-functions/islower_l.texi: Likewise.
5015         * doc/posix-functions/isprint_l.texi: Likewise.
5016         * doc/posix-functions/ispunct_l.texi: Likewise.
5017         * doc/posix-functions/isspace_l.texi: Likewise.
5018         * doc/posix-functions/isupper_l.texi: Likewise.
5019         * doc/posix-functions/iswalnum_l.texi: Likewise.
5020         * doc/posix-functions/iswalpha_l.texi: Likewise.
5021         * doc/posix-functions/iswblank_l.texi: Likewise.
5022         * doc/posix-functions/iswcntrl_l.texi: Likewise.
5023         * doc/posix-functions/iswctype_l.texi: Likewise.
5024         * doc/posix-functions/iswdigit_l.texi: Likewise.
5025         * doc/posix-functions/iswgraph_l.texi: Likewise.
5026         * doc/posix-functions/iswlower_l.texi: Likewise.
5027         * doc/posix-functions/iswprint_l.texi: Likewise.
5028         * doc/posix-functions/iswpunct_l.texi: Likewise.
5029         * doc/posix-functions/iswspace_l.texi: Likewise.
5030         * doc/posix-functions/iswupper_l.texi: Likewise.
5031         * doc/posix-functions/iswxdigit_l.texi: Likewise.
5032         * doc/posix-functions/isxdigit_l.texi: Likewise.
5033         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
5034         * doc/posix-functions/strcasecmp_l.texi: Likewise.
5035         * doc/posix-functions/strcoll_l.texi: Likewise.
5036         * doc/posix-functions/strfmon_l.texi: Likewise.
5037         * doc/posix-functions/strftime_l.texi: Likewise.
5038         * doc/posix-functions/strncasecmp_l.texi: Likewise.
5039         * doc/posix-functions/strxfrm_l.texi: Likewise.
5040         * doc/posix-functions/tolower_l.texi: Likewise.
5041         * doc/posix-functions/toupper_l.texi: Likewise.
5042         * doc/posix-functions/towctrans_l.texi: Likewise.
5043         * doc/posix-functions/towlower_l.texi: Likewise.
5044         * doc/posix-functions/towupper_l.texi: Likewise.
5045         * doc/posix-functions/wcscoll_l.texi: Likewise.
5046         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5047         * doc/posix-functions/wctrans_l.texi: Likewise.
5048         * doc/posix-functions/wctype_l.texi: Likewise.
5049         * doc/glibc-functions/strptime_l.texi: Likewise.
5050         * doc/glibc-functions/strtod_l.texi: Likewise.
5051         * doc/glibc-functions/strtof_l.texi: Likewise.
5052         * doc/glibc-functions/strtol_l.texi: Likewise.
5053         * doc/glibc-functions/strtold_l.texi: Likewise.
5054         * doc/glibc-functions/strtoll_l.texi: Likewise.
5055         * doc/glibc-functions/strtoul_l.texi: Likewise.
5056         * doc/glibc-functions/strtoull_l.texi: Likewise.
5057         * doc/glibc-functions/wcsftime_l.texi: Likewise.
5058         * doc/glibc-functions/wcstod_l.texi: Likewise.
5059         * doc/glibc-functions/wcstof_l.texi: Likewise.
5060         * doc/glibc-functions/wcstol_l.texi: Likewise.
5061         * doc/glibc-functions/wcstold_l.texi: Likewise.
5062         * doc/glibc-functions/wcstoll_l.texi: Likewise.
5063         * doc/glibc-functions/wcstoul_l.texi: Likewise.
5064         * doc/glibc-functions/wcstoull_l.texi: Likewise.
5065
5066 2009-11-24  Bruno Haible  <bruno@clisp.org>
5067
5068         duplocale: Fix logic bug.
5069         * lib/duplocale.c: Don't include <langinfo.h>.
5070         (_NL_LOCALE_NAME): Remove macro.
5071         (rpl_duplocale): Use setlocale instead of nl_langinfo.
5072         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
5073
5074 2009-11-23  Jim Meyering  <meyering@redhat.com>
5075
5076         test-update-copyright: don't hard-code /usr/bin/perl
5077         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
5078         perl to print the current year.  Gilles Espinasse reported that
5079         the replaced use of perl was hard-coded as /usr/bin/perl.
5080
5081 2009-11-23  Bruno Haible  <bruno@clisp.org>
5082
5083         duplocale: Add support for glibc 2.3.x.
5084         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
5085
5086 2009-11-22  Bruno Haible  <bruno@clisp.org>
5087
5088         vasnprintf: Tiny optimization.
5089         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
5090         MacOS X.
5091
5092 2009-11-22  Bruno Haible  <bruno@clisp.org>
5093
5094         Tests for module 'duplocale'.
5095         * modules/duplocale-tests: New file.
5096         * tests/test-duplocale.c: New file.
5097
5098         New module 'duplocale'.
5099         * m4/duplocale.m4: New file.
5100         * lib/locale.in.h (duplocale): New declaration.
5101         * lib/duplocale.c: New file.
5102         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
5103         gl_LOCALE_H_DEFAULTS): New macros.
5104         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
5105         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
5106         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
5107         REPLACE_DUPLOCALE.
5108         * modules/duplocale: New file.
5109         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
5110
5111 2009-11-22  Bruno Haible  <bruno@clisp.org>
5112
5113         * modules/locale-tests (configure.ac): Test for newlocale function.
5114         * tests/test-locale.c: When the system has extended locale functions,
5115         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
5116
5117         locale: Make locale_t available when possible.
5118         * lib/locale.in.h: Include <xlocale.h> when it exists.
5119         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
5120         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
5121         * modules/locale (Depends-on): Add extensions.
5122         (Makefile.am): Also substitute HAVE_XLOCALE_H.
5123         * doc/posix-headers/locale.texi: Document the problem with locale_t.
5124
5125 2009-11-22  Bruno Haible  <bruno@clisp.org>
5126
5127         Add comments.
5128         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
5129         invocation.
5130         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
5131         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5132         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5133
5134 2009-11-22  Bruno Haible  <bruno@clisp.org>
5135
5136         error: account for the possibility of freopen (stdout).
5137         * lib/error.c: Include <unistd.h>.
5138         (flush_stdout): New function, extracted from error and error_at_line.
5139         Determine stdout's fd dynamically.
5140         (error, error_at_line): Invoke flush_stdout.
5141         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
5142         * modules/error (Depends-on): Add unistd.
5143
5144 2009-11-22  Bruno Haible  <bruno@clisp.org>
5145
5146         diffseq: Add comment.
5147         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
5148
5149 2009-11-22  Jim Meyering  <meyering@redhat.com>
5150
5151         c-stack: avoid defining an unused static function
5152         * lib/c-stack.c (find_stack_direction): Do not define this function
5153         when it will not be used.
5154
5155         diffseq: avoid spurious gcc warnings
5156         * lib/diffseq.h (IF_LINT2): Define.
5157         (compareseq): Use it to initialize two members of "part".
5158         This avoids two used-uninitialized warnings.
5159
5160 2009-11-21  Jim Meyering  <meyering@redhat.com>
5161
5162         c-stack: avoid "ignoring return value of `write'" warning
5163         * lib/c-stack.c: Include "ignore-value.h".
5164         (die): Explicitly ignore each write return value.
5165         * modules/c-stack (Depends-on): Add ignore-value.
5166
5167 2009-11-21  Bruno Haible  <bruno@clisp.org>
5168
5169         diffseq: reduce scope of variable 'best'.
5170         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
5171         variable, earlier used for two different purposes.
5172
5173 2009-11-21  Jim Meyering  <meyering@redhat.com>
5174
5175         diffseq: remove useless assignment to "best"
5176         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
5177         assignment.  At that point "best" is already guaranteed to be zero.
5178
5179 2009-11-20  Eric Blake  <ebb9@byu.net>
5180
5181         build: mention ftp redirector in release announcements
5182         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
5183         values that used to come from cfg.mk; mention FTP redirect URL.
5184         * build-aux/announce-gen: Mention the mirror list.
5185         Suggested by Karl Berry.
5186
5187         nanosleep: improve port to mingw
5188         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
5189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
5190         LIB_NANOSLEEP, but only when needed.
5191         * modules/select (Link): Document LIBSOCKET.
5192         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
5193         enough.
5194
5195         nanosleep: work around cygwin bug
5196         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
5197         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
5198         bug.
5199         (getnow): Delete, not needed.
5200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
5201         LIB_CLOCK_GETTIME.
5202         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
5203         clock-time, gettime.
5204         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
5205         bug.
5206         * modules/nanosleep-tests: New test.
5207         * tests/test-nanosleep.c: New file.
5208
5209         sleep: work around cygwin bug
5210         * lib/sleep.c (rpl_sleep): Work around the bug.
5211         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
5212         (gl_PREREQ_SLEEP): Delete unused macro.
5213         * modules/sleep (Depends-on): Add verify.
5214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
5215         * modules/unistd (Makefile.am): Substitute witness.
5216         * lib/unistd.in.h (sleep): Update prototype.
5217         * doc/posix-functions/sleep.texi (sleep): Document the bug.
5218         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
5219         * modules/sleep-tests (Depends-on): Check for alarm.
5220
5221 2009-11-20  Jim Meyering  <meyering@redhat.com>
5222
5223         maint.mk: improve sc_prohibit_magic_number_exit
5224         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
5225         so it does not match uses like System.exit(1).
5226         Add comments showing how to correct all offenders.
5227
5228 2009-11-19  Eric Blake  <ebb9@byu.net>
5229
5230         xalloc-die-tests: add missing library
5231         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
5232
5233         test-xvasprintf: silence compiler warnings
5234         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
5235         empty string from gcc.
5236
5237 2009-11-19  Jim Meyering  <meyering@redhat.com>
5238
5239         xfreopen: new module, from coreutils
5240         * modules/xfreopen: New module.
5241         * lib/xfreopen.c: New file.
5242         * lib/xfreopen.h: New file.
5243         * MODULES.html.sh (File stream based Input/Output"): Add it.
5244
5245 2009-11-19  Eric Blake  <ebb9@byu.net>
5246
5247         manywarnings: depend on warnings
5248         * modules/manywarnings (Depends-on): Add warnings.
5249
5250         build: avoid compiler warnings
5251         * lib/select.c (rpl_select): Delete unused variable.
5252         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
5253
5254 2009-11-18  Eric Blake  <ebb9@byu.net>
5255
5256         tests: avoid false negative with --with-packager
5257         * tests/test-version-etc.sh: Discard packager information.
5258         * tests/test-argp-version-etc-1.sh: Likewise.
5259         Reported by Mike Frysinger.
5260
5261         utimens: fix regression on Solaris
5262         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
5263         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
5264         can only change fd timestamps via futimesat.  Instead, use an
5265         additional witness macro to avoid BSD bug.
5266         Reported by Jim Meyering.
5267
5268 2009-11-17  Eric Blake  <ebb9@byu.net>
5269
5270         usleep: use it to simplify tests
5271         * modules/stat-time-tests (Depends-on): Add usleep.
5272         (configure.ac): Drop usleep check.
5273         * modules/chown-tests (Depends-on, configure.ac): Likewise.
5274         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
5275         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
5276         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
5277         * modules/openat-tests (Depends-on, configure.ac): Likewise.
5278         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
5279         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
5280         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
5281         Likewise.
5282         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
5283         * tests/test-lchown.h (nap): Likewise.
5284         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
5285         * tests/test-stat-time.c (nap): Likewise.
5286         * tests/test-utimens-common.h (nap): Update comments.
5287
5288         usleep: new module
5289         * modules/usleep: New file.
5290         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
5291         * lib/usleep.c (usleep): Likewise.
5292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
5293         * modules/unistd (Makefile.am): Substitute witnesses.
5294         * lib/unistd.in.h (usleep): Add declaration.
5295         * doc/pastposix-functions/usleep.texi (usleep): Document this.
5296         * MODULES.html.sh (Date and time): Likewise.
5297         * modules/usleep-tests (Depends-on): New test.
5298         * tests/test-usleep.c: New file.
5299
5300         chown: work around OpenBSD bug
5301         * lib/chown.c (rpl_chown): Work around the bug.
5302         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
5303         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
5304         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
5305         * modules/chown (Depends-on): Add stdbool.
5306         * modules/lchown (Depends-on): Likewise.
5307         * doc/posix-functions/chown.texi (chown): Document the bug.
5308         * doc/posix-functions/lchown.texi (lchown): Likewise.
5309         * tests/test-lchown.h (test_chown): Relax test.
5310
5311         mkstemp: avoid conflict with C++ keyword template
5312         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
5313         * lib/mkostemp.c (mkostemp): Likewise.
5314         * lib/mkostemps.c (mkostemps): Likewise.
5315         * lib/mkstemp.c (mkstemp): Likewise.
5316         * lib/mkstemps.c (mkstemps): Likewise.
5317
5318         xalloc-die-tests: optimize
5319         * tests/test-xalloc-die.sh: Reduce number of processes.
5320
5321 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5322
5323         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
5324         patch from ludo@gnu.org (Ludovic Courtès).
5325
5326 2009-11-17  Jim Meyering  <meyering@redhat.com>
5327
5328         version-etc: use proper license string
5329         * modules/version-etc (License): Use LGPL, not LGPLv3+.
5330         * modules/version-etc-fsf: Likewise.
5331
5332 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5333
5334         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
5335         printed to stdout.  Deal with EOL differences.
5336
5337 2009-11-17  Eric Blake  <ebb9@byu.net>
5338
5339         unsetenv: work around Solaris bug
5340         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
5341         * lib/unsetenv.c (rpl_unsetenv): Work around it.
5342         Reported by Jim Meyering.
5343
5344         vasnprintf: avoid compiler warnings
5345         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
5346         variables.
5347         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
5348
5349 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5350
5351         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
5352         settings since xalloc-die is no longer the self test,
5353         xalloc-die.sh is.
5354
5355 2009-11-17  Jim Meyering  <meyering@redhat.com>
5356
5357         test-xalloc-die.sh: make the code agree with the commit log
5358         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
5359         at the end, just in case you happen to have a test-xalloc-die
5360         program in some other PATH directory.
5361
5362         test-xalloc-die.sh: fix a portability bug
5363         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
5364         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
5365         Otherwise, argv[0] (as often seen in diagnostics) would be too
5366         system-dependent, sometimes with, and sometimes without the leading "./".
5367
5368         version-etc-fsf: relax license to LGPLv3+
5369         * modules/version-etc-fsf (License): Relax license.
5370
5371 2009-11-16  Eric Blake  <ebb9@byu.net>
5372
5373         xalloc-die-tests: avoid printing null pointer
5374         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
5375         shell script.
5376         * tests/test-xalloc-die.c (program_name): Declare.
5377         * tests/test-xalloc-die.sh (tmpfiles): New file.
5378
5379         setenv, unsetenv: work around various bugs
5380         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
5381         (setenv) [HAVE_SETENV]: Work around bugs.
5382         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
5383         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
5384         for bugs.
5385         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
5386         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
5387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
5388         * modules/stdlib (Makefile.am): Update substitutions.
5389         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
5390         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
5391         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5392         * modules/setenv-tests: New test.
5393         * modules/unsetenv-tests: Likewise.
5394         * tests/test-setenv.c: New file.
5395         * tests/test-unsetenv.c: Likewise.
5396
5397 2009-11-16  Jim Meyering  <meyering@redhat.com>
5398
5399         version-etc: relax license to LGPLv3+
5400         * modules/version-etc (License): Relax license.
5401
5402         better AC_REQUIRE expanded-before-required-warning avoidance
5403         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
5404         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
5405         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
5406         which is no longer needed.
5407
5408 2009-11-16  Eric Blake  <ebb9@byu.net>
5409
5410         test-freading: clean up temporary file
5411         * tests/test-freading.c (main): Remove file on success, and use
5412         ASSERT more liberally.
5413         Reported by Jim Meyering.
5414
5415 2009-11-16  Jim Meyering  <meyering@redhat.com>
5416
5417         avoid new AC_REQUIRE expanded-before-required warnings
5418         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
5419         merely using it.
5420         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
5421         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
5422
5423 2009-11-15  Simon Josefsson  <simon@josefsson.org>
5424
5425         * tests/test-xalloc-die.c: New file.
5426         * modules/xalloc-die-tests: New file.
5427         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
5428         XFAIL_TESTS so it can be appended by modules.
5429
5430 2009-11-15  Simon Josefsson  <simon@josefsson.org>
5431
5432         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
5433         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
5434
5435 2009-11-14  Eric Blake  <ebb9@byu.net>
5436
5437         fnmatch: avoid compiler warning
5438         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
5439         to silence compiler warning about mismatch signedness in ?:.
5440         Reported by Robert Millan.
5441
5442         intprops: add double-inclusion guard
5443         * lib/intprops.h: Allow idempotent includes.
5444         Suggested by Bruce Korb.
5445
5446         openat: detect Solaris fchownat bug
5447         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
5448         penalizing glibc chownat when only lchownat is broken.
5449         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
5450         trailing slash bugs.
5451         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
5452         * modules/openat-tests (Files): Include more files.
5453         (Depends-on): Add mgetgroups, sleep, stat-time.
5454         (configure.ac): Add additional checks.
5455         (Makefile.am): Build new test.
5456         * tests/test-fchownat.c: New file.
5457
5458         lchown: detect Solaris and FreeBSD bug
5459         * lib/lchown.c (rpl_lchown): Work around bug.
5460         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
5461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5462         * modules/unistd (Makefile.am): Populate it.
5463         * lib/unistd.in.h (lchown): Update declaration.
5464         * doc/posix-functions/lchown.texi (lchown): Document the bug.
5465         * modules/lchown-tests: New file.
5466         * tests/test-lchown.h (test_lchown): Likewise.
5467         * tests/test-lchown.c (main): Likewise.
5468
5469         chown: detect Solaris and FreeBSD bug
5470         * lib/chown.c (rpl_chown): Work around bug.
5471         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
5472         (gl_PREREQ_CHOWN): Delete.
5473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5474         * modules/unistd (Makefile.am): Populate it.
5475         * lib/unistd.in.h (chown): Update declaration.
5476         * lib/lchown.c (chown): Update client.
5477         * modules/lchown (Depends-on): Add lstat.
5478         * doc/posix-functions/chown.texi (chown): Document the bug.
5479         * doc/posix-functions/getgroups.texi (getgroups): Document
5480         getgroups pitfall.
5481         * modules/chown-tests: New file.
5482         * tests/test-chown.h (test_chown): Likewise.
5483         * tests/test-chown.c (main): Likewise.
5484
5485 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
5486
5487         gnulib-tool: correctly detect absence of m4 directories
5488         * gnulib-tool: Avoid extra newline on data passed to wc -l.
5489
5490 2009-11-14  Jim Meyering  <meyering@redhat.com>
5491
5492         maint.mk: Prohibit inclusion of "xalloc.h" without use.
5493         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
5494
5495 2009-11-14  John W. Eaton  <jwe@gnu.org>
5496
5497         strftime.h: wrap funtion declaration in extern "C" block
5498         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
5499
5500 2009-11-13  Eric Blake  <ebb9@byu.net>
5501
5502         getgroups: avoid compiler warning
5503         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
5504
5505         getgroups: work around FreeBSD bug
5506         * lib/getgroups.c (rpl_getgroups): Work around the bug.
5507         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
5508         * doc/posix-functions/getgroups.texi (getgroups): Document it.
5509         * tests/test-getgroups.c (main): Fix buffer overrun.
5510
5511         getgroups: avoid compilation failure
5512         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
5513         * modules/getgroups (Depends-on): Add stdint.
5514
5515 2009-11-13  Jim Meyering  <meyering@redhat.com>
5516
5517         test-getgroups: avoid compilation failure
5518         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
5519
5520 2009-11-13  Eric Blake  <ebb9@byu.net>
5521
5522         mgetgroups: new module, taken from coreutils
5523         * modules/mgetgroups: New file.
5524         * lib/mgetgroups.h: Likewise.
5525         * lib/mgetgroups.c (mgetgroups): Likewise.
5526         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
5527         * MODULES.html.sh (Users and groups): Mention it.
5528
5529         getgroups: don't expose GETGROUPS_T to user
5530         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
5531         an element at a time if GETGROUPS_T is wrong size.
5532         * lib/getugroups.h (getugroups): Change signature.
5533         * lib/unistd.in.h (getgroups): Likewise.
5534         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
5535         signature needs fixing.
5536         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
5537         AC_TYPE_GETGROUPS.
5538         * modules/group-member (Depends-on): Add getgroups.
5539         * lib/group-member.c (group_info, get_group_info): Use gid_t.
5540         (group_member): Rely on getgroups replacement.
5541         * lib/getugroups.c (getugroups): Use gid_t.
5542         * tests/test-getgroups.c (main): Likewise.
5543         * NEWS: Mention the signature change.
5544         * doc/posix-functions/getgroups.texi (getgroups): Mention the
5545         problem with signature.
5546         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
5547         GETGROUPS_T is still useful for setgroups.
5548
5549         getgroups, getugroups: provide stubs for mingw
5550         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
5551         * lib/getugroups.c (getugroups): Likewise.
5552         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
5553         function.  Modernize replacement scheme.
5554         (gl_PREREQ_GETGROUPS): Delete.
5555         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
5556         * modules/getgroups (configure.ac): Declare witness.
5557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
5558         * modules/unistd (Depends-on): Substitute witness.
5559         * lib/unistd.in.h (getgroups): Declare replacement.
5560
5561         getgroups: avoid calling exit
5562         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
5563         drop xalloc.
5564         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
5565         dependencies.
5566         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
5567         exiting, in the rare case of malloc failure.
5568
5569         getgroups: fix logic error
5570         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
5571         has more than 20 groups.
5572         * modules/getgroups-tests: New test.
5573         * tests/test-getgroups.c: New file.
5574
5575 2009-11-13  Simon Josefsson  <simon@josefsson.org>
5576
5577         * tests/test-base64.c: Improve.
5578
5579 2009-11-13  Simon Josefsson  <simon@josefsson.org>
5580
5581         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
5582         Blake <ebb9@byu.net>.
5583
5584 2009-11-13  Simon Josefsson  <simon@josefsson.org>
5585
5586         * tests/test-xvasprintf.c: Add %s%s related checks.
5587
5588 2009-11-12  Eric Blake  <ebb9@byu.net>
5589
5590         version-etc: match standards.texi style
5591         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
5592         and use <> only for URLs.
5593
5594 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
5595
5596         fts: do not fail on a submount during traversal
5597         * lib/fts.c (fts_build): Read the stat info again after opening
5598         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
5599         Original report at http://bugzilla.redhat.com/501848.
5600
5601 2009-11-12  Jim Meyering  <meyering@redhat.com>
5602
5603         bootstrap: sync from coreutils
5604         * build-aux/bootstrap (bootstrap_epilogue): New function.
5605         Use git_modules_config in one more place.  This make bootstrap's
5606         --gnulib-srcdir option more useful for testing.
5607
5608         bootstrap: generalize autoheader check
5609         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
5610         AC_CONFIG_HEADERS.
5611
5612 2009-11-11  Eric Blake  <ebb9@byu.net>
5613
5614         mkfifoat: use new modules for Solaris and BSD bugs
5615         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
5616         * lib/mkfifoat.c (mknodat): Split...
5617         * lib/mknodat.c (mknodat): ...into new file.
5618         * modules/mkfifoat (Files): Ship new file.
5619         (Depends-on): Add mkfifo, mknod.
5620         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
5621         (Depends-on): Add symlink.
5622         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
5623         redundant with test_mkfifo.h.
5624         (do_mkfifoat, do_mknodat): New helpers.
5625
5626         mknod: new module
5627         * modules/mknod: New file.
5628         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
5629         * lib/mknod.c (mknod): Likewise.
5630         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
5631         defaults.
5632         * modules/sys_stat (Makefile.am): Substitute them.
5633         * lib/sys_stat.in.h (mknod): Declare replacement.
5634         * MODULES.html.sh (Support for systems lacking POSIX:2008):
5635         Document it.
5636         * doc/posix-functions/mknod.texi (mknod): Likewise.
5637         * modules/mknod-tests: New test.
5638         * tests/test-mknod.c: Likewise.
5639
5640         mkfifo: new module
5641         * modules/mkfifo: New file.
5642         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
5643         * lib/mkfifo.c (mkfifo): Likewise.
5644         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
5645         defaults.
5646         * modules/sys_stat (Makefile.am): Substitute them.
5647         * lib/sys_stat.in.h (mkfifo): Declare replacement.
5648         * MODULES.html.sh (Support for systems lacking POSIX:2008):
5649         Document it.
5650         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
5651         * modules/mkfifo-tests: New test.
5652         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
5653         from test-mkfifoat.c.
5654         * tests/test-mkfifo.c: New file.
5655
5656         readlink: detect FreeBSD bug
5657         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
5658         slash on symlink.
5659         * doc/posix-functions/readlink.texi (readlink): Document the bug.
5660         * tests/test-readlink.h (test_readlink): Enhance test.
5661
5662         symlink: detect FreeBSD bug
5663         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
5664         slash on symlink.
5665         * doc/posix-functions/symlink.texi (symlink): Document the bug.
5666         * tests/test-symlink.h (test_symlink): Enhance test.
5667
5668 2009-11-10  Eric Blake  <ebb9@byu.net>
5669
5670         link: detect FreeBSD bug
5671         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
5672         symlink.
5673         * doc/posix-functions/link.texi (link): Document the bug.
5674         * tests/test-link.h (test_link): Enhance test.
5675         * tests/test-linkat.c (main): Update caller.
5676
5677         unlink, remove: detect FreeBSD bug
5678         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
5679         slash on symlink.
5680         * doc/posix-functions/unlink.texi (unlink): Document the bug.
5681         * doc/posix-functions/remove.texi (remove): Likewise.
5682         * tests/test-unlink.h (test_unlink): Enhance test.
5683         * tests/test-remove.c (main): Likewise.
5684
5685 2009-11-09  Eric Blake  <ebb9@byu.net>
5686
5687         rename: detect FreeBSD bug
5688         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
5689         slash on symlink.
5690         * modules/renameat-tests (Depends-on): Add filenamecat.
5691         * tests/test-rename.h (test_rename): Allow one more errno.
5692         * tests/test-renameat.c (main): Likewise.
5693         * doc/posix-functions/rename.texi (rename): Document the bug.
5694
5695         open: detect FreeBSD bug
5696         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
5697         symlink.
5698         * doc/posix-functions/open.texi (open): Document the bug.
5699         * doc/posix-functions/utimes.texi (utimes): Likewise.
5700         * tests/test-open.h (test_open): Add parameters, and test symlink
5701         handling.
5702         * tests/test-open.c (main): Adjust caller.
5703         * tests/test-fcntl-safer.c (main): Likewise.
5704         * modules/open-tests (Depends-on): Add stdbool, symlink.
5705         * modules/fcntl-safer-tests (Depends-on): Likewise.
5706         * tests/test-openat.c (main): Add test-open tests.
5707
5708         stat: detect FreeBSD bug
5709         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
5710         symlink.
5711         * doc/posix-functions/stat.texi (stat): Document the bug.
5712         * tests/test-stat.h (test_stat_func): Add argument.
5713         * tests/test-stat.c (main): Adjust caller.
5714         * tests/test-fstatat.c (main): Likewise.
5715         * modules/stat-tests (Depends-on): Add stdbool, symlink.
5716         Reported by Jim Meyering.
5717
5718 2009-11-09  James Youngman  <jay@gnu.org>
5719
5720         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
5721         * lib/strftime.c: Correct placement of #include "ignore-value.h".
5722
5723 2009-11-08  Jim Meyering  <meyering@redhat.com>
5724
5725         utimens: remove invalid futimesat call
5726         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
5727         It used the file descriptor of the target file as the DIR_FD
5728         parameter and NULL as the file name.  That caused failure with
5729         errno == EFAULT on FreeBSD-8.0-rc2
5730
5731 2009-11-07  Eric Blake  <ebb9@byu.net>
5732
5733         fflush, freadseek: use fseeko, not fseek
5734         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
5735         (clear_ungetc_buffer): Avoid potential problems on large files.
5736         * lib/freadseek.c (freadseek): Likewise.
5737         * modules/freadseek (Depends-on): Add fseeko.
5738         * modules/fseek (configure.ac): Set a witness.
5739         * tests/test-fflush.c (main): Use fseeko.
5740         * tests/test-fpurge.c (fseek): Disable link warning.
5741         * tests/test-freadable.c (fseek): Likewise.
5742         * tests/test-freading.c (fseek): Likewise.
5743         * tests/test-fseeko.c (fseek): Likewise.
5744         * tests/test-ftell.c (fseek): Likewise.
5745         * tests/test-ftello.c (fseek): Likewise.
5746         * tests/test-fwritable.c (fseek): Likewise.
5747         * tests/test-fwriting.c (fseek): Likewise.
5748
5749 2009-11-06  Simon Josefsson  <simon@josefsson.org>
5750
5751         * modules/memchr (Depends-on): Drop getpagesize dependency.
5752
5753 2009-11-06  Simon Josefsson  <simon@josefsson.org>
5754
5755         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
5756         Reported by Ludovic Courtès.
5757         * build-aux/pmccabe2html: Improve example usage.
5758         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
5759
5760 2009-11-06  Jim Meyering  <meyering@redhat.com>
5761
5762         do-release-commit-and-tag: New module.
5763         Automate the release-commit and tag process.
5764         * build-aux/do-release-commit-and-tag: New script, from coreutils.
5765         * modules/do-release-commit-and-tag: New file.
5766         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5767
5768 2009-11-06  Simon Josefsson  <simon@josefsson.org>
5769
5770         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
5771         because test-select.c uses inet_pton.
5772
5773 2009-11-06  Simon Josefsson  <simon@josefsson.org>
5774
5775         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
5776         GETADDRINFO_LIB.  Bump serial number.
5777         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
5778         Suggested by Eric Blake <ebb9@byu.net>.
5779
5780 2009-11-05  Eric Blake  <ebb9@byu.net>
5781
5782         strtod: detect darwin bug
5783         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
5784         Reported by Leo Davis.
5785
5786         freopen-safer: new module
5787         * modules/freopen-safer: New module.
5788         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
5789         * lib/freopen-safer.c (freopen_safer): New file.
5790         * lib/stdio-safer.h (freopen_safer): New declaration.
5791         * lib/stdio--.h (freopen): New override.
5792         * MODULES.html.sh (File stream based Input/Output): Mention it.
5793         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
5794         freopen-safer module.
5795         * doc/posix-functions/stderr.texi (stderr): Likewise.
5796         * doc/posix-functions/stdin.texi (stdin): Likewise.
5797         * doc/posix-functions/stdout.texi (stdout): Likewise.
5798         * modules/freopen-safer-tests: New test.
5799         * tests/test-reopen-safer.c: New file.
5800
5801 2009-11-05  Jim Meyering  <meyering@redhat.com>
5802
5803         maint.mk: Prohibit inclusion of "close-stream.h" without use.
5804         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
5805
5806 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5807
5808         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
5809
5810 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5811
5812         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
5813
5814 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5815
5816         Fix link error.
5817         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
5818         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5819
5820 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5821
5822         * tests/test-func.c: Also test value of __func__.
5823
5824 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5825
5826         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
5827         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
5828
5829 2009-11-05  Bruno Haible  <bruno@clisp.org>
5830
5831         Fix link error.
5832         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
5833         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5834         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
5835
5836 2009-11-05  Bruno Haible  <bruno@clisp.org>
5837
5838         Tests for module 'inet_pton'.
5839         * modules/inet_pton-tests: New file.
5840         * tests/test-inet_pton.c: New file.
5841
5842 2009-11-05  Bruno Haible  <bruno@clisp.org>
5843
5844         Tests for module 'inet_ntop'.
5845         * modules/inet_ntop-tests: New file.
5846         * tests/test-inet_ntop.c: New file.
5847
5848 2009-11-04  Eric Blake  <ebb9@byu.net>
5849
5850         stdlib-safer: wrap all mkstemp variants
5851         * modules/mkostemp (configure.ac): Set witness.
5852         * modules/mkostemps (configure.ac): Likewise.
5853         * modules/mkstemps (configure.ac): Likewise.
5854         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
5855         (mkstemps_safer): Wrap more functions.
5856         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
5857         wrapping.
5858         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
5859         (mkstemps_safer): Implement the wrappers.
5860
5861         mkstemps, mkostemps: new modules
5862         * modules/mkostemps: New module.
5863         * modules/mkstemps: Likewise.
5864         * lib/mkostemps.c (mkostemps): New file.
5865         * lib/mkstemps.c (mkstemps): Likewise.
5866         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
5867         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
5868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
5869         * modules/stdlib (Makefile.am): Substitute them.
5870         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
5871         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
5872         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
5873         * doc/gnulib.texi (Glibc stdlib.h): Include them.
5874         * MODULES.html.sh (File system functions): Mention them.
5875
5876         tempname: resync from glibc
5877         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
5878         same values for __GT_FILE as glibc.  Abort even when assertions
5879         are disabled.
5880         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
5881         match its value otherwise.  Allow idempotent inclusion.
5882         * lib/mkdtemp.c (mkdtemp): Adjust caller.
5883         * lib/mkostemp.c (mkostemp): Likewise.
5884         * lib/mkstemp.c (mkstemp): Likewise.
5885         * lib/tmpfile.c (tmpfile): Likewise.
5886         * NEWS: Document this.
5887
5888         utimens: fix use of futimens on older Linux
5889         * lib/utimens.c (fdutimens): Use updated, rather than original,
5890         timespec to avoid bug in older Linux kernel.
5891         Reported by Simon Josefsson.
5892
5893 2009-11-04  Bruno Haible  <bruno@clisp.org>
5894
5895         Make num_processors more flexible and consistent.
5896         * lib/nproc.h (enum nproc_query): New type.
5897         (num_processors): Add a 'query' argument.
5898         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
5899         (num_processors): Add a 'query' argument. Test the value of the
5900         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
5901         mingw, count the number of CPUs available for the current process.
5902         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
5903         Check for sched_getaffinity and sched_getaffinity_np.
5904         * modules/nproc (Depends-on): Add c-ctype, extensions.
5905         * NEWS: Mention the change.
5906
5907 2009-11-03  Bruno Haible  <bruno@clisp.org>
5908
5909         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
5910
5911 2009-11-03  Jim Meyering  <meyering@redhat.com>
5912
5913         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
5914         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
5915         if it is defined.
5916
5917 2009-11-02  Eric Blake  <ebb9@byu.net>
5918
5919         mktime, timegm: share common declaration
5920         * lib/mktime-internal.h: New file.
5921         * lib/mktime.c: Use it rather than open-coding a declaration.
5922         * lib/timegm.c: Likewise.
5923         * modules/mktime (Files): Ship it.
5924         * modules/timegm (Files): Likewise.
5925         Suggested by Bruno Haible.
5926
5927         test-update-copyright: update test to match script changes
5928         * tests/test-update-copyright.sh: Avoid hard-coding perl
5929         location.  Don't update *.bak created by earlier runs.
5930
5931 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
5932             Simon Josefsson  <simon@josefsson.org>
5933             Bruno Haible  <bruno@clisp.org>
5934
5935         Fix link error on Solaris 8.
5936         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
5937         also in libnsl. Define also INET_PTON_LIB.
5938         * modules/inet_pton (Link): New section.
5939
5940 2009-11-02  Simon Josefsson  <simon@josefsson.org>
5941             Bruno Haible  <bruno@clisp.org>
5942
5943         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
5944         * modules/inet_ntop (Link): New section.
5945         Reported by Boyan Kasarov <bkasarov@gmail.com>.
5946
5947 2009-11-02  Eric Blake  <ebb9@byu.net>
5948
5949         maint: avoid compiler warnings in m4 macros
5950         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
5951         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
5952
5953 2009-11-02  Simon Josefsson  <simon@josefsson.org>
5954
5955         * m4/pmccabe2html.m4: Remove file.
5956         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
5957         function.  Change maintainer.
5958         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
5959         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
5960         Courtès).
5961
5962 2009-10-31  Eric Blake  <ebb9@byu.net>
5963
5964         fseeko: fix m4 regression
5965         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
5966         regression from 2009-10-27.
5967         Reported by Ralf Wildenhues.
5968
5969 2009-10-31  Jim Meyering  <meyering@redhat.com>
5970
5971         inttostr: aesthetics and improved (compile-time) safety
5972         Define inttype_is_signed rather than inttype_is_unsigned,
5973         since the sole use is via "#if inttype_is_signed".
5974         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
5975         inttype_is_unsigned.
5976         * lib/offtostr.c (inttype_is_signed): Likewise.
5977         * lib/uinttostr.c (inttype_is_signed): Likewise.
5978         * lib/umaxtostr.c (inttype_is_signed): Likewise.
5979         * lib/inttostr.c (inttostr): Use verify to cross-check the
5980         inttype_is_signed value and the signedness of the actual type.
5981         * modules/inttostr (Depends-on): Add verify.
5982
5983 2009-10-30  Eric Blake  <ebb9@byu.net>
5984
5985         build: avoid compiler warnings
5986         * lib/fchmodat.c (lchmod): Mark unused variables.
5987         * lib/getopt.c (_getopt_initialize): Likewise.
5988         * lib/mktime.c (__mktime_internal): Provide prototype.
5989         * lib/inttostr.c (inttostr): Avoid compiler warning even with
5990         older gcc that do not understand #pragma GCC diagnostic.
5991         * lib/uinttostr.c (inttype_is_unsigned): Define.
5992         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
5993
5994 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5995
5996         stat: fix compilation on AIX
5997         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
5998         only see struct stat64.
5999
6000 2009-10-30  Eric Blake  <ebb9@byu.net>
6001
6002         exclude: make more robust
6003         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
6004         rather than masking a coding bug.
6005         Suggested by Bruno Haible.
6006
6007 2009-10-30  Jim Meyering  <meyering@redhat.com>
6008
6009         perl scripts: remove #!/usr/bin/perl in favor of more portable...
6010         Rather than putting #!/usr/bin/perl on the first line,
6011         start with a variant of what's recommended by "man perlrun" that
6012         invokes the first "perl" program from your shell's search path.
6013         * build-aux/gitlog-to-changelog: Replace #!... as above.
6014         Add a "Local Variables" perl mode setting.
6015         Prompted by a patch from Ludovic Courtès.
6016         Improved by Eric Blake.
6017         * build-aux/useless-if-before-free: Likewise.
6018         * build-aux/announce-gen: Likewise.
6019         * build-aux/update-copyright: Likewise.
6020
6021 2009-10-29  Eric Blake  <ebb9@byu.net>
6022
6023         filenamecat-lgpl: adjust clients
6024         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
6025         filenamecat.
6026         * modules/renameat (Depends-on): Likewise.
6027
6028         filenamecat: split into filenamecat-lgpl
6029         * modules/filenamecat-lgpl: New module.
6030         * modules/filenamecat (Files): Move library-safe files into
6031         filenamecat-lgpl.
6032         (Depends-on): Add filenamecat-lgpl.
6033         (configure.ac): Declare witness.
6034         * lib/filenamecat.h (file_name_concat): Only declare when using
6035         GPL module.
6036         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
6037         Move...
6038         * lib/filenamecat-lgpl.c: ...into new file.
6039         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
6040         (gl_FILE_NAME_CONCAT): Use it.
6041         * MODULES.html.sh (File system functions): Mention new module.
6042
6043         argp: avoid memory leak
6044         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
6045         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
6046         base_name, since the latter malloc()s and can call exit().
6047         Leak introduced 2006-07-03.
6048
6049         dirname-lgpl: adjust clients that don't need full dirname
6050         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
6051         * modules/filenamecat (Depends-on): Likewise.
6052         * modules/linkat (Depends-on): Likewise.
6053         * modules/mkancesdirs (Depends-on): Likewise.
6054         * modules/mkdir (Depends-on): Likewise.
6055         * modules/openat (Depends-on): Likewise.
6056         * modules/savewd (Depends-on): Likewise.
6057         * modules/rename (Depends-on): Likewise.
6058         (License): Relax license.
6059         * modules/mkdir-tests (Depends-on): Drop progname.
6060         (Makefile.am): Delete unneeded LDADD.
6061         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
6062
6063         dirname: split into dirname-lgpl
6064         * modules/dirname-lgpl: New module.
6065         * modules/dirname (Files): Move library-safe files into
6066         dirname-lgpl.
6067         (Depends-on): Add dirname-lgpl.
6068         (configure.ac): Declare witness.
6069         * modules/double-slash-root (License): Relax license.
6070         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
6071         module.
6072         * lib/dirname.c (dir_len, mdir_name): Move...
6073         * lib/dirname-lgpl.c: ...into new file.
6074         * lib/basename.c (last_component, base_len): Move...
6075         * lib/basename-lgpl.c: ...into new file.
6076         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
6077         (gl_DIRNAME): Use it.
6078         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
6079         Mention new module.
6080         * modules/dirname-tests (Depends-on): Add progname.
6081         * tests/test-dirname.c (program_name): Delete.
6082
6083         mkdir: make safe for libraries
6084         * modules/mkdir (Depends-on): Drop xalloc.
6085         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
6086         exit.
6087
6088         tests: avoid some compiler warnings
6089         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
6090         literals.
6091         * tests/test-memchr.c (main): Avoid type mismatch.
6092         * tests/test-arpa_inet.c (main): Avoid unused parameters.
6093         * tests/test-base64.c (main): Likewise.
6094         * tests/test-getdelim.c (main): Likewise.
6095         * tests/test-gethostname.c (main): Likewise.
6096         * tests/test-getline.c (main): Likewise.
6097         * tests/test-netinet_in.c (main): Likewise.
6098         * tests/test-select.c (open_server_socket, main): Likewise.
6099         * tests/test-select-stdin.c (main): Likewise.
6100         * tests/test-sockets.c (main): Likewise.
6101         * tests/test-strsignal.c (main): Likewise.
6102         * tests/test-sys_select.c (main): Likewise.
6103         * tests/test-sys_socket.c (main): Likewise.
6104         * tests/test-u64.c (main): Likewise.
6105         * tests/test-xfprintf-posix.c (main): Likewise.
6106         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
6107
6108         sockets: avoid compiler warning
6109         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
6110
6111         maint: detect usage(1) and other suspicious exits
6112         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
6113
6114 2009-10-29  Jim Meyering  <meyering@redhat.com>
6115
6116         timespec: long-to-int truncation could make timespec_cmp malfunction
6117         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
6118         a multiple of 2^32 nanoseconds as no difference.
6119
6120 2009-10-28  Jim Meyering  <meyering@redhat.com>
6121
6122         fprintftime: wrap macro code argument in "do {...} while(0)"
6123         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
6124         cpy macro must be a statement that can be followed by a semicolon.
6125         Now that the else clause contains a comment and is hence longer
6126         than one line, I require curly braces.  That in turn requires
6127         that we wrap this code block in the standard do...while(0).
6128
6129         fprintftime: remove stray semicolon from previous change
6130         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
6131
6132         fprintftime: avoid a warning about ignored fwrite return value
6133         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
6134         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
6135         that is unsafe.
6136         * modules/fprintftime (Depends-on): Add ignore-value.
6137
6138         exclude: avoid an unwarranted warning
6139         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
6140
6141 2009-10-27  Eric Blake  <ebb9@byu.net>
6142
6143         fseek: avoid compilation failure when fflush is replaced
6144         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
6145         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
6146         module is in use.
6147         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
6148         module is not in use; since REPLACE_FSEEK worked otherwise.
6149         (GNULIB_FTELLO): Likewise for ftell.
6150         Reported by Ian Beckwith and others.
6151
6152 2009-10-27  Bruno Haible  <bruno@clisp.org>
6153
6154         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
6155         Reported by Jim Meyering.
6156
6157 2009-10-27  Jim Meyering  <jim@meyering.net>
6158             Bruno Haible  <bruno@clisp.org>
6159
6160         Avoid warning despite dropping the return value of fwrite.
6161         * lib/unicodeio.c: Include ignore-value.h.
6162         (fwrite_success_callback): Explicitly ignore fwrite's return value.
6163         * modules/unicodeio (Depends-on): Add ignore-value.
6164
6165 2009-10-26  Eric Blake  <ebb9@byu.net>
6166
6167         areadlinkat: fix fallback path
6168         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
6169         pointer and zero.
6170
6171 2009-10-22  Pádraig Brady  <P@draigBrady.com>
6172
6173         Use a better IO block size for modern systems
6174         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
6175         * lib/md2.c: Likewise.
6176         * lib/md4.c: Likewise.
6177         * lib/md5.c: Likewise.
6178         * lib/sha1.c: Likewise.
6179         * lib/sha256.c: Likewise.
6180         * lib/sha512.c: Likewise.
6181
6182 2009-10-22  Eric Blake  <ebb9@byu.net>
6183
6184         tests: avoid several compiler warnings
6185         * tests/test-getcwd.c (main): Avoid buffer underflow.
6186         * tests/test-getdate.c (main): String literals are not safe with
6187         putenv, so use setenv.  Declare unused argument.
6188         * modules/getdate-tests (Depends-on): Add setenv.
6189         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
6190         problems with string literals in char *.
6191         * tests/test-hash.c (main): Avoid shadowing declaration.
6192         (insert_new): Treat string literals as char const *.
6193         * tests/test-getopt.h (test_getopt): Likewise.
6194         (getopt_loop): Alter types to minimize casting elsewhere.
6195         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
6196         (test_getopt_long_posix): Likewise.
6197         (do_getopt_long): Add wrapper to minimize casting.
6198         * tests/test-atexit.c (clear_temp_file): Use void.
6199         * tests/test-areadlink-with-size.c (main): Declare unused
6200         arguments.
6201         * tests/test-areadlink.c (main): Likewise.
6202         * tests/test-areadlinkat-with-size.c (main): Likewise.
6203         * tests/test-areadlinkat.c (main): Likewise.
6204         * tests/test-canonicalize-lgpl.c (main): Likewise.
6205         * tests/test-canonicalize.c (main): Likewise.
6206         * tests/test-dirent-safer.c (main): Likewise.
6207         * tests/test-dirname.c (main): Likewise.
6208         * tests/test-dup2.c (main): Likewise.
6209         * tests/test-fchdir.c (main): Likewise.
6210         * tests/test-fcntl-h.c (main): Likewise.
6211         * tests/test-fcntl-safer.c (main): Likewise.
6212         * tests/test-fdopendir.c (main): Likewise.
6213         * tests/test-fdutimensat.c (main): Likewise.
6214         * tests/test-fflush.c (main): Likewise.
6215         * tests/test-filenamecat.c (main): Likewise.
6216         * tests/test-filevercmp.c (main): Likewise.
6217         * tests/test-fopen-safer.c (main): Likewise.
6218         * tests/test-fopen.c (main): Likewise.
6219         * tests/test-fpending.c (main): Likewise.
6220         * tests/test-fpurge.c (main): Likewise.
6221         * tests/test-freading.c (main): Likewise.
6222         * tests/test-fstatat.c (main): Likewise.
6223         * tests/test-fsync.c (main): Likewise.
6224         * tests/test-futimens.c (main): Likewise.
6225         * tests/test-getndelim2.c (main): Likewise.
6226         * tests/test-gettimeofday.c (main): Likewise.
6227         * tests/test-getopt.c (main): Likewise.
6228         * tests/test-i-ring.c (main): Likewise.
6229         * tests/test-inttypes.c (main): Likewise.
6230         * tests/test-link.c (main): Likewise.
6231         * tests/test-lstat.c (main): Likewise.
6232         * tests/test-math.c (main): Likewise.
6233         * tests/test-md5.c (main): Likewise.
6234         * tests/test-memchr2.c (main): Likewise.
6235         * tests/test-memrchr.c (main): Likewise.
6236         * tests/test-mkdir.c (main): Likewise.
6237         * tests/test-mkdirat.c (main): Likewise.
6238         * tests/test-mkfifoat.c (main): Likewise.
6239         * tests/test-open.c (main): Likewise.
6240         * tests/test-openat-safer.c (main): Likewise.
6241         * tests/test-openat.c (main): Likewise.
6242         * tests/test-quotearg.c (main): Likewise.
6243         * tests/test-rawmemchr.c (main): Likewise.
6244         * tests/test-readlink.c (main): Likewise.
6245         * tests/test-remove.c (main): Likewise.
6246         * tests/test-rename.c (main): Likewise.
6247         * tests/test-renameat.c (main): Likewise.
6248         * tests/test-rmdir.c (main): Likewise.
6249         * tests/test-sha1.c (main): Likewise.
6250         * tests/test-signal.c (main): Likewise.
6251         * tests/test-sigaction.c (main): Likewise.
6252         * tests/test-stat.c (main): Likewise.
6253         * tests/test-stat-time.c (main): Likewise.
6254         * tests/test-stddef.c (main): Likewise.
6255         * tests/test-stdint.c (main): Likewise.
6256         * tests/test-stdio.c (main): Likewise.
6257         * tests/test-stdlib.c (main): Likewise.
6258         * tests/test-strchrnul.c (main): Likewise.
6259         * tests/test-strerror.c (main): Likewise.
6260         * tests/test-string.c (main): Likewise.
6261         * tests/test-strtod.c (main): Likewise.
6262         * tests/test-strverscmp.c (main): Likewise.
6263         * tests/test-symlink.c (main): Likewise.
6264         * tests/test-symlinkat.c (main): Likewise.
6265         * tests/test-sys_stat.c (main): Likewise.
6266         * tests/test-sys_time.c (main): Likewise.
6267         * tests/test-time.c (main): Likewise.
6268         * tests/test-unistd.c (main): Likewise.
6269         * tests/test-unlink.c (main): Likewise.
6270         * tests/test-unlinkat.c (main): Likewise.
6271         * tests/test-utimens.c (main): Likewise.
6272         * tests/test-utimensat.c (main): Likewise.
6273         * tests/test-version-etc.c (main): Likewise.
6274         * tests/test-wchar.c (main): Likewise.
6275         * tests/test-wctype.c (main): Likewise.
6276         * tests/test-xprintf-posix.c (main): Likewise.
6277         * tests/test-posixtm.c (main): Likewise.
6278         (STREQ): Delete unused macro.
6279         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
6280         shadowed variables.
6281         * tests/test-memchr.c (main): Likewise.
6282
6283 2009-10-21  Eric Blake  <ebb9@byu.net>
6284
6285         areadlinkat: avoid failure on older glibc
6286         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
6287         rather than mis-comparing 0 against FUNC_RESULT of char*.
6288
6289 2009-10-21  Bruno Haible  <bruno@clisp.org>
6290
6291         * modules/stpncpy (License): Relicense under LGPLv2+.
6292         Reported by David Lutterkort <lutter@redhat.com>.
6293
6294 2009-10-20  Eric Blake  <ebb9@byu.net>
6295
6296         utimensat: work around Solaris 9 bug
6297         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
6298         has trailing slash bugs.
6299         * tests/test-lutimens.h (test_lutimens): Enhance test.
6300         * tests/test-utimens.h (test_utimens): Likewise.
6301         * doc/posix-functions/utime.texi (utime): Enhance documentation.
6302         * doc/posix-functions/utimes.texi (utimes): Likewise.
6303         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6304         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
6305         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
6306         * doc/posix-functions/futimens.texi (futimens): Likewise.
6307
6308         fdutimensat: new module
6309         * modules/fdutimensat: New file.
6310         * lib/fdutimensat.c (fdutimensat): Likewise.
6311         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
6312         * MODULES.html.sh (File system functions): Mention module.
6313         * modules/fdutimensat-tests: New test.
6314         * tests/test-fdutimensat.c: Likewise.
6315
6316         doc: regenerate INSTALL
6317         * doc/INSTALL: Reflect recent autoconf update.
6318         * doc/INSTALL.ISO: Likewise.
6319         * doc/INSTALL.UTF-8: Likewise.
6320
6321 2009-10-20  Pádraig Brady  <P@draigBrady.com>
6322
6323         acl: warn if ACL support is not detected
6324         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
6325
6326 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
6327
6328         * lib/nproc.h: Add extern "C" block for C++.
6329
6330 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
6331             Bruno Haible  <bruno@clisp.org>
6332
6333         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
6334         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
6335         * doc/posix-functions/isalpha.texi: Likewise.
6336         * doc/posix-functions/isblank.texi: Likewise.
6337         * doc/posix-functions/iscntrl.texi: Likewise.
6338         * doc/posix-functions/isdigit.texi: Likewise.
6339         * doc/posix-functions/isgraph.texi: Likewise.
6340         * doc/posix-functions/islower.texi: Likewise.
6341         * doc/posix-functions/isprint.texi: Likewise.
6342         * doc/posix-functions/ispunct.texi: Likewise.
6343         * doc/posix-functions/isspace.texi: Likewise.
6344         * doc/posix-functions/isupper.texi: Likewise.
6345         * doc/posix-functions/isxdigit.texi: Likewise.
6346
6347 2009-10-18  Bruno Haible  <bruno@clisp.org>
6348
6349         Tests for module 'isblank'.
6350         * modules/isblank-tests: New file.
6351         * tests/test-isblank.c: New file.
6352
6353         New module 'isblank'.
6354         * lib/isblank.c: New file.
6355         * m4/isblank.m4: New file.
6356         * modules/isblank: New file.
6357         * doc/posix-functions/isblank.texi: Mention the new module.
6358
6359 2009-10-18  Bruno Haible  <bruno@clisp.org>
6360
6361         New module 'ctype'.
6362         * lib/ctype.in.h: New file.
6363         * m4/ctype.m4: New file.
6364         * modules/ctype: New file.
6365         * doc/posix-headers/ctype.texi: Mention the new module.
6366
6367 2009-10-18  Jim Meyering  <meyering@redhat.com>
6368
6369         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
6370         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
6371         right after its initialization, rather than farther down.
6372         Keeping these in close proximity makes it easier to ensure
6373         that each such variable is initialized.  E.g.,
6374
6375             LIB_CLOCK_GETTIME=
6376             AC_SUBST([LIB_CLOCK_GETTIME])
6377
6378         This change also increments these serial numbers.
6379         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
6380         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
6381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6382
6383 2009-10-18  Bruno Haible  <bruno@clisp.org>
6384
6385         Don't let environment variables perturb build.
6386         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
6387         (gl_PREREQ_GETHRXTIME): ... not here.
6388
6389 2009-10-18  Bruno Haible  <bruno@clisp.org>
6390
6391         Avoid symlink attack in localcharset module.
6392         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
6393         (O_NOFOLLOW): Define fallback.
6394         (get_charset_aliases): Don't open the file if it is a symbolic link.
6395         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
6396         gl_FCNTL_H.
6397         (gl_FCNTL_H): Require it.
6398         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
6399         * modules/localcharset (Files): Add m4/fcntl_h.m4.
6400         Reported by Fergal Glynn <fglynn@veracode.com>.
6401
6402 2009-10-18  Bruno Haible  <bruno@clisp.org>
6403
6404         Implement nproc for mingw.
6405         * lib/nproc.c: Include <windows.h>
6406         (num_processors): On native Windows platforms, try GetSystemInfo.
6407
6408 2009-10-18  Bruno Haible  <bruno@clisp.org>
6409
6410         Implement nproc for IRIX.
6411         * lib/nproc.c: Include <sys/sysmp.h>.
6412         (num_processors): On IRIX systems, try sysmp.
6413         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
6414
6415 2009-10-18  Bruno Haible  <bruno@clisp.org>
6416
6417         Implement nproc for HP-UX.
6418         * lib/nproc.c: Include <sys/pstat.h>
6419         (num_processors): On HP-UX systems, try pstat_getdynamic.
6420         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
6421         pstat_getdynamic.
6422
6423 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
6424             Bruno Haible  <bruno@clisp.org>
6425
6426         Implement nproc for NetBSD, OpenBSD.
6427         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
6428         (ARRAY_SIZE): New macro.
6429         (num_processors): On BSD systems, try sysctl of HW_NCPU.
6430         * m4/nproc.m4: New file.
6431         * modules/nproc (Files): Add m4/nproc.m4.
6432         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
6433         (Makefile.am): Instead, augment lib_SOURCES.
6434
6435 2009-10-18  Bruno Haible  <bruno@clisp.org>
6436
6437         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
6438         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
6439         sys/param.h.
6440
6441 2009-10-16  Eric Blake  <ebb9@byu.net>
6442
6443         utimensat: new module
6444         * modules/utimensat: New file.
6445         * lib/utimensat.c (utimensat): Likewise.
6446         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6447         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
6448         so we can work around Linux bugs.
6449         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6450         * modules/sys_stat (Makefile.am): Substitute them.
6451         * lib/sys_stat.in.h (utimensat): Declare it.
6452         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6453         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6454         * modules/utimensat-tests: New test.
6455         * tests/test-utimensat.c: Likewise.
6456
6457         utimens: let lutimens work on non-symlinks
6458         * lib/utimens.c (lutimens): Fall back to utimens rather than
6459         failing with ENOSYS, when file is not a symlink.
6460         (utimens): Reduce redirection.
6461         * tests/test-lutimens.h (test_lutimens): Update test to cover
6462         non-symlinks.
6463         * tests/test-utimens.h (test_utimens): Update test to cover
6464         symlinks.
6465         * tests/test-utimens.c (main): Update caller.
6466
6467         utimens: cache whether utimensat syscall works
6468         * lib/utimens.c (utimensat_works_really): New cache variable.
6469         (fdutimens, lutimens): Use it to avoid failing syscall.
6470
6471         test-stat-time, test-utimens: improve portability
6472         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
6473         ext4 on alpha, and for cygwin.
6474         * tests/test-utimens-common.h: New file.
6475         (nap): Factor delays into single function.
6476         * tests/test-lutimens.h (test_lutimens): Use new header.
6477         * tests/test-futimens.h (test_futimens): Likewise.
6478         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
6479         timestamps to occur from same machine, as was done previously for
6480         test_utimens.
6481         * modules/utimens-tests (Files): Ship new file.
6482         * modules/futimens-tests (Files): Likewise.
6483         Reported in part by Jim Meyering.
6484
6485         sys_stat: sort replacement declarations
6486         * lib/sys_stat.in.h: Sort declarations.
6487         * lib/futimens.c (futimens): Fix typo.
6488
6489 2009-10-15  Jim Meyering  <meyering@redhat.com>
6490
6491         don't let environment settings perturb build
6492         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
6493         could cause a configure-time and/or build-time malfunction.
6494         Typically, a configure-time function-in-library test is performed
6495         via code like this:
6496
6497           LIB_VAR=
6498           AC_SUBST([LIB_VAR])
6499           prefix_saved_LIBS=$LIBS
6500             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
6501                        [test "$ac_cv_search_FUNC" = "none required" ||
6502                         LIB_VAR=$ac_cv_search_FUNC])
6503           LIBS=$prefix_saved_LIBS
6504
6505         However, in each of the files affected by this change, the LIB_VAR=
6506         initialization was omitted.  Thus, when set in the environment, its
6507         value would propagate into generated Makefiles when FUNC is not found
6508         in LIB_NAME.
6509         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
6510         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
6511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6512
6513 2009-10-14  Eric Blake  <ebb9@byu.net>
6514
6515         fchdir: avoid infinite recursion in mingw
6516         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
6517         recursing.
6518
6519         test-stat-time: port to mingw
6520         * tests/test-stat-time.c (force_unlink): Return a value.
6521         (test_ctime) [W32]: Fix compilation error.
6522         (nap): Don't call usleep with too large an argument.  Use
6523         force_unlink.
6524         * doc/pastposix-functions/usleep.texi (usleep): Document the
6525         portability issue.
6526
6527 2009-10-13  Jim Meyering  <meyering@redhat.com>
6528
6529         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
6530         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
6531         * modules/pipe-filter-ii: Likewise.
6532         * modules/sys_socket-tests: Likewise.
6533         * modules/tsearch-tests: Likewise.
6534         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
6535         (check): Depend on it.
6536
6537 2009-10-12  Eric Blake  <ebb9@byu.net>
6538
6539         utimens-tests: port to NFS file systems
6540         * tests/test-utimens.h (test_utimens): Refactor utimecmp
6541         comparisons to avoid spurious failures from timestamp drift
6542         between NFS machines.
6543
6544 2009-10-12  Eric Blake  <ebb9@byu.net>
6545
6546         stat-time-tests: minor cleanups
6547         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
6548         * tests/test-stat-time.c (nap): Separate assignment from call.
6549         Suggested by Paolo Bonzini and Bruno Haible.
6550
6551         sys_stat: guarantee struct timespec
6552         * lib/sys_stat.in.h (includes): Always include <time.h>
6553         * modules/sys_stat (Depends-on): Add time.
6554         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
6555         mode_t permission values.
6556         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
6557         get at subsecond timestamps.
6558
6559 2009-10-10  Eric Blake  <ebb9@byu.net>
6560
6561         futimens: new module
6562         * modules/futimens: New file.
6563         * lib/futimens.c (futimens): Likewise.
6564         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
6565         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
6566         we can work around Linux bugs.
6567         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6568         * modules/sys_stat (Makefile.am): Substitute them.
6569         * lib/sys_stat.in.h (futimens): Declare it.
6570         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6571         * doc/posix-functions/futimens.texi (futimens): Likewise.
6572         * modules/futimens-tests: New test.
6573         * tests/test-futimens.c: Likewise.
6574
6575         utimens: introduce fdutimens
6576         * lib/utimens.h (fdutimens): New prototype.
6577         * lib/utimens.c (gl_futimens): Move guts...
6578         (fdutimens): ...to new interface.
6579         * tests/test-utimens.c (do_fdutimens): Use it.
6580
6581         utimens: add UTIME_NOW and UTIME_OMIT support
6582         * lib/utimens.c (validate_timespec, update_timespec): New helper
6583         functions.
6584         (gl_futimens, lutimens): Use them.
6585         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
6586         stdbool, sys_stat.
6587         (Link): Mention resulting library dependency.
6588         * modules/utimecmp (Link): Likewise.
6589         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
6590         (Makefile.am): Pick up library dependency.
6591         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
6592         definition.
6593         * tests/test-sys_stat.c: Test the definitions.
6594         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
6595         * NEWS: Document library dependency.
6596
6597         utimecmp: support symlink timestamps
6598         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
6599         hashing when possible.  Use pathconf when available.
6600         (SYSCALL_RESOLUTION): Recognize tighter resolution.
6601         * modules/utimecmp (Depends-on): Add lstat.
6602
6603         utimens: add lutimens interface
6604         * lib/utimens.c (lutimens): New function.
6605         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
6606         * lib/utimens.h (lutimens): Declare new interface.
6607         * tests/test-utimens.c (main): Enhance test.
6608         * tests/test-lutimens.h (test_lutimens): New file.
6609         * modules/utimens-tests (Files): Distribute it.
6610         (Depends-on): Add symlink.
6611         (configure.ac): Check for usleep.
6612
6613         utimens: validate futimens usage
6614         * lib/utimens.c (gl_futimens): Require valid fd up front, using
6615         fewer syscalls on failure later on.  Avoid compiler warning on
6616         mingw.
6617         * modules/utimens (Depends-on): Add dup2.
6618
6619         utimens: add test
6620         * modules/utimens-tests: New test.
6621         * tests/test-utimens.h: New file.
6622         * tests/test-futimens.h: Likewise.
6623         * tests/test-utimens.c: Likewise.
6624
6625         doc: mention timestamp portability issues
6626         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
6627         instead.
6628         * doc/posix-functions/utime.texi (utime): Likewise.
6629         * doc/posix-functions/utimes.texi (utimes): Likewise.
6630         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
6631         instead.
6632         * doc/posix-functions/futimens.texi (futimens): Mention utimens
6633         module.
6634         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6635         Mention weakness with symlink timestamps.
6636         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
6637         to utimensat/futimens instead.
6638         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
6639
6640         test-dup2: enhance test
6641         * tests/test-dup2.c (main): Also check AT_FDCWD.
6642
6643         test-stat-time: avoid more spurious failures
6644         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
6645         xfs; and avoid race if the two timestamps cross quantization edge.
6646
6647         relocatable: prefer 'file system' over 'filesystem'
6648         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
6649         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
6650         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
6651         * doc/relocatable.texi (Enabling Relocatability): Likewise.
6652         * lib/relocatable.c (compute_curr_prefix): Likewise.
6653
6654 2009-10-10  Jim Meyering  <meyering@redhat.com>
6655
6656         stat-time-tests: check for the usleep function
6657         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
6658
6659 2009-10-10  Bruno Haible  <bruno@clisp.org>
6660
6661         * modules/xnanosleep: Put the Link section after the Include section.
6662
6663 2009-10-09  Eric Blake  <ebb9@byu.net>
6664
6665         dup2: work around FreeBSD 6.1 bug
6666         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
6667         * doc/posix-functions/dup2.texi (dup2): Document it.
6668         Reported by Nelson H. F. Beebe and Jim Meyering.
6669
6670         test-stat-time: port to buggy NFS clients
6671         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
6672         (test_ctime): Also skip test if mtime and ctime are skewed.
6673
6674         maint: prefer 'file system' over 'filesystem'
6675         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6676         * doc/posix-functions/lstat.texi (lstat): Likewise.
6677         * lib/file-has-acl.c (file_has_acl): Likewise.
6678         * lib/fwriteerror.c [TEST]: Likewise.
6679         * tests/test-areadlink.h (test_areadlink): Likewise.
6680         * tests/test-areadlinkat-with-size.c (main): Likewise.
6681         * tests/test-areadlinkat.c (main): Likewise.
6682         * tests/test-canonicalize-lgpl.c (main): Likewise.
6683         * tests/test-canonicalize.c (main): Likewise.
6684         * tests/test-fstatat.c (main): Likewise.
6685         * tests/test-linkat.c (main): Likewise.
6686         * tests/test-lstat.h (test_lstat_func): Likewise.
6687         * tests/test-mkdir.h (test_mkdir): Likewise.
6688         * tests/test-readlink.h (test_readlink): Likewise.
6689         * tests/test-remove.c (main): Likewise.
6690         * tests/test-rename.h (test_rename): Likewise.
6691         * tests/test-renameat.c (main): Likewise.
6692         * tests/test-rmdir.h (test_rmdir_func): Likewise.
6693         * tests/test-symlink.h (test_symlink): Likewise.
6694         * tests/test-symlinkat.c (main): Likewise.
6695         * tests/test-unlink.h (test_unlink_func): Likewise.
6696         * tests/test-unlinkat.c (main): Likewise.
6697
6698         maint: make realtime library usage explicit
6699         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
6700         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
6701         * modules/settime (Link): Likewise.
6702         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
6703
6704         test-stat-time: speed up execution
6705         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
6706         warning on mingw.
6707         (nap): New helper function.
6708         (prepare_test): Use it to reduce sleep time.
6709         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
6710         execution.
6711         * modules/stat-time-tests (configure.ac): Check for usleep.
6712
6713 2009-10-09  Jim Meyering  <meyering@redhat.com>
6714
6715         selinux-h: always use getfilecon wrappers
6716         * lib/getfilecon.c: New file.
6717         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
6718         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
6719         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
6720         (fgetfilecon): Provide a stub.
6721         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
6722         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
6723         file unconditionally.
6724         When <selinux/selinux.h> is found, arrange to use wrappers.
6725         * modules/selinux-h (Files): Add getfilecon.c.
6726         (Makefile.am): Substitute include-next-related bits
6727         into the now-always-generated selinux/selinux.h file.
6728         * doc/glibc-functions/lgetfilecon.texi: New file.
6729         * doc/glibc-functions/fgetfilecon.texi: New file.
6730         * doc/glibc-functions/getfilecon.texi: New file.
6731         * doc/glibc-functions/getfilecon-desc.texi: New file.
6732         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
6733         which to pull in the new files.
6734         * MODULES.html.sh (Misc): Add selinux-h.
6735
6736 2009-10-08  Jim Meyering  <meyering@redhat.com>
6737
6738         unistd: fix comment typo
6739         * lib/unistd.in.h (euidaccess): Fix a comment typo.
6740
6741 2009-10-08  Eric Blake  <ebb9@byu.net>
6742
6743         areadlink: use SIZE_MAX consistently
6744         * modules/areadlink (Depends-on): Add stdint.
6745         * modules/areadlink-with-size (Depends-on): Likewise.
6746         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
6747         gives NULL; drop sys/types, since unistd gives size_t; and add
6748         stdint for SIZE_MAX.
6749         (SIZE_MAX): Rely on headers.
6750         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
6751         and add stdint.
6752         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
6753         (SIZE_MAX): Likewise.
6754         (INITIAL_BUF_SIZE): Turn into enum.
6755         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
6756
6757 2009-10-08  Jim Meyering  <meyering@redhat.com>
6758
6759         areadlinkat: avoid compilation failure
6760         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
6761         Fix typo in comment.
6762
6763 2009-10-07  Eric Blake  <ebb9@byu.net>
6764
6765         areadlinkat-with-size: new module
6766         * modules/areadlinkat-with-size: New module.
6767         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
6768         * lib/areadlink.h (areadlinkat): Declare it.
6769         * MODULES.html.sh (File system functions): Mention it.
6770         * modules/areadlinkat-with-size-tests: New test.
6771         * tests/test-areadlinkat-with-size.c: New file.
6772
6773         xreadlinkat: new module
6774         * modules/xreadlinkat: New module.
6775         * lib/xreadlinkat.c (xreadlinkat): New file.
6776         * lib/xreadlink.h (xreadlinkat): Declare it.
6777         * MODULES.html.sh (File system functions): Mention it.
6778
6779         areadlinkat: new module
6780         * lib/at-func.c (FUNC_FAIL): New define.
6781         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
6782         * modules/areadlinkat: New module.
6783         * lib/linkat.c (areadlinkat): Move...
6784         * lib/areadlinkat.c (areadlinkat): ...to new file.
6785         * lib/areadlink.h (areadlinkat): Declare it.
6786         * modules/linkat (Depends-on): Add areadlinkat.
6787         * MODULES.html.sh (File system functions): Mention it.
6788         * modules/areadlinkat-tests: New test.
6789         * tests/test-areadlinkat.c: New file.
6790
6791         areadlink, areadlink-with-size: add tests
6792         * modules/areadlink-tests: New test.
6793         * modules/areadlink-with-size-tests: Likewise.
6794         * tests/test-areadlink.h: New file.
6795         * tests/test-areadlink.c: Likewise.
6796         * tests/test-areadlink-with-size.c: Likewise.
6797
6798         maint: minor cleanups
6799         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
6800         _UNUSED_PARAMETER_ instead.
6801         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
6802         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
6803         * modules/linkat-tests (Files): Distribute test-link.h.
6804
6805         openat, utimens: whitespace cleanup
6806         * lib/openat.c: Prefer space throughout, rather than mix of 8
6807         spaces vs. tabs.
6808         * lib/at-func.c: Likewise.
6809         * lib/utimens.c: Likewise.
6810
6811         openat: avoid using wrong fd
6812         * lib/openat.c (openat_permissive): Reject user's fd if saving the
6813         working directory chooses same fd.
6814         * lib/at-func.c (AT_FUNC_NAME): Likewise.
6815
6816         mkdir, mkdirat: fix cygwin 1.5.x bug
6817         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
6818         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
6819         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
6820         bug.
6821         (gl_PREREQ_MKDIR): Delete unused macro.
6822         * modules/mkdir (Files): Track file rename.
6823         (configure.ac): Update macro name.
6824         * modules/openat (Depends-on): Add mkdir.
6825         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
6826
6827         mkdir, mkdirat: add tests
6828         * modules/mkdir-tests: New test.
6829         * tests/test-mkdir.h: New file.
6830         * tests/test-mkdir.c: Likewise.
6831         * tests/test-mkdirat.c: Likewise.
6832         * modules/openat-tests (Files): Add new files.
6833         (Makefile.am): Run new test.
6834
6835 2009-10-06  Eric Blake  <ebb9@byu.net>
6836
6837         doc: tweak *at function documentation
6838         * doc/posix-functions/faccessat.texi (faccessat): Mention
6839         known issue with replacement.
6840         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
6841         * doc/posix-functions/linkat.texi (linkat): Likewise.
6842         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
6843         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
6844         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6845         * doc/posix-functions/renameat.texi (renameat): Likewise.
6846         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6847
6848         openat: fix GNU/Hurd bug in unlinkat
6849         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
6850         broken.
6851         * doc/posix-functions/unlink.texi (unlink): Document this.
6852         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
6853
6854         fdopendir: fix GNU/Hurd bug
6855         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
6856         allowing non-directory fds.
6857         * lib/fdopendir.c (rpl_fdopendir): Work around it.
6858         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6859         * modules/dirent (Makefile.am): Substitute it.
6860         * lib/dirent.in.h (fdopendir): Declare replacement.
6861         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
6862         * tests/test-fdopendir.c (main): Test something other than
6863         /dev/null, since on Hurd that behaves like a directory.
6864
6865         test-symlink: port to GNU/Hurd
6866         * tests/test-symlink.h (test_symlink): Relax expected errno.
6867
6868         doc: tweak more cygwin information
6869         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
6870         now compatible with glibc.
6871         * doc/posix-functions/getopt.texi (getopt): Likewise.
6872
6873         getopt-gnu: add another test
6874         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
6875         guarantee behavior relied on by m4.
6876         * tests/test-getopt.c (main): Use it.
6877         * modules/getopt-posix-tests (Depends-on): Add setenv.
6878         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
6879
6880         getopt: fix compilation on darwin
6881         * lib/getopt.in.h (includes): Leave breadcrumbs during system
6882         include.
6883         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
6884         Reported by Ludovic Courtès.
6885
6886 2009-10-06  Bruno Haible  <bruno@clisp.org>
6887
6888         * modules/size_max (Description): Discourage its use.
6889         Reported by Simon Josefsson.
6890
6891 2009-10-06  Jim Meyering  <meyering@redhat.com>
6892
6893         linkat: avoid compilation failure
6894         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
6895
6896 2009-10-05  Eric Blake  <ebb9@byu.net>
6897
6898         linkat: support Linux 2.6.17
6899         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
6900         linkat on Linux, but allow cache variable override.
6901         * lib/linkat.c (rpl_linkat): Define override.
6902         * modules/linkat (Depends-on): Add symlinkat.
6903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
6904         * modules/unistd (Makefile.am): Substitute it.
6905         * lib/unistd.in.h (linkat): Declare replacement.
6906         Reported by Pádraig Brady.
6907
6908         quotearg: port test to systems with C.UTF-8 locale
6909         * tests/test-quotearg.c (struct result_strings): Add another
6910         member, differentiating between C.ASCII and C.UTF-8 handling.
6911         (compare_strings): Add parameter.
6912         (main): Adjust all callers.
6913
6914         getopt: avoid clash with FreeBSD _getopt_internal
6915         * lib/getopt.in.h (_getopt_internal): Override the name.
6916         * lib/getopt_int.h (includes): Pick up any overrides.
6917         Reported by Reuben Thomas.
6918
6919         hash: allow C89 compilation
6920         * lib/hash.c (check_tuning): Move declaration before statement.
6921         Reported by Reuben Thomas.
6922
6923 2009-10-05  Karl Berry  <karl@gnu.org>
6924
6925         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
6926
6927 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
6928             Bruno Haible  <bruno@clisp.org>
6929
6930         * lib/uname.c (uname): Use a table-driven algorithm to compute
6931         Windows NT versions.
6932
6933 2009-10-04  Bruno Haible  <bruno@clisp.org>
6934
6935         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
6936         program_invocation_short_name.
6937         * modules/progname (configure.ac): Test for presence of
6938         program_invocation_short_name.
6939         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
6940
6941 2009-10-04  Bruno Haible  <bruno@clisp.org>
6942
6943         * lib/progname.c (set_program_name): Fix comment.
6944         Reported by Jim Meyering.
6945
6946 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
6947             Bruno Haible  <bruno@clisp.org>
6948
6949         * lib/uname.c: Include <string.h>.
6950         (uname): Do only one call to GetVersionEx in the common case.
6951
6952 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
6953             Bruno Haible  <bruno@clisp.org>
6954
6955         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
6956         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
6957         (uname): Add support for Windows CE and various non-x86 CPU types.
6958
6959 2009-10-03  Bruno Haible  <bruno@clisp.org>
6960
6961         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
6962         invocation to tests/configure.ac.
6963         Reported by Ian Beckwith <ianb@erislabs.net>.
6964
6965 2009-10-02  Eric Blake  <ebb9@byu.net>
6966
6967         fchdir: avoid compiler warning
6968         * lib/fchdir.c (canonicalize_file_name)
6969         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
6970
6971         test-open: support mingw errno values
6972         * tests/test-open.h (test_open): Relax test.
6973         * tests/test-fopen.h (test_fopen): Likewise.
6974         * tests/test-openat-safer.c (main): Likewise.
6975
6976         open: fix opening directory on mingw
6977         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
6978
6979         test-open: on GNU/Hurd, /dev/null is a directory
6980         * tests/test-fopen.h (main): Rename...
6981         (test_fopen): ...to this.  Use a guaranteed non-directory when
6982         confirming open behavior on trailing slash.
6983         * tests/test-openat-safer.c (main): Likewise.
6984         * tests/test-open.h (main): Likewise....
6985         (test_open): ...to this.
6986         * tests/test-fopen.c (main): Adjust caller.
6987         * tests/test-fopen-safer.c (main): Likewise.
6988         * tests/test-open.c (main): Likewise.
6989         * tests/test-fcntl-safer.c (main): Likewise.
6990         Reported by Samuel Thibault.
6991
6992         rename, fchdir: don't ignore chdir failure
6993         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
6994         * lib/rename.c (rpl_rename) [W32]: Likewise.
6995         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
6996         an empty destination directory if source cannot be renamed,
6997         although there is still possibility for failure.
6998         * doc/posix-functions/rename.texi (rename): Document the race.
6999         Reported by Jim Meyering.
7000
7001         maint: cleanup whitespace in recent commits
7002         * lib/rename.c (rpl_rename): Remove tabs.
7003         * tests/test-link.h (test_link): Likewise.
7004         * lib/fchdir.c (get_name): Likewise.
7005         Reported by Jim Meyering.
7006
7007 2009-10-02  Ben Pfaff  <blp@gnu.org>
7008
7009         relocatable-prog-wrapper: Add missing dependency on
7010         double-slash-root.
7011         * modules/relocatable-prog-wrapper: Add dependency.
7012         Reported by Ian Beckwith <ianb@erislabs.net>.
7013
7014 2009-10-02  Eric Blake  <ebb9@byu.net>
7015
7016         renameat: fix Solaris bugs
7017         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
7018         needed fixing.
7019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
7020         * modules/stdio (Makefile.am): Substitute it.
7021         * lib/stdio.in.h (renameat): Declare replacement.
7022         * lib/renameat.c (rpl_renameat): Implement fix.
7023
7024         renameat: new module
7025         * modules/renameat: New file.
7026         * lib/renameat.c (renameat): Likewise.
7027         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
7028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7029         * modules/stdio (Makefile.am): Substitute them.
7030         * lib/stdio.in.h (renameat): Declare it.
7031         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7032         * doc/posix-functions/renameat.texi (renameat): Likewise.
7033         * modules/renameat-tests: New test.
7034         * tests/test-renameat.c: Likewise.
7035
7036         rename: fix mingw bugs
7037         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
7038         directory overwrite bugs.
7039
7040         rename: fix another cygwin 1.5 bug
7041         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
7042         checks.
7043         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
7044         unnecessary cygwin workarounds.  Also work around bug with moving
7045         full directory onto an empty one.
7046         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
7047
7048         rename-dest-slash: merge into rename module
7049         * modules/rename-dest-slash (Status): Mark obsolete.
7050         (Depends-on): Add rename.
7051         (Files): Let rename do it all.
7052         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
7053         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
7054         * m4/rename-dest-slash.m4: ...so this file can be deleted.
7055         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
7056         * lib/rename.c (rpl_rename): Update comments.
7057
7058         rename: fix cygwin 1.5.x bugs
7059         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
7060         * lib/rename.c (rpl_rename): Work around them.
7061         * modules/rename (Depends-on): Add same-inode.
7062
7063         rename: fix Solaris 10 bug
7064         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7065         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
7066         was the only bug.
7067
7068         rename: fix Solaris 9 bug
7069         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
7070         on non-directory.  Avoid calling exit.
7071         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
7072         strdup.
7073         * modules/rename-tests (Depends-on): Drop lstat.
7074         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7075         (gl_PREREQ_RENAME): Delete unused macro.
7076
7077         rename-dest-slash: fix NetBSD bug
7078         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
7079         links.
7080         * modules/rename-dest-slash (Depends-on): Add same-inode.
7081
7082         rename-tests: new test, exposes several platform bugs
7083         * modules/rename-tests: New file.
7084         * tests/test-rename.h: Likewise.
7085         * tests/test-rename.c: Likewise.
7086         * doc/posix-functions/rename.texi (rename): Improve documentation,
7087         including bugs that will eventually be fixed in gnulib.
7088
7089 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
7090
7091         * lib/uname.c: Include <stdlib.h>
7092         (uname): Assume version info is available.
7093
7094 2009-10-02  Jim Meyering  <meyering@redhat.com>
7095
7096         gnu-web-doc-update: correct --help output
7097         * build-aux/gnu-web-doc-update: Make --help output relevant.
7098
7099         gnu-web-doc-update: add standard options
7100         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
7101
7102         gnu-web-doc-update: New module.
7103         Use this script to automatically update the on-line web documentation
7104         for your GNU project at http://www.gnu.org/software/$pkg/manual/
7105         * modules/gnu-web-doc-update: New file, from coreutils.
7106         * build-aux/gnu-web-doc-update: New script.
7107
7108 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
7109
7110         link: LoadLibrary is not needed.
7111         * lib/link.c: Use GetModuleHandle.
7112
7113 2009-10-01  Eric Blake  <ebb9@byu.net>
7114
7115         getopt: bump serial number
7116         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
7117         change.
7118
7119         tests: tighten link, rmdir, and remove tests
7120         * tests/test-link.h (includes): No need to use <config.h> here.
7121         Clean up if directory hard link was created, otherwise test for
7122         trailing '.'.
7123         * tests/test-linkat.c (main): Simplify.
7124         * tests/test-remove.c (main): Enhance test for trailing '.'.
7125         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7126
7127 2009-10-01  Jim Meyering  <meyering@redhat.com>
7128
7129         maint.mk: requiring "make major" was annoying, for a "minor" release.
7130         What is intended is "stable", to contrast with alpha and beta,
7131         so require "make stable", not "make major".
7132         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
7133         (get_tool_versions): Likewise.
7134         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
7135
7136 2009-09-30  Ben Pfaff  <blp@gnu.org>
7137
7138         Fix broken build of replacement for Windows tmpfile().
7139         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
7140         flags argument added along with the 'mkostemp' module.
7141
7142 2009-09-28  Bruno Haible  <bruno@clisp.org>
7143
7144         Avoid identifier clash with POSIX function 'remove' defined as a macro.
7145         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
7146         to 'remove_elt'.
7147         (gl_list_remove): Update.
7148         * lib/gl_list.c (gl_list_remove): Update.
7149         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
7150         to 'remove_elt'.
7151         (gl_oset_remove): Update.
7152         * lib/gl_list.c (gl_oset_remove): Update.
7153         Reported by Eric Blake.
7154
7155 2009-09-28  Eric Blake  <ebb9@byu.net>
7156
7157         doc: mention yet more cygwin 1.7 status
7158         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
7159         cygwin.
7160         * doc/glibc-functions/execvpe.texi (execvpe): New file.
7161         * doc/gnulib.texi (Glibc unistd.h): Mention it.
7162
7163         argp: fix test failure
7164         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
7165         that are not upper-case.  Pass correct range to tolower.
7166
7167 2009-09-27  Jim Meyering  <meyering@redhat.com>
7168
7169         test-yesno: work around sparc-dash here-document infelicity
7170         Without this change, the literal \177 byte in a here document
7171         would make dash 0.5.5.1-3 access uninitialized memory.
7172         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
7173         Instead, use a marker, "@", and filter through tr to create the desired
7174         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
7175
7176 2009-09-27  Bruno Haible  <bruno@clisp.org>
7177
7178         Disable untested support for new flavours of ACLs on AIX.
7179         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
7180         progress.
7181         * lib/set-mode-acl.c (qset_acl): Likewise.
7182
7183 2008-12-07  Bruno Haible  <bruno@clisp.org>
7184
7185         Add support for new flavours of ACLs on AIX. (Untested.)
7186         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
7187         (file_has_acl): Add support for newer AIX.
7188         * lib/set-mode-acl.c (qset_acl): Likewise.
7189         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
7190         Rainer Tammer <tammer@tammer.net>.
7191
7192 2009-09-26  Eric Blake  <ebb9@byu.net>
7193
7194         argp: fix compilation of getopt
7195         * lib/getopt.in.h (includes): Use different guard than glibc.
7196         Reported by Sergey Poznyakoff.
7197
7198         doc: mention more cygwin 1.7 status
7199         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
7200         bug.
7201         * doc/posix-functions/execl.texi (execl): Likewise.
7202         * doc/posix-functions/execle.texi (execle): Likewise.
7203         * doc/posix-functions/execlp.texi (execlp): Likewise.
7204         * doc/posix-functions/execv.texi (execv): Likewise.
7205         * doc/posix-functions/execve.texi (execve): Likewise.
7206         * doc/posix-functions/execvp.texi (execvp): Likewise.
7207         * doc/glibc-functions/canonicalize_file_name.texi
7208         (canonicalize_file_name): Cygwin 1.7 now provides this.
7209         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
7210         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
7211         on AT_SYMLINK_NOFOLLOW.
7212
7213 2009-09-24  Eric Blake  <ebb9@byu.net>
7214
7215         test-linkat: make test more robust
7216         * tests/test-linkat.c (main): Avoid collision with EEXIST.
7217
7218         getopt: fix inclusion guards for cygwin
7219         * modules/getopt-posix (Depends-on): Add include-next.
7220         (Makefile.am): Substitute more items in replacement header.
7221         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
7222         <getopt.h>.
7223         * lib/getopt.in.h (includes): Use split inclusion guard, and
7224         prefer <getopt.h> over include <unistd.h> when one is present.
7225         (option): Also override name of 'struct option'.
7226
7227         same-inode: revert prior change; it is not yet ready
7228         * NEWS: Undo mention of this change.
7229         * lib/same-inode.h (same-inode.h): Undo tri-state change.
7230         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
7231         * lib/cycle-check.c (cycle_check): Likewise.
7232         * lib/same.c (same_name): Likewise.
7233         * lib/at-func2.c (at_func2): Likewise.
7234
7235 2009-09-23  Eric Blake  <ebb9@byu.net>
7236
7237         linkat: new module
7238         * modules/linkat: New file.
7239         * lib/at-func2.c (at_func2): Likewise.
7240         * lib/linkat.c (linkat): Likewise.
7241         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7242         * lib/openat-priv.h (at_func2): Add declaration.
7243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7244         * modules/unistd (Makefile.am): Substitute them.
7245         * lib/unistd.in.h (linkat): Declare it.
7246         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7247         * doc/posix-functions/linkat.texi (linkat): Likewise.
7248         * doc/posix-functions/link.texi (link): Tweak wording.
7249         * tests/test-link.c (main): Move guts...
7250         * tests/test-link.h (test_link): ...into new file.
7251         * modules/linkat-tests: New test.
7252         * tests/test-linkat.c: Likewise.
7253         * modules/link-tests (Files): Ship new file.
7254         (Depends-on): Add stdbool.
7255
7256         dirname: add library-safe mdir_name
7257         * lib/dirname.h (mdir_name): New prototype.
7258         * lib/dirname.c (dir_name): Move guts...
7259         (mdir_name): ...to new function that avoids xalloc_die.
7260
7261         fchdir: another mingw fix
7262         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
7263         * lib/fchdir.c (get_name): New helper method; skips canonicalize
7264         on mingw (where it has not yet been ported), and make it optional
7265         elsewhere.
7266         (_gl_register_fd): Use it.
7267
7268         same-inode: make SAME_INODE tri-state, to port to mingw
7269         * NEWS: Mention this change.
7270         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
7271         st_ino always being 0.
7272         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
7273         * lib/cycle-check.c (cycle_check): Likewise.
7274         * lib/same.c (same_name): Likewise.
7275
7276         lstat: avoid mingw compilation error
7277         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
7278         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
7279         lstat ourselves.
7280         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
7281         was adequate.
7282         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
7283         the checks for lstat.
7284         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
7285
7286         link: fix test failure on Solaris 9
7287         * lib/link.c (rpl_link): Don't assume link will catch bogus
7288         trailing slash on source.
7289
7290         test-symlinkat: enhance test
7291         * tests/test-readlink.c (main): Move guts...
7292         * tests/test-readlink.h (test_readlink): ...into new file.
7293         * tests/test-symlink.c (main): Move guts...
7294         * tests/test-symlink.h (test_symlink): ...into new file.
7295         * tests/test-symlinkat.c (main): Use new files for further
7296         coverage.
7297         (do_symlink, do_readlink): New helper functions.
7298         * modules/symlink-tests (Files): Ship new file.
7299         (Depends-on): Add stdbool.
7300         * modules/readlink-tests (Files): Ship new file.
7301         (Depends-on): Add stdbool.
7302         * modules/symlinkat-tests (Files): Use new files.
7303
7304 2009-09-23  Eric Blake  <ebb9@byu.net>
7305
7306         readlink: document portability issue with symlink length
7307         * doc/posix-functions/lstat.texi (lstat): Mention that some file
7308         systems have bogus st_size on symlinks, and mention the
7309         areadlink-with-size module.
7310         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7311         * doc/posix-functions/readlink.texi (readlink): Mention the
7312         areadlink module, and ERANGE failure.
7313         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7314         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
7315
7316         readlink: fix Solaris 9 bug with trailing slash
7317         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
7318         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
7319         * doc/posix-functions/readlink.texi (readlink): Document this.
7320         * modules/readlink-tests: New test.
7321         * tests/test-readlink.c: Likewise.
7322
7323         readlink: fix cygwin 1.5.x bug with return type
7324         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
7325         * lib/unistd.in.h (readlink): Use ssize_t.
7326         * lib/readlink.c (readlink): Likewise.
7327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7328         * modules/unistd (Makefile.am): Substitute it.
7329         * lib/unistd.in.h (readlink): Declare replacement.
7330         * doc/posix-functions/readlink.texi (readlink): Document this.
7331
7332         symlink: use throughout gnulib
7333         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
7334         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
7335         symlink is not used.
7336         * modules/symlinkat (Depends-on): Add symlink.
7337         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7338         * modules/canonicalize-tests (Depends-on): Likewise.
7339         * modules/lstat-tests (Depends-on): Likewise.
7340         * modules/openat-tests (Depends-on): Likewise.
7341         * modules/remove-tests (Depends-on): Likewise.
7342         * modules/rmdir-tests (Depends-on): Likewise.
7343         * modules/unlink-tests (Depends-on): Likewise.
7344         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
7345         * tests/test-canonicalize.c (symlink): Likewise.
7346         * tests/test-fstatat.c (symlink): Likewise.
7347         * tests/test-lstat.c (symlink): Likewise.
7348         * tests/test-remove.c (symlink): Likewise.
7349         * tests/test-rmdir.c (symlink): Likewise.
7350         * tests/test-unlink.c (symlink): Likewise.
7351         * tests/test-unlinkat.c (symlink): Likewise.
7352
7353         symlink: new module, for Solaris 9 bug
7354         * modules/symlink: New file.
7355         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7356         * lib/symlink.c: Likewise.
7357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7358         * modules/unistd (Makefile.am): Substitute them.
7359         * lib/unistd.in.h (symlink): Declare replacement.
7360         * MODULES.html.sh (File system functions): Mention it.
7361         * doc/posix-functions/symlink.texi (symlink): Likewise.
7362         * modules/symlink-tests: New test.
7363         * tests/test-symlink.c: Likewise.
7364
7365 2009-09-23  Bruno Haible  <bruno@clisp.org>
7366
7367         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
7368         when needed.
7369         Test case: gnulib-tool --import --with-tests atexit inttypes.
7370         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
7371
7372 2009-09-23  Bruno Haible  <bruno@clisp.org>
7373
7374         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
7375         subcommand, not in a subshell.
7376
7377 2009-09-22  Eric Blake  <ebb9@byu.net>
7378
7379         unistd: sort replacement declarations
7380         * lib/unistd.in.h: Sort declarations.
7381
7382         open, openat: minor optimization
7383         * lib/open.c (open): If open succeeded, len is non-zero.
7384         * lib/openat.c (rpl_openat): Likewise.
7385
7386         link-follow: ensure correct result
7387         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
7388         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
7389         distinguish between possible failures.
7390
7391 2009-09-21  Eric Blake  <ebb9@byu.net>
7392
7393         fts: avoid compiler warning
7394         * lib/fts.c (dirent_inode_sort_may_be_useful)
7395         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
7396
7397 2009-09-19  Bruno Haible  <bruno@clisp.org>
7398
7399         * lib/progreloc.c (canonicalize_file_name): New declaration.
7400
7401 2009-09-19  Eric Blake  <ebb9@byu.net>
7402
7403         link: fix quoting
7404         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
7405
7406         openat: fix openat bugs on Solaris 9
7407         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
7408         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
7409         * modules/openat (Depends-on): Add open.
7410         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
7411         * modules/fcntl-h (Makefile.am): Substitute it.
7412         * lib/fcntl.in.h (openat): Declare replacement.
7413         * doc/posix-functions/openat.texi (openat): Document this.
7414
7415         openat: move fstatat and unlinkat into correct files
7416         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
7417         compiled.
7418         * lib/openat.c (fstatat, unlinkat): Move...
7419         * lib/fstatat.c (fstatat): ...into correct files.
7420         * lib/unlinkat.c (unlinkat): Likewise.
7421
7422         openat: fix unlinkat bugs on Solaris 9
7423         * lib/unlinkat.c (unlinkat): New file.
7424         * modules/openat (Depends-on): Add unlink.
7425         (Files): Distribute it.
7426         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
7427         trailing slash behavior is broken.
7428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7429         * modules/unistd (Makefile.am): Substitute it.
7430         * lib/unistd.in.h (unlinkat): Declare replacement.
7431         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
7432
7433         openat: fix fstatat bugs on Solaris 9
7434         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
7435         stat.
7436         * doc/posix-functions/fstatat.texi (fstatat): Document this.
7437
7438         test-unlinkat: enhance test, to expose Solaris 9 bug
7439         * tests/test-unlink.c (main): Factor guts...
7440         * tests/test-unlink.h (test_rmdir_func): ...into new file.
7441         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
7442         * tests/test-rmdir.c (main): Adjust caller.
7443         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
7444         (unlinker): New helper function.
7445         (rmdirat): Enhance check.
7446         * modules/rmdir-tests (Depends-on): Add stdbool.
7447         * modules/unlink-tests (Depends-on): Likewise.
7448         (Files): Add test-unlink.h.
7449         * modules/openat-tests (Files): Likewise.
7450         (Depends-on): Add unlinkdir.
7451
7452         test-fstatat: new test, to expose Solaris 9 bugs
7453         * tests/test-stat.c (main): Factor guts...
7454         * tests/test-stat.h (test_stat_func): ...into new file.
7455         * tests/test-lstat.c (main): Factor guts...
7456         * tests/test-lstat.h (test_lstat_func): ...into new file.
7457         * tests/test-fstatat.c: New file.
7458         * modules/stat-tests (Files): Add test-stat.h.
7459         * modules/lstat-tests (Files): Add test-lstat.h.
7460         (Depends-on): Add stdbool.
7461         * modules/openat-tests (Depends-on): Add pathmax.
7462         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
7463         (Makefile.am): Run new test.
7464
7465         remove: new module, for mingw and Solaris 9 bugs
7466         * modules/remove: New file.
7467         * lib/remove.c: Likewise.
7468         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
7469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7470         * modules/stdio (Makefile.am): Use them.
7471         * lib/stdio.in.h (remove): Declare replacement.
7472         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7473         * doc/posix-functions/remove.texi (remove): Likewise.
7474         * modules/remove-tests: New test.
7475         * tests/test-remove.c: Likewise.
7476
7477         unlink: new module, for Solaris 9 bug
7478         * modules/unlink: New file.
7479         * lib/unlink.c: Likewise.
7480         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7482         * modules/unistd (Makefile.am): Use them.
7483         * lib/unistd.in.h (stat): Declare replacement.
7484         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7485         * doc/posix-functions/unlink.texi (unlink): Likewise.
7486         * modules/unlink-tests: New test.
7487         * tests/test-unlink.c: Likewise.
7488
7489         lstat: fix Solaris 9 bug
7490         * lib/lstat.c (lstat): Also check for trailing slash on
7491         non-symlink, non-directories.  Use stat module to simplify logic.
7492         * doc/posix-functions/lstat.texi (lstat): Document it.
7493         * modules/lstat-tests (Depends-on): Add errno, same-inode.
7494         (configure.ac): Check for symlink.
7495         * tests/test-lstat.c (main): Add more tests.
7496
7497         stat: add as dependency to other modules
7498         * modules/chown (Depends-on): Add stat.
7499         * modules/euidaccess (Depends-on): Likewise.
7500         * modules/fchdir (Depends-on): Likewise.
7501         * modules/isdir (Depends-on): Likewise.
7502         * modules/link (Depends-on): Likewise.
7503         * modules/lstat (Depends-on): Likewise.
7504         * modules/mkdir-p (Depends-on): Likewise.
7505         * modules/modechange (Depends-on): Likewise.
7506         * modules/open (Depends-on): Likewise.
7507         * modules/readlink (Depends-on): Likewise.
7508         * modules/same (Depends-on): Likewise.
7509
7510         stat: fix Solaris 9 bug
7511         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
7512         slash.
7513         * lib/stat.c (rpl_stat): Work around it.
7514         * doc/posix-functions/stat.texi (stat): Update documentation.
7515
7516         stat: new module, for mingw bug
7517         * modules/stat: New file.
7518         * lib/stat.c: Likewise.
7519         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7520         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7521         * modules/sys_stat (Makefile.am): Use them.
7522         * lib/sys_stat.in.h (stat): Declare replacement.
7523         * lib/openat.c (fstatat): Deal with lstat and stat being function
7524         macros.
7525         * modules/openat (Depends-on): Add inline.
7526         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7527         * doc/posix-functions/stat.texi (stat): Likewise.
7528         * modules/stat-tests: New test.
7529         * tests/test-stat.c: Likewise.
7530
7531 2009-09-19  Jim Meyering  <meyering@redhat.com>
7532
7533         syntax-check: detect unnecessary inclusion of canonicalize.h
7534         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
7535
7536 2009-09-19  Eric Blake  <ebb9@byu.net>
7537
7538         canonicalize-lgpl: adjust clients to use correct header
7539         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
7540         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
7541         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
7542         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
7543         * lib/progreloc.c (includes): Likewise.
7544
7545 2009-09-19  Jim Meyering  <meyering@redhat.com>
7546
7547         test-posixtm.c: correct a comment
7548         * tests/test-posixtm.c: Correct first-line comment.
7549         Spotted by Eric Blake.
7550
7551 2009-09-16  Jim Meyering  <meyering@redhat.com>
7552
7553         posixtm-tests: make T const-correct; add a test case
7554         * tests/test-posixtm.c (T): Declare const.
7555         Add a test for -(2^31+1).
7556         Remove useless can-succeed-only-in-2002 test.
7557
7558         posixtm-tests: adjust the sole failing test
7559         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
7560         expected output matches what mktime now produces.  Cross-checked via
7561         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
7562
7563         posixtm: move #ifdef'd tests into a new module
7564         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
7565         * tests/test-posixtm.c: ... this new file.
7566         * modules/posixtm-tests: New module.
7567
7568 2009-09-19  Eric Blake  <ebb9@byu.net>
7569
7570         openat: simplify use of at-func.c
7571         * lib/at-func.c (includes): Include prerequisites here, to
7572         simplify requirements on client files.
7573         * lib/openat-priv.h: Add double-inclusion guard.
7574         * lib/faccessat.c (includes): Simplify.
7575         * lib/fchmodat.c (includes): Likewise.
7576         * lib/fchownat.c (includes): Likewise.
7577         * lib/mkdirat.c (includes): Likewise.
7578         * lib/mkfifoat.c (includes): Likewise.
7579         * lib/symlinkat.c (includes): Likewise.
7580
7581         openat: allow return of fd 0
7582         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
7583         * modules/save-cwd (Depends-on): Replace fcntl-safer with
7584         unistd-safer.
7585         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
7586         <fcntl.h>; this module does not leak fds.
7587         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
7588         must be allowed to return 0, leaving openat_safer to add the
7589         safety.
7590         (openat_permissive): Avoid writing to just-opened fd 2 if
7591         restoring the current directory fails.
7592         * lib/openat-die.c (openat_restore_fail): Add comment.
7593         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
7594         (save_cwd): Guarantee safe fd, but without use of open_safer.
7595         * tests/test-openat.c: New test.
7596         * modules/openat-tests (Files, Makefile.am): Distribute and build
7597         new file.
7598
7599         relocatable-prog-wrapper: fix build
7600         * modules/relocatable-prog-wrapper (Files): Update name of
7601         canonicalize m4 file, broken on 2009-09-17.
7602         Reported by emad hajjar <aleppos@hotmail.com>.
7603
7604 2009-09-19  Bruno Haible  <bruno@clisp.org>
7605
7606         * lib/safe-alloc.h: Use the standard header with GPL copyright.
7607         * lib/safe-alloc.c: Likewise.
7608         Reported by Ian Beckwith <ianb@erislabs.net>.
7609
7610 2009-09-18  Bruno Haible  <bruno@clisp.org>
7611
7612         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
7613         Reported by <erobles@sensacd.com.mx>.
7614
7615 2009-09-17  Eric Blake  <ebb9@byu.net>
7616
7617         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
7618         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
7619         slashes when checking if last component is missing.
7620         * tests/test-canonicalize.c (main): Test this.
7621
7622         canonicalize, canonicalize-lgpl: honor // if distinct from /
7623         * modules/canonicalize (Files): Add double-slash-root.m4.
7624         * modules/canonicalize-lgpl (Files): Likewise.
7625         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
7626         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
7627         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
7628         fallback definition.
7629         (canonicalize_filename_mode): Use it to protect //.
7630         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
7631         (__realpath): Likewise.
7632         * tests/test-canonicalize.c (main): Test this.
7633         * tests/test-canonicalize-lgpl.c (main): Likewise.
7634         * modules/canonicalize-tests (Depends-on): Add same-inode.
7635         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7636
7637         canonicalize-lgpl: fix glibc bug with trailing slash
7638         * m4/canonicalize-lgpl.m4: Move contents...
7639         * m4/canonicalize.m4: ...here.
7640         (gl_CANONICALIZE_LGPL): Factor realpath check...
7641         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
7642         glibc 2.3.5 bug, fixed 2005-04-27.
7643         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
7644         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
7645         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
7646         * modules/canonicalize-lgpl (Files): Manage file rename.
7647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
7648         * modules/stdlib (Makefile.am): Substitute witness.
7649         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
7650         is needed.
7651         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
7652         replacement is required.
7653         * lib/canonicalize.c (canonicalize_file_name): Likewise.
7654         * doc/glibc-functions/canonicalize_file_name.texi
7655         (canonicalize_file_name): Document this.
7656         * doc/posix-functions/realpath.texi (realpath): Likewise.
7657
7658         canonicalize-lgpl: reject non-directory with trailing slash
7659         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
7660         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
7661         catches failures in glibc 2.3.5.
7662         * tests/test-canonicalize.c (main): Likewise.
7663
7664         canonicalize-lgpl: use native realpath if it works
7665         * lib/canonicalize-lgpl.c (realpath): Guard with
7666         FUNC_REALPATH_WORKS.
7667         * lib/stdlib.in.h (realpath): Make declaration optional based on
7668         HAVE_REALPATH.
7669         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
7670         native realpath works.
7671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
7672         * modules/stdlib (Makefile.am): Substitute witness.
7673
7674         canonicalize, canonicalize-lgpl: use <stdlib.h>
7675         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
7676         (Include): Mention <stdlib.h>.
7677         (configure.ac): Mention functions we provide.
7678         * modules/canonicalize (configure.ac): Likewise.
7679         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
7680         realpath if canonicalize_file_name is missing.
7681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
7682         * modules/stdlib (Makefile.am): Substitute witnesses.
7683         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
7684         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
7685         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
7686         * NEWS: Document this.
7687         * doc/glibc-functions/canonicalize_file_name.texi
7688         (canonicalize_file_name): Likewise.
7689         * doc/posix-functions/realpath.texi (realpath): Likewise.
7690         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
7691
7692         test-canonicalize: consolidate into single C program
7693         * tests/test-canonicalize.sh: Delete; move setup into...
7694         * tests/test-canonicalize.c (main): ...the program, making it
7695         easier to run in debugger.  Add some tests.
7696         * modules/canonicalize-tests (Files): Remove unused file.
7697         (Depends-on): Add progname.
7698         (configure.ac, Makefile.am): Simplify.
7699
7700         test-canonicalize-lgpl: consolidate into single C program
7701         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
7702         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
7703         easier to run in debugger.  Add some tests.
7704         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
7705         (configure.ac, Makefile.am): Simplify.
7706
7707         canonicalize: avoid resolvepath
7708         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
7709         unnecessary checks.
7710         * lib/canonicalize.c (includes): Simplify.
7711         (canonicalize_file_name): Drop resolvepath implementation.
7712         * modules/canonicalize (Depends-on): Drop filenamecat.
7713
7714         canonicalize: don't lose errno
7715         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
7716         over calls to free.
7717
7718         canonicalize: simplify errno handling
7719         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
7720         assignment.
7721
7722         canonicalize, canonicalize-lgpl: update module dependencies
7723         * modules/canonicalize (Depends-on): Add extensions, lstat,
7724         pathmax, stdlib.
7725         (Files): Drop pathmax.h.
7726         (configure.ac): Adjust macro name.
7727         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
7728         lstat, stdlib, sys_stat.
7729         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
7730         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
7731         extensions.
7732         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
7733         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
7734         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
7735         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
7736         declaration, if available.
7737         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
7738         we can rely on the readlink module.
7739         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
7740         (includes): Use <unistd.h> unconditionally.
7741
7742 2009-09-17  Eric Blake  <ebb9@byu.net>
7743
7744         maint: make Include sections of modules consistent
7745         * modules/alloca: Use only header name; no need to list #include.
7746         * modules/alloca-opt: Likewise.
7747         * modules/arpa_inet: Likewise.
7748         * modules/canon-host: Likewise.
7749         * modules/configmake: Likewise.
7750         * modules/dirent: Likewise.
7751         * modules/eealloc: Likewise.
7752         * modules/environ: Likewise.
7753         * modules/fchdir: Likewise.
7754         * modules/fcntl: Likewise.
7755         * modules/fcntl-h: Likewise.
7756         * modules/gethrxtime: Likewise.
7757         * modules/gettime: Likewise.
7758         * modules/ignore-value: Likewise.
7759         * modules/inet_ntop: Likewise.
7760         * modules/inet_pton: Likewise.
7761         * modules/inttypes: Likewise.
7762         * modules/isnand-nolibm: Likewise.
7763         * modules/isnanf-nolibm: Likewise.
7764         * modules/mbchar: Likewise.
7765         * modules/mbfile: Likewise.
7766         * modules/mbiter: Likewise.
7767         * modules/mbuiter: Likewise.
7768         * modules/netdb: Likewise.
7769         * modules/netinet_in: Likewise.
7770         * modules/nproc: Likewise.
7771         * modules/pagealign_alloc: Likewise.
7772         * modules/poll: Likewise.
7773         * modules/printf-frexp: Likewise.
7774         * modules/pthread: Likewise.
7775         * modules/putenv: Likewise.
7776         * modules/random_r: Likewise.
7777         * modules/relocatable-prog: Likewise.
7778         * modules/search: Likewise.
7779         * modules/select: Likewise.
7780         * modules/selinux-h: Likewise.
7781         * modules/settime: Likewise.
7782         * modules/signal: Likewise.
7783         * modules/size_max: Likewise.
7784         * modules/socklen: Likewise.
7785         * modules/ssize_t: Likewise.
7786         * modules/stdarg: Likewise.
7787         * modules/stdbool: Likewise.
7788         * modules/stddef: Likewise.
7789         * modules/stdint: Likewise.
7790         * modules/stdio: Likewise.
7791         * modules/stdlib: Likewise.
7792         * modules/string: Likewise.
7793         * modules/strings: Likewise.
7794         * modules/sys_file: Likewise.
7795         * modules/sys_ioctl: Likewise.
7796         * modules/sys_select: Likewise.
7797         * modules/sys_socket: Likewise.
7798         * modules/sys_stat: Likewise.
7799         * modules/sys_time: Likewise.
7800         * modules/sys_times: Likewise.
7801         * modules/sys_utsname: Likewise.
7802         * modules/sys_wait: Likewise.
7803         * modules/sysexits: Likewise.
7804         * modules/time: Likewise.
7805         * modules/times: Likewise.
7806         * modules/tmpfile: Likewise.
7807         * modules/trim: Likewise.
7808         * modules/unistd: Likewise.
7809         * modules/wchar: Likewise.
7810         * modules/wctype: Likewise.
7811
7812 2009-09-17  Bruno Haible  <bruno@clisp.org>
7813
7814         Make getdate.y compile on QNX and NetBSD 5 / i386.
7815         * m4/getdate.m4 (gl_GETDATE): Conditionally define
7816         TIME_T_FITS_IN_LONG_INT.
7817         * lib/getdate.y (long_time_t): New type.
7818         (relative_time): Change type of 'seconds' field to long_time_t.
7819         (get_date): Update types of local variables. Check against overflow
7820         during conversion from long_time_t to time_t.
7821         Reported by Matt Kraai <kraai@ftbfs.org>
7822         and Hasso Tepper <hasso@netbsd.org>.
7823
7824 2009-09-17  Bruno Haible  <bruno@clisp.org>
7825
7826         * modules/COPYING: Update copyright years.
7827         * modules/README: Likeiwse.
7828         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
7829         Reported by Ian Beckwith <ianb@erislabs.net>.
7830
7831 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
7832
7833         * users.txt: Update references for gnuit package.
7834
7835 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
7836
7837         * m4/getdelim.m4: Fix typo in copyright line.
7838
7839 2009-09-17  Bruno Haible  <bruno@clisp.org>
7840
7841         * lib/atoll.c: Use the standard header with GPL copyright.
7842         * lib/argz.in.h: Likewise.
7843         * lib/glob.c: Likewise.
7844         * lib/glob-libc.h: Likewise.
7845         * lib/random_r.c: Likewise.
7846         * lib/siglist.h: Likewise.
7847         * lib/strsignal.c: Likewise.
7848         Reported by Ian Beckwith <ianb@erislabs.net>.
7849
7850 2009-09-17  Eric Blake  <ebb9@byu.net>
7851
7852         rmdir: ensure correct dependency order
7853         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
7854
7855 2009-09-17  Bruno Haible  <bruno@clisp.org>
7856
7857         Disable assertion that fails on NetBSD 5 / i386.
7858         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
7859         Reported by Sam Steingold <sds@gnu.org>
7860         and Hasso Tepper <hasso@netbsd.org>.
7861
7862 2009-09-16  Eric Blake  <ebb9@byu.net>
7863
7864         unlinkdir: port to mingw
7865         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
7866         on which no one can unlink a directory.
7867
7868         stdlib: sort witness names
7869         * modules/stdlib (Makefile.am): Sort replacements.
7870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
7871         * lib/stdlib.in.h: Likewise.
7872
7873         parse-duration-tests: avoid link failure
7874         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
7875         LIBINTL.
7876         Reported by Tom G. Christensen.
7877
7878         openat-tests: ensure unlinkat behaves like rmdir
7879         * tests/test-rmdir.c (main): Factor guts...
7880         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
7881         * modules/rmdir-tests (Files): Ship new file.
7882         * modules/openat-tests: New test.
7883         * tests/test-unlinkat.c: Likewise.
7884
7885         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
7886         * modules/rmdir-errno (Status, Notice): Now obsolete.
7887
7888         rmdir: work around cygwin 1.5.x and mingw bugs
7889         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
7890         * lib/rmdir.c (rmdir): Work around it.
7891         * modules/rmdir (Status, Notice): No longer obsolete.
7892         (Files): Add dos.m4.
7893         (Depends-on): Add unistd.
7894         (configure.ac): Set witnesses.
7895         (License): Relax to LGPLv2+.
7896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
7897         * modules/unistd (Makefile.am): Substitute witnesses.
7898         * lib/unistd.in.h (rmdir): Declare replacement.
7899         * doc/posix-functions/rmdir.texi (rmdir): Document this.
7900         * modules/rmdir-tests: New tests.
7901         * tests/test-rmdir.c: Likewise.
7902
7903 2009-09-15  Eric Blake  <ebb9@byu.net>
7904
7905         fchdir: improve use of replacement functions
7906         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
7907         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
7908         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
7909         REPLACE_CLOSEDIR.
7910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
7911         * modules/sys_stat (Makefile.am): Substitute correct witness.
7912         * modules/dirent (Makefile.am): Likewise.
7913         * modules/unistd (Makefile.am): Likewise.
7914         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
7915         * lib/unistd.in.h (dup): Likewise.
7916         * lib/sys_stat.in.h (fstat): Likewise.
7917
7918         maint: ignore gnulib-tool temp files
7919         * .gitignore: Ignore files created during gnulib-tool --test.
7920
7921 2009-09-13  Jim Meyering  <meyering@redhat.com>
7922
7923         posixtm: don't reject a time that specify "60" as the number of seconds
7924         * lib/posixtm.c (posixtime): The code to reject invalid dates
7925         would also reject a time specified with the .60 suffix.
7926         But POSIX allows that, in order to accommodate leap seconds.
7927         So don't reject it.
7928         (main): Adjust tests accordingly.
7929         * modules/posixtm (Depends-on): Add stpcpy.
7930
7931 2009-09-11  Jim Meyering  <meyering@redhat.com>
7932
7933         announce-gen: include [$release_type] in emitted Subject:
7934         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
7935         e.g., [stable] in the emitted Subject: line.
7936
7937 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7938
7939         Remove obsolete macros from several modules.
7940         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
7941         obsolete Autoconf macros with their modern counterparts.
7942         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
7943         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
7944         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
7945         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
7946         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
7947         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7948         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7949         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7950         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7951         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
7952         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7953         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7954         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
7955         * m4/sockets.m4 (gl_SOCKETS): Likewise.
7956         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
7957         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
7958         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7959         * m4/time_r.m4 (gl_TIME_R): Likewise.
7960         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7961         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
7962         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7963
7964         Fix copyright header in build-aux scripts.
7965         * build-aux/git-version-gen: Fix copyright header to match GPLv3
7966         recommendation.
7967         * build-aux/ncftpput-ftp: Likewise.
7968         * build-aux/update-copyright: Likewise.
7969
7970 2009-09-09  Eric Blake  <ebb9@byu.net>
7971
7972         test-link: allow Linux choice of errno
7973         * tests/test-link.c (main): Relax test for alternate error.
7974
7975         strndup: fix improper m4 caching
7976         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
7977         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
7978         (gl_PREREQ_STRNDUP): Delete.
7979         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
7980         * modules/string (Makefile.am): Substitute it.
7981         * lib/string.in.h (strndup): Modernize prototype.
7982
7983         getcwd: port to mingw
7984         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
7985         different from the POSIX assumptions made throughout the getcwd
7986         module; fortunately, the mingw getcwd does not need replacement.
7987         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
7988         * modules/getcwd-tests: New test.
7989         * tests/test-getcwd.c: Likewise.
7990
7991         link: fix platform bugs
7992         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
7993         * lib/link.c (link): Work around them.  Fix related mingw bug.
7994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
7995         * modules/unistd (Makefile.am): Substitute it.
7996         * lib/unistd.in.h (link): Declare replacement.
7997         * doc/posix-functions/link.texi (link): Document this.
7998         * modules/link (Depends-on): Add strdup-posix, sys_stat.
7999
8000         test-link: consolidate into single C program, test more cases
8001         * tests/test-link.sh: Delete.
8002         * tests/test-link.c: Test more error conditions.  Exposes bugs on
8003         at least Cygwin and Solaris.
8004         * modules/link-tests (Files): Remove unused file.
8005         (Depends-on): Add errno, sys_stat.
8006         (Makefile.am): Simplify.
8007
8008 2009-09-08  Bruno Haible  <bruno@clisp.org>
8009
8010         Work around towlower, towupper bug on mingw.
8011         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
8012         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
8013         * doc/posix-functions/towlower.texi: Mention the mingw bug.
8014         * doc/posix-functions/towupper.texi: Likewise.
8015         Reported by Eric Blake.
8016
8017 2009-09-08  Jim Meyering  <meyering@redhat.com>
8018
8019         build: don't try to run autoheader if we don't use it
8020         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
8021         is not used in configure.ac.
8022
8023 2009-09-08  Eric Blake  <ebb9@byu.net>
8024
8025         euidaccess: fix compilation error
8026         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
8027
8028         rawmemchr: relax license
8029         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
8030         okay.
8031         Reported by Jim Meyering.
8032
8033         mkfifoat: new module
8034         * modules/mkfifoat: New file.
8035         * lib/mkfifoat.c: Likewise.
8036         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
8037         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8038         * modules/sys_stat (Makefile.am): Use them.
8039         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
8040         * MODULES.html.sh (File system functions): Mention module.
8041         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8042         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8043         * modules/mkfifoat-tests: New test.
8044         * tests/test-mkfifoat.c: Likewise.
8045
8046         strchrnul: relax license
8047         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
8048         okay.
8049         Reported by Jim Meyering.
8050
8051 2009-09-08  Eric Blake  <ebb9@byu.net>
8052
8053         fstatat: fix compilation on Solaris
8054         * lib/fstatat.c (includes): Add fcntl.h.
8055         Reported by Pádraig Brady.
8056
8057 2009-09-07  Eric Blake  <ebb9@byu.net>
8058
8059         rename: modernize replacement
8060         * modules/rename (Depends-on): Add stdio.
8061         (configure.ac): Declare witness.
8062         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
8063         stdio take care of replacement.
8064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8065         * modules/stdio (Makefile.am): Substitute them.
8066         * lib/stdio.in.h (rename): Declare replacement.
8067         * lib/rename.c (includes): Allow cross-compilation to non-windows
8068         machines.
8069         * doc/posix-functions/rename.texi (rename): Improve
8070         documentation.
8071
8072         stdio: sort witness names
8073         * modules/stdio (Makefile.am): Sort replacements.
8074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8075         * lib/stdio.in.h: Likewise.
8076
8077         getcwd: minor cleanups
8078         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
8079         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
8080
8081         openat: provide more convenience names
8082         * modules/faccessat (configure.ac): Add C witness.
8083         * lib/unistd.in.h (readlinkat): Fix typo.
8084         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
8085         convenience wrappers.
8086         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
8087         wrappers in syntax checks.
8088
8089 2009-09-06  Eric Blake  <ebb9@byu.net>
8090
8091         doc: fix comments in recent patches
8092         * lib/faccessat.c: Mention correct function.
8093         * lib/fchmodat.c: Likewise.
8094         * lib/fchownat.c: Likewise.
8095         * lib/symlinkat.c: Likewise.
8096         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
8097         constants.
8098
8099         faccessat, symlinkat: continue cleanup of previous patch
8100         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
8101         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8102         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
8103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
8104         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
8105         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
8106         set.
8107
8108 2009-09-06  Bruno Haible  <bruno@clisp.org>
8109
8110         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
8111         (fstatat): Declare if GNULIB_FSTATAT is set.
8112         (mkdirat): Declare if GNULIB_MKDIRAT is set.
8113         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
8114         (unlinkat): Declare if GNULIB_UNLINKAT is set.
8115         * modules/fcntl-h (Files): Remove m4/openat.m4.
8116         * modules/sys_stat (Files): Remove m4/openat.m4.
8117         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
8118         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
8119         * modules/unistd (Files): Remove m4/openat.m4.
8120         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
8121         GNULIB_OPENAT.
8122         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
8123         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
8124         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
8125         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
8126         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
8127         gl_OPENAT_DEFAULTS.
8128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
8129         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
8130         Don't require gl_OPENAT_DEFAULTS.
8131         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
8132         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
8133         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
8134         (gl_OPENAT_DEFAULTS): Remove macro.
8135
8136 2009-09-06  Bruno Haible  <bruno@clisp.org>
8137
8138         * modules/openat (configure.ac): Remove unneeded witness.
8139
8140 2009-09-06  Bruno Haible  <bruno@clisp.org>
8141
8142         Set errno to ENOSYS when a function is entirely unsupported.
8143         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
8144         EOPNOTSUPP.
8145         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
8146         * modules/chown (Depends-on): Remove errno.
8147
8148 2009-09-06  Bruno Haible  <bruno@clisp.org>
8149
8150         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
8151
8152 2009-09-06  Bruno Haible  <bruno@clisp.org>
8153
8154         * lib/sys_stat.in.h: Fix preprocessor command indentation.
8155
8156 2009-09-06  Ben Pfaff  <blp@gnu.org>
8157             Bruno Haible  <bruno@clisp.org>
8158
8159         Work around a glibc bug in strtok_r.
8160         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
8161         Undefine if UNDEFINE_STRTOK_R is set.
8162         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
8163         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8164         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
8165         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
8166         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
8167         UNDEFINE_STRTOK_R.
8168         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
8169
8170 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8171
8172         exclude: minor fix
8173         * lib/exclude.c: Include wctype.h
8174
8175 2009-09-06  Akim Demaille  <demaille@gostai.com>
8176
8177         bootstrap: improve error message
8178         * build-aux/bootstrap (find_tool): Upon failure, report the list
8179         of candidates.
8180         Honor the initial value of the envvar.
8181
8182 2009-09-05  Eric Blake  <ebb9@byu.net>
8183
8184         symlinkat: new module
8185         * modules/symlinkat: New file.
8186         * lib/symlinkat.c: Likewise.
8187         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
8188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8189         * modules/unistd (Makefile.am): Use them.
8190         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
8191         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
8192         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
8193         * MODULES.html.sh (File system functions): Mention module.
8194         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8195         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8196         * modules/symlinkat-tests: New test.
8197         * tests/test-symlinkat.c: Likewise.
8198
8199         test-openat-safer: add more checks
8200         * tests/test-openat-safer.c (main): Check more code paths.
8201
8202 2009-09-05  Jim Meyering  <meyering@redhat.com>
8203
8204         syntax-check: detect unnecessary inclusion of openat.h
8205         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
8206
8207 2009-09-05  Bruno Haible  <bruno@clisp.org>
8208
8209         Support towlower, towupper.
8210         * doc/posix-functions/towlower.texi: Mention module wctype.
8211         * doc/posix-functions/towupper.texi: Likewise.
8212         * lib/wctype.in.h (towlower, towupper): New functions.
8213         * tests/test-wctype.c: Include stdio.h, stdlib.h.
8214         (ASSERT): New macro.
8215         (e): New variable.
8216         (main): Test also towlower, towupper. Test WEOF argument.
8217         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
8218
8219 2009-09-05  Bruno Haible  <bruno@clisp.org>
8220
8221         Fix conversion behaviour when the input is invalid.
8222         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
8223         mark occurring in first pass of indirect conversion.
8224         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
8225         input.
8226         Found by clang's static analyzer.
8227
8228 2009-09-05  Bruno Haible  <bruno@clisp.org>
8229
8230         * tests/test-striconveh.c (main): Test indirect conversion on platforms
8231         where direct conversion is possible.
8232
8233 2009-09-04  Eric Blake  <ebb9@byu.net>
8234
8235         openat: fail with ENOENT on empty name
8236         * lib/openat-proc.c (openat_proc_name): Special-case the empty
8237         buffer.
8238
8239         link-follow: fix logic bug in prior patch
8240         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
8241         reversed sense of yes and no in prior patch.  Avoid confusing
8242         compilation failure with desired semantics.
8243
8244         link-follow: accomodate mingw and cross-compilation
8245         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
8246         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
8247         cross-compilation results to -1, to make linkat easier to
8248         implement when cross-compiling.  Trivially support mingw.
8249         * modules/link-follow (configure.ac): Call new name.
8250         * NEWS: Mention this.
8251
8252 2009-09-03  Eric Blake  <ebb9@byu.net>
8253
8254         faccessat: compile replacement
8255         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
8256         needed.
8257
8258         fts: fix compilation error
8259         * lib/fts.c (includes): Re-add "openat.h", for
8260         openat_needs_fchdir.
8261
8262         faccessat: new module
8263         * modules/faccessat: New file.
8264         * lib/faccessat.c: Likewise.
8265         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8267         * modules/unistd (Makefile.am): Use it.
8268         * lib/unistd.in.h (faccessat): Declare it.
8269         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
8270         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
8271         * MODULES.html.sh (File system functions): Mention it.
8272         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
8273         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
8274
8275         euidaccess: prefer POSIX over non-standard implementation
8276         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
8277         * lib/euidaccess.c (euidaccess): Use it if available.
8278
8279         openat: make template easier to use
8280         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
8281         AT_FUNC_F2 to be undefined.
8282         (VALIDATE_FLAG): New macro; use it to reject bad flags.
8283         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
8284         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
8285         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
8286         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
8287         Likewise.
8288         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
8289         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
8290         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
8291         Likewise.
8292
8293         openat: declare in POSIX headers
8294         * NEWS: Mention this.
8295         * modules/openat (configure.ac): Declare witnesses.
8296         (Depends-on): Add fcntl-h, sys_stat, unistd.
8297         (Include): Mention correct headers.
8298         * modules/fcntl-h (Depends-on): Add link-warning.
8299         (Files): Add openat.m4.
8300         (Makefile.am): Substitute witnesses.
8301         * modules/sys_stat (Files, Makefile.am): Likewise.
8302         * modules/unistd (Files, Makefile.am): Likewise.
8303         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
8304         (gl_OPENAT_DEFAULTS): New macro.
8305         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
8306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
8307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
8308         (SYS_STAT_H): Remove unused variable.
8309         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
8310         * lib/fcntl--.h (includes): Remove unneeded header.
8311         * lib/openat-safer.c (includes): Likewise.
8312         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
8313         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
8314         appropriate headers.
8315         (__OPENAT_PREFIX): Delete.
8316         * lib/fcntl.in.h (openat): Provide declaration.
8317         (AT_FDCWD): Fix Solaris bug.
8318         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
8319         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
8320         * lib/fchmodat.c (includes):  Adjust to find declaration.
8321         * lib/fchownat.c (includes): Likewise.
8322         * lib/mkdirat.c (includes): Likewise.
8323         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
8324         still visible.
8325
8326 2009-09-02  Eric Blake  <ebb9@byu.net>
8327
8328         errno: use consistently
8329         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
8330         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
8331         * lib/canonicalize.c (ELOOP): Likewise.
8332         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
8333         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
8334         * lib/lchown.c (EOPNOTSUPP): Likewise.
8335         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
8336         * lib/savewd.c (ESTALE): Likewise.
8337         * lib/settime.c (ENOSYS): Likewise.
8338         * lib/utimens.c (ENOSYS): Likewise.
8339         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
8340         * lib/chdir-safer.c (ELOOP): Likewise.
8341         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
8342         * modules/c-stack (Depends-on): Add errno.
8343         * modules/canonicalize (Depends-on): Likewise.
8344         * modules/chdir-safer (Depends-on): Likewise.
8345         * modules/fdopendir (Depends-on): Likewise.
8346         * modules/inet_ntop (Depends-on): Likewise.
8347         * modules/inet_pton (Depends-on): Likewise.
8348         * modules/lchown (Depends-on): Likewise.
8349         * modules/openat (Depends-on): Likewise.
8350         * modules/savewd (Depends-on): Likewise.
8351         * modules/settime (Depends-on): Likewise.
8352         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
8353
8354         fts: avoid leaking fds
8355         * modules/fts (Depends-on): Add cloexec.
8356         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
8357         flag.
8358
8359         fts: make directory fds more robust
8360         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
8361         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
8362
8363         backupfile, chdir-long, fts, savedir: make safer
8364         * lib/backupfile.c (includes): Use "dirent--.h", since
8365         numbered_backup can write to stderr during readdir.
8366         * lib/savedir.c (includes): Likewise.
8367         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
8368         emulation can write to stderr on failure.
8369         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
8370         * lib/getcwd.c: Document why opendir_safer is unused.
8371         * lib/glob.c: Likewise.
8372         * lib/scandir.c: Likewise.
8373         * lib/openat-proc.c: Likewise, for open_safer.
8374         * modules/backupfile (Depends-on): Add dirent-safer.
8375         * modules/savedir (Depends-on): Likewise.
8376         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
8377         * modules/chdir-long (Depends-on): Add openat-safer.
8378
8379         openat-safer: new module
8380         * modules/openat-safer: New file.
8381         * lib/openat-safer.c: Likewise.
8382         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
8383         * lib/fcntl-safer.h (openat_safer): Declare.
8384         * lib/fcntl--.h (openat): Override.
8385         * MODULES.html.sh (File descriptor based I/O): Mention it.
8386         * lib/openat.h: Add double-inclusion guards.
8387         * lib/openat.c (includes): Only include "fcntl-safer.h", not
8388         "fcntl--.h", so we can implement openat.
8389         * modules/openat-safer-tests: New test.
8390         * tests/test-openat-safer.c: New file.
8391
8392         dirent-safer: new module
8393         * modules/dirent-safer: New file.
8394         * lib/dirent--.h: Likewise.
8395         * lib/dirent-safer.h: Likewise.
8396         * lib/opendir-safer.c: Likewise.
8397         * m4/dirent-safer.m4: Likewise.
8398         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
8399         * modules/dirent-safer-tests: New test.
8400         * tests/test-dirent-safer.c: New file.
8401         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
8402
8403         fdopendir: optimize on mingw
8404         * lib/unistd.in.h (_gl_directory_name): New prototype.
8405         * lib/fchdir.c (_gl_directory_name): Implement it.
8406         (fchdir): Use it to simplify implementation.
8407         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
8408         fchdir, when available, to avoid calling [f]chdir().
8409
8410         fdopendir: split into its own module
8411         * lib/openat.c (fdopendir): Move...
8412         * lib/fdopendir.c: ...into new file.
8413         * modules/fdopendir: New module.
8414         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
8415         * modules/openat (Depends-on): Add fdopendir.
8416         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
8417         fdopendir here.
8418         * modules/savedir (Depends-on): Only need fdopendir, not full
8419         openat.
8420         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
8421         * lib/openat.h (fdopendir): Drop prototype.
8422         * lib/dirent.in.h (fdopendir): Provide prototype.
8423         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
8424         * modules/dirent (Makefile.am): Substitute them.
8425         * MODULES.html.sh (File system functions): Mention it.
8426         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
8427         * modules/fdopendir-tests: New file.
8428         * tests/test-fdopendir.c: Likewise.
8429
8430         fchdir: use more consistent macro convention
8431         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
8432         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
8433         REPLACE_FCHDIR, rather than relying on config.h macros.
8434         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
8435         inside a single make-time REPLACE_FCHDIR block, rather than using
8436         the config.h FCHDIR_REPLACEMENT.
8437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
8438         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
8439         Manage fstat replacement.
8440         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
8441         REPLACE_FCHDIR.
8442         * modules/sys_stat (Files): Add m4/unistd_h.m4.
8443         (Makefile.am): Substitute REPLACE_FCHDIR.
8444         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
8445         FCHDIR_REPLACEMENT.
8446         * lib/dup-safer.c (dup_safer): Likewise.
8447         * lib/dup2.c (rpl_dup2): Likewise.
8448         * lib/dup3.c (rpl_dup3): Likewise.
8449         * lib/open.c (rpl_open): Likewise.
8450
8451         fchdir: simplify error handling, and support dup3
8452         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
8453         stdbool, malloc-posix, realloc-posix.
8454         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
8455         (ensure_dirs_slot): Return false on allocation failure.
8456         (rpl_dup2): Delete.
8457         (_gl_register_dup): New function.
8458         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
8459         (_gl_register_fd): Close fd on allocation failure.
8460         * lib/fcntl.in.h (_gl_register_fd): Update signature.
8461         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
8462         prototype.
8463         (rpl_dup2_fchdir): Delete prototype.
8464         * lib/open.c (open): Update caller.
8465         * lib/dup2.c (dup2): Track fchdir metadata.
8466         * lib/dup3.c (dup3): Likewise.
8467         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
8468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
8469
8470 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8471
8472         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
8473         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
8474         don't pass arguments to AC_OUTPUT.
8475
8476 2009-09-02  Bruno Haible  <bruno@clisp.org>
8477
8478         * modules/mkdtemp (License): Relicense under LGPLv2+.
8479         Reported by Paolo Bonzini.
8480
8481 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8482
8483         Replace uses of obsolete autoconf macros in Jim's modules.
8484         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
8485         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
8486         can evoke a warning from autoconf when run with -Wobsolete
8487         enabled.  They were declared obsolete for good reasons (see
8488         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
8489         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
8490         should not continue using the deprecated macros.
8491         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
8492         obsolete Autoconf macros with modern counterparts.
8493         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8494         * m4/dos.m4 (gl_AC_DOS): Likewise.
8495         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
8496         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8497         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
8498         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
8499         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
8500         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
8501         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
8502         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
8503         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
8504         Likewise.
8505         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8506         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8507         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
8508         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
8509         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
8510         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8511
8512 2009-09-01  Eric Blake  <ebb9@byu.net>
8513
8514         fchdir: fix off-by-one bug in previous patch
8515         * lib/fchdir.c (rpl_fstat): Use correct bounds.
8516         (_gl_unregister_fd): Delete useless if.
8517
8518 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
8519
8520         maint.mk: sort the list of syntax-check rules
8521         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
8522         easier to get a sense of progress when the rules are run sequentially
8523         and take a long time.
8524
8525 2009-09-01  Simon Josefsson  <simon@josefsson.org>
8526
8527         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
8528         * modules/netinet_in: Likewise.
8529         * modules/sys_file: Likewise.
8530         * modules/sys_ioctl: Likewise.
8531         * modules/sys_select: Likewise.
8532         * modules/sys_socket: Likewise.
8533         * modules/sys_stat: Likewise.
8534         * modules/sys_time: Likewise.
8535         * modules/sys_times: Likewise.
8536         * modules/sys_utsname: Likewise.
8537         * modules/sys_wait: Likewise.
8538
8539 2009-09-01  Jim Meyering  <meyering@redhat.com>
8540
8541         fts: help ensure that return values are not ignored
8542         * lib/fts_.h (__GNUC_PREREQ): Define.
8543         (__attribute_warn_unused_result__): Define.
8544         (fts_children, fts_close, fts_open, fts_read): Declare with
8545         __attribute_warn_unused_result__.
8546
8547         fts: fts_close now fails also when closing a dir file descriptor fails
8548         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
8549         and propagate to caller, along with errno.
8550
8551         announce-gen: correct formatting in --help output
8552         * build-aux/announce-gen (usage): Move the one-line description in
8553         --help output "up", to where it belongs, just after Usage:.
8554
8555 2009-08-31  Eric Blake  <ebb9@byu.net>
8556
8557         fchdir: port to mingw
8558         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
8559         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
8560         opened, then use a substitute.
8561         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
8562         replacement.
8563         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
8564         (_gl_register_fd): No need to check stat if open already filters
8565         all directories.
8566         (fchdir): Fix error condition to match POSIX.
8567         * modules/fchdir (Depends-on): Add sys_stat.
8568         * doc/posix-functions/open.texi (open): Document the limitation.
8569         * modules/fchdir-tests: New file.
8570         * tests/test-fchdir.c: Likewise.
8571
8572         canonicalize: allow cross-testing from cygwin to mingw
8573         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
8574         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
8575         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
8576         Likewise.
8577         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
8578         target does not support symlinks.
8579         * tests/test-canonicalize-lgpl.sh: Likewise.
8580
8581         chown: avoid compilation warning on mingw
8582         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
8583         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
8584         mingw.
8585         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
8586         * modules/chown (Depends-on): Add errno.
8587
8588 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8589
8590         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
8591         command.
8592
8593 2009-08-31  Jim Meyering  <meyering@redhat.com>
8594
8595         canonicalize: remove useless initialization
8596         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
8597         initialization of local, "end".
8598
8599 2009-08-30  Bruno Haible  <bruno@clisp.org>
8600
8601         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
8602         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
8603         ENOSYS.
8604
8605 2009-08-30  Bruno Haible  <bruno@clisp.org>
8606
8607         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
8608         /usr/xpg4/bin/tr when it exists.
8609         * tests/test-pipe-filter-gi1.sh: Likewise.
8610
8611 2009-08-30  Bruno Haible  <bruno@clisp.org>
8612
8613         Work around deficient /usr/bin/id program on Solaris.
8614         * tests/test-file-has-acl.sh (ID): New variable.
8615         * tests/test-set-mode-acl.sh (ID): Likewise.
8616         * tests/test-copy-acl.sh (ID): Likewise.
8617         * tests/test-copy-file.sh (ID): Likewise.
8618
8619 2009-08-30  Bruno Haible  <bruno@clisp.org>
8620
8621         New module 'xstriconveh'.
8622         * lib/xstriconveh.h: New file.
8623         * lib/xstriconveh.c: New file.
8624         * modules/xstriconveh: New file.
8625
8626 2009-08-30  Bruno Haible  <bruno@clisp.org>
8627
8628         Make it easier to use mem_cd_iconveh.
8629         * lib/striconveh.h (iconveh_t): New type.
8630         (iconveh_open, iconveh_close): New declarations.
8631         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
8632         with a single 'const iconveh_t *' argument.
8633         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
8634         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
8635         with a single 'const iconveh_t *' argument.
8636         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
8637         * tests/test-striconveh.c (main): Update.
8638         * NEWS: Mention the change.
8639
8640 2009-08-30  Bruno Haible  <bruno@clisp.org>
8641
8642         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
8643         problem.
8644
8645 2009-08-30  Bruno Haible  <bruno@clisp.org>
8646
8647         Work around iconv_open problem on Solaris.
8648         * lib/iconv_open-solaris.gperf: New file.
8649         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
8650         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
8651         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
8652         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
8653         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
8654         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
8655
8656 2009-08-29  Jim Meyering  <meyering@redhat.com>
8657
8658         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
8659         * top/maint.mk (cvs-check): Remove target; it was just an alias
8660         to the better-named vc-diff-check.
8661         (maintainer-distcheck): Remove rule.  It was used only from
8662         the (alpha/beta/major) target, and all of its commands but one
8663         were coreutils-specific.
8664         (vc-dist): Remove rule.
8665         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
8666         Run vc-diff-check, not vc-dist.
8667         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
8668
8669 2009-08-27  Bruno Haible  <bruno@clisp.org>
8670
8671         * tests/test-bitrotate.c (main): Remove test that uses a shift count
8672         of 0.
8673
8674 2009-08-27  Bruno Haible  <bruno@clisp.org>
8675
8676         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
8677         compilers.
8678         * doc/func.texi: Document the SunPRO C bug.
8679
8680 2009-08-27  Bruno Haible  <bruno@clisp.org>
8681
8682         Fix link error on Solaris.
8683         * tests/test-parse-duration.c (xstrdup): Remove function.
8684
8685 2009-08-26  Pádraig Brady  <P@draigbrady.com>
8686
8687         ignore-value: handle pointer types, too
8688         * lib/ignore-value.h (__attribute__): Remove definition.
8689         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
8690         of a more concise and more-often effective "(void) i" statement.
8691         (ignore_ptr): New function to suppress warnings from functions that
8692         return pointers, and to make it explicit that one function doesn't
8693         handle all cases.
8694
8695 2009-08-25  Bruno Haible  <bruno@clisp.org>
8696
8697         dup2: work around a Linux bug.
8698         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
8699         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
8700         * doc/posix-functions/dup2.texi: Mention the Linux bug.
8701         Reported by Simon Josefsson.
8702
8703 2009-08-25  Jim Meyering  <meyering@redhat.com>
8704
8705         libguestfs uses gnulib
8706         * users.txt: Add libguestfs.
8707
8708 2009-08-24  Eric Blake  <ebb9@byu.net>
8709
8710         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
8711         * lib/pipe2.c (includes): Add binary-io.h.
8712         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
8713
8714 2009-08-24  Bruno Haible  <bruno@clisp.org>
8715
8716         Tolerate declared but missing accept4 syscall.
8717         * lib/accept4.c (accept4): Invoke original accept4 function first, if
8718         available.
8719         * lib/sys_socket.in.h (accept4): If the function is already present,
8720         override it.
8721         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
8722         * modules/accept4 (Makefile.am): Compile accept4.c always.
8723         Reported by Paolo Bonzini and Eric Blake.
8724
8725 2009-08-23  Bruno Haible  <bruno@clisp.org>
8726
8727         New module 'accept4'.
8728         * lib/sys_socket.in.h (accept4): New declaration.
8729         * lib/accept4.c: New file.
8730         * m4/accept4.m4: New file.
8731         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8732         GNULIB_ACCEPT4, HAVE_ACCEPT4.
8733         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
8734         HAVE_ACCEPT4.
8735         * modules/accept4: New file.
8736         * doc/glibc-functions/accept4.texi: Mention the new module.
8737
8738 2009-08-24  Jim Meyering  <meyering@redhat.com>
8739
8740         progname: also set global program_invocation_name, when possible
8741         Before this change, a libtool-enabled program that calls glibc's
8742         error function would report the program name as
8743         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
8744         * modules/progname (configure.ac): Check for a declaration of
8745         program_invocation_name.
8746         * lib/progname.c:  Include <errno.h>.
8747         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
8748         Set program_invocation_name.
8749
8750 2009-08-23  Bruno Haible  <bruno@clisp.org>
8751
8752         * lib/dup3.c: Include <string.h>.
8753
8754 2009-08-23  Bruno Haible  <bruno@clisp.org>
8755
8756         * lib/dup3.c (dup3): Test only once whether the system actually exists.
8757         * lib/pipe2.c (pipe2): Likewise.
8758         Suggested by Eric Blake.
8759
8760 2009-08-23  Bruno Haible  <bruno@clisp.org>
8761
8762         Tolerate declared but missing dup3 syscall.
8763         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
8764         * lib/unistd.in.h (dup3): If the function is already present,
8765         override it.
8766         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
8767         * modules/dup3 (Makefile.am): Compile dup3.c always.
8768         Reported by Paolo Bonzini.
8769
8770 2009-08-23  Bruno Haible  <bruno@clisp.org>
8771
8772         Tolerate declared but missing pipe2 syscall.
8773         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
8774         available.
8775         * lib/unistd.in.h (pipe2): If the function is already present,
8776         override it.
8777         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
8778         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
8779         Reported by Paolo Bonzini.
8780
8781 2009-08-23  Bruno Haible  <bruno@clisp.org>
8782
8783         * lib/pipe2.c (pipe2): Move #ifs inside function.
8784
8785 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
8786
8787         quotearg: document limitations of quote_these_too
8788         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
8789         those limitations are created.
8790         * lib/quotearg.h (set_char_quoting): Document that digits and
8791         letters that are special after backslash are not permitted.
8792         (quotearg_char): Cross-reference set_char_quoting documentation.
8793
8794 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
8795
8796         quotearg: implement custom_quoting_style
8797         * lib/quotearg.c: (struct quoting_options): Add left_quote and
8798         right_quote fields.
8799         (set_custom_quoting): New public function.
8800         (quotearg_buffer_restyled): Add left_quote and right_quote
8801         arguments, handle them very much like locale quoting, and update
8802         all uses.
8803         (quotearg_n_custom): New public function.
8804         (quotearg_n_custom_mem): New public function.
8805         (quotearg_custom): New public function.
8806         (quotearg_custom_mem): New public function.
8807         * lib/quotearg.h: Prototype and document new public functions.
8808         (enum quoting_style): For escape_quoting_style and
8809         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
8810         ignored even though they're otherwise like c_quoting_style.
8811         Add custom_quoting_style member and document with comparison to
8812         clocale_quoting_style.
8813         * tests/test-quotearg.c (custom_quotes): New array.
8814         (custom_results): New array.
8815         (main): Extend to test custom quoting.
8816
8817 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
8818
8819         quotearg: fix right quote escaping when it's in quote_these_too
8820         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
8821         quote, be sure to prepend only one backslash.
8822         * tests/test-quotearg.c (use_quote_double_quotes): New function.
8823         (main): Test it.
8824
8825 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
8826
8827         quotearg-tests: test escaping of embedded locale quotes
8828         * tests/test-quotearg.c (struct result_strings): Add member for
8829         new input.
8830         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
8831         (inputs): Add new input.
8832         (results_g): Add expected results.
8833         (flag_results): Likewise.
8834         (locale_results): Likewise.
8835         (compare_strings): Check those.
8836
8837 2009-08-23  Bruno Haible  <bruno@clisp.org>
8838
8839         Tests for module 'dup3'.
8840         * modules/dup3-tests: New file.
8841         * tests/test-dup3.c: New file.
8842
8843         New module 'dup3'.
8844         * lib/unistd.in.h (dup3): New declaration.
8845         * lib/dup3.c: New file.
8846         * m4/dup3.m4: New file.
8847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
8848         HAVE_DUP3.
8849         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
8850         * modules/dup3: New file.
8851         * doc/glibc-functions/dup3.texi: Mention the new module.
8852
8853 2009-08-23  Bruno Haible  <bruno@clisp.org>
8854
8855         Tweak the dup2 test.
8856         * tests/test-dup2.c (main): Create the test file empty. Verify that an
8857         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
8858         the test file is still empty. Fix argument order of lseek.
8859
8860 2009-08-23  Bruno Haible  <bruno@clisp.org>
8861
8862         Avoid test link errors when the modules getopt-gnu, gettext are used.
8863         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
8864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8865
8866 2009-08-23  Bruno Haible  <bruno@clisp.org>
8867
8868         Fix getdtablesize() on mingw.
8869         * lib/getdtablesize.c (getdtablesize): Implement differently.
8870         * lib/unistd.in.h (getdtablesize): Improve comment.
8871
8872 2009-08-23  Bruno Haible  <bruno@clisp.org>
8873
8874         New module 'mkostemp'.
8875         Based on Ulrich Drepper's 2007-08-10 change in glibc.
8876         * lib/stdlib.in.h (mksotemp): New declaration.
8877         * lib/mkostemp.c: New file, from glibc with modifications.
8878         * lib/tempname.h (GT_FILE): Remove outdated comment.
8879         (gen_tempname): Add flags argument.
8880         * lib/tempname.c (__GT_BIGFILE): Remove macro.
8881         (__GT_FILE): Map to 1.
8882         (small_open, large_open): Remove macros.
8883         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
8884         * lib/mkstemp.c (mkstemp): Update.
8885         * lib/mkdtemp.c (mkdtemp): Likewise.
8886         * m4/mkostemp.m4: New file.
8887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
8888         HAVE_MKOSTEMP.
8889         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
8890         HAVE_MKOSTEMP.
8891         * modules/mkostemp: New file, based on modules/mkstemp.
8892         * doc/glibc-functions/mkostemp.texi: Mention the new module.
8893         * NEWS: Mention the change.
8894
8895 2009-08-23  Bruno Haible  <bruno@clisp.org>
8896
8897         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
8898         Reported by Eric Blake.
8899
8900 2009-08-23  Bruno Haible  <bruno@clisp.org>
8901
8902         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
8903         Reported by Eric Blake.
8904
8905 2009-08-23  Bruno Haible  <bruno@clisp.org>
8906
8907         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
8908         * modules/pipe2 (Depends-on): Likewise.
8909
8910 2009-08-23  Eric Blake  <ebb9@byu.net>
8911
8912         fcntl-h: add O_TTY_INIT support
8913         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
8914         * tests/test-fcntl-h.c (o): Test it.
8915         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8916
8917         fcntl-h: rename from fcntl, in preparation for fcntl(2)
8918         * modules/fcntl: Move <fcntl.h> header replacement...
8919         * modules/fcntl-h: ...to new name, so as not to collide with
8920         like-named function.
8921         * tests/test-fcntl.c: Rename...
8922         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
8923         * modules/fcntl-tests: Rename...
8924         * modules/fcntl-h-tests: ...to this.  Update test file name.
8925         * modules/chdir-long (Depends-on): Update clients.
8926         * modules/chdir-safer (Depends-on): Likewise.
8927         * modules/fcntl-safer (Depends-on): Likewise.
8928         * modules/fts (Depends-on): Likewise.
8929         * modules/mkancesdirs (Depends-on): Likewise.
8930         * modules/mkdir-p (Depends-on): Likewise.
8931         * modules/open (Depends-on): Likewise.
8932         * modules/savewd (Depends-on): Likewise.
8933         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
8934         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8935
8936 2009-08-22  Bruno Haible  <bruno@clisp.org>
8937
8938         * modules/binary-io (License): Relicense under LGPL.
8939         * modules/pipe2 (License): Likewise.
8940
8941 2009-08-22  Bruno Haible  <bruno@clisp.org>
8942
8943         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
8944         return value.
8945         * lib/pipe-filter-gi.c (filter_init): Likewise.
8946         Reported by Eric Blake.
8947
8948 2009-08-22  Bruno Haible  <bruno@clisp.org>
8949
8950         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
8951         * modules/pipe (Depends-on): Add pipe2.
8952
8953 2009-08-22  Bruno Haible  <bruno@clisp.org>
8954
8955         Tests for module 'pipe2'.
8956         * modules/pipe2-tests: New file.
8957         * tests/test-pipe2.c: New file.
8958
8959         New module 'pipe2'.
8960         * lib/unistd.in.h (pipe2): New declaration.
8961         * lib/pipe2.c: New file.
8962         * m4/pipe2.m4: New file.
8963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
8964         HAVE_PIPE2.
8965         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
8966         * modules/pipe2: New file.
8967         * doc/glibc-functions/pipe2.texi: Mention the new module.
8968
8969 2009-08-22  Bruno Haible  <bruno@clisp.org>
8970
8971         Reference some new glibc functions.
8972         * doc/glibc-functions/accept4.texi: New file.
8973         * doc/glibc-functions/dup3.texi: New file.
8974         * doc/glibc-functions/mkostemp.texi: New file.
8975         * doc/glibc-functions/pipe2.texi: New file.
8976         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
8977         (Glibc sys/socket.h): Refer to accept4.
8978         (Glibc unistd.h): Refer to dup3, pipe2.
8979         Reported by Eric Blake.
8980
8981 2009-08-22  Jim Meyering  <meyering@redhat.com>
8982             Bruno Haible  <bruno@clisp.org>
8983
8984         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
8985         This makes it so packages using automake-1.11's silent-rules option
8986         can print e.g., a single "GEN    configmake.h" line, rather than
8987         the 30+ statements that perform the job.  If you want to see the
8988         actual commands, you can still run "make V=1".
8989         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
8990         so that make output is abbreviated when those variables are defined
8991         appropriately.
8992         * modules/argz: Likewise.
8993         * modules/arpa_inet: Likewise.
8994         * modules/byteswap: Likewise.
8995         * modules/configmake: Likewise.
8996         * modules/dirent: Likewise.
8997         * modules/errno: Likewise.
8998         * modules/fcntl: Likewise.
8999         * modules/float: Likewise.
9000         * modules/fnmatch: Likewise.
9001         * modules/getopt-posix: Likewise.
9002         * modules/glob: Likewise.
9003         * modules/iconv_open: Likewise.
9004         * modules/inttypes: Likewise.
9005         * modules/localcharset: Likewise.
9006         * modules/locale: Likewise.
9007         * modules/math: Likewise.
9008         * modules/netdb: Likewise.
9009         * modules/netinet_in: Likewise.
9010         * modules/poll: Likewise.
9011         * modules/posix_spawnp-tests: Likewise.
9012         * modules/sched: Likewise.
9013         * modules/search: Likewise.
9014         * modules/selinux-h: Likewise.
9015         * modules/signal: Likewise.
9016         * modules/spawn: Likewise.
9017         * modules/stdarg: Likewise.
9018         * modules/stdbool: Likewise.
9019         * modules/stddef: Likewise.
9020         * modules/stdint: Likewise.
9021         * modules/stdio: Likewise.
9022         * modules/stdlib: Likewise.
9023         * modules/string: Likewise.
9024         * modules/strings: Likewise.
9025         * modules/sys_file: Likewise.
9026         * modules/sys_ioctl: Likewise.
9027         * modules/sys_select: Likewise.
9028         * modules/sys_socket: Likewise.
9029         * modules/sys_stat: Likewise.
9030         * modules/sys_time: Likewise.
9031         * modules/sys_times: Likewise.
9032         * modules/sys_utsname: Likewise.
9033         * modules/sys_wait: Likewise.
9034         * modules/sysexits: Likewise.
9035         * modules/time: Likewise.
9036         * modules/unistd: Likewise.
9037         * modules/wchar: Likewise.
9038         * modules/wctype: Likewise.
9039
9040 2009-08-22  Jim Meyering  <meyering@redhat.com>
9041
9042         announce-gen: detect write failure
9043         * build-aux/announce-gen: Add Coda at end.
9044         Remove equivalent-but-more-verbose block at top.
9045
9046 2009-08-19  Akim Demaille  <demaille@gostai.com>
9047
9048         bootstrap: --help to stdout.
9049         * bootstrap (usage): Don't send --help to stderr.
9050         Use a here doc instead of a long string.
9051
9052 2009-08-21  Eric Blake  <ebb9@byu.net>
9053
9054         test-popen-safer: split from test-popen
9055         * tests/test-popen.c (main): Move...
9056         * tests/test-popen.h: ...into new file.
9057         * tests/test-popen-safer2.c: New file.
9058         * modules/popen-tests (Files): Add test-popen.h.
9059         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
9060         Suggested by Bruno Haible.
9061
9062         test-fcntl-safer: split from test-open
9063         * tests/test-open.c (main): Move...
9064         * tests/test-open.h: ...into new file.
9065         * tests/test-fcntl-safer.c: New file.
9066         * modules/open-tests (Files): Add test-open.h.
9067         * modules/fcntl-safer-tests: New file.
9068         Suggested by Bruno Haible.
9069
9070         test-fopen-safer: split from test-fopen
9071         * tests/test-fopen.c (main): Move...
9072         * tests/test-fopen.h: ...into new file.
9073         * tests/test-fopen-safer.c: New file.
9074         * modules/fopen-tests (Files): Add test-fopen.h.
9075         * modules/fopen-safer-tests: New file.
9076         Suggested by Bruno Haible.
9077
9078 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9079
9080         popen-safer: test O_CLOEXEC at run-time.
9081         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
9082
9083 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9084
9085         fcntl: move more flags to the header
9086         * lib/cloexec.c: Do not define FD_CLOEXEC here.
9087         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
9088         * lib/fcntl.in.h: Do both things here.
9089
9090 2009-08-21  Jim Meyering  <meyering@redhat.com>
9091
9092         consistently remove $@-t before redirecting to it
9093         * modules/argz: Remove $@-t and $@ before redirecting to the former.
9094         * modules/alloca-opt: Likewise.
9095         * modules/byteswap: Likewise.
9096         * modules/fnmatch: Likewise.
9097         * modules/getopt-posix: Likewise.
9098         * modules/glob: Likewise.
9099         * modules/poll: Likewise.
9100         * modules/posix_spawnp-tests: Likewise.
9101         * modules/sys_socket: Likewise.
9102         * modules/sysexits: Likewise.
9103
9104 2009-08-21  Eric Blake  <ebb9@byu.net>
9105
9106         popen: simplify access to original popen
9107         * lib/popen.c (rpl_popen): No need to worry about popen being a
9108         macro.
9109         Reported by Bruno Haible.
9110
9111 2009-08-20  Eric Blake  <ebb9@byu.net>
9112
9113         build: avoid some compiler warnings
9114         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
9115         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
9116         type.
9117         (new_exclude_segment, excluded_file_pattern_p)
9118         (excluded_file_name_p): Reduce scope.
9119         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
9120         old-style declaration.
9121
9122 2009-08-20  Simon Josefsson  <simon@josefsson.org>
9123
9124         * tests/test-exclude1.sh: Handle Windows EOL.
9125         * tests/test-exclude2.sh: Likewise.
9126         * tests/test-exclude3.sh: Likewise.
9127         * tests/test-exclude4.sh: Likewise.
9128         * tests/test-exclude5.sh: Likewise.
9129         * tests/test-exclude6.sh: Likewise.
9130         * tests/test-exclude7.sh: Likewise.
9131
9132 2009-08-19  Akim Demaille  <demaille@gostai.com>
9133
9134         bootstrap: find sha1sum when named gsha1sum.
9135         * bootstrap (find_tool): New.
9136         ($SHA1SUM): New.
9137         Use it.
9138
9139 2009-08-20  Jim Meyering  <meyering@redhat.com>
9140
9141         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
9142         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
9143         expression that converts "." in a file name to "\." in the resulting
9144         regexp.  Start with a dummy statement, so that prior shell variable
9145         definitions are expanded portably.  Reported by Simon Josefsson.
9146
9147 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
9148
9149         Fix polling for writeability of a screen buffer.
9150         * lib/poll.c: Distinguish input and screen buffers for the
9151         Win32 implementation.
9152         * lib/select.c: Likewise.
9153
9154 2009-08-19  Eric Blake  <ebb9@byu.net>
9155
9156         popen-safer: prevent popen from clobbering std descriptors
9157         * modules/popen-safer: New file.
9158         * lib/popen-safer.c: Likewise.
9159         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
9160         * lib/stdio--.h (popen): Provide override.
9161         * lib/stdio-safer.h (popen_safer): Provide declaration.
9162         * tests/test-popen.c (includes): Partially test this.
9163         * modules/popen-safer-tests: New file, for more tests.
9164         * tests/test-popen-safer.c: Likewise.
9165         * MODULES.html.sh (file stream based Input/Output): Mention it.
9166
9167         tests: test some of the *-safer modules
9168         * modules/fopen-safer (Depends-on): Add fopen.
9169         * modules/fcntl-safer (Depends-on): Add fcntl.
9170         * modules/stdlib-safer (Depends-on): Add stdlib.
9171         (configure.ac): Set indicator.
9172         * modules/unistd-safer (configure.ac): Likewise.
9173         * modules/tmpfile-safer (configure.ac): Likewise.
9174         (Depends-on): Add tmpfile.
9175         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
9176         active.
9177         * tests/test-fopen.c (includes): Test safer versions when they are
9178         in use.
9179         * tests/test-open.c (includes): Likewise.
9180
9181         popen: fix cygwin 1.5 bug when stdin closed
9182         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
9183         * modules/popen: New file.
9184         * modules/popen-tests: Likewise.
9185         * tests/test-popen.c: Likewise.
9186         * m4/popen.m4: Likewise.
9187         * lib/popen.c: Likewise.
9188         * lib/stdio.in.h (popen): New declaration.
9189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
9190         * modules/stdio (Makefile.am): Likewise.
9191         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
9192
9193 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
9194
9195         maint.mk: give full control over update-copyright exclusions
9196         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
9197         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
9198         (update-copyright): Don't force inclusion of top-level
9199         ChangeLog.  Don't force exclusion of all COPYING files, but make
9200         them the default exclusion instead.
9201
9202 2009-08-16  Bruno Haible  <bruno@clisp.org>
9203
9204         Fix test failures on Solaris 10.
9205         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
9206         tests when Solaris iconv() is used.
9207         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9208         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9209         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9210         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9211         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9212
9213 2009-08-16  Bruno Haible  <bruno@clisp.org>
9214
9215         Fix test failures on Solaris 10.
9216         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
9217         'tr' program and pass it as first argument.
9218         * tests/test-pipe-filter-gi1.sh: Likewise.
9219         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
9220         program as first argument.
9221         * tests/test-pipe-filter-gi1.c (main): Likewise.
9222
9223 2009-08-16  Eric Blake  <ebb9@byu.net>
9224
9225         fpurge: fix previous commits
9226         * modules/fpurge (Makefile.am): Make replacement conditional,
9227         partially reverting 2007-04-29 change; missed in previous
9228         attempt.
9229         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
9230         is missing.
9231
9232 2009-08-16  Bruno Haible  <bruno@clisp.org>
9233
9234         Clarify fpurge's effect on the file position.
9235         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
9236         * tests/test-fpurge.c (main): Make a second pass for checking the file
9237         position.
9238
9239 2009-08-16  Bruno Haible  <bruno@clisp.org>
9240
9241         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
9242         declaration of fpurge is missing.
9243         * tests/test-fpurge.c (main): Check that the file has not more contents
9244         than expected. Close the file before removing it.
9245
9246 2009-08-15  Eric Blake  <ebb9@byu.net>
9247
9248         fpurge: don't wrap working cygwin implementation
9249         * lib/fpurge.c (fpurge): Fix comment typo.
9250         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
9251         1.7 to avoid replacement.
9252         * tests/test-fpurge.c (main): Enhance test.
9253
9254 2009-08-15  Eric Blake  <ebb9@byu.net>
9255         and Jim Meyering  <meyering@redhat.com>
9256
9257         test-update-copyright: skip if perl is insufficient
9258         * tests/test-update-copyright.sh: Failure to run maintainer tool
9259         should not cause testsuite failure on cygwin 1.5.
9260
9261 2009-08-14  Eric Blake  <ebb9@byu.net>
9262
9263         doc: mention more functions added in cygwin 1.7.0
9264         * doc/posix-headers/limits.texi (limits.h): Update for recent
9265         cygwin additions.
9266         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
9267         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9268         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
9269         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
9270         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
9271
9272 2009-08-14  Eric Blake  <ebb9@byu.net>
9273
9274         maint.mk: simplify update-copyright rule
9275         * top/maint.mk (update-copyright-local): Delete, and document how
9276         to do it in cfg.mk instead.
9277         (update-copyright-exclude-regexp): Delete, and document how to do
9278         it in .x-update-copyright instead.
9279         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
9280         exclude ChangeLog.
9281
9282 2009-08-14  Bruno Haible  <bruno@clisp.org>
9283
9284         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
9285
9286 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9287
9288         maint.mk: support update-copyright-env
9289         * top/maint.mk (update-copyright-env): Define place-holder.
9290         (update-copyright): Expand $(update-copyright-env) before
9291         invoking update-copyright.
9292
9293 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9294
9295         update-copyright: implement forced reformatting
9296         * build-aux/update-copyright: Implement and document
9297         UPDATE_COPYRIGHT_FORCE.
9298         * tests/test-update-copyright.sh: Test it.
9299
9300 2009-08-14  Eric Blake  <ebb9@byu.net>
9301         and Bruno Haible  <bruno@clisp.org>
9302
9303         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
9304         * tests/test-locale.c: Revert previous patch related to NULL.
9305         * tests/test-stdio.c: Likewise.
9306         * tests/test-stdlib.c: Likewise.
9307         * tests/test-string.c: Likewise.
9308         * tests/test-unistd.c: Likewise.
9309         * modules/time-tests (Depends-on): Add verify.
9310         * modules/wchar-tests (Depends-on): Likewise.
9311         * tests/test-time.c: Test for NULL compliance.
9312         * tests/test-wchar.c: Likewise.
9313         * modules/locale (Depends-on): Add stddef.
9314         * modules/stdio (Depends-on): Likewise.
9315         * modules/stdlib (Depends-on): Likewise.
9316         * modules/string (Depends-on): Likewise.
9317         * modules/time (Depends-on): Likewise.
9318         * modules/unistd (Depends-on): Likewise.
9319         * modules/wchar (Depends-on): Likewise.
9320         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
9321         * lib/stdlib.in.h (includes): Likewise.
9322         * lib/string.in.h (includes): Likewise.
9323         * lib/time.in.h (includes): Likewise.
9324         * lib/unistd.in.h (includes): Likewise.
9325         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
9326         replaced.
9327         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9328         * m4/stddef_h.m4: New file.
9329         * modules/stddef: Likewise.
9330         * lib/stddef.in.h: Likewise.
9331         * modules/stddef-tests: Likewise.
9332         * tests/test-stddef.c: Likewise.
9333         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
9334         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
9335         * doc/posix-headers/locale.texi (locale.h): Likewise.
9336         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
9337         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9338         * doc/posix-headers/string.texi (string.h): Likewise.
9339         * doc/posix-headers/time.texi (time.h): Likewise.
9340         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
9341         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
9342
9343 2009-08-14  Eric Blake  <ebb9@byu.net>
9344
9345         doc: improve git diff of texinfo files
9346         * .gitattributes: Add rule for *.texi files, with hint on how to
9347         use it.
9348         Copied from m4, and based on a report by Bruno Haible.
9349
9350 2009-08-14  Bruno Haible  <bruno@clisp.org>
9351
9352         Disable multithread support by default on Cygwin 1.5.x for real.
9353         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
9354
9355 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9356
9357         update-copyright: much ado about intervals
9358         * build-aux/update-copyright: Implement and document
9359         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
9360         of copyright year intervals.
9361         Also, document UPDATE_COPYRIGHT_YEAR.
9362         * tests/test-update-copyright.sh: Test it.
9363
9364         update-copyright: convert 2-digit to 4-digit years
9365         * build-aux/update-copyright: Implement and document.
9366         * tests/test-update-copyright.sh: Update.
9367
9368 2009-08-14  Jim Meyering  <meyering@redhat.com>
9369
9370         test-exclude: avoid coreutils "make check" failure
9371         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
9372         just as in test-argmatch.c.
9373
9374 2009-08-13  Eric Blake  <ebb9@byu.net>
9375
9376         test-dup2: fix bad assumption
9377         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
9378         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
9379
9380         test-version-etc: fix CRLF portability issue
9381         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
9382         recognize \r.
9383         * tests/test-argp-version-etc-1.sh: Likewise.
9384
9385         getopt: update client modules
9386         * modules/argp (Depends-on): Use getopt-gnu.
9387         * modules/git-merge-changelog (Depends-on): Likewise.
9388         * modules/long-options (Depends-on): Likewise.
9389         * modules/xstrtol (Depends-on): Likewise.
9390
9391 2009-08-13  Simon Josefsson  <simon@josefsson.org>
9392
9393         * tests/test-version-etc.sh: Don't fail on different
9394         project/version.  Don't fail on CRLF differences.  Rewrite to use
9395         multiple -e instead of multiple sed forks, suggested by Eric Blake
9396         <ebb9@byu.net>.
9397         * tests/test-argp-version-etc-1.sh: Likewise.
9398
9399 2009-08-13  Simon Josefsson  <simon@josefsson.org>
9400
9401         * tests/test-version-etc.sh: Don't fail on different
9402         project/version.
9403
9404 2009-08-12  Bruno Haible  <bruno@clisp.org>
9405
9406         Tests for modules 'getopt-posix', 'getopt-gnu'.
9407         * modules/getopt-posix-tests: New file.
9408         * tests/test-getopt.c: New file.
9409         * tests/test-getopt.h: New file.
9410         * tests/test-getopt_long.h: New file.
9411
9412         New modules 'getopt-posix', 'getopt-gnu'.
9413         * modules/getopt-gnu: New file, renamed from modules/getopt.
9414         * modules/getopt-posix: New file.
9415         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
9416         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
9417         (gl_GETOPT): Remove macro.
9418         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
9419         Disable the test against BSD systems that declare optreset. Test
9420         against mingw bug. Test against lack of support of optional arguments
9421         on many platforms.
9422         * doc/glibc-headers/getopt.texi: Update module name and list of
9423         relevant platforms.
9424         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
9425         'getopt-gnu' and more portability problems.
9426         * NEWS: Mention the changes.
9427
9428 2009-08-12  Bruno Haible  <bruno@clisp.org>
9429
9430         Ensure that optarg etc. get declared by <unistd.h>.
9431         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
9432         AC_USE_SYSTEM_EXTENSIONS.
9433         * modules/getopt (Depends-on): Add 'extensions'.
9434
9435 2009-08-12  Bruno Haible  <bruno@clisp.org>
9436
9437         Avoid test link errors.
9438         * modules/pipe-filter-ii-tests (Makefile.am): Define
9439         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
9440         * modules/pipe-filter-gi-tests (Makefile.am): Define
9441         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
9442         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9443
9444 2009-08-12  Bruno Haible  <bruno@clisp.org>
9445
9446         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
9447         gl_GETOPT_SUBSTITUTE before.
9448         (gl_GETOPT): Use it.
9449         * m4/argp.m4 (gl_ARGP): Update.
9450         Reported by Sergey Poznyakoff.
9451
9452         * m4/getopt.m4: Reorder macros.
9453         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
9454         (gl_GETOPT_SUBSTITUTE): Remove macro.
9455
9456 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
9457
9458         Minor improvement in gitlog-to-changelog
9459
9460         * build-aux/gitlog-to-changelog: New option `--format' makes
9461         output format string configurable.
9462
9463 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
9464
9465         Optimize exclude: use hash tables for non-wildcard patterns.
9466
9467         * lib/exclude.c: Include hash.h and mbuiter.h
9468         (struct exclude_pattern, exclude_segment): New data types.
9469         (struct exclude): Rewrite.
9470         (fnmatch_pattern_has_wildcards): New function.
9471         (new_exclude_segment, free_exclude_segment): New functions.
9472         (excluded_file_pattern_p, excluded_file_name_p): New functions.
9473         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
9474         * lib/exclude.h (is_fnmatch_pattern): New prototype.
9475         * modules/exclude: Depend on hash and mbuiter.
9476
9477         * modules/exclude-tests: New file.
9478         * tests/test-exclude.c: New file.
9479         * tests/test-exclude1.sh: New file.
9480         * tests/test-exclude2.sh: New file.
9481         * tests/test-exclude3.sh: New file.
9482         * tests/test-exclude4.sh: New file.
9483         * tests/test-exclude5.sh: New file.
9484         * tests/test-exclude6.sh: New file.
9485         * tests/test-exclude7.sh: New file.
9486
9487 2009-08-12  Bruno Haible  <bruno@clisp.org>
9488
9489         Ensure that getopt() gets declared by <unistd.h>.
9490         * lib/unistd.in.h: Conditionally include getopt.h.
9491         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
9492         Set GNULIB_UNISTD_H_GETOPT.
9493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9494         GNULIB_UNISTD_H_GETOPT.
9495         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
9496
9497 2009-08-12  Bruno Haible  <bruno@clisp.org>
9498
9499         Clarify logic.
9500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
9501         gl_replace_getopt instead of GETOPT_H.
9502
9503 2009-08-12  Bruno Haible  <bruno@clisp.org>
9504
9505         * m4/getopt.m4: Add comments.
9506
9507 2009-08-12  Bruno Haible  <bruno@clisp.org>
9508
9509         Disable multithread support by default on Cygwin 1.5.x.
9510         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
9511         set gl_use_threads=no if not specified otherwise.
9512
9513 2009-08-11  Bruno Haible  <bruno@clisp.org>
9514
9515         Avoid compilation error on NetBSD 5.0.
9516         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
9517         * tests/test-stdio.c: Likewise.
9518         * tests/test-stdlib.c: Likewise.
9519         * tests/test-string.c: Likewise.
9520         * tests/test-unistd.c: Likewise.
9521         Reported by Greg Troxel <gdt@ir.bbn.com>
9522         at <https://savannah.gnu.org/support/?106973>.
9523
9524 2009-08-11  Bruno Haible  <bruno@clisp.org>
9525
9526         * modules/dup2-tests (Depends-on): Remove close.
9527
9528         Undo 2009-07-19 commit.
9529         * modules/acl-tests (Depends-on): Remove close.
9530         * modules/binary-io-tests (Depends-on): Likewise.
9531         * modules/closein-tests (Depends-on): Likewise.
9532         * modules/flock-tests (Depends-on): Likewise.
9533         * modules/fsync-tests (Depends-on): Likewise.
9534         * modules/lseek-tests (Depends-on): Likewise.
9535         * modules/pipe-tests (Depends-on): Likewise.
9536         * modules/posix_spawn-tests (Depends-on): Likewise.
9537         * modules/posix_spawnp-tests (Depends-on): Likewise.
9538         * modules/stat-time-tests (Depends-on): Likewise.
9539         * modules/yesno-tests (Depends-on): Likewise.
9540
9541 2009-08-10  Bruno Haible  <bruno@clisp.org>
9542
9543         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
9544
9545 2009-08-10  Bruno Haible  <bruno@clisp.org>
9546
9547         Fix a gcc warning.
9548         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
9549
9550 2009-08-10  Bruno Haible  <bruno@clisp.org>
9551
9552         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
9553         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
9554         not only the first time.
9555         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
9556         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
9557         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
9558         is 1, not only the the first time.
9559
9560 2009-08-10  Bruno Haible  <bruno@clisp.org>
9561
9562         Make it possible to use module 'gethostname' without module 'close'.
9563         * lib/unistd.in.h (close): Evoke a link error only if
9564         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
9565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9566         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9567         * modules/unistd (Makefile.am): Substitute
9568         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9569         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
9570         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
9571         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
9572         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9573         * modules/sys_ioctl (Makefile.am): Substitute
9574         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9575         * modules/socket (configure.ac): On native Windows, set
9576         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
9577         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
9578         Reported by Sam Steingold <sds@gnu.org>.
9579
9580 2009-08-10  Bruno Haible  <bruno@clisp.org>
9581
9582         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
9583         * modules/ioctl (configure.ac): Likewise.
9584
9585 2009-08-10  Bruno Haible  <bruno@clisp.org>
9586
9587         Avoid collision between gnulib wrapper and libintl wrapper.
9588         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
9589         already defined in intl/printf.c.
9590         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
9591         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
9592
9593 2009-08-09  Bruno Haible  <bruno@clisp.org>
9594
9595         Make <sys/select.h> really self-contained, also on Solaris 10.
9596         * lib/sys_select.in.h: Include <string.h>.
9597         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
9598         Solaris 10 problem.
9599         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
9600         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
9601         Reported by Jim Meyering.
9602
9603 2009-08-09  Bruno Haible  <bruno@clisp.org>
9604
9605         Avoid warnings from 'aclocal' that are due to a use of macro name
9606         AM_XGETTEXT_OPTION that is not defined in automake.
9607         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
9608         automake.
9609         * modules/error (configure.ac): Likewise.
9610         * modules/propername (configure.ac): Likewise.
9611         * modules/vasprintf (configure.ac): Likewise.
9612         * modules/verror (configure.ac): Likewise.
9613         * modules/xprintf (configure.ac): Likewise.
9614         * modules/xvasprintf (configure.ac): Likewise.
9615
9616 2009-08-08  Bruno Haible  <bruno@clisp.org>
9617
9618         Avoid compilation error in C++ mode.
9619         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
9620         Reported by Sam Steingold <sds@gnu.org>.
9621
9622 2009-08-08  Bruno Haible  <bruno@clisp.org>
9623
9624         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
9625         for the various Unix platforms.
9626         * doc/posix-headers/limits.texi: Update platforms list regarding
9627         HOST_NAME_MAX.
9628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9629
9630 2009-08-07  Jim Meyering  <meyering@redhat.com>
9631
9632         selinux-at: fix typo in a comment
9633         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
9634         Spotted by Paolo Bonzini.
9635
9636         selinux-at: remove redundant m4 code, add documentation
9637         * modules/selinux-at (configure.ac): Remove redundant code.
9638         LIB_SELINUX is already set via the dependent module, selinux-h.
9639         (Include): Add quotes around selinux-at.h.
9640         * lib/selinux-at.h: Add documentation.
9641         Reported by Bruno Haible in
9642         http://marc.info/?l=gnulib-bug&m=124958988300749
9643
9644 2009-08-07  Bruno Haible  <bruno@clisp.org>
9645
9646         Avoid link error on MacOS X 10.3 and 10.4.
9647         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
9648         on non-ELF systems.
9649         * lib/argp-pv.c (argp_program_version): Likewise.
9650         Reported by Simon Josefsson.
9651
9652 2009-08-07  Simon Josefsson  <simon@josefsson.org>
9653
9654         * tests/test-version-etc.sh: Use $EXEEXT.
9655
9656 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
9657
9658         update-copyright: update documentation to point to maint.mk
9659         * build-aux/update-copyright: Here.
9660
9661 2009-08-06  Jim Meyering  <meyering@redhat.com>
9662
9663         maint.mk: support update-copyright-local
9664         * top/maint.mk (update-copyright-local): Define place-holder.
9665         (update-copyright): Depend on $(update-copyright-local).
9666
9667 2009-08-06  Jim Meyering  <meyering@redhat.com>
9668
9669         selinux-at: new module
9670         Initially written for coreutils, this module will soon be
9671         used by findutils, too.
9672         * MODULES.html.sh [Misc]: Add selinux-at.
9673         * lib/selinux-at.h: New file, from coreutils.
9674         * lib/selinux-at.c: Likewise.
9675         * modules/selinux-at: Likewise.
9676         (License): Change from LGPL to GPL, since it depends
9677         on the GPL'd openat module.
9678
9679         doc: update README
9680         * README: Remove references to cogito.
9681         Remove cvs-repo-updating instructions from 2007.
9682         Don't imply that CVS is better if you have limited disk space.
9683
9684 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9685
9686         update-copyright: support C-style comments
9687         * build-aux/update-copyright: Implement and document.
9688         * tests/test-update-copyright.sh: Test.
9689
9690 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9691
9692         update-copyright: support omitted "(C)"
9693         * build-aux/update-copyright: Implement and document.  Also,
9694         allow variable whitespace before "(C)".
9695         * tests/test-update-copyright.sh: Test.
9696
9697 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9698
9699         update-copyright: don't trip on non-FSF copyright statements
9700         * build-aux/update-copyright: Fix so that the first correctly
9701         formatted FSF copyright statement is recognized no matter what
9702         appears before it.  Update documentation.
9703         * tests/test-update-copyright.sh: Test that.
9704
9705 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9706
9707         update-copyright: clean up code a little
9708         * build-aux/update-copyright: Append "_re" to the name of any
9709         variable holding a regular expression.
9710         Replace "old" and "new" with "stmt" in variable names.
9711         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
9712         handled correctly.
9713         Format code more consistently.
9714
9715 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9716
9717         update-copyright-tests: improve portability
9718         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
9719         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
9720
9721 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
9722
9723         update-copyright: support @copyright{} and &copy;
9724         * build-aux/update-copyright: Implement and document.
9725         * tests/test-update-copyright.sh: Test.
9726
9727 2009-08-04  Jim Meyering  <meyering@redhat.com>
9728
9729         update-copyright-tests: correctly test EOL=\r\n handling
9730         * tests/test-update-copyright.sh: Put \r at the end of some lines
9731         for the dos-eol tests.  Based on a patch by Joel E. Denny.
9732
9733         maint.mk: make update-copyright exclusion list more configurable
9734         * top/maint.mk (update-copyright): Default to excluding COPYING,
9735         but allow an override, in case someone does want to update that file.
9736
9737         maint.mk: don't update copyright date in COPYING
9738         * top/maint.mk (update-copyright): Exclude COPYING.
9739
9740         maint.mk: add a copyright-updating rule
9741         * top/maint.mk (update-copyright): New rule.
9742         Derived from coreutils/Makefile.am.
9743
9744         update-copyright: rename some variables
9745         * build-aux/update-copyright: Rename a few variables for clarity.
9746         Tweak syntax.  List Joel E. Denny as coauthor.
9747
9748 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
9749
9750         update-copyright: fix bug for 2-digit last year and add tests
9751         * build-aux/update-copyright: Fix bug.
9752         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
9753         specified.
9754         * modules/update-copyright-tests: New
9755         * tests/test-update-copyright.sh: New.
9756
9757 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
9758
9759         update-copyright: handle leading tabs in line prefix
9760         * build-aux/update-copyright: Count leading tabs as 8 spaces
9761         when computing margin.  This helps with the formatting of
9762         ChangeLogs, for example.
9763         Fix documentation a little.
9764
9765 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
9766
9767         update-copyright: support EOL=\r\n
9768         * build-aux/update-copyright: Implement that.
9769
9770 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
9771
9772         update-copyright: automatically format copyright statements
9773         * build-aux/update-copyright: Implement that.
9774         Also, be a little more predictable and safer by always failing
9775         when the full copyright format is not perfectly recognized as an
9776         unbroken whole.  Discussed at
9777         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
9778         Rewrite documentation.
9779
9780 2009-08-03  Bruno Haible  <bruno@clisp.org>
9781
9782         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
9783
9784 2009-08-02  Bruno Haible  <bruno@clisp.org>
9785
9786         Tests for module 'uname'.
9787         * modules/uname-tests: New file.
9788         * tests/test-uname.c: New file.
9789
9790         New module 'uname'.
9791         * lib/uname.c: New file.
9792         * m4/uname.m4: New file.
9793         * modules/uname: New file.
9794         * doc/posix-functions/uname.texi: Mention the new module.
9795
9796 2009-08-02  Bruno Haible  <bruno@clisp.org>
9797
9798         Tests for module 'sys_utsname'.
9799         * modules/sys_utsname-tests: New file.
9800         * tests/test-sys_utsname.c: New file.
9801
9802         New module 'sys_utsname'.
9803         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
9804         * m4/sys_utsname_h.m4: New file.
9805         * modules/sys_utsname: New file.
9806         * doc/posix-headers/sys_utsname.texi: Mention the new module.
9807
9808 2009-08-02  Bruno Haible  <bruno@clisp.org>
9809
9810         Implicitly initialize the sockets library.
9811         * lib/gethostname.c: Include sockets.h.
9812         (rpl_gethostname): Invoke gl_sockets_startup.
9813         * lib/socket.c: Include sockets.h.
9814         (rpl_socket): Invoke gl_sockets_startup.
9815         * modules/gethostname (Depends-on): Add sockets.
9816         * modules/socket (Depends-on): Likewise.
9817         * tests/test-poll.c: Don't include sockets.h.
9818         (main): Don't invoke gl_sockets_startup.
9819         * tests/test-select.c: Don't include sockets.h.
9820         (main): Don't invoke gl_sockets_startup.
9821
9822 2009-08-02  Bruno Haible  <bruno@clisp.org>
9823
9824         Allow multiple calls to gl_sockets_startup.
9825         * lib/sockets.c (initialized_sockets_version): New variable.
9826         (gl_sockets_startup): Do nothing if already called for this or a higher
9827         version.
9828         (gl_sockets_cleanup): Reset initialized_sockets_version.
9829
9830 2009-08-03  Simon Josefsson  <simon@josefsson.org>
9831
9832         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
9833         different project/version.
9834
9835 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
9836             Bruno Haible  <bruno@clisp.org>
9837
9838         Tests for module 'pipe-filter-gi'.
9839         * modules/pipe-filter-gi-tests: New file.
9840         * tests/test-pipe-filter-gi1.sh: New file.
9841         * tests/test-pipe-filter-gi1.c: New file.
9842         * tests/test-pipe-filter-gi2.sh: New file.
9843         * tests/test-pipe-filter-gi2-main.c: New file.
9844         * tests/test-pipe-filter-gi2-child.c: New file.
9845
9846         New module 'pipe-filter-gi'.
9847         * lib/pipe-filter-gi.c: New file.
9848         * modules/pipe-filter-gi: New file.
9849
9850 2009-08-02  Bruno Haible  <bruno@clisp.org>
9851             Paolo Bonzini  <bonzini@gnu.org>
9852
9853         Tests for module 'pipe-filter-ii'.
9854         * modules/pipe-filter-ii-tests: New file.
9855         * tests/test-pipe-filter-ii1.sh: New file.
9856         * tests/test-pipe-filter-ii1.c: New file.
9857         * tests/test-pipe-filter-ii2.sh: New file.
9858         * tests/test-pipe-filter-ii2-main.c: New file.
9859         * tests/test-pipe-filter-ii2-child.c: New file.
9860
9861         New module 'pipe-filter-ii'.
9862         * lib/pipe-filter.h: New file.
9863         * lib/pipe-filter-ii.c: New file.
9864         * lib/pipe-filter-aux.h: New file.
9865         * modules/pipe-filter-ii: New file.
9866
9867 2009-08-02  Simon Josefsson  <simon@josefsson.org>
9868
9869         * lib/gc-libgcrypt.c: Change copyright to FSF.
9870         * lib/gc-gnulib.c: Likewise.
9871
9872 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
9873
9874         * lib/gethostname.c: Include limits.h.
9875
9876 2009-08-02  Simon Josefsson  <simon@josefsson.org>
9877             Bruno Haible  <bruno@clisp.org>
9878
9879         Ensure HOST_NAME_MAX as part of the gethostname module.
9880         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
9881         define also HOST_NAME_MAX.
9882         * tests/test-gethostname.c: Include <limits.h>.
9883         (main): Check also HOST_NAME_MAX.
9884         * doc/posix-headers/limits.texi: Document the mingw problem.
9885
9886 2009-08-02  Bruno Haible  <bruno@clisp.org>
9887
9888         * lib/gethostname.c (gethostname): Fix handling of large len argument.
9889         Add comments.
9890
9891 2009-03-31  Simon Josefsson  <simon@josefsson.org>
9892
9893         * lib/gethostname.c: Add Windows wrapper.
9894         * m4/gethostname.m4: Look for gethostname in -lws2_32.
9895         * modules/gethostname: Depend on sys_socket & errno, for also
9896         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
9897         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
9898
9899 2009-07-31  Jim Meyering  <meyering@redhat.com>
9900
9901         getloadavg: fix symbol name in comment
9902         * lib/getloadavg.c: Correct a typo I introduced when adding
9903         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
9904         Matt Kraai spotted the problem.
9905
9906 2009-07-29  Matt Kraai  <mkraai@beckman.com>
9907
9908         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
9909         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
9910         code also if ! defined N_NAME_POINTER.
9911         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
9912         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
9913         but the n_name member is a 12-byte array.
9914
9915 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
9916
9917         update-copyright: generalize comment handling
9918         * build-aux/update-copyright: Handle copyright statements
9919         within more comment styles.
9920         Document usage.
9921         Report any file with an external copyright holder or parse failure.
9922
9923 2009-07-29  Jim Meyering  <meyering@redhat.com>
9924
9925         mktime: correct setting of REPLACE_MKTIME
9926         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
9927
9928         update-copyright: new module
9929         * modules/update-copyright: New file.
9930         * build-aux/update-copyright: New file.
9931         * MODULES.html.sh (maint+release support): Add update-copyright.
9932
9933 2009-07-27  Bruno Haible  <bruno@clisp.org>
9934
9935         Fix compilation error when <ctime> is used and mktime is replaced.
9936         * lib/time.in.h (mktime): New declaration.
9937         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
9938         REPLACE_MKTIME instead of defining mktime in config.h.
9939         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
9940         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
9941         Reported by Ross McFarland <rwmcfa1@neces.com>.
9942
9943 2009-07-27  Bruno Haible  <bruno@clisp.org>
9944
9945         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
9946         Reported by Matt Kraai <mkraai@beckman.com>.
9947
9948 2009-07-25  Jim Meyering  <meyering@redhat.com>
9949
9950         maint.mk: avoid warnings about missing files
9951         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
9952         diagnostic when .prev-version does not exist.
9953         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
9954         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
9955         nonexistent cfg.mk.
9956         Suggestions from Simon Josefsson.
9957
9958 2009-07-25  Bruno Haible  <bruno@clisp.org>
9959
9960         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
9961         defined as macros. Needed on QNX 6.4.1.
9962         Reported by Matt Kraai <mkraai@beckman.com>.
9963
9964 2009-07-23  Jim Meyering  <meyering@redhat.com>
9965
9966         maint.mk: invoke "make dist" with a working value of XZ_OPT
9967         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
9968
9969 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
9970
9971         Make fseeko.c compile on QNX.
9972         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
9973
9974 2009-07-22  Peter Simons  <simons@cryp.to>
9975
9976         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
9977         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
9978         * lib/md4.h: Likewise.
9979         * lib/md5.h: Likewise.
9980         * lib/sha1.h: Likewise.
9981         * lib/sha256.h: Likewise.
9982         * lib/sha512.h: Likewise.
9983
9984         tests-sha1: don't assign literal string to 'char *' variable
9985         * tests/test-sha1.c (main): Declare locals with "const" to match
9986         attributes of the right hand side.
9987
9988 2009-07-21  Eric Blake  <ebb9@byu.net>
9989
9990         dup2: fix more mingw problems
9991         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
9992         fd to itself.
9993         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9994         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
9995         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
9996         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
9997         care of mingw bugs.
9998
9999 2009-07-21  Jim Meyering  <meyering@redhat.com>
10000
10001         vc-list-files: avoid failure when /bin/sh is dash
10002         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
10003         On some Debian based systems, /bin/sh is a symlink to dash, and running
10004         this command would omit the "/" following each 'tests' prefix:
10005           dash -x build-aux/vc-list-files -C . tests
10006         That is because bash and dash work differently:
10007           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
10008           bash ok
10009           dash odd
10010
10011 2009-07-21  Eric Blake  <ebb9@byu.net>
10012
10013         dup2-tests: test previous patch
10014         * modules/dup2-tests: New file.
10015         * tests/test-dup2.c: Likewise.
10016         * tests/test-open.c (main): Avoid unspecified behavior.
10017         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
10018         test.
10019
10020         dup2: work around mingw and cygwin 1.5 bug
10021         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
10022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10023         * modules/unistd (Makefile.am): Substitute it.
10024         * lib/unistd.in.h (dup2): Declare the replacement.
10025         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
10026         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
10027         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
10028         * modules/execute (Depends-on): Add dup2.
10029         * modules/fseterr (Depends-on): Likewise.
10030         * modules/pipe (Depends-on): Likewise.
10031         * modules/posix_spawn-internal (Depends-on): Likewise.
10032
10033 2009-07-21  Bruno Haible  <bruno@clisp.org>
10034
10035         * modules/.gitattributes: New file.
10036
10037 2009-07-20  Bruno Haible  <bruno@clisp.org>
10038
10039         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
10040         (main): Use it.
10041
10042 2009-07-20  Eric Blake  <ebb9@byu.net>
10043
10044         test-pipe: make a bit more robust.
10045         * tests/test-pipe.c (myerr): Allow error messages regardless of
10046         what we do to stderr.
10047         (test_pipe): Rearrange to avoid deadlock.
10048         (child_main): Try a larger read, to ensure we avoided deadlock.
10049         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
10050         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
10051         if misused.
10052
10053 2009-07-19  Jim Meyering  <meyering@redhat.com>
10054
10055         fts: avoid false-positive cycle-detection
10056         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
10057         for each new command line argument.
10058
10059 2009-07-19  Bruno Haible  <bruno@clisp.org>
10060
10061         Fix build error on mingw with the modules sys_select and unistd.
10062         * modules/acl-tests (Depends-on): Add close.
10063         * modules/binary-io-tests (Depends-on): Likewise.
10064         * modules/closein-tests (Depends-on): Likewise.
10065         * modules/flock-tests (Depends-on): Likewise.
10066         * modules/fsync-tests (Depends-on): Likewise.
10067         * modules/lseek-tests (Depends-on): Likewise.
10068         * modules/pipe-tests (Depends-on): Likewise.
10069         * modules/posix_spawn-tests (Depends-on): Likewise.
10070         * modules/posix_spawnp-tests (Depends-on): Likewise.
10071         * modules/stat-time-tests (Depends-on): Likewise.
10072         * modules/yesno-tests (Depends-on): Likewise.
10073
10074 2009-07-19  Bruno Haible  <bruno@clisp.org>
10075
10076         Unify conditionals.
10077         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
10078         macros, not at the compiler macros.
10079         * lib/pipe.c: Likewise.
10080         * lib/execute.c: Likewise.
10081         * lib/spawni.c: Likewise.
10082
10083 2009-07-19  Bruno Haible  <bruno@clisp.org>
10084
10085         Fix handling of closed stdin/stdout/stderr on mingw.
10086         * lib/w32spawn.h: Include unistd.h.
10087         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
10088         file descriptor with O_NOINHERIT flag.
10089         (fd_safer_noinherit): New function, based on fd-safer.c.
10090         (dup_safer_noinherit): New function, based on dup-safer.c.
10091         (undup_safer_noinherit): New function.
10092         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
10093         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
10094         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
10095         instead of fd_safer.
10096         * tests/test-pipe.c: Include <windows.h>.
10097         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
10098
10099         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
10100         from main.
10101         (test_pipe): Pass an extra argument for disambiguation.
10102         (main): Invoke parent_main or child_main.
10103
10104         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
10105         consistently.
10106
10107 2009-07-18  Eric Blake  <ebb9@byu.net>
10108
10109         test-pipe: fix mingw build
10110         * tests/test-pipe.c (main): Avoid fcntl on mingw.
10111
10112 2009-07-18  Bruno Haible  <bruno@clisp.org>
10113
10114         * modules/pipe-tests (Makefile.am): Fix typo.
10115
10116 2009-07-18  Eric Blake  <ebb9@byu.net>
10117
10118         error: fix mingw build
10119         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
10120         Reported by Bruno Haible.
10121
10122         error: avoid undefined use of stdout
10123         * lib/error.c (error, error_at_line): Check that fd 1 is open
10124         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
10125         is handling faults and the close_stdout module wants to report the
10126         detection of closed stdout as an error.
10127
10128 2009-07-17  Eric Blake  <ebb9@byu.net>
10129
10130         pipe: be robust in face of closed fds
10131         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
10132         should cause child to misbehave.
10133         * modules/pipe-tests: New module.
10134         * tests/test-pipe.c: New file.
10135         * tests/test-pipe.sh: New file.
10136         Reported by Akim Demaille.
10137
10138 2009-07-14  Bruno Haible  <bruno@clisp.org>
10139
10140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
10141         Reported by anonymous kc.
10142
10143 2009-07-07  Jim Meyering  <meyering@redhat.com>
10144
10145         maint.mk: don't look for translatable strings in *.m4 or *.mk
10146         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
10147         when searching for translatable strings.
10148
10149 2009-07-05  Jim Meyering  <meyering@redhat.com>
10150
10151         remove superfluous parentheses in STREQ definition
10152         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
10153         * lib/getugroups.c (STREQ): Likewise.
10154         * lib/fnmatch.c (STREQ): Likewise.
10155         Spotted by Bruno Haible.
10156
10157 2009-07-04  Jim Meyering  <meyering@redhat.com>
10158
10159         argv-iter: new module
10160         * MODULES.html.sh: Add argv-iter.
10161         * lib/argv-iter.c, lib/argv-iter.h: New files.
10162         * modules/argv-iter: New file.
10163         * modules/argv-iter-tests: New file.
10164         * tests/test-argv-iter.c: Test it.
10165
10166 2009-07-04  Bruno Haible  <bruno@clisp.org>
10167
10168         Fix assertion.
10169         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
10170         contains more exact copies of a given entry than file2, leave the extra
10171         copies unpaired rather than aborting.
10172         Reported by Eric Blake.
10173
10174 2009-07-02  Bruno Haible  <bruno@clisp.org>
10175
10176         Speedup git-merge-changelog for git cherry-pick.
10177         * lib/git-merge-changelog.c (struct entries_mapping): New type.
10178         (entries_mapping_get): New function, extracted from compute_mapping.
10179         (entries_mapping_reverse_get): New function.
10180         (compute_mapping): Add a 'full' argument. Return the result in a
10181         'struct entries_mapping'.
10182         (main): Update. Access the mappings through entries_mapping_get.
10183         Reported by Eric Blake.
10184
10185 2009-07-02  Bruno Haible  <bruno@clisp.org>
10186
10187         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
10188         best_i.
10189
10190 2009-07-02  Bruno Haible  <bruno@clisp.org>
10191
10192         Speed up approximate search for matching ChangeLog entries.
10193         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
10194         argument. Call fstrcmp_bounded instead of fstrcmp.
10195         (compute_mapping, try_split_merged_entry, main): Update callers.
10196
10197 2009-07-02  Bruno Haible  <bruno@clisp.org>
10198
10199         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
10200
10201 2009-06-30  Bruno Haible  <bruno@clisp.org>
10202
10203         Reduce the number of uc_is_cased calls.
10204         * lib/unicase.h (casing_suffix_context_t): Add
10205         'first_char_except_ignorable' field.
10206         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
10207         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
10208         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
10209         Update initializer.
10210         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
10211         case-ignorable characters.
10212         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
10213         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
10214         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
10215         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
10216         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
10217
10218 2009-06-30  Bruno Haible  <bruno@clisp.org>
10219
10220         Tests for module 'unicase/ignorable'.
10221         * modules/unicase/ignorable-tests: New file.
10222         * tests/unicase/test-ignorable.c: New file, generated by
10223         gen-uni-tables.
10224
10225         Tests for module 'unicase/cased'.
10226         * modules/unicase/cased-tests: New file.
10227         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
10228         * tests/unicase/test-predicate-part1.h: New file, derived from
10229         tests/unictype/test-predicate-part1.h.
10230         * tests/unicase/test-predicate-part2.h: New file, same as
10231         tests/unictype/test-predicate-part2.h.
10232
10233         Fix evaluation of "Before C" condition of FINAL_SIGMA.
10234         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
10235         (output_casing_properties): New function.
10236         (main): Call it.
10237         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
10238         * lib/unicase/cased.c: Include unictype/bitmap.h.
10239         (uc_is_cased): Define through a bitmap lookup.
10240         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
10241         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
10242         (uc_is_case_ignorable): Define through a bitmap lookup.
10243         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
10244         lib/unictype/bitmap.h.
10245         (Depends-on): Add inline. Clean up.
10246         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
10247         lib/unictype/bitmap.h.
10248         (Depends-on): Add inline. Clean up.
10249         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
10250         recognition.
10251         * tests/unicase/test-u16-tolower.c (main): Likewise.
10252         * tests/unicase/test-u32-tolower.c (main): Likewise.
10253
10254 2009-06-30  Bruno Haible  <bruno@clisp.org>
10255
10256         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
10257         * lib/unicase/u16-casemap.c: Likewise.
10258         * lib/unicase/u32-casemap.c: Likewise.
10259
10260 2009-06-29  Bruno Haible  <bruno@clisp.org>
10261
10262         Define u32_casefold as a wrapper around u32_ct_casefold.
10263         * lib/unicase/u32-casefold.c: Update.
10264         * modules/unicase/u32-casefold (Depends-on): Add
10265         unicase/u32-ct-casefold, unicase/empty-prefix-context,
10266         unicase/empty-suffix-context. Clean up.
10267
10268         Define u16_casefold as a wrapper around u16_ct_casefold.
10269         * lib/unicase/u16-casefold.c: Update.
10270         * modules/unicase/u16-casefold (Depends-on): Add
10271         unicase/u16-ct-casefold, unicase/empty-prefix-context,
10272         unicase/empty-suffix-context. Clean up.
10273
10274         Define u8_casefold as a wrapper around u8_ct_casefold.
10275         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
10276         * lib/unicase/u8-casefold.c: Update.
10277         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
10278         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10279
10280         Define u32_totitle as a wrapper around u32_ct_totitle.
10281         * lib/unicase/u32-totitle.c: Update.
10282         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
10283         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10284
10285         Define u16_totitle as a wrapper around u16_ct_totitle.
10286         * lib/unicase/u16-totitle.c: Update.
10287         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
10288         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10289
10290         Define u8_totitle as a wrapper around u8_ct_totitle.
10291         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
10292         functions.
10293         (FUNC): Delegate to U_CT_TOTITLE.
10294         * lib/unicase/u8-totitle.c: Update.
10295         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
10296         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10297
10298         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
10299         invocation.
10300         * modules/unicase/u32-tolower (Depends-on): Add
10301         unicase/empty-prefix-context, unicase/empty-suffix-context.
10302
10303         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
10304         invocation.
10305         * modules/unicase/u16-tolower (Depends-on): Add
10306         unicase/empty-prefix-context, unicase/empty-suffix-context.
10307
10308         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
10309         * modules/unicase/u8-tolower (Depends-on): Add
10310         unicase/empty-prefix-context, unicase/empty-suffix-context.
10311
10312         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
10313         invocation.
10314         * modules/unicase/u32-toupper (Depends-on): Add
10315         unicase/empty-prefix-context, unicase/empty-suffix-context.
10316
10317         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
10318         invocation.
10319         * modules/unicase/u16-toupper (Depends-on): Add
10320         unicase/empty-prefix-context, unicase/empty-suffix-context.
10321
10322         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
10323         * modules/unicase/u8-toupper (Depends-on): Add
10324         unicase/empty-prefix-context, unicase/empty-suffix-context.
10325
10326         New module 'unicase/u32-ct-casefold'.
10327         * lib/unicase/u32-ct-casefold.c: New file.
10328         * modules/unicase/u32-ct-casefold: New file.
10329
10330         New module 'unicase/u16-ct-casefold'.
10331         * lib/unicase/u16-ct-casefold.c: New file.
10332         * modules/unicase/u16-ct-casefold: New file.
10333
10334         New module 'unicase/u8-ct-casefold'.
10335         * lib/unicase/u8-ct-casefold.c: New file.
10336         * lib/unicase/u-ct-casefold.h: New file, derived from
10337         lib/unicase/u-casefold.h.
10338         * modules/unicase/u8-ct-casefold: New file.
10339
10340         New module 'unicase/u32-ct-totitle'.
10341         * lib/unicase/u32-ct-totitle.c: New file.
10342         * modules/unicase/u32-ct-totitle: New file.
10343
10344         New module 'unicase/u16-ct-totitle'.
10345         * lib/unicase/u16-ct-totitle.c: New file.
10346         * modules/unicase/u16-ct-totitle: New file.
10347
10348         New module 'unicase/u8-ct-totitle'.
10349         * lib/unicase/u8-ct-totitle.c: New file.
10350         * lib/unicase/u-ct-totitle.h: New file, derived from
10351         lib/unicase/u-totitle.h.
10352         * modules/unicase/u8-ct-totitle: New file.
10353
10354         New module 'unicase/u32-ct-tolower'.
10355         * lib/unicase/u32-ct-tolower.c: New file.
10356         * modules/unicase/u32-ct-tolower: New file.
10357
10358         New module 'unicase/u16-ct-tolower'.
10359         * lib/unicase/u16-ct-tolower.c: New file.
10360         * modules/unicase/u16-ct-tolower: New file.
10361
10362         New module 'unicase/u8-ct-tolower'.
10363         * lib/unicase/u8-ct-tolower.c: New file.
10364         * modules/unicase/u8-ct-tolower: New file.
10365
10366         New module 'unicase/u32-ct-toupper'.
10367         * lib/unicase/u32-ct-toupper.c: New file.
10368         * modules/unicase/u32-ct-toupper: New file.
10369
10370         New module 'unicase/u16-ct-toupper'.
10371         * lib/unicase/u16-ct-toupper.c: New file.
10372         * modules/unicase/u16-ct-toupper: New file.
10373
10374         New module 'unicase/u8-ct-toupper'.
10375         * lib/unicase/u8-ct-toupper.c: New file.
10376         * modules/unicase/u8-ct-toupper: New file.
10377
10378         Add context arguments to u*_casemap functions.
10379         * lib/unicase/unicasemap.h: Include unicase.h.
10380         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
10381         suffix_context arguments.
10382         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
10383         functions.
10384         (FUNC): Add prefix_context and suffix_context arguments. Use
10385         uc_is_cased and uc_is_case_ignorable.
10386         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
10387         * lib/unicase/u16-casemap.c: Likewise.
10388         * lib/unicase/u32-casemap.c: Likewise.
10389         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
10390         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
10391         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
10392         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
10393         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
10394         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
10395
10396         New module 'unicase/u32-suffix-context'.
10397         * lib/unicase/u32-suffix-context.c: New file.
10398         * modules/unicase/u32-suffix-context: New file.
10399
10400         New module 'unicase/u16-suffix-context'.
10401         * lib/unicase/u16-suffix-context.c: New file.
10402         * modules/unicase/u16-suffix-context: New file.
10403
10404         New module 'unicase/u8-suffix-context'.
10405         * lib/unicase/u8-suffix-context.c: New file.
10406         * lib/unicase/u-suffix-context.h: New file.
10407         * modules/unicase/u8-suffix-context: New file.
10408
10409         New module 'unicase/empty-suffix-context'.
10410         * lib/unicase/empty-suffix-context.c: New file.
10411         * modules/unicase/empty-suffix-context: New file.
10412
10413         New module 'unicase/u32-prefix-context'.
10414         * lib/unicase/u32-prefix-context.c: New file.
10415         * modules/unicase/u32-prefix-context: New file.
10416
10417         New module 'unicase/u16-prefix-context'.
10418         * lib/unicase/u16-prefix-context.c: New file.
10419         * modules/unicase/u16-prefix-context: New file.
10420
10421         New module 'unicase/u8-prefix-context'.
10422         * lib/unicase/u8-prefix-context.c: New file.
10423         * lib/unicase/u-prefix-context.h: New file.
10424         * lib/unicase/context.h: New file.
10425         * modules/unicase/u8-prefix-context: New file.
10426
10427         New module 'unicase/empty-prefix-context'.
10428         * lib/unicase/empty-prefix-context.c: New file.
10429         * modules/unicase/empty-prefix-context: New file.
10430
10431         New module 'unicase/ignorable'.
10432         * lib/unicase/ignorable.c: New file.
10433         * modules/unicase/ignorable: New file.
10434
10435         New module 'unicase/cased'.
10436         * lib/unicase/caseprop.h: New file.
10437         * lib/unicase/cased.c: New file.
10438         * modules/unicase/cased: New file.
10439
10440         New functions for case mapping of substrings.
10441         * lib/unicase.h (casing_prefix_context_t): New type.
10442         (unicase_empty_prefix_context): New variable.
10443         (u8_casing_prefix_context, u16_casing_prefix_context,
10444         u32_casing_prefix_context, u8_casing_prefixes_context,
10445         u16_casing_prefixes_context, u32_casing_prefixes_context): New
10446         declarations.
10447         (casing_suffix_context_t): New type.
10448         (unicase_empty_suffix_context): New variable.
10449         (u8_casing_suffix_context, u16_casing_suffix_context,
10450         u32_casing_suffix_context, u8_casing_suffixes_context,
10451         u16_casing_suffixes_context, u32_casing_suffixes_context,
10452         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
10453         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
10454         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
10455         declarations.
10456
10457 2009-06-28  Jim Meyering  <meyering@redhat.com>
10458
10459         boostrap: indent only with spaces
10460         * build-aux/bootstrap: Indent only with spaces, never TABs.
10461
10462         bootstrap: split long lines
10463         * build-aux/bootstrap: Keep line length < 80.
10464
10465         bootstrap: sync from coreutils
10466         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
10467         just as autoreconf does.  Verify a list of prerequisite
10468         package-name,version-number pairs if defined in bootstrap.conf.
10469         Refer to README-prereq, if prerequisites are not satisfied.
10470
10471 2009-06-27  Eric Blake  <ebb9@byu.net>
10472
10473         tests: add test for bogus NULL definition
10474         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
10475         * tests/test-stdlib.c: Likewise.
10476         * tests/test-string.c: Likewise.
10477         * tests/test-locale.c: Likewise.
10478         * tests/test-unistd.c: Likewise.
10479         * modules/stdio-tests (Depends-on): Add verify.
10480         * modules/stdlib-tests (Depends-on): Likewise.
10481         * modules/string-tests (Depends-on): Likewise.
10482         * modules/locale-tests (Depends-on): Likewise.
10483         * modules/unistd-tests (Depends-on): Likewise.
10484
10485 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10486
10487         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
10488         self-explaining comment.
10489         * m4/selinux-selinux-h: Update serial.
10490         (gl_LIBSELINUX): New macro, adding a warning for missing development
10491         packages to code extracted from...
10492         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
10493         Add warning for missing development packages here, too.
10494
10495 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
10496
10497         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
10498
10499 2009-06-25  Eric Blake  <ebb9@byu.net>
10500
10501         version-etc: fix regression
10502         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
10503         gcc.
10504         (version_etc): Use it, to catch bugs with trailing NULL.
10505         * lib/version-etc.c (version_etc_arn): Delete unused argument.
10506         (version_etc_va): Fix logic bug.
10507         * modules/version-etc-tests: Add test.
10508         * tests/test-version-etc.c: New file.
10509         * tests/test-version-etc.sh: Likewise.
10510
10511 2009-06-25  Sam Steingold  <sds@gnu.org>
10512
10513         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
10514         mbtowc declaration.
10515
10516 2009-06-25  Eric Blake  <ebb9@byu.net>
10517
10518         fpurge: migrate into <stdio.h>
10519         * lib/fpurge.h: Delete...
10520         * lib/stdio.in.h (fpurge): ...and declare here, instead.
10521         * lib/fpurge.c (fpurge): Change declaring header.
10522         * modules/fpurge (Files): Drop deleted file.
10523         (Depends-on): Add stdio.
10524         (configure.ac): Set witness.
10525         * modules/stdio (Makefile.am): Support fpurge macros.
10526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10527         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
10528         * lib/fflush.c: Update client.
10529         * tests/test-fpurge.c: Likewise.
10530         * NEWS: Mention the change.
10531
10532 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
10533
10534         * lib/argp-version-etc.c (program_authors): Add const
10535         qualifier.
10536         * lib/version-etc.c: Fix typos in the comments.
10537         * modules/argp-version-etc: Depends on version-etc.
10538
10539 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
10540
10541         argp-version-etc: new module.
10542
10543         * lib/argp-version-etc.c: New file.
10544         * lib/argp-version-etc.h: New file.
10545         * modules/argp-version-etc: New file.
10546         * modules/argp-version-etc-tests: New file.
10547         * tests/test-argp-version-etc.c: New test.
10548         * tests/test-argp-version-etc-1.sh: New test.
10549
10550 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
10551
10552         Provide additional interfaces and documentation for version-etc
10553         module.
10554
10555         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
10556         interfaces.
10557         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
10558         prototypes.
10559
10560 2009-06-24  Bruno Haible  <bruno@clisp.org>
10561
10562         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
10563         HAVE_LIB${NAME} macro.
10564         Reported by Sam Steingold <sds@gnu.org>.
10565
10566 2009-06-23  Simon Josefsson  <simon@josefsson.org>
10567
10568         * modules/hash-tests (test_hash_LDADD): Link to libintl when
10569         needed.
10570
10571 2009-06-21  Bruno Haible  <bruno@clisp.org>
10572
10573         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
10574         work.
10575         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
10576         together with LIB${NAME}, LTLIB${NAME}.
10577         Reported by Sam Steingold <sds@gnu.org>.
10578
10579 2009-06-20  Jim Meyering  <meyering@redhat.com>
10580
10581         tests: make sc_require_test_exit_idiom more generic
10582         * top/maint.mk (Exit_witness_file): New overridable variable.
10583         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
10584         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
10585
10586 2009-06-19  Jim Meyering  <meyering@redhat.com>
10587
10588         hash: reverse order of src/dst parameters in an internal interface
10589         * lib/hash.c (transfer_entries): Reverse order of parameters to
10590         put DST before SRC.  Adjust callers.
10591
10592         tests: test-hash: avoid wholesale duplication
10593         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
10594         Instead, use a loop and add a single conditional.
10595
10596         tests: test-hash: allow seed selection via a command line argument
10597         * tests/test-hash.c (get_seed): New function.
10598         (main): Use it.
10599
10600 2009-06-19  Eric Blake  <ebb9@byu.net>
10601
10602         hash: avoid memory leak on allocation failure
10603         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
10604         failure.  Factor repeated algorithm...
10605         (transfer_entries): ...into new helper routine.
10606         (hash_delete): React to hash_rehash return value.
10607
10608         hash: reduce memory pressure in hash_rehash no-op case
10609         * lib/hash.c (next_prime): Avoid overflow.
10610         (hash_initialize): Factor bucket size computation...
10611         (compute_bucket_size): ...into new helper function.
10612         (hash_rehash): Use new function and open coding to reduce memory
10613         pressure, and avoid a memory leak in USE_OBSTACK code.
10614         Reported by Jim Meyering.
10615
10616 2009-06-18  Eric Blake  <ebb9@byu.net>
10617
10618         hash: make rotation more obvious
10619         * modules/hash (Depends-on): Add bitrotate and stdint.
10620         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
10621         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
10622         (SIZE_MAX): Rely on headers for definition.
10623         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
10624         (raw_hasher): Use rotr_sz.
10625         Suggested by Jim Meyering.
10626
10627         hash: fix memory leak in last patch
10628         * lib/hash.c (hash_rehash): Avoid memory leak.
10629
10630         hash: avoid no-op rehashing
10631         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
10632
10633         hash: provide default callback functions
10634         * lib/hash.c (raw_hasher, raw_comparator): New functions.
10635         (hash_initialize): Use them as defaults.
10636         * tests/test-hash.c (main): Test this.
10637
10638         hash: minor optimization
10639         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
10640         when possible.
10641         (hash_initialize): Document this promise.
10642         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
10643         * tests/test-hash.c (hash_compare_strings): Test this.
10644
10645 2009-06-18  Bruno Haible  <bruno@clisp.org>
10646
10647         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
10648         going to be replaced anyway.
10649
10650 2009-06-18  Bruno Haible  <bruno@clisp.org>
10651
10652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
10653         in one place.
10654         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
10655         be replaced anyway.
10656
10657 2009-06-18  Eric Blake  <ebb9@byu.net>
10658
10659         hash: check for resize before insertion
10660         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
10661         threshold before insertion, so that a pathological hash_rehash
10662         that fills every bucket can still trigger another rehash.
10663
10664 2009-06-18  Jim Meyering  <meyering@redhat.com>
10665
10666         hash-tests: add a loop around the small tests
10667         * tests/test-hash.c (main): Repeat small tests with selected
10668         small initial table sizes.
10669
10670 2009-06-17  Eric Blake  <ebb9@byu.net>
10671
10672         hash: minor cleanups
10673         * lib/hash.h (hash_entry): Make opaque, by moving...
10674         * lib/hash.c (hash_entry): ...here.
10675         (hash_insert): Clarify restrictions on what can be inserted.
10676         (hash_get_next): Clarify when it is safe to remove an element
10677         during traversal.
10678         (check_tuning): Skip verification when tuning is known safe.
10679         (hash_initialize): Clarify restrictions on tuning.
10680
10681 2009-06-17  Jim Meyering  <jim@meyering.net>
10682         and Eric Blake  <ebb9@byu.net>
10683
10684         hash-tests: new module
10685         * modules/hash-tests: New file.
10686         * tests/test-hash.c: New file.
10687
10688 2009-06-17  Eric Blake  <ebb9@byu.net>
10689
10690         strstr-simple: document new module
10691         * MODULES.html.sh: Document new module.
10692
10693         strstr, strcasestr: replace on platforms with broken memchr
10694         * modules/strstr: Split into...
10695         * modules/strstr-simple: ...new module that does not care about
10696         performance, but does care about glibc bug.
10697         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
10698         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
10699         if platform memchr is broken, per Debian bug 521737.
10700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
10701         memchr.
10702         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
10703         * doc/posix-functions/strstr.texi (strstr): Document the fix.
10704         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10705         * modules/mountlist (Depends-on): Add strstr-simple.
10706         * modules/gen-uni-tables (Depends-on): Likewise.
10707         * modules/argz (Depends-on): Add strstr.
10708
10709 2009-06-17  Bruno Haible  <bruno@clisp.org>
10710
10711         * modules/posix_spawn-internal (Depends-on): Add errno.
10712
10713 2009-06-17  Bruno Haible  <bruno@clisp.org>
10714
10715         Define missing ESTALE on Interix 3.5.
10716         * lib/errno.in.h (ESTALE): Assign a value if missing.
10717         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
10718         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
10719         missing.
10720         * doc/posix-headers/errno.texi: Mention the Interix bug.
10721         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
10722
10723 2009-06-15  Eric Blake  <ebb9@byu.net>
10724
10725         memchr, memchr2: add valgrind exception
10726         * lib/memchr.valgrind: New file.
10727         * lib/memchr2.valgrind: New file.
10728         * modules/memchr (Files): Distribute valgrind file.
10729         * modules/memchr2 (Files): Likewise.
10730
10731         docs: memchr is no longer obsolete
10732         * MODULES.html.sh: Move memchr from obsolete to string.h section.
10733         * lib/string.in.h (memchr): Simplify logic.
10734
10735 2009-06-14  Jim Meyering  <meyering@redhat.com>
10736
10737         link-follow: fix the "checking..." message to not mention trailing slash
10738         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
10739         never considered trailing slashes.
10740
10741 2009-06-14  Bruno Haible  <bruno@clisp.org>
10742
10743         * m4/memchr.m4: Mention also the bug on IA-64.
10744         * doc/posix-functions/memchr.texi: Likewise.
10745
10746 2009-06-12  Eric Blake  <ebb9@byu.net>
10747
10748         memchr: detect broken x86_64 and alpha implementations
10749         * modules/memchr-tests (Depends-on): Move mmap detection...
10750         * modules/memchr (Depends-on): ...here.
10751         (configure.ac): Set indicator.
10752         * lib/string.in.h (memchr): Declare replacement.
10753         * modules/string (Makefile.am): Trigger replacement.
10754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
10755         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
10756         bugs.
10757         * doc/posix-functions/memchr.texi (memchr): Document the bug.
10758         * modules/getpagesize (License): Relax license.
10759
10760 2009-06-11  Bruno Haible  <bruno@clisp.org>
10761
10762         * lib/idpriv.h: Add more references.
10763
10764 2009-06-08  Bruno Haible  <bruno@clisp.org>
10765
10766         Tests for module 'idpriv-droptemp'.
10767         * modules/idpriv-droptemp-tests: New file.
10768         * tests/test-idpriv-droptemp.sh: New file.
10769         * tests/test-idpriv-droptemp.su.sh: New file.
10770         * tests/test-idpriv-droptemp.c: New file.
10771
10772         New module 'idpriv-droptemp'.
10773         * lib/idpriv-droptemp.c: New file.
10774         * modules/idpriv-droptemp: New file.
10775
10776 2009-06-08  Bruno Haible  <bruno@clisp.org>
10777
10778         Tests for module 'idpriv-drop'.
10779         * modules/idpriv-drop-tests: New file.
10780         * tests/test-idpriv-drop.sh: New file.
10781         * tests/test-idpriv-drop.su.sh: New file.
10782         * tests/test-idpriv-drop.c: New file.
10783
10784         New module 'idpriv-drop'.
10785         * lib/idpriv.h: New file.
10786         * lib-idpriv-drop.c: New file.
10787         * m4/idpriv.m4: New file.
10788         * modules/idpriv-drop: New file.
10789
10790 2009-06-08  Bruno Haible  <bruno@clisp.org>
10791
10792         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
10793         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10794         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10795         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10796         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10797         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10798         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10799
10800 2009-06-08  Eric Blake  <ebb9@byu.net>
10801
10802         test-strstr: use memory fence, when possible
10803         * tests/test-strstr.c (main): Use memory fence, in order to be
10804         more likely to trigger Debian bug 521737.
10805         * modules/strstr-tests (Files): Pull in additional files.
10806
10807         memchr: no longer obsolete, for wider field testing
10808         * modules/memchr (Status, Notice): Delete, this module is no
10809         longer obsolete.
10810         * modules/vasnprintf (Depends-on): Add memchr.
10811
10812 2009-06-07  Jim Meyering  <meyering@redhat.com>
10813
10814         hash: declare some functions with the warn_unused_result attribute
10815         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
10816
10817 2009-06-07  Bruno Haible  <bruno@clisp.org>
10818
10819         * tests/test-alignof.c: Don't test int64_t if it does not exist.
10820         Reported by Eric Blake.
10821
10822 2009-06-06  Eric Blake  <ebb9@byu.net>
10823
10824         test-alignof: fix typo with long double
10825         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
10826         compiler error.
10827
10828 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
10829
10830         Escape non-texinfo { and }s.
10831         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
10832         markup error.
10833
10834 2009-06-04  Jim Meyering  <meyering@redhat.com>
10835
10836         gitlog-to-changelog: don't infloop on an empty commit log
10837         * build-aux/gitlog-to-changelog: Warn about an empty log message.
10838         Reported by Boris Petersen <transacid@centerim.org>.
10839
10840 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
10841
10842         version-etc: extend for packagers
10843         Add three new configure options, intended for packagers:
10844           --with-packager="packager name"
10845           --with-packager-version="packager-specific version"
10846           --with-packager-bug-reports="packager bug reporting"
10847         An example with coreutils:
10848           $ ./configure \
10849             --with-packager=Gentoo \
10850             --with-packager-bug-report=http://bugs.gentoo.org/ \
10851             --with-packager-version="patchset 1.6"
10852           $ ./src/ls --version | head -n2
10853           ls (GNU coreutils) 7.1-dirty
10854           Packaged by Gentoo (patchset 1.6)
10855         Note that the bug reporting info via --help doesn't show up because
10856         coreutils uses its own custom emit_bug_reporting_address() implementation
10857         in src/system.h.  If it didn't, it'd look like:
10858           $ ./src/ls --help | tail -n4
10859           Report bugs to <bug-coreutils@gnu.org>.
10860           Report Gentoo bugs to <http://bugs.gentoo.org/>.
10861           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
10862           General help using GNU software: <http://www.gnu.org/gethelp/>.
10863         * lib/version-etc.c: Print new information, if provided.
10864         * m4/version-etc.m4: New file.
10865         * modules/version-etc (Files): Add m4/version-etc.m4.
10866         (configure.ac): Add gl_VERSION_ETC.
10867
10868 2009-05-31  Bruno Haible  <bruno@clisp.org>
10869
10870         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
10871         and 'int64_t'.
10872         * modules/alignof-tests (Dependencies): Add stdint.
10873         Reported by Eric Blake.
10874
10875 2009-05-31  Bruno Haible  <bruno@clisp.org>
10876
10877         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
10878         restriction due to compiler bugs.
10879         Reported by Eric Blake.
10880
10881 2009-05-31  Simon Josefsson  <simon@josefsson.org>
10882             Bruno Haible  <bruno@clisp.org>
10883
10884         Fix test-alignof failure.
10885         * lib/alignof.h (alignof_slot): New macro.
10886         (alignof_type): New macro, with the same semantics as the previous
10887         'alignof'.
10888         (alignof): Alias to alignof_slot.
10889         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
10890         check that the results are usable as constant expressions.
10891
10892 2009-05-31  Bruno Haible  <bruno@clisp.org>
10893
10894         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
10895         * tests/test-memchr.c (main): Check that memchr does not read past the
10896         first occurrence of the byte.
10897         * tests/test-strstr.c (main): Update comment.
10898         Suggested by Eric Blake.
10899
10900 2009-05-30  Bruno Haible  <bruno@clisp.org>
10901
10902         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
10903         detail how to use dumpbin.
10904         Reported by David Byron <dbyron@dbyron.com>.
10905
10906 2009-06-02  Simon Josefsson  <simon@josefsson.org>
10907
10908         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
10909
10910 2009-06-02  Simon Josefsson  <simon@josefsson.org>
10911
10912         * m4/manywarnings.m4: Add GCC 4.4 warnings.
10913
10914 2009-05-28  Bruno Haible  <bruno@clisp.org>
10915
10916         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
10917         build-aux/ files.
10918
10919 2009-05-28  Simon Josefsson  <simon@josefsson.org>
10920
10921         * gnulib-tool (func_import): Transform license on build-aux/ files too.
10922
10923 2009-05-27  Simon Josefsson  <simon@josefsson.org>
10924
10925         * gnulib-tool (sed_transform_main_lib_file)
10926         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
10927         regexps.
10928
10929 2009-05-26  Simon Josefsson  <simon@josefsson.org>
10930
10931         * tests/test-strstr.c: Add another self-test.
10932         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
10933         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
10934
10935 2009-05-23  Bruno Haible  <bruno@clisp.org>
10936
10937         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
10938         change.
10939
10940 2009-05-21  Bruno Haible  <bruno@clisp.org>
10941
10942         Simplify use of mode_t varargs.
10943         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
10944         uses 'mode_t' or 'int'.
10945         * lib/openat.c (openat): Likewise.
10946         * lib/open-safer.c (open_safer): Likewise.
10947         * m4/mode_t.m4: New file.
10948         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
10949         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
10950         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
10951         * modules/open (Files): Add m4/mode_t.m4.
10952         * modules/openat (Files): Likewise.
10953         * modules/fcntl-safer (Files): Likewise.
10954         Suggested by Eric Blake.
10955
10956 2009-05-21  Pádraig Brady  <P@draigbrady.com>
10957
10958         * doc/glibc-functions/fallocate.texi: New file.
10959         * doc/gnulib.texi: Include it.
10960
10961 2009-05-21  Eric Blake  <ebb9@byu.net>
10962             Bruno Haible  <bruno@clisp.org>
10963
10964         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
10965         invocations.
10966         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10967
10968 2009-05-21  Eric Blake  <ebb9@byu.net>
10969             Bruno Haible  <bruno@clisp.org>
10970
10971         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
10972         include_next. Fix of 2008-11-20 commit.
10973         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
10974         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
10975         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
10976         NEXT_MATH_H.
10977         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
10978         instead of NEXT_MATH_H.
10979
10980 2009-05-21  Bruno Haible  <bruno@clisp.org>
10981
10982         Avoid redefinition warnings for SIZE_MAX.
10983         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
10984         Reported by Simon Josefsson.
10985
10986 2009-05-21  Bruno Haible  <bruno@clisp.org>
10987
10988         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
10989         AC_CACHE_VAL.
10990
10991 2009-05-20  Bruno Haible  <bruno@clisp.org>
10992
10993         Make zeroptr.h work on mingw.
10994         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
10995         mprotect.
10996         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
10997         * modules/memchr2-tests (configure.ac): Likewise.
10998         * modules/memcmp-tests (configure.ac): Likewise.
10999         * modules/memmem-tests (configure.ac): Likewise.
11000         * modules/memrchr-tests (configure.ac): Likewise.
11001         Reported by Simon Josefsson.
11002
11003 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11004
11005         * tests/test-glob.c: Include string.h for strcmp prototype.
11006
11007 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11008
11009         * modules/getdelim (Depends-on): Add explicit stdint, although it
11010         was implicitly already pulled in via realloc-posix.
11011         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
11012
11013 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11014
11015         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
11016         G. Christensen" <tgc@jupiterrise.com>.
11017         * m4/sys_socket_h.m4: Check for sa_family_t.
11018         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
11019         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
11020         * tests/test-sys_socket.c: Check that sa_family_t works.
11021
11022 2009-05-18  Eric Blake  <ebb9@byu.net>
11023
11024         maint.mk: allow gnulib_dir in VPATH build
11025         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
11026
11027 2009-05-15  Jim Meyering  <meyering@redhat.com>
11028
11029         maint.mk: Give gnulib_dir a default definition.
11030         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
11031         Thus, most packages no longer need to specify this variable in cfg.mk
11032
11033 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
11034
11035         rename.m4: fix typos that would make non-mingw cross-configure fail
11036         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
11037
11038 2009-05-13  Eric Blake  <ebb9@byu.net>
11039
11040         mmap-anon: avoid out-of-order autoconf expansion
11041         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
11042         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
11043         * modules/memchr-tests (Depends-on): Add extensions.
11044         * modules/memchr2-tests (Depends-on): Add extensions.
11045         * modules/memcmp-tests (Depends-on): Add extensions.
11046         * modules/memmem-tests (Depends-on): Add extensions.
11047         * modules/memrchr-tests (Depends-on): Add extensions.
11048
11049 2009-05-13  Bruno Haible  <bruno@clisp.org>
11050
11051         Make some tests ISO C 99 compliant.
11052         * tests/zerosize-ptr.h: New file.
11053         * tests/test-memchr.c: Include zerosize-ptr.h.
11054         (main): Use a zero-size object pointer instead of NULL.
11055         * tests/test-memchr2.c: Include zerosize-ptr.h.
11056         (main): Use a zero-size object pointer instead of NULL.
11057         * tests/test-memcmp.c: Include zerosize-ptr.h.
11058         (main): Use a zero-size object pointer instead of NULL.
11059         * tests/test-memmem.c: Include zerosize-ptr.h.
11060         (main): Use a zero-size object pointer instead of NULL.
11061         * tests/test-memrchr.c: Include zerosize-ptr.h.
11062         (main): Use a zero-size object pointer instead of NULL.
11063         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
11064         m4/mmap-anon.m4.
11065         (Depends-on): Add getpagesize.
11066         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11067         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
11068         m4/mmap-anon.m4.
11069         (Depends-on): Add getpagesize.
11070         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11071         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
11072         m4/mmap-anon.m4.
11073         (Depends-on): Add getpagesize.
11074         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11075         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
11076         m4/mmap-anon.m4.
11077         (Depends-on): Add getpagesize.
11078         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11079         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
11080         m4/mmap-anon.m4.
11081         (Depends-on): Add getpagesize.
11082         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11083
11084 2009-05-12  Bruno Haible  <bruno@clisp.org>
11085
11086         Tests for module 'alignof'.
11087         * modules/alignof-tests: New file.
11088         * tests/test-alignof.c: New file.
11089
11090 2009-05-12  Bruno Haible  <bruno@clisp.org>
11091
11092         Fix alignof macro.
11093         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
11094         vendor compilers that are always correct.
11095
11096 2009-05-12  Bruno Haible  <bruno@clisp.org>
11097
11098         Make the MAP_ANONYMOUS detection work on HP-UX 11.
11099         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
11100         not whether its fully works.
11101
11102 2009-05-12  Bruno Haible  <bruno@clisp.org>
11103
11104         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
11105
11106 2009-05-12  Jim Meyering  <meyering@redhat.com>
11107
11108         * top/maint.mk: Adjust backslash alignment.
11109
11110 2009-05-11  Simon Josefsson  <simon@josefsson.org>
11111
11112         * top/maint.mk: Make $(srcdir)/build-aux configurable.
11113
11114 2009-05-11  Eric Blake  <ebb9@byu.net>
11115
11116         argp: avoid undefined behavior
11117         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
11118         macros.
11119
11120 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11121
11122         * tests/test-vc-list-files-git.sh: Do git config of user.email and
11123         user.name to prevent git commit from complaining.
11124
11125 2009-05-10  Bruno Haible  <bruno@clisp.org>
11126
11127         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
11128         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
11129         it rewrites every file name only once.
11130         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
11131
11132 2009-05-08  Bruno Haible  <bruno@clisp.org>
11133
11134         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
11135         instead of 'max'.
11136
11137 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11138
11139         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
11140         sockaddr_storage test.
11141
11142 2009-05-07  Simon Josefsson  <simon@josefsson.org>
11143
11144         * modules/sys_socket (Makefile.am): Substitute
11145         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
11146         * m4/sys_socket_h.m4: Check for sockaddr_storage.
11147         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
11148         * tests/test-sys_socket.c: Check sockaddr_storage.
11149
11150 2009-05-08  Bruno Haible  <bruno@clisp.org>
11151
11152         New module 'alignof'.
11153         * lib/alignof.h: New file.
11154         * modules/alignof: New file.
11155
11156 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11157             Bruno Haible  <bruno@clisp.org>
11158
11159         Fix test-file-has-acl on FreeBSD.
11160         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
11161         mask is implicitly added.
11162         * tests/test-file-has-acl.c: Include <signal.h>.
11163         (main): Terminate the test after 5 seconds.
11164         * modules/acl-tests (configure.ac): Check for alarm function.
11165
11166 2009-05-04  Bruno Haible  <bruno@clisp.org>
11167
11168         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
11169         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
11170         * modules/errno (configure.ac): Drop AC_REQUIRE.
11171         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
11172         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
11173
11174 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11175
11176         * modules/glob-tests: New module.
11177         * tests/test-glob.c: Add.
11178
11179 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11180
11181         * modules/fnmatch-tests: New module.
11182         * tests/test-fnmatch.c: Add.
11183
11184 2009-05-04  Eric Blake  <ebb9@byu.net>
11185
11186         maint: make the new no-submodule-changes rule VPATH-safe
11187         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
11188
11189 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11190             Bruno Haible  <bruno@clisp.org>
11191
11192         acl: Fix infinite loop on FreeBSD.
11193         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
11194         of return value from acl_get_entry.
11195         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
11196         Likewise.
11197
11198 2009-05-03  Bruno Haible  <bruno@clisp.org>
11199
11200         * lib/acl-internal.h (acl_entries): Clarify return value.
11201         * lib/acl_entries.c (acl_entries): Likewise.
11202
11203 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11204
11205         Bug fix in acl module.
11206         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
11207
11208 2009-05-03  Bruno Haible  <bruno@clisp.org>
11209
11210         Create gperf-generated file in the source dir, not in the build dir.
11211         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
11212         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
11213         * modules/unicase/locale-language (unicase/locale-languages.h):
11214         Likewise.
11215         * modules/unicase/special-casing (unicase/special-casing-table.h):
11216         Likewise.
11217         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
11218         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
11219         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
11220         Reported by Ralf Wildenhues.
11221
11222 2009-05-03  Bruno Haible  <bruno@clisp.org>
11223
11224         * modules/fnmatch (Description, configure.ac): Taken from
11225         fnmatch-posix.
11226         * modules/fnmatch-posix: Turn into a symbolic reference to the
11227         'fnmatch' module, and deprecate.
11228         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
11229
11230 2009-05-03  Bruno Haible  <bruno@clisp.org>
11231
11232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
11233         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
11234         Reported by Ralf Wildenhues.
11235
11236 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11237
11238         * m4/fnmatch.m4: Fix fnmatch re-define.
11239
11240 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11241
11242         priv-set: new module and tests; adapt write-any-file
11243         * lib/priv-set.c: New file.
11244         * lib/priv-set.h: New file.
11245         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
11246         * lib/write-any-file.c: Simplify by using priv-set module.
11247         * m4/priv-set.m4: New file.
11248         * modules/priv-set: New file.
11249         * modules/unlinkdir: Add dependency on priv-set module.
11250         * modules/write-any-file: Likewise.
11251
11252         Tests for module 'priv-set'.
11253         * modules/priv-set-tests: New file.
11254         * tests/test-priv-set.c: New file.
11255
11256 2009-05-03  Jim Meyering  <meyering@redhat.com>
11257             Bruno Haible  <bruno@clisp.org>
11258
11259         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
11260         use the converted UTF-8 variant of the name instead.
11261
11262 2009-05-03  Jim Meyering  <meyering@redhat.com>
11263
11264         tests: tighten some getdate tests
11265         * tests/test-getdate.c (main): Tighten tests: require equality,
11266         not just greater than.  Set TZ envvar to UTC0.
11267
11268 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11269
11270         getdate: correctly interpret "next monday" when run on a Monday
11271         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
11272         that e.g., "next tues" (when run on a tuesday) results in a date
11273         that is one week in the future, and not today's date.
11274         I.e., add a week when the wday is the same as the current one.
11275         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
11276         and earlier by Martin Bernreuther and Jan Minář.
11277         * tests/test-getdate.c (main): Check that "next DAY" is always in
11278         the future and that "last DAY" is always in the past.
11279
11280 2009-05-02  Jim Meyering  <meyering@redhat.com>
11281
11282         build: ensure that a release build fails when a submodule is unclean
11283         * top/maint.mk (no-submodule-changes): New rule.
11284         (alpha beta major): Depend on it.
11285
11286 2009-05-02  Bruno Haible  <bruno@clisp.org>
11287
11288         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
11289         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
11290         shell variable gl_fnmatch_required to detect which variant is
11291         requested.
11292         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
11293         gl_FUNC_FNMATCH_POSIX.
11294         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
11295         exclude fnmatch-posix.
11296
11297 2009-05-02  Bruno Haible  <bruno@clisp.org>
11298
11299         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
11300         * modules/mbsrtowcs (License): Change to LGPLv2+.
11301         * modules/strnlen1 (License): Likewise.
11302         Reported by Simon Josefsson.
11303
11304 2009-05-02  Bruno Haible  <bruno@clisp.org>
11305
11306         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
11307         "cross".
11308         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
11309         gnulib-tool was called with option --source-base=lib.
11310
11311 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11312
11313         Use automake *-local hooks without commands, for extensibility.
11314         * modules/localcharset (Makefile.am): Rename install-exec-local
11315         rule to install-exec-localcharset, and make it a prerequisite of
11316         install-exec-local.  Likewise, rename the uninstall-local rule to
11317         uninstall-localcharset, and make it a prerequisite of the former.
11318
11319 2009-05-01  Bruno Haible  <bruno@clisp.org>
11320
11321         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
11322         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
11323         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
11324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
11325         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
11326         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
11327         m4/locale-zh.m4, m4/codeset.m4.
11328
11329         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
11330         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
11331         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
11332         m4/locale-zh.m4.
11333
11334         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
11335         REPLACE_WCRTOMB if mbstate_t must be replaced.
11336         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
11337         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
11338
11339 2009-05-01  Bruno Haible  <bruno@clisp.org>
11340
11341         Avoid compiler warnings when redefining macros defined by <libintl.h>.
11342         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
11343         dngettext, dcngettext, textdomain, bindtextdomain,
11344         bind_textdomain_codeset): Undefine before redefining.
11345
11346 2009-04-30  Bruno Haible  <bruno@clisp.org>
11347
11348         Fix bug introduced on 2009-04-25.
11349         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
11350         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
11351         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
11352         is defined.
11353         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
11354         is defined.
11355         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
11356         is defined.
11357         Reported by Elbert_Pol <elbert.pol@gmail.com>.
11358
11359 2009-04-28  Bruno Haible  <bruno@clisp.org>
11360
11361         Comment tweaks.
11362         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
11363         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
11364         * lib/unicase.h (u*_casexfrm): Likewise.
11365         Reported by Paolo Bonzini.
11366
11367 2009-04-28  Bruno Haible  <bruno@clisp.org>
11368
11369         Fix a compilation error.
11370         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
11371         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
11372         Reported by Jim Meyering.
11373
11374 2009-04-27  Bruno Haible  <bruno@clisp.org>
11375
11376         New module 'libunistring'.
11377         * modules/libunistring: New file.
11378         * m4/libunistring.m4: New file.
11379         * MODULES.html.sh (Unicode string functions): Add it.
11380
11381 2009-04-27  Eric Blake  <ebb9@byu.net>
11382
11383         maint.mk: allow package-specific header to provide <config.h>
11384         * top/maint.mk (sc_require_config_h): New variable.
11385         (sc_require_config_h, sc_require_config_h_first): Use it.
11386
11387 2009-04-27  Simon Josefsson  <simon@josefsson.org>
11388
11389         * top/maint.mk (sc_avoid_if_before_free): Except
11390         useless-if-before-free script.
11391
11392 2009-04-27  Eric Blake  <ebb9@byu.net>
11393
11394         maintainer-makefile: depend on all required helper scripts
11395         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
11396         useless-if-before-free.
11397         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
11398         version, rather than assuming gnulib checkout is available.
11399         Reported by Simen Josefsson.
11400
11401 2009-04-26  Bruno Haible  <bruno@clisp.org>
11402
11403         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
11404         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
11405         "../" or "..".
11406
11407 2009-04-26  Bruno Haible  <bruno@clisp.org>
11408
11409         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
11410         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
11411         AC_LIB_HAVE_LINKFLAGS.
11412
11413 2009-04-26  Bruno Haible  <bruno@clisp.org>
11414
11415         Simplify calling convention of u*_conv_from_encoding.
11416         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
11417         u32_conv_from_encoding): Expect a resultbuf argument and return the
11418         result directly as a pointer.
11419         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
11420         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
11421         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
11422         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
11423         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
11424         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
11425         Update.
11426         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
11427         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
11428         * lib/vasnprintf.c (VASNPRINTF): Update.
11429         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
11430         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
11431         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
11432         * NEWS: Mention the change.
11433
11434 2009-04-26  Bruno Haible  <bruno@clisp.org>
11435
11436         Simplify calling convention of u*_conv_to_encoding.
11437         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
11438         u32_conv_to_encoding): Expect a resultbuf argument and return the
11439         result directly as a pointer.
11440         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11441         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
11442         freeing scaled_offsets if mem_iconveha failed.
11443         * lib/unicase/u-casexfrm.h (FUNC): Update.
11444         * lib/uninorm/u-normxfrm.h (FUNC): Update.
11445         * lib/vasnprintf.c (VASNPRINTF): Update.
11446         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
11447         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
11448         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
11449         * NEWS: Mention the change.
11450
11451 2009-04-26  Bruno Haible  <bruno@clisp.org>
11452
11453         Avoid test failures on AIX and OSF/1.
11454         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
11455         malloc(0).
11456         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11457         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
11458         Likewise.
11459         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
11460         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
11461         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
11462         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
11463         * doc/posix-functions/malloc.texi: Document the portability problem
11464         related to malloc(0).
11465
11466 2009-04-26  Bruno Haible  <bruno@clisp.org>
11467
11468         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
11469         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
11470         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
11471
11472 2009-04-25  Bruno Haible  <bruno@clisp.org>
11473
11474         Avoid link error when creating a namespace clean library.
11475         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
11476         as macro with arguments if already defined as an alias.
11477         * lib/signbitf.c (gl_signbitf): Don't undefine.
11478         * lib/signbitd.c (gl_signbitd): Don't undefine.
11479         * lib/signbitl.c (gl_signbitl): Don't undefine.
11480
11481 2009-04-25  Jim Meyering  <meyering@redhat.com>
11482
11483         vc-list-files: fix another quoting bug
11484         * build-aux/vc-list-files: Avoid sed backslash expansion
11485         of pathological directory names.
11486
11487 2009-04-25  Eric Blake  <ebb9@byu.net>
11488
11489         vc-list-files: fix shell quoting error
11490         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
11491         timestamp.
11492
11493 2009-04-25  Jim Meyering  <meyering@redhat.com>
11494
11495         vc-list-files: restore lost functionality with subdir argument
11496         * build-aux/vc-list-files: When given a non-"." sub-directory
11497         argument, substitute the $dir/ prefix back onto each resulting name.
11498         Otherwise, coreutils' root_tests check would fail.
11499
11500 2009-04-24  Eric Blake  <ebb9@byu.net>
11501
11502         vc-list-files: ignore git symlinks
11503         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
11504         than ls-files, to ignore git symlinks.
11505
11506         maint.mk: import improvements from m4
11507         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
11508         (move_if_change): Delete unused macro.
11509         (news-date-check, vc-diff-check): Support VPATH builds.
11510         (announcement): Likewise.  Split --bootstrap-tools list...
11511         (boostrap-tools): ...into separate list, which can be overridden
11512         in cfg.mk.
11513         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
11514         requiring dependency on useless-if-before-free module.
11515         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
11516         Support VPATH builds.
11517
11518 2009-04-24  Jim Meyering  <meyering@redhat.com>
11519
11520         maint.mk: remove coreutils-specific rules and variables
11521         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
11522         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
11523         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
11524
11525         maint.mk: remove obsolete rule
11526         * top/maint.mk (rel-check): Remove rule.
11527         (WGET, WGETFLAGS): Remove now-unused variables.
11528
11529 2009-04-24  Simon Josefsson  <simon@josefsson.org>
11530
11531         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
11532         consistency.
11533
11534         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
11535         '$(PATH_SEPARATOR)' instead of ':'.
11536
11537 2009-04-24  Simon Josefsson  <simon@josefsson.org>
11538
11539         * lib/getopt1.c (main): Use 'const' for static array.
11540
11541 2009-04-24  Simon Josefsson  <simon@josefsson.org>
11542
11543         * top/maint.mk: Sync with coreutils.
11544         * NEWS: Explain incompatibilities.
11545
11546 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11547             Bruno Haible  <bruno@clisp.org>
11548
11549         Fix cross-compilation results.
11550         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
11551         statement, as third argument of AC_TRY_RUN.
11552         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11553         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11554         Likewise.
11555         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11556         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11557         Likewise.
11558         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11559         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
11560         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
11561
11562 2009-04-20  Bruno Haible  <bruno@clisp.org>
11563
11564         Avoid test failure on mingw.
11565         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
11566
11567 2009-04-20  Bruno Haible  <bruno@clisp.org>
11568
11569         Avoid compilation error on mingw.
11570         * modules/localename-tests (Depends-on): Add locale.
11571
11572 2009-04-19  Bruno Haible  <bruno@clisp.org>
11573
11574         Support for building a shared library on Windows platforms.
11575         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
11576         (main): Test the presence of UNINORM_NFC here.
11577         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
11578         (main): Test the presence of UNINORM_NFD here.
11579         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
11580         (main): Test the presence of UNINORM_NFKC here.
11581         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
11582         (main): Test the presence of UNINORM_NFKD here.
11583
11584 2009-04-19  Bruno Haible  <bruno@clisp.org>
11585
11586         Avoid a compiler warning.
11587         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
11588         Change type of variable 'sequence'.
11589
11590 2009-04-19  Bruno Haible  <bruno@clisp.org>
11591
11592         * modules/configmake (Makefile.am): When the contents of configmake.h
11593         does not change, arrange to preserve its modification time.
11594
11595 2009-04-17  Simon Josefsson  <simon@josefsson.org>
11596
11597         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
11598         gettext domain.
11599
11600 2009-04-16  Jim Meyering  <meyering@redhat.com>
11601
11602         useless-if-before-free: improve conversion code
11603         * build-aux/useless-if-before-free: Adjust code-in-comment to match
11604         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
11605
11606 2009-04-14  Bruno Haible  <bruno@clisp.org>
11607
11608         * modules/fcntl (Depends-on): Add extensions.
11609         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
11610
11611 2009-04-12  Ben Pfaff  <blp@gnu.org>
11612
11613         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
11614         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
11615
11616 2009-03-20  Ben Pfaff  <blp@gnu.org>
11617
11618         Make rename replace existing destinations on Windows.
11619         * m4/rename.m4: Add test for Mingw.
11620         * lib/rename.c: Add rename replacement that uses MoveFileEx with
11621         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
11622         * doc/posix-functions/rename.texi: Document.
11623
11624 2009-04-10  Bruno Haible  <bruno@clisp.org>
11625
11626         New include file "iconveh.h".
11627         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
11628         * lib/striconveh.h: Include it.
11629         (enum iconv_ilseq_handler): Remove definition.
11630         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
11631         striconveh.h.
11632         * lib/striconveha.c: Include striconveh.h.
11633         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
11634         * modules/striconveh (Files): Add lib/iconveh.h.
11635         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
11636         lib/striconveh.h.
11637
11638 2009-04-10  Bruno Haible  <bruno@clisp.org>
11639
11640         * lib/uniconv.h: Update comment.
11641
11642 2009-04-10  Bruno Haible  <bruno@clisp.org>
11643
11644         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
11645         always.
11646         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11647         * lib/unistr/u16-mbtouc-aux.c: Likewise.
11648         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11649         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
11650         "unistring-notinline.h", so that the function gets defined always.
11651         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11652         * lib/unistr/u8-uctomb.c: Likewise.
11653         * lib/unistr/u16-mbtouc.c: Likewise.
11654         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11655         * lib/unistr/u16-uctomb.c: Likewise.
11656         * lib/unistr/u32-mbtouc.c: Likewise.
11657         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11658         * lib/unistr/u32-uctomb.c: Likewise.
11659
11660 2009-04-10  Bruno Haible  <bruno@clisp.org>
11661
11662         Mark 'utime' obsolete.
11663         * modules/utime (Status, Notice): New sections.
11664         Suggested by Jim Meyering.
11665
11666         Fix cross-compile guess for utime test.
11667         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
11668         autoconf.
11669         * doc/posix-functions/utime.texi: Give more precisions.
11670         Reported by Jan <ipif@ymail.com>.
11671
11672 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
11673
11674         filevercmp: correct today's change
11675         * lib/filevercmp.c: Also handle coreutils' test inputs.
11676         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
11677
11678         Fix regression in 'filevercmp' module. Thanks Sven Joachim
11679         for reporting it.
11680         * lib/filevercmp.c: Special handle for "", "." and "..".
11681         * tests/test-filevercmp.c: Enlarge the set suite.
11682
11683 2009-04-07  Jim Meyering  <meyering@redhat.com>
11684
11685         useless-if-before-free: show how to remove braced useless free, too
11686         * build-aux/useless-if-before-free: still only in a comment, though.
11687
11688 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
11689
11690         maint.mk: import changes to syntax-check macros from coreutils
11691         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
11692         Use them in the relevant macros.
11693
11694 2009-04-06  Bruno Haible  <bruno@clisp.org>
11695
11696         Fix unportable use of bit-fields.
11697         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
11698         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
11699         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
11700
11701 2009-04-06  Bruno Haible  <bruno@clisp.org>
11702
11703         Avoid test failures on AIX and OSF/1.
11704         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
11705         that malloc(0) = NULL.
11706         * tests/unicase/test-u8-tolower.c (check): Likewise.
11707         * tests/unicase/test-u8-totitle.c (check): Likewise.
11708         * tests/unicase/test-u8-toupper.c (check): Likewise.
11709         * tests/unicase/test-u16-casefold.c (check): Likewise.
11710         * tests/unicase/test-u16-tolower.c (check): Likewise.
11711         * tests/unicase/test-u16-totitle.c (check): Likewise.
11712         * tests/unicase/test-u16-toupper.c (check): Likewise.
11713         * tests/unicase/test-u32-casefold.c (check): Likewise.
11714         * tests/unicase/test-u32-tolower.c (check): Likewise.
11715         * tests/unicase/test-u32-totitle.c (check): Likewise.
11716         * tests/unicase/test-u32-toupper.c (check): Likewise.
11717         * tests/uninorm/test-u8-nfc.c (check): Likewise.
11718         * tests/uninorm/test-u8-nfd.c (check): Likewise.
11719         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
11720         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
11721         * tests/uninorm/test-u16-nfc.c (check): Likewise.
11722         * tests/uninorm/test-u16-nfd.c (check): Likewise.
11723         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
11724         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
11725         * tests/uninorm/test-u32-nfc.c (check): Likewise.
11726         * tests/uninorm/test-u32-nfd.c (check): Likewise.
11727         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
11728         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
11729
11730 2009-04-05  Bruno Haible  <bruno@clisp.org>
11731
11732         Work around an autoconf limitation.
11733         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
11734         comment line if it would be longer than 3 KB.
11735
11736 2009-04-05  Bruno Haible  <bruno@clisp.org>
11737
11738         Avoid test failure with libiconv-1.13.
11739         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
11740         of the expected test results.
11741
11742 2009-04-05  Bruno Haible  <bruno@clisp.org>
11743
11744         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
11745         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
11746         that it should be installed.
11747
11748 2009-04-05  Bruno Haible  <bruno@clisp.org>
11749
11750         * gnulib-tool: New option --copy-file.
11751         (func_usage): Document it.
11752         (func_dest_tmpfilename): Moved out of func_import.
11753         (func_add_file, func_update_file): New functions, extracted from
11754         func_import.
11755         (func_import): Update.
11756
11757 2009-04-05  Karl Berry  <karl@gnu.org>
11758
11759         * README: prominently mention gnulib-tool.
11760         Rearrange sections so getting the code is near the top.
11761
11762 2009-04-05  Bruno Haible  <bruno@clisp.org>
11763
11764         * lib/unicase.h: Mention u*_cmp2.
11765         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
11766         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
11767         * lib/unicase/ulc-casecmp.c: Likewise.
11768         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
11769         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
11770         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
11771         unistr/u8-cmp.
11772         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
11773         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
11774         unistr/u16-cmp.
11775         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
11776         unistr/u32-cmp.
11777
11778         * lib/uninorm.h: Mention u*_cmp2.
11779         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
11780         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
11781         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
11782         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
11783         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
11784         unistr/u8-cmp.
11785         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
11786         unistr/u16-cmp.
11787         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
11788         unistr/u32-cmp.
11789
11790         New module 'unistr/u32-cmp2'.
11791         * lib/unistr/u32-cmp2.c: New file.
11792         * modules/unistr/u32-cmp2: New file.
11793
11794         New module 'unistr/u16-cmp2'.
11795         * lib/unistr/u16-cmp2.c: New file.
11796         * modules/unistr/u16-cmp2: New file.
11797
11798         New module 'unistr/u8-cmp2'.
11799         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
11800         * lib/unistr/u8-cmp2.c: New file.
11801         * lib/unistr/u-cmp2.h: New file.
11802         * modules/unistr/u8-cmp2: New file.
11803
11804 2009-04-05  Bruno Haible  <bruno@clisp.org>
11805
11806         * lib/unictype.h (uc_property_is_valid): New macro.
11807         * tests/unictype/test-pr_byname.c (main): Use it.
11808
11809         * lib/unistr.h: Doc fixes.
11810         * lib/uniconv.h: Doc fixes.
11811         * lib/unictype.h: Doc fixes.
11812
11813 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
11814
11815         Port coreutils 7.2 to Solaris 8.
11816
11817         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
11818         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
11819         for Solaris 8.  This is a bit of a hack, as it means it's the
11820         caller's responsibility to add -lnsl if needed, but most likely it
11821         won't be needed since only getaddrinfo uses this and getaddrinfo
11822         isn't needed on Solaris 8.
11823
11824         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
11825         problem to Solaris 8 encountered with coreutils 7.2, which
11826         resulted in a message "fnmatch.c:292: warning: passing argument 4
11827         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
11828         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
11829
11830 2009-04-03  Simon Josefsson  <simon@josefsson.org>
11831
11832         * m4/ld-version-script.m4: Add FIXME comment.
11833
11834 2009-04-02  Simon Josefsson  <simon@josefsson.org>
11835
11836         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
11837         SOVERSION variable.
11838
11839 2009-04-02  Bruno Haible  <bruno@clisp.org>
11840
11841         * Makefile (info, html, dvi, pdf): Combine the rules.
11842         Suggested by Jim Meyering.
11843
11844 2009-04-01  Bruno Haible  <bruno@clisp.org>
11845
11846         * Makefile (info, html, dvi, pdf): New targets.
11847         Reported by Reuben Thomas <rrt@sc3d.org>.
11848
11849 2009-04-01  Bruno Haible  <bruno@clisp.org>
11850
11851         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
11852         can be put into PATH.
11853         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
11854
11855 2009-04-01  Bruno Haible  <bruno@clisp.org>
11856
11857         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
11858
11859 2009-04-01  Bruno Haible  <bruno@clisp.org>
11860
11861         Rename module 'visibility'.
11862         * modules/lib-symbol-visibility: Renamed from modules/visibility.
11863         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
11864         * doc/gnulib.texi: Update.
11865         * MODULES.html.sh (Misc): Update.
11866         * NEWS: Mention the change.
11867
11868 2009-04-01  Simon Josefsson  <simon@josefsson.org>
11869
11870         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
11871         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
11872         Eric Blake <ebb9@byu.net> for review.
11873         * MODULES.html.sh: Add lib-msvc-compat.
11874         * doc/gnulib.texi: Link to new section.
11875         * m4/ld-output-def.m4: New file.
11876         * doc/ld-output-def.texi: New file.
11877
11878 2009-04-01  Simon Josefsson  <simon@josefsson.org>
11879
11880         Rename ld-version-script to lib-symbol-versions.  Suggested by
11881         Bruno Haible <bruno@clisp.org>.
11882         * modules/ld-version-script: Renamed to lib-symbol-versions.
11883         * doc/ld-version-script.texi: Fix module name.
11884         * MODULES.html.sh: Add lib-symbol-versions.
11885
11886 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11887
11888         * modules/u64-tests: New file.
11889         * tests/test-u64.c: New file.
11890
11891 2009-03-04  Simon Josefsson  <simon@josefsson.org>
11892
11893         * MODULES.html.sh: Mention u64.
11894         * modules/u64: New module.
11895         * modules/crypto/sha512: Depend on u64 module instead of providing
11896         u64.h.
11897
11898 2009-03-27  Eric Blake  <ebb9@byu.net>
11899
11900         test-strerror: make debugging EAI_SYSTEM easier
11901         * modules/getaddrinfo-tests (Depends-on): Add strerror.
11902         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
11903         failure was EAI_SYSTEM.
11904
11905 2009-03-25  Bruno Haible  <bruno@clisp.org>
11906
11907         Fix a problem with --enable-relocatable on Solaris 7.
11908         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
11909         since 2008-02-24.
11910
11911 2009-03-25  Eric Blake  <ebb9@byu.net>
11912
11913         test-sockets: avoid gcc warning
11914         * tests/test-sockets.c (main): Silence compiler warning.
11915
11916 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
11917
11918         New modules nproc, pthread, contributed by Glen Lenker.
11919
11920         * MODULES.html.sh: Add pthread, nproc.
11921         * lib/nproc.c: New file.
11922         * lib/nproc.h: New file.
11923         * lib/pthread.in.h: New file.
11924         * m4/pthread.m4: New file.
11925         * modules/nproc: New file.
11926         * modules/pthread: New file.
11927
11928 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11929
11930         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
11931         New variable.
11932
11933 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
11934
11935         filevercmp: handle simple~ and numbered.~3~ backup suffixes
11936         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
11937         * tests/test-filevercmp.c: Add tests for backup suffixes.
11938
11939 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11940
11941         * modules/stdlib (Depends-on): Add stdint, needed when defining
11942         struct random_data on, for example, HP-UX 10.20.  Reported by
11943         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11944
11945 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11946
11947         * lib/readline.c (readline): Call fflush on stdout after printing
11948         prompt.
11949
11950 2009-03-20  Bruno Haible  <bruno@clisp.org>
11951
11952         Remove dependency from 'close' module to -lws2_32 on native Windows.
11953         * lib/close-hook.h: New file.
11954         * lib/close-hook.c: New file.
11955         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
11956         w32sock.h.
11957         (_gl_close_fd_maybe_socket): Remove function.
11958         (rpl_close): Invoke execute_all_close_hooks instead of
11959         _gl_close_fd_maybe_socket.
11960         * lib/sockets.c: Include close-hook.h, w32sock.h.
11961         (close_fd_maybe_socket): New function, essentially from lib/close.c.
11962         (close_sockets_hook): New variable.
11963         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
11964         (gl_sockets_cleanup): Unregister it.
11965         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
11966         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
11967         * modules/close-hook: New file.
11968         * modules/close (Files): Remove lib/w32sock.h.
11969         (Depends-on): Add close-hook.
11970         (Link): Remove section.
11971         * modules/sockets (Files): Add lib/w32sock.h.
11972         (Depends-on): Add close-hook.
11973         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
11974         invocation.
11975         * NEWS: Mention that LIB_CLOSE is gone.
11976
11977 2009-03-23  Eric Blake  <ebb9@byu.net>
11978
11979         signal-tests: test previous patch
11980         * tests/test-signal.c: New file.
11981         * modules/signal-tests: Likewise.
11982
11983         signal.h: always support 'volatile sig_atomic_t'
11984         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
11985         (gl_SIGNAL_H_DEFAULTS): Add a default.
11986         * modules/signal (Makefile.am): Substitute if needed.
11987         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
11988         users can blindly add volatile.
11989         * doc/posix-headers/signal.texi (signal.h): Document it.
11990         Reported by Matthew Woehlke.
11991
11992 2009-03-23  Jim Meyering  <meyering@redhat.com>
11993
11994         pathmax: PATH_MAX: use pathconf only when available
11995         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
11996         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
11997         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
11998         This avoids a link failure in a PSP cross-compilation environment
11999         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
12000
12001         * lib/vasnprintf.c (divide): Fix typo in comment.
12002
12003 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12004
12005         * gnulib-tool (func_filter_filelist): Fix comment.
12006
12007 2009-03-20  Bruno Haible  <bruno@clisp.org>
12008
12009         Make sockets.h self-contained.
12010         * lib/sockets.c: Include sockets.h first.
12011         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
12012
12013 2009-03-19  Eric Blake  <ebb9@byu.net>
12014
12015         doc: mention more functions added in cygwin 1.7.0
12016         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
12017         addition.
12018         * doc/posix-functions/log2f.texi: Likewise.
12019
12020 2009-03-19  Jim Meyering  <meyering@redhat.com>
12021
12022         fsusage: avoid syntax error due to statement-before-declaration
12023         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
12024         after all declarations.  Reported by Matthew Woehlke in
12025         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
12026
12027 2009-03-18  Eric Blake  <ebb9@byu.net>
12028
12029         build-aux/compile: sync from automake
12030         * build-aux/compile: New file, from automake.
12031         * config/srclist.txt: Mention build-aux/compile.
12032
12033 2009-03-17  Bruno Haible  <bruno@clisp.org>
12034
12035         * lib/git-merge-changelog.c: Fix typo in comment.
12036         Reported by Reuben Thomas <rrt@sc3d.org>.
12037
12038 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
12039
12040         * m4/regex.m4: update and improve help for
12041         --without-included-regex.
12042
12043 2009-03-17  Simon Josefsson  <simon@josefsson.org>
12044
12045         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
12046         failure on missing include files.
12047
12048 2009-03-17  Eric Blake  <ebb9@byu.net>
12049
12050         doc: mention more functions added in cygwin 1.7.0
12051         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
12052         addition.
12053         * doc/posix-functions/fwscanf.texi: Likewise.
12054         * doc/posix-functions/swprintf.texi: Likewise.
12055         * doc/posix-functions/swscanf.texi: Likewise.
12056         * doc/posix-functions/vfwprintf.texi: Likewise.
12057         * doc/posix-functions/vfwscanf.texi: Likewise.
12058         * doc/posix-functions/vswprintf.texi: Likewise.
12059         * doc/posix-functions/vswscanf.texi: Likewise.
12060         * doc/posix-functions/vwprintf.texi: Likewise.
12061         * doc/posix-functions/vwscanf.texi: Likewise.
12062         * doc/posix-functions/wcscasecmp.texi: Likewise.
12063         * doc/posix-functions/wcsdup.texi: Likewise.
12064         * doc/posix-functions/wcsftime.texi: Likewise.
12065         * doc/posix-functions/wcsncasecmp.texi: Likewise.
12066         * doc/posix-functions/wprintf.texi: Likewise.
12067         * doc/posix-functions/wscanf.texi: Likewise.
12068         * doc/glibc-functions/gethostbyname2.texi: Likewise.
12069
12070 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12071
12072         maint.mk: really add $(AM_MAKEFLAGS)
12073         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
12074         was inadvertently omitted in the last commit.
12075         Spotted by Bruno Haible.
12076
12077         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
12078         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
12079         $(AM_MAKEFLAGS)' rather than plain `make'.
12080
12081         gnulib-tool: execute $MAKE not make
12082         * gnulib-tool: Default $MAKE to 'make'.
12083         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
12084         than make.  Initialize $MAKE in the do-autobuild script.
12085
12086         gnulib-tool: use $MAKE not make in generated files
12087         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
12088         make, in generated files.  Initialize $MAKE in the do-autobuild
12089         script.
12090
12091         * top/GNUmakefile (_have-git-version-gen): Fix typo.
12092
12093         GNUmakefile: disable parallelism only for multiple, recursive targets
12094         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
12095         additions in the Makefile.
12096         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
12097         by Automake.
12098         (.NOTPARALLEL): Only disable parallel builds if multiple targets
12099         are listed on the command line and at least one of them is
12100         listed in $(ALL_RECURSIVE_TARGETS).
12101
12102 2009-03-14  Bruno Haible  <bruno@clisp.org>
12103
12104         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
12105         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
12106         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
12107         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
12108         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
12109         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
12110         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
12111         unistr/u8-uctomb.
12112         * modules/unistr/u8-strchr (Depends-on): Likewise.
12113         * modules/unistr/u8-strrchr (Depends-on): Likewise.
12114         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
12115         unistr/u16-uctomb.
12116         * modules/unistr/u16-strchr (Depends-on): Likewise.
12117         * modules/unistr/u16-strrchr (Depends-on): Likewise.
12118
12119 2009-03-12  Bruno Haible  <bruno@clisp.org>
12120
12121         Work around select() bug on Interix 3.5.
12122         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
12123         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
12124         * m4/select.m4: New file.
12125         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
12126         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
12127         * modules/select (Files): Add m4/select.m4.
12128         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
12129         * modules/nanosleep (Depends-on): Add select.
12130         * modules/poll (Depends-on): Likewise.
12131         * doc/posix-functions/select.texi: Mention the Interix bug.
12132         Reported by Markus Duft <mduft@gentoo.org>.
12133
12134         * lib/select.c: Renamed from lib/winsock-select.c.
12135         * modules/select (Files): Add lib/select.c, remove
12136         lib/winsock-select.c.
12137         (configure.ac): Update.
12138
12139 2009-03-12  Jim Meyering  <meyering@redhat.com>
12140
12141         avoid gcc warnings about unused macro definitions
12142         * lib/readtokens.c (STREQ): Remove unused definition.
12143         * lib/xmalloc.c (SIZE_MAX): Likewise.
12144         * lib/openat-die.c (N_): Likewise.
12145         * lib/mountlist.c (SIZE_MAX): Remove definition.
12146         Instead, include <stdint.h>.
12147         * lib/readutmp.c: Likewise.
12148         * modules/readutmp (Depends-on): Add stdint.
12149         * modules/mountlist (Depends-on): Add stdint.
12150         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
12151
12152 2009-03-10  Bruno Haible  <bruno@clisp.org>
12153
12154         Tests for module 'mbmemcasecoll'.
12155         * modules/mbmemcasecoll-tests: New file.
12156         * tests/test-mbmemcasecoll1.sh: New file.
12157         * tests/test-mbmemcasecoll2.sh: New file.
12158         * tests/test-mbmemcasecoll3.sh: New file.
12159         * tests/test-mbmemcasecoll.c: New file.
12160
12161         New module 'mbmemcasecoll'.
12162         * lib/mbmemcasecoll.h: New file.
12163         * lib/mbmemcasecoll.c: New file.
12164         * modules/mbmemcasecoll: New file.
12165
12166         * tests/test-mbmemcasecmp.h: New file, extracted from
12167         tests/test-mbmemcasecmp.c.
12168         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
12169         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
12170         (main): Update.
12171         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
12172
12173 2009-03-09  Bruno Haible  <bruno@clisp.org>
12174
12175         Tests for module 'mbmemcasecmp'.
12176         * modules/mbmemcasecmp-tests: New file.
12177         * tests/test-mbmemcasecmp1.sh: New file.
12178         * tests/test-mbmemcasecmp2.sh: New file.
12179         * tests/test-mbmemcasecmp3.sh: New file.
12180         * tests/test-mbmemcasecmp.c: New file.
12181
12182         New module 'mbmemcasecmp'.
12183         * lib/mbmemcasecmp.h: New file.
12184         * lib/mbmemcasecmp.c: New file.
12185         * modules/mbmemcasecmp: New file.
12186
12187 2009-03-09  Bruno Haible  <bruno@clisp.org>
12188
12189         Tests for module 'unicase/ulc-casecoll'.
12190         * modules/unicase/ulc-casecoll-tests: New file.
12191         * tests/unicase/test-ulc-casecoll1.sh: New file.
12192         * tests/unicase/test-ulc-casecoll2.sh: New file.
12193         * tests/unicase/test-ulc-casecoll.c: New file.
12194
12195         New module 'unicase/ulc-casecoll'.
12196         * lib/unicase.h (ulc_casecoll): New declaration.
12197         * lib/unicase/ulc-casecoll.c: New file.
12198         * modules/unicase/ulc-casecoll: New file.
12199
12200         New module 'unicase/ulc-casexfrm'.
12201         * lib/unicase.h (ulc_casexfrm): New declaration.
12202         * lib/unicase/ulc-casexfrm.c: New file.
12203         * modules/unicase/ulc-casexfrm: New file.
12204
12205 2009-03-09  Bruno Haible  <bruno@clisp.org>
12206
12207         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
12208         invocations.
12209
12210         * m4/mbscasecmp.m4: Remove file.
12211         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
12212         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
12213
12214         * m4/mbscasestr.m4: Remove file.
12215         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
12216         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
12217
12218         * m4/mbschr.m4: Remove file.
12219         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
12220         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
12221
12222         * m4/mbscspn.m4: Remove file.
12223         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
12224         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
12225
12226         * m4/mbslen.m4: Remove file.
12227         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
12228         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
12229
12230         * m4/mbsncasecmp.m4: Remove file.
12231         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
12232         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
12233
12234         * m4/mbsnlen.m4: Remove file.
12235         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
12236         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
12237
12238         * m4/mbspbrk.m4: Remove file.
12239         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
12240         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
12241
12242         * m4/mbspcasecmp.m4: Remove file.
12243         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
12244         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
12245
12246         * m4/mbsrchr.m4: Remove file.
12247         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
12248         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
12249
12250         * m4/mbssep.m4: Remove file.
12251         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
12252         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
12253
12254         * m4/mbsspn.m4: Remove file.
12255         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
12256         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
12257
12258         * m4/mbsstr.m4: Remove file.
12259         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
12260         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
12261
12262         * m4/mbstok_r.m4: Remove file.
12263         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
12264         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
12265
12266         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
12267
12268         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
12269         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
12270
12271         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
12272
12273 2009-03-08  Bruno Haible  <bruno@clisp.org>
12274
12275         Tests for module 'unicase/ulc-casecmp'.
12276         * modules/unicase/ulc-casecmp-tests: New file.
12277         * tests/unicase/test-ulc-casecmp1.sh: New file.
12278         * tests/unicase/test-ulc-casecmp2.sh: New file.
12279         * tests/unicase/test-ulc-casecmp.c: New file.
12280
12281         New module 'unicase/ulc-casecmp'.
12282         * lib/unicase.h (ulc_casecmp): New declaration.
12283         * lib/unicase/ulc-casecmp.c: New file.
12284         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
12285         'const SRC_UNIT *'.
12286         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
12287         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
12288         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
12289         * modules/unicase/ulc-casecmp: New file.
12290
12291         Tests for module 'unicase/u32-is-cased'.
12292         * modules/unicase/u32-is-cased-tests: New file.
12293         * tests/unicase/test-u32-is-cased.c: New file.
12294
12295         Tests for module 'unicase/u16-is-cased'.
12296         * modules/unicase/u16-is-cased-tests: New file.
12297         * tests/unicase/test-u16-is-cased.c: New file.
12298
12299         Tests for module 'unicase/u8-is-cased'.
12300         * modules/unicase/u8-is-cased-tests: New file.
12301         * tests/unicase/test-u8-is-cased.c: New file.
12302         * tests/unicase/test-is-cased.h: New file.
12303
12304         New module 'unicase/u32-is-cased'.
12305         * lib/unicase/u32-is-cased.c: New file.
12306         * modules/unicase/u32-is-cased: New file.
12307
12308         New module 'unicase/u16-is-cased'.
12309         * lib/unicase/u16-is-cased.c: New file.
12310         * modules/unicase/u16-is-cased: New file.
12311
12312         New module 'unicase/u8-is-cased'.
12313         * lib/unicase/u8-is-cased.c: New file.
12314         * lib/unicase/u-is-cased.h: New file.
12315         * modules/unicase/u8-is-cased: New file.
12316
12317         Tests for module 'unicase/u32-is-casefolded'.
12318         * modules/unicase/u32-is-casefolded-tests: New file.
12319         * tests/unicase/test-u32-is-casefolded.c: New file.
12320
12321         Tests for module 'unicase/u16-is-casefolded'.
12322         * modules/unicase/u16-is-casefolded-tests: New file.
12323         * tests/unicase/test-u16-is-casefolded.c: New file.
12324
12325         Tests for module 'unicase/u8-is-casefolded'.
12326         * modules/unicase/u8-is-casefolded-tests: New file.
12327         * tests/unicase/test-u8-is-casefolded.c: New file.
12328         * tests/unicase/test-is-casefolded.h: New file.
12329
12330         New module 'unicase/u32-is-casefolded'.
12331         * lib/unicase/u32-is-casefolded.c: New file.
12332         * modules/unicase/u32-is-casefolded: New file.
12333
12334         New module 'unicase/u16-is-casefolded'.
12335         * lib/unicase/u16-is-casefolded.c: New file.
12336         * modules/unicase/u16-is-casefolded: New file.
12337
12338         New module 'unicase/u8-is-casefolded'.
12339         * lib/unicase/u8-is-casefolded.c: New file.
12340         * modules/unicase/u8-is-casefolded: New file.
12341
12342         Tests for module 'unicase/u32-is-titlecase'.
12343         * modules/unicase/u32-is-titlecase-tests: New file.
12344         * tests/unicase/test-u32-is-titlecase.c: New file.
12345
12346         Tests for module 'unicase/u16-is-titlecase'.
12347         * modules/unicase/u16-is-titlecase-tests: New file.
12348         * tests/unicase/test-u16-is-titlecase.c: New file.
12349
12350         Tests for module 'unicase/u8-is-titlecase'.
12351         * modules/unicase/u8-is-titlecase-tests: New file.
12352         * tests/unicase/test-u8-is-titlecase.c: New file.
12353         * tests/unicase/test-is-titlecase.h: New file.
12354
12355         New module 'unicase/u32-is-titlecase'.
12356         * lib/unicase/u32-is-titlecase.c: New file.
12357         * modules/unicase/u32-is-titlecase: New file.
12358
12359         New module 'unicase/u16-is-titlecase'.
12360         * lib/unicase/u16-is-titlecase.c: New file.
12361         * modules/unicase/u16-is-titlecase: New file.
12362
12363         New module 'unicase/u8-is-titlecase'.
12364         * lib/unicase/u8-is-titlecase.c: New file.
12365         * modules/unicase/u8-is-titlecase: New file.
12366
12367         Tests for module 'unicase/u32-is-lowercase'.
12368         * modules/unicase/u32-is-lowercase-tests: New file.
12369         * tests/unicase/test-u32-is-lowercase.c: New file.
12370
12371         Tests for module 'unicase/u16-is-lowercase'.
12372         * modules/unicase/u16-is-lowercase-tests: New file.
12373         * tests/unicase/test-u16-is-lowercase.c: New file.
12374
12375         Tests for module 'unicase/u8-is-lowercase'.
12376         * modules/unicase/u8-is-lowercase-tests: New file.
12377         * tests/unicase/test-u8-is-lowercase.c: New file.
12378         * tests/unicase/test-is-lowercase.h: New file.
12379
12380         New module 'unicase/u32-is-lowercase'.
12381         * lib/unicase/u32-is-lowercase.c: New file.
12382         * modules/unicase/u32-is-lowercase: New file.
12383
12384         New module 'unicase/u16-is-lowercase'.
12385         * lib/unicase/u16-is-lowercase.c: New file.
12386         * modules/unicase/u16-is-lowercase: New file.
12387
12388         New module 'unicase/u8-is-lowercase'.
12389         * lib/unicase/u8-is-lowercase.c: New file.
12390         * modules/unicase/u8-is-lowercase: New file.
12391
12392         Tests for module 'unicase/u32-is-uppercase'.
12393         * modules/unicase/u32-is-uppercase-tests: New file.
12394         * tests/unicase/test-u32-is-uppercase.c: New file.
12395
12396         Tests for module 'unicase/u16-is-uppercase'.
12397         * modules/unicase/u16-is-uppercase-tests: New file.
12398         * tests/unicase/test-u16-is-uppercase.c: New file.
12399
12400         Tests for module 'unicase/u8-is-uppercase'.
12401         * modules/unicase/u8-is-uppercase-tests: New file.
12402         * tests/unicase/test-u8-is-uppercase.c: New file.
12403         * tests/unicase/test-is-uppercase.h: New file.
12404
12405         New module 'unicase/u32-is-uppercase'.
12406         * lib/unicase/u32-is-uppercase.c: New file.
12407         * modules/unicase/u32-is-uppercase: New file.
12408
12409         New module 'unicase/u16-is-uppercase'.
12410         * lib/unicase/u16-is-uppercase.c: New file.
12411         * modules/unicase/u16-is-uppercase: New file.
12412
12413         New module 'unicase/u8-is-uppercase'.
12414         * lib/unicase/u8-is-uppercase.c: New file.
12415         * modules/unicase/u8-is-uppercase: New file.
12416
12417         New module 'unicase/u32-is-invariant'.
12418         * lib/unicase/u32-is-invariant.c: New file.
12419         * modules/unicase/u32-is-invariant: New file.
12420
12421         New module 'unicase/u16-is-invariant'.
12422         * lib/unicase/u16-is-invariant.c: New file.
12423         * modules/unicase/u16-is-invariant: New file.
12424
12425         New module 'unicase/u8-is-invariant'.
12426         * lib/unicase/u8-is-invariant.c: New file.
12427         * lib/unicase/invariant.h: New file.
12428         * lib/unicase/u-is-invariant.h: New file.
12429         * modules/unicase/u8-is-invariant: New file.
12430
12431         Tests for module 'unicase/u32-casecoll'.
12432         * modules/unicase/u32-casecoll-tests: New file.
12433         * tests/unicase/test-u32-casecoll.c: New file.
12434
12435         Tests for module 'unicase/u16-casecoll'.
12436         * modules/unicase/u16-casecoll-tests: New file.
12437         * tests/unicase/test-u16-casecoll.c: New file.
12438
12439         Tests for module 'unicase/u8-casecoll'.
12440         * modules/unicase/u8-casecoll-tests: New file.
12441         * tests/unicase/test-u8-casecoll.c: New file.
12442
12443         New module 'unicase/u32-casecoll'.
12444         * lib/unicase/u32-casecoll.c: New file.
12445         * modules/unicase/u32-casecoll: New file.
12446
12447         New module 'unicase/u16-casecoll'.
12448         * lib/unicase/u16-casecoll.c: New file.
12449         * modules/unicase/u16-casecoll: New file.
12450
12451         New module 'unicase/u8-casecoll'.
12452         * lib/unicase/u8-casecoll.c: New file.
12453         * lib/unicase/u-casecoll.h: New file.
12454         * modules/unicase/u8-casecoll: New file.
12455
12456         New module 'unicase/u32-casexfrm'.
12457         * lib/unicase/u32-casexfrm.c: New file.
12458         * modules/unicase/u32-casexfrm: New file.
12459
12460         New module 'unicase/u16-casexfrm'.
12461         * lib/unicase/u16-casexfrm.c: New file.
12462         * modules/unicase/u16-casexfrm: New file.
12463
12464         New module 'unicase/u8-casexfrm'.
12465         * lib/unicase/u8-casexfrm.c: New file.
12466         * lib/unicase/u-casexfrm.h: New file.
12467         * modules/unicase/u8-casexfrm: New file.
12468
12469         Tests for module 'unicase/u32-casecmp'.
12470         * modules/unicase/u32-casecmp-tests: New file.
12471         * tests/unicase/test-u32-casecmp.c: New file.
12472
12473         Tests for module 'unicase/u16-casecmp'.
12474         * modules/unicase/u16-casecmp-tests: New file.
12475         * tests/unicase/test-u16-casecmp.c: New file.
12476
12477         Tests for module 'unicase/u8-casecmp'.
12478         * modules/unicase/u8-casecmp-tests: New file.
12479         * tests/unicase/test-u8-casecmp.c: New file.
12480         * tests/unicase/test-casecmp.h: New file.
12481
12482         New module 'unicase/u32-casecmp'.
12483         * lib/unicase/u32-casecmp.c: New file.
12484         * modules/unicase/u32-casecmp: New file.
12485
12486         New module 'unicase/u16-casecmp'.
12487         * lib/unicase/u16-casecmp.c: New file.
12488         * modules/unicase/u16-casecmp: New file.
12489
12490         New module 'unicase/u8-casecmp'.
12491         * lib/unicase/u8-casecmp.c: New file.
12492         * lib/unicase/u-casecmp.h: New file.
12493         * modules/unicase/u8-casecmp: New file.
12494
12495         Tests for module 'unicase/u32-casefold'.
12496         * modules/unicase/u32-casefold-tests: New file.
12497         * tests/unicase/test-u32-casefold.c: New file.
12498
12499         Tests for module 'unicase/u16-casefold'.
12500         * modules/unicase/u16-casefold-tests: New file.
12501         * tests/unicase/test-u16-casefold.c: New file.
12502
12503         Tests for module 'unicase/u8-casefold'.
12504         * modules/unicase/u8-casefold-tests: New file.
12505         * tests/unicase/test-u8-casefold.c: New file.
12506
12507         New module 'unicase/u32-casefold'.
12508         * lib/unicase/u32-casefold.c: New file.
12509         * modules/unicase/u32-casefold: New file.
12510
12511         New module 'unicase/u16-casefold'.
12512         * lib/unicase/u16-casefold.c: New file.
12513         * modules/unicase/u16-casefold: New file.
12514
12515         New module 'unicase/u8-casefold'.
12516         * lib/unicase/u8-casefold.c: New file.
12517         * lib/unicase/u-casefold.h: New file.
12518         * modules/unicase/u8-casefold: New file.
12519
12520         New module 'unicase/tocasefold'.
12521         * lib/unicase/casefold.h: New file.
12522         * lib/unicase/tocasefold.c: New file.
12523         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
12524         * modules/unicase/tocasefold: New file.
12525
12526         Tests for module 'unicase/u32-totitle'.
12527         * modules/unicase/u32-totitle-tests: New file.
12528         * tests/unicase/test-u32-totitle.c: New file.
12529
12530         Tests for module 'unicase/u16-totitle'.
12531         * modules/unicase/u16-totitle-tests: New file.
12532         * tests/unicase/test-u16-totitle.c: New file.
12533
12534         Tests for module 'unicase/u8-totitle'.
12535         * modules/unicase/u8-totitle-tests: New file.
12536         * tests/unicase/test-u8-totitle.c: New file.
12537
12538         New module 'unicase/u32-totitle'.
12539         * lib/unicase/u32-totitle.c: New file.
12540         * modules/unicase/u32-totitle: New file.
12541
12542         New module 'unicase/u16-totitle'.
12543         * lib/unicase/u16-totitle.c: New file.
12544         * modules/unicase/u16-totitle: New file.
12545
12546         New module 'unicase/u8-totitle'.
12547         * lib/unicase/u8-totitle.c: New file.
12548         * lib/unicase/u-totitle.h: New file.
12549         * modules/unicase/u8-totitle: New file.
12550
12551         Tests for module 'unicase/u32-tolower'.
12552         * modules/unicase/u32-tolower-tests: New file.
12553         * tests/unicase/test-u32-tolower.c: New file.
12554
12555         Tests for module 'unicase/u16-tolower'.
12556         * modules/unicase/u16-tolower-tests: New file.
12557         * tests/unicase/test-u16-tolower.c: New file.
12558
12559         Tests for module 'unicase/u8-tolower'.
12560         * modules/unicase/u8-tolower-tests: New file.
12561         * tests/unicase/test-u8-tolower.c: New file.
12562
12563         New module 'unicase/u32-tolower'.
12564         * lib/unicase/u32-tolower.c: New file.
12565         * modules/unicase/u32-tolower: New file.
12566
12567         New module 'unicase/u16-tolower'.
12568         * lib/unicase/u16-tolower.c: New file.
12569         * modules/unicase/u16-tolower: New file.
12570
12571         New module 'unicase/u8-tolower'.
12572         * lib/unicase/u8-tolower.c: New file.
12573         * modules/unicase/u8-tolower: New file.
12574
12575         Tests for module 'unicase/u32-toupper'.
12576         * modules/unicase/u32-toupper-tests: New file.
12577         * tests/unicase/test-u32-toupper.c: New file.
12578
12579         Tests for module 'unicase/u16-toupper'.
12580         * modules/unicase/u16-toupper-tests: New file.
12581         * tests/unicase/test-u16-toupper.c: New file.
12582
12583         Tests for module 'unicase/u8-toupper'.
12584         * modules/unicase/u8-toupper-tests: New file.
12585         * tests/unicase/test-u8-toupper.c: New file.
12586
12587         New module 'unicase/u32-toupper'.
12588         * lib/unicase/u32-toupper.c: New file.
12589         * modules/unicase/u32-toupper: New file.
12590
12591         New module 'unicase/u16-toupper'.
12592         * lib/unicase/u16-toupper.c: New file.
12593         * modules/unicase/u16-toupper: New file.
12594
12595         New module 'unicase/u8-toupper'.
12596         * lib/unicase/u8-toupper.c: New file.
12597         * modules/unicase/u8-toupper: New file.
12598
12599         New module 'unicase/u32-casemap'.
12600         * lib/unicase/u32-casemap.c: New file.
12601         * modules/unicase/u32-casemap: New file.
12602
12603         New module 'unicase/u16-casemap'.
12604         * lib/unicase/u16-casemap.c: New file.
12605         * modules/unicase/u16-casemap: New file.
12606
12607         New module 'unicase/u8-casemap'.
12608         * lib/unicase/unicasemap.h: New file.
12609         * lib/unicase/u8-casemap.c: New file.
12610         * lib/unicase/u-casemap.h: New file.
12611         * modules/unicase/u8-casemap: New file.
12612
12613         New module 'unicase/special-casing'.
12614         * lib/unicase/special-casing.h: New file.
12615         * lib/unicase/special-casing.c: New file.
12616         * lib/unicase/special-casing-table.gperf: New file, generated by
12617         gen-uni-tables.c.
12618         * modules/unicase/special-casing: New file.
12619
12620         Tests for module 'unicase/locale-language'.
12621         * modules/unicase/locale-language-tests: New file.
12622         * tests/unicase/test-locale-language.sh: New file.
12623         * tests/unicase/test-locale-language.c: New file.
12624
12625         New module 'unicase/locale-language'.
12626         * lib/unicase/locale-language.c: New file.
12627         * lib/unicase/locale-languages.gperf: New file.
12628         * modules/unicase/locale-language: New file.
12629
12630         Generate more tables for case conversion and case folding.
12631         * lib/gen-uni-tables.c (SCC_*): New enum items.
12632         (struct special_casing_rule): New type.
12633         (casing_rules, num_casing_rules, allocated_casing_rules): New
12634         variables.
12635         (add_casing_rule, fill_casing_rules): New functions.
12636         (struct casefold_rule): New type.
12637         (casefolding_rules, num_casefolding_rules,
12638         allocated_casefolding_rules): New variables.
12639         (fill_casefolding_rules): New function.
12640         (unicode_casefold): New variable.
12641         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
12642         sort_casing_rules, output_casing_rules): New functions.
12643         (main): Accept to more arguments: SpecialCasing.txt and
12644         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
12645         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
12646         Output mapping for casefolding.
12647
12648         * lib/unicase.h: Include stdbool.h, uninorm.h.
12649         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
12650         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
12651         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
12652         arguments.
12653         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
12654         resultp arguments.
12655         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
12656         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
12657         resultp arguments.
12658         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
12659         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
12660         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
12661         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
12662         declarations.
12663         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
12664
12665 2009-03-08  Bruno Haible  <bruno@clisp.org>
12666
12667         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
12668         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
12669         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
12670         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
12671
12672 2009-03-07  Bruno Haible  <bruno@clisp.org>
12673
12674         Adjust u*_normcmp, u*_normcoll API.
12675         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
12676         u16_normcoll, u32_normcoll): Change failure conventions.
12677         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
12678         errno and return -1.
12679         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
12680
12681 2009-03-07  Bruno Haible  <bruno@clisp.org>
12682
12683         Tests for module 'uninorm/u32-normcoll'.
12684         * modules/uninorm/u32-normcoll-tests: New file.
12685         * tests/uninorm/test-u32-normcoll.c: New file.
12686
12687         Tests for module 'uninorm/u16-normcoll'.
12688         * modules/uninorm/u16-normcoll-tests: New file.
12689         * tests/uninorm/test-u16-normcoll.c: New file.
12690
12691         Tests for module 'uninorm/u8-normcoll'.
12692         * modules/uninorm/u8-normcoll-tests: New file.
12693         * tests/uninorm/test-u8-normcoll.c: New file.
12694
12695 2009-03-07  Bruno Haible  <bruno@clisp.org>
12696
12697         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
12698         tests/uninorm/test-u32-normcmp.c.
12699         * tests/uninorm/test-u32-normcmp.c: Include it.
12700         (test_nonascii): New function, extracted from main. Add some more
12701         tests.
12702         (main): Invoke test_ascii and test_nonascii.
12703         * modules/uninorm/u32-normcmp-tests (Files): Add
12704         tests/uninorm/test-u32-normcmp.h.
12705         (Depends-on): Remove uninorm/u32-normcmp.
12706
12707         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
12708         tests/uninorm/test-u16-normcmp.c.
12709         * tests/uninorm/test-u16-normcmp.c: Include it.
12710         (test_nonascii): New function, extracted from main. Add some more
12711         tests.
12712         (main): Invoke test_ascii and test_nonascii.
12713         * modules/uninorm/u16-normcmp-tests (Files): Add
12714         tests/uninorm/test-u16-normcmp.h.
12715         (Depends-on): Remove uninorm/u16-normcmp.
12716
12717         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
12718         tests/uninorm/test-u8-normcmp.c.
12719         * tests/uninorm/test-u8-normcmp.c: Include it.
12720         (test_nonascii): New function, extracted from main. Add some more
12721         tests.
12722         (main): Invoke test_ascii and test_nonascii.
12723         * modules/uninorm/u8-normcmp-tests (Files): Add
12724         tests/uninorm/test-u8-normcmp.h.
12725         (Depends-on): Remove uninorm/u8-normcmp.
12726
12727 2009-03-07  Bruno Haible  <bruno@clisp.org>
12728
12729         New module 'uninorm/u32-normcoll'.
12730         * lib/uninorm/u32-normcoll.c: New file.
12731         * modules/uninorm/u32-normcoll: New file.
12732
12733         New module 'uninorm/u16-normcoll'.
12734         * lib/uninorm/u16-normcoll.c: New file.
12735         * modules/uninorm/u16-normcoll: New file.
12736
12737         New module 'uninorm/u8-normcoll'.
12738         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
12739         declarations.
12740         * lib/uninorm/u8-normcoll.c: New file.
12741         * lib/uninorm/u-normcoll.h: New file.
12742         * modules/uninorm/u8-normcoll: New file.
12743
12744         New module 'uninorm/u32-normxfrm'.
12745         * lib/uninorm/u32-normxfrm.c: New file.
12746         * modules/uninorm/u32-normxfrm: New file.
12747
12748         New module 'uninorm/u16-normxfrm'.
12749         * lib/uninorm/u16-normxfrm.c: New file.
12750         * modules/uninorm/u16-normxfrm: New file.
12751
12752         New module 'uninorm/u8-normxfrm'.
12753         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
12754         declarations.
12755         * lib/uninorm/u8-normxfrm.c: New file.
12756         * lib/uninorm/u-normxfrm.h: New file.
12757         * modules/uninorm/u8-normxfrm: New file.
12758
12759 2009-03-07  Bruno Haible  <bruno@clisp.org>
12760
12761         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
12762         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
12763         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
12764
12765 2009-03-07  Bruno Haible  <bruno@clisp.org>
12766
12767         New module 'memxfrm'.
12768         * lib/memxfrm.h: New file.
12769         * lib/memxfrm.c: New file.
12770         * modules/memxfrm: New file.
12771
12772 2009-03-07  Bruno Haible  <bruno@clisp.org>
12773
12774         New module 'memcmp2'.
12775         * lib/memcmp2.h: New file.
12776         * lib/memcmp2.c: New file.
12777         * modules/memcmp2: New file.
12778
12779 2009-03-07  Bruno Haible  <bruno@clisp.org>
12780
12781         Tests for module 'uninorm/decomposing-form'.
12782         * modules/uninorm/decomposing-form-tests: New file.
12783         * tests/uninorm/test-decomposing-form.c: New file.
12784
12785         New module 'uninorm/decomposing-form'.
12786         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
12787         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
12788         Add 'decomposing_variant' field.
12789         * lib/uninorm/decomposing-form.c: New file.
12790         * lib/uninorm/nfc.c (uninorm_nfc): Update.
12791         * lib/uninorm/nfd.c (uninorm_nfd): Update.
12792         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
12793         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
12794         * modules/uninorm/decomposing-form: New file.
12795         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
12796         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
12797
12798 2009-03-07  Bruno Haible  <bruno@clisp.org>
12799
12800         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
12801         strings.
12802
12803 2009-03-06  Bruno Haible  <bruno@clisp.org>
12804
12805         Tests for module 'uninorm/u32-normcmp'.
12806         * tests/uninorm/test-u32-normcmp.c: New file.
12807         * modules/uninorm/u32-normcmp-tests: New file.
12808
12809         Tests for module 'uninorm/u16-normcmp'.
12810         * tests/uninorm/test-u16-normcmp.c: New file.
12811         * modules/uninorm/u16-normcmp-tests: New file.
12812
12813         Tests for module 'uninorm/u8-normcmp'.
12814         * tests/uninorm/test-u8-normcmp.c: New file.
12815         * modules/uninorm/u8-normcmp-tests: New file.
12816
12817         New module 'uninorm/u32-normcmp'.
12818         * lib/uninorm/u32-normcmp.c: New file.
12819         * modules/uninorm/u32-normcmp: New file.
12820
12821         New module 'uninorm/u16-normcmp'.
12822         * lib/uninorm/u16-normcmp.c: New file.
12823         * modules/uninorm/u16-normcmp: New file.
12824
12825         New module 'uninorm/u8-normcmp'.
12826         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
12827         declarations.
12828         * lib/uninorm/u8-normcmp.c: New file.
12829         * lib/uninorm/u-normcmp.h: New file.
12830         * modules/uninorm/u8-normcmp: New file.
12831
12832 2009-03-06  Bruno Haible  <bruno@clisp.org>
12833
12834         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
12835         Reported by Eric Blake.
12836
12837 2009-03-06  Eric Blake  <ebb9@byu.net>
12838             Bruno Haible  <bruno@clisp.org>
12839
12840         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
12841         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
12842         condition.
12843         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
12844         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
12845         condition.
12846         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
12847
12848 2009-03-06  Eric Blake  <ebb9@byu.net>
12849
12850         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
12851         to avoid compiler warnings.
12852         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
12853
12854 2009-03-05  Bruno Haible  <bruno@clisp.org>
12855
12856         * tests/test-ftell.c (main): Disable test beyond end of file on
12857         FreeMiNT.
12858         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12859
12860 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
12861
12862         * lib/filevercmp.c: Move hidden files up in ordering.
12863         * tests/test-filevercmp.c: Add tests for hidden files.
12864
12865 2009-03-04  Bruno Haible  <bruno@clisp.org>
12866
12867         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
12868         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
12869         AM_CFLAGS.
12870         Reported by Simon Josefsson.
12871
12872 2009-03-03  Bruno Haible  <bruno@clisp.org>
12873
12874         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
12875         Reported by Simon Josefsson.
12876
12877         * doc/ld-version-script.texi: Update node reference.
12878
12879 2009-03-03  Bruno Haible  <bruno@clisp.org>
12880
12881         * modules/visibility (License): Change to 'unlimited'.
12882         Suggested by Simon Josefsson.
12883
12884 2009-03-03  Jim Meyering  <meyering@redhat.com>
12885
12886         unlinkdir: cannot_unlink_dir may modify process state
12887         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
12888         it's neither thread-safe nor appropriate for use in a library.
12889
12890 2009-03-03  Eric Blake  <ebb9@byu.net>
12891
12892         test-closein: silence test under Darwin
12893         * tests/test-closein.sh: Ignore stderr from cat, since we don't
12894         care if it dies from EPIPE or EBADF.
12895
12896 2009-03-03  Bruno Haible  <bruno@clisp.org>
12897
12898         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
12899         earlier.
12900         * doc/visibility.texi: Fix @node and @section.
12901
12902 2009-03-03  Simon Josefsson  <simon@josefsson.org>
12903
12904         * doc/gnulib.texi: Link to sections for ld version script and
12905         visibility.
12906         * doc/visibility.texi: Add @node and @section.
12907         * modules/ld-version-script: New module.
12908         * m4/ld-version-script.m4: New file.
12909         * doc/ld-version-script.texi: New file.
12910
12911 2009-03-02  David Lutterkort  <lutter@redhat.com>
12912
12913         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
12914         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12915
12916 2009-03-02  Bruno Haible  <bruno@clisp.org>
12917
12918         * doc/visibility.texi: Mention libtool's -export-symbols option.
12919
12920 2009-03-02  Jim Meyering  <meyering@redhat.com>
12921
12922         announce-gen: new option: --no-print-checksums
12923         * build-aux/announce-gen (usage): Describe it.
12924         (print_checksums): Print a newline here, not in the [*] footnote.
12925         (main): Honor it.
12926
12927 2009-03-01  Bruno Haible  <bruno@clisp.org>
12928
12929         Use socklen_t in the native Windows replacements prototypes.
12930         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
12931         instead of 'int'.
12932         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12933         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12934         * modules/getsockopt (Depends-on): Add socklen.
12935         * modules/setsockopt (Depends-on): Add socklen.
12936
12937 2009-03-01  Bruno Haible  <bruno@clisp.org>
12938
12939         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
12940         least 4.2.
12941
12942 2009-03-01  Eric Blake  <ebb9@byu.net>
12943             Bruno Haible  <bruno@clisp.org>
12944
12945         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
12946         error messages.
12947         * lib/wait-process.c (wait_subprocess): Omit error message about
12948         deadly signal sent to the child of termsigp != NULL.
12949
12950 2009-03-01  Eric Blake  <ebb9@byu.net>
12951
12952         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
12953
12954 2009-03-01  Bruno Haible  <bruno@clisp.org>
12955
12956         Avoid a gcc warning.
12957         * tests/test-sched.c (b): Make global.
12958         Reported by Eric Blake.
12959
12960 2009-01-19  Martin Lambers  <marlam@marlam.de>
12961
12962         Provide POSIX semantics for socket timeout options on W32.
12963         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
12964         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
12965         * modules/setsockopt: Depend on sys_time module for struct timeval.
12966         * modules/getsockopt: Depend on sys_time module for struct timeval.
12967
12968 2009-03-01  Simon Josefsson  <simon@josefsson.org>
12969
12970         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
12971         __USE_GNU, for consistency with netdb.in.h.
12972         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12973
12974 2009-03-01  Bruno Haible  <bruno@clisp.org>
12975
12976         More support for FreeMiNT.
12977         * lib/fseeko.c (rpl_fseeko): Complete last commit.
12978         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12979
12980 2009-03-01  Bruno Haible  <bruno@clisp.org>
12981
12982         More support for FreeMiNT.
12983         * lib/fpurge.c (fpurge): Correct last commit.
12984         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12985
12986 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12987
12988         Fix unportable awk script in vc-list-files.
12989         * build-aux/vc-list-files: In the replacement awk script, use
12990         substr with a second argument of 1, not zero.
12991         Report by Simon Josefsson.
12992
12993 2009-02-28  Bruno Haible  <bruno@clisp.org>
12994
12995         More support for FreeMiNT.
12996         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
12997         to FreeMiNT today.
12998         * lib/fwriting.c (fwriting): Likewise.
12999         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
13000
13001 2009-02-28  Bruno Haible  <bruno@clisp.org>
13002
13003         * tests/test-freadseek.c (main): Disable test beyond end of file on
13004         FreeMiNT.
13005         * tests/test-ftello.c (main): Likewise.
13006         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13007
13008 2009-02-28  Bruno Haible  <bruno@clisp.org>
13009
13010         Add tentative support for FreeMiNT.
13011         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
13012         * lib/fpurge.c (fpurge): Likewise.
13013         * lib/freadable.c (freadable): Likewise.
13014         * lib/freading.c (freading): Likewise.
13015         * lib/freadptr.c (freadptr): Likewise.
13016         * lib/freadseek.c (freadptrinc): Likewise.
13017         * lib/fseeko.c (rpl_fseeko): Likewise.
13018         * lib/fseterr.c (fseterr): Likewise.
13019         * lib/fwritable.c (fwritable): Likewise.
13020         * lib/fwriting.c (fwriting): Likewise.
13021         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
13022         Hourihane.
13023         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13024
13025 2009-02-28  Bruno Haible  <bruno@clisp.org>
13026
13027         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
13028         SIGCHLD.
13029         Reported by Jim Meyering.
13030
13031 2009-02-28  Bruno Haible  <bruno@clisp.org>
13032
13033         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
13034         Mention the results of these tests on various platforms.
13035         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
13036         order.
13037         * doc/posix-functions/printf.texi: Likewise.
13038         * doc/posix-functions/snprintf.texi: Likewise.
13039         * doc/posix-functions/sprintf.texi: Likewise.
13040         * doc/posix-functions/vfprintf.texi: Likewise.
13041         * doc/posix-functions/vprintf.texi: Likewise.
13042         * doc/posix-functions/vsnprintf.texi: Likewise.
13043         * doc/posix-functions/vsprintf.texi: Likewise.
13044         * doc/glibc-functions/obstack_printf.texi: Likewise.
13045         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13046
13047 2009-02-28  Bruno Haible  <bruno@clisp.org>
13048
13049         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
13050         Reported by Loïc Minier <lool@dooz.org>.
13051
13052 2009-02-27  Bruno Haible  <bruno@clisp.org>
13053
13054         * gnulib-tool (func_import): Make the sed expression used to create the
13055         sed script for updating the .gitignore file POSIX compliant.
13056         Reported by Eric Blake.
13057
13058 2009-02-27  Bruno Haible  <bruno@clisp.org>
13059
13060         * gnulib-tool (sed): Don't alias as "sed --posix".
13061         Reported by Eric Blake.
13062
13063 2009-02-27  Bruno Haible  <bruno@clisp.org>
13064
13065         Avoid test link errors.
13066         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
13067         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
13068         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
13069         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
13070         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13071
13072 2009-02-27  Bruno Haible  <bruno@clisp.org>
13073
13074         Avoid spurious "(cached)" in configure output.
13075         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
13076         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
13077         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13078         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13079         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13080         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13081         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13082         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13083         Reported by Eric Blake.
13084
13085 2009-02-27  Eric Blake  <ebb9@byu.net>
13086
13087         printf: fix regression in previous patch
13088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
13089
13090 2009-02-27  Bruno Haible  <bruno@clisp.org>
13091
13092         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
13093         value.
13094         * lib/stdint.in.h: Likewise.
13095         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
13096
13097 2009-02-27  Eric Blake  <ebb9@byu.net>
13098
13099         doc: mention more functions added in cygwin 1.7.0
13100         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
13101         addition.
13102         * doc/posix-functions/open_wmemstream.texi: Likewise.
13103         * doc/posix-functions/wcsnlen.texi: Likewise.
13104         * doc/posix-functions/wcsnrtombs.texi: Likewise.
13105         * doc/posix-functions/wcstod.texi: Likewise.
13106         * doc/posix-functions/wcstof.texi: Likewise.
13107         * doc/posix-functions/wcstoimax.texi: Likewise.
13108         * doc/posix-functions/wcstok.texi: Likewise.
13109         * doc/posix-functions/wcstoumax.texi: Likewise.
13110
13111         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
13112         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
13113         * doc/posix-functions/fprintf.texi: Update.
13114         * doc/posix-functions/printf.texi: Update.
13115         * doc/posix-functions/snprintf.texi: Update.
13116         * doc/posix-functions/sprintf.texi: Update.
13117         * doc/posix-functions/vfprintf.texi: Update.
13118         * doc/posix-functions/vprintf.texi: Update.
13119         * doc/posix-functions/vsnprintf.texi: Update.
13120         * doc/posix-functions/vsprintf.texi: Update.
13121         * doc/glibc-functions/obstack_printf.texi: Update.
13122         * doc/glibc-functions/obstack_vprintf.texi: Update.
13123
13124 2009-02-26  Eric Blake  <ebb9@byu.net>
13125
13126         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
13127         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
13128         compilation bug by using runtime conversion.
13129         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13130         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
13131         * modules/ceill-tests (Files): Use nan.h.
13132         * modules/floorl-tests (Files): Likewise.
13133         * modules/frexpl-tests (Files): Likewise.
13134         * modules/isnanl-tests (Files): Likewise.
13135         * modules/ldexpl-tests (Files): Likewise.
13136         * modules/roundl-tests (Files): Likewise.
13137         * modules/truncl-tests (Files): Likewise.
13138         * tests/test-ceill.c (main): Use a working NaN.
13139         * tests/test-floorl.c (main): Likewise.
13140         * tests/test-frexpl.c (main): Likewise.
13141         * tests/test-isnan.c (test_long_double): Likewise.
13142         * tests/test-isnanl.h (main): Likewise.
13143         * tests/test-ldexpl.h (main): Likewise.
13144         * tests/test-roundl.h (main): Likewise.
13145         * tests/test-truncl.h (main): Likewise.
13146         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
13147
13148 2009-02-26  Eric Blake  <ebb9@byu.net>
13149             Bruno Haible  <bruno@clisp.org>
13150
13151         Work around a *printf bug with %ls on Solaris.
13152         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
13153         precision is specified, sprintf stops converting the wide string
13154         argument when the number of bytes that have been produced by this
13155         conversion equals or exceeds the precision.
13156         * doc/posix-functions/fprintf.texi: Update.
13157         * doc/posix-functions/printf.texi: Update.
13158         * doc/posix-functions/snprintf.texi: Update.
13159         * doc/posix-functions/sprintf.texi: Update.
13160         * doc/posix-functions/vfprintf.texi: Update.
13161         * doc/posix-functions/vprintf.texi: Update.
13162         * doc/posix-functions/vsnprintf.texi: Update.
13163         * doc/posix-functions/vsprintf.texi: Update.
13164         * doc/glibc-functions/obstack_printf.texi: Update.
13165         * doc/glibc-functions/obstack_vprintf.texi: Update.
13166
13167 2009-02-26  Eric Blake  <ebb9@byu.net>
13168
13169         stdlib: favor compiler check of random.h
13170         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
13171         to avoid an ObjC random.h installed by Swarm.
13172
13173 2009-02-26  Bruno Haible  <bruno@clisp.org>
13174
13175         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
13176         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
13177         Reported by Gary V. Vaughan <gary@gnu.org>.
13178
13179 2009-02-26  Bruno Haible  <bruno@clisp.org>
13180
13181         Fix *printf behaviour regarding the %ls directive.
13182         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
13183         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
13184         NEED_PRINTF_DIRECTIVE_LS.
13185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
13186         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
13187         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13188         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
13189         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
13190         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
13191         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
13192         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13193         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13195         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13196         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
13197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13200         * doc/posix-functions/fprintf.texi: Update.
13201         * doc/posix-functions/printf.texi: Update.
13202         * doc/posix-functions/snprintf.texi: Update.
13203         * doc/posix-functions/sprintf.texi: Update.
13204         * doc/posix-functions/vfprintf.texi: Update.
13205         * doc/posix-functions/vprintf.texi: Update.
13206         * doc/posix-functions/vsnprintf.texi: Update.
13207         * doc/posix-functions/vsprintf.texi: Update.
13208         * doc/glibc-functions/obstack_printf.texi: Update.
13209         * doc/glibc-functions/obstack_vprintf.texi: Update.
13210         Reported by Eric Blake.
13211
13212 2009-02-25  Bruno Haible  <bruno@clisp.org>
13213
13214         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
13215         with known value.
13216         Reported by Gary V. Vaughan <gary@gnu.org>.
13217
13218 2009-02-25  Bruno Haible  <bruno@clisp.org>
13219
13220         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
13221         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
13222         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
13223         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
13224         Reported by Gary V. Vaughan <gary@gnu.org>.
13225
13226 2009-02-25  Bruno Haible  <bruno@clisp.org>
13227
13228         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
13229         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
13230         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
13231         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
13232         Reported by Gary V. Vaughan <gary@gnu.org>.
13233
13234 2009-02-25  Eric Blake  <ebb9@byu.net>
13235
13236         tests: skip fseek/ftell tests if ungetc is broken
13237         * m4/ungetc.m4: New file.
13238         * modules/fseek-tests: Split test, so ungetc dependency is
13239         separate from rest of test.
13240         * modules/fseeko-tests: Likewise.
13241         * modules/ftell-tests: Likewise.
13242         * modules/ftello-tests: Likewise.
13243         * tests/test-fseek.c (main): Isolate ungetc dependency.
13244         * tests/test-fseeko.c (main): Likewise.
13245         * tests/test-ftell.c (main): Likewise.
13246         * tests/test-ftello.c (main): Likewise.
13247         * tests/test-fseek2.sh: New file.
13248         * tests/test-fseeko2.sh: Likewise.
13249         * tests/test-ftell2.sh: Likewise.
13250         * tests/test-ftello2.sh: Likewise.
13251
13252 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
13253
13254         test-getaddrinfo: fix usage of skip return code 77
13255         * tests/test-gettaddrinfo.c: Return skip code 77 only
13256         for first occurance of skip (4x77 is not 77)
13257
13258 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
13259
13260         strtod: avoid C99 decl-after-statement
13261         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
13262
13263 2009-02-24  Eric Blake  <ebb9@byu.net>
13264
13265         strtod: detect HP-UX 11.31 bug
13266         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
13267         Reported by Gary V. Vaughan.
13268
13269 2009-02-23  Bruno Haible  <bruno@clisp.org>
13270
13271         Fix invalid read past end of memory block.
13272         * lib/vasnprintf.c (DCHAR_SET): Define.
13273         (local_wcslen): Define only when needed.
13274         (local_strnlen, local_wcsnlen): New functions.
13275         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
13276         directives that involve a conversion ourselves.
13277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
13278         wcsnlen, mbrtowc, wcrtomb.
13279         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
13280         * tests/test-vasprintf-posix.c (test_function): Likewise.
13281         * tests/test-snprintf-posix.h (test_function): Likewise.
13282         * tests/test-sprintf-posix.h (test_function): Likewise.
13283         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13284
13285 2009-02-22  Bruno Haible  <bruno@clisp.org>
13286
13287         Implement new clarified decomposition of Hangul syllables.
13288         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
13289         of type LTV, return only a pairwise decomposition.
13290         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
13291         Likewise.
13292         * tests/uninorm/test-decomposition.c (main): Updated expected result.
13293         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
13294         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
13295
13296 2009-02-22  Bruno Haible  <bruno@clisp.org>
13297
13298         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
13299         zero-length results and shrink excess allocated memory.
13300         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
13301         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
13302         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
13303         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
13304         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
13305         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
13306         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
13307         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
13308         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
13309         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
13310         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
13311         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
13312
13313 2009-02-21  Bruno Haible  <bruno@clisp.org>
13314
13315         * doc/gnulib.texi: Include safe-alloc.texi earlier.
13316         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
13317         spaces after a period. Put a space between a macro name and its
13318         argument list. Trivial rewordings.
13319         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
13320         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
13321         (main): Return 0 explicitly.
13322
13323 2009-02-21  Bruno Haible  <bruno@clisp.org>
13324
13325         Tests for module 'uninorm/filter'.
13326         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
13327         * modules/uninorm/filter-tests: New file.
13328
13329         New module 'uninorm/filter'.
13330         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
13331         uninorm_filter_flush, uninorm_filter_free): New declarations.
13332         * lib/uninorm/uninorm-filter.c: New file.
13333         * modules/uninorm/filter: New file.
13334
13335 2009-02-21  Bruno Haible  <bruno@clisp.org>
13336
13337         Tests for module 'uninorm/nfkc'.
13338         * tests/uninorm/test-nfkc.c: New file.
13339         * tests/uninorm/test-u8-nfkc.c: New file.
13340         * tests/uninorm/test-u16-nfkc.c: New file.
13341         * tests/uninorm/test-u32-nfkc.c: New file.
13342         * tests/uninorm/test-u32-nfkc-big.sh: New file.
13343         * tests/uninorm/test-u32-nfkc-big.c: New file.
13344         * modules/uninorm/nfkc-tests: New file.
13345
13346         New module 'uninorm/nfkc'.
13347         * lib/uninorm/nfkc.c: New file.
13348         * modules/uninorm/nfkc: New file.
13349
13350         Tests for module 'uninorm/nfkd'.
13351         * tests/uninorm/test-nfkd.c: New file.
13352         * tests/uninorm/test-u8-nfkd.c: New file.
13353         * tests/uninorm/test-u16-nfkd.c: New file.
13354         * tests/uninorm/test-u32-nfkd.c: New file.
13355         * tests/uninorm/test-u32-nfkd-big.sh: New file.
13356         * tests/uninorm/test-u32-nfkd-big.c: New file.
13357         * modules/uninorm/nfkd-tests: New file.
13358
13359         New module 'uninorm/nfkd'.
13360         * lib/uninorm/nfkd.c: New file.
13361         * modules/uninorm/nfkd: New file.
13362
13363         Tests for module 'uninorm/nfc'.
13364         * tests/uninorm/test-nfc.c: New file.
13365         * tests/uninorm/test-u8-nfc.c: New file.
13366         * tests/uninorm/test-u16-nfc.c: New file.
13367         * tests/uninorm/test-u32-nfc.c: New file.
13368         * tests/uninorm/test-u32-nfc-big.sh: New file.
13369         * tests/uninorm/test-u32-nfc-big.c: New file.
13370         * modules/uninorm/nfc-tests: New file.
13371
13372         New module 'uninorm/nfc'.
13373         * lib/uninorm/nfc.c: New file.
13374         * modules/uninorm/nfc: New file.
13375
13376         Tests for module 'uninorm/nfd'.
13377         * tests/uninorm/test-nfd.c: New file.
13378         * tests/uninorm/test-u8-nfd.c: New file.
13379         * tests/uninorm/test-u16-nfd.c: New file.
13380         * tests/uninorm/test-u32-nfd.c: New file.
13381         * tests/uninorm/test-u32-nfd-big.sh: New file.
13382         * tests/uninorm/test-u32-nfd-big.c: New file.
13383         * tests/uninorm/test-u32-normalize-big.h: New file.
13384         * tests/uninorm/test-u32-normalize-big.c: New file.
13385         * tests/uninorm/NormalizationTest.txt: New file, created from
13386         Unicode 5.1.0 NormalizationTest.txt.
13387         * modules/uninorm/nfd-tests: New file.
13388
13389         New module 'uninorm/nfd'.
13390         * lib/uninorm/nfd.c: New file.
13391         * modules/uninorm/nfd: New file.
13392
13393         New module 'uninorm/u32-normalize'.
13394         * lib/uninorm/u32-normalize.c: New file.
13395         * modules/uninorm/u32-normalize: New file.
13396
13397         New module 'uninorm/u16-normalize'.
13398         * lib/uninorm/u16-normalize.c: New file.
13399         * modules/uninorm/u16-normalize: New file.
13400
13401         New module 'uninorm/u8-normalize'.
13402         * lib/uninorm/u8-normalize.c: New file.
13403         * lib/uninorm/normalize-internal.h: New file.
13404         * lib/uninorm/u-normalize-internal.h: New file.
13405         * modules/uninorm/u8-normalize: New file.
13406
13407         New module 'uninorm/decompose-internal'.
13408         * lib/uninorm/decompose-internal.c: New file.
13409         * modules/uninorm/decompose-internal: New file.
13410
13411         Tests for module 'uninorm/composition'.
13412         * tests/uninorm/test-composition.c: New file.
13413         * modules/uninorm/composition-tests: New file.
13414
13415         New module 'uninorm/composition'.
13416         * lib/uninorm/composition.c: New file.
13417         * lib/uninorm/composition-table.gperf: New file, generated by
13418         gen-uni-tables.
13419         * modules/uninorm/composition: New file.
13420
13421         Tests for module 'uninorm/compat-decomposition'.
13422         * tests/uninorm/test-compat-decomposition.c: New file.
13423         * modules/uninorm/compat-decomposition-tests: New file.
13424
13425         New module 'uninorm/compat-decomposition'.
13426         * lib/uninorm/decompose-internal.h: New file.
13427         * lib/uninorm/compat-decomposition.c: New file.
13428         * modules/uninorm/compat-decomposition: New file.
13429
13430         Tests for module 'uninorm/canonical-decomposition'.
13431         * tests/uninorm/test-canonical-decomposition.c: New file.
13432         * modules/uninorm/canonical-decomposition-tests: New file.
13433
13434         New module 'uninorm/canonical-decomposition'.
13435         * lib/uninorm/canonical-decomposition.c: New file.
13436         * modules/uninorm/canonical-decomposition: New file.
13437
13438         Tests for module 'uninorm/decomposition'.
13439         * tests/uninorm/test-decomposition.c: New file.
13440         * modules/uninorm/decomposition-tests: New file.
13441
13442         New module 'uninorm/decomposition'.
13443         * lib/uninorm/decomposition.c: New file.
13444         * modules/uninorm/decomposition: New file.
13445
13446         New module 'uninorm/decomposition-table'.
13447         * lib/uninorm/decomposition-table.h: New file.
13448         * lib/uninorm/decomposition-table.c: New file.
13449         * lib/uninorm/decomposition-table1.h: New file, generated by
13450         gen-uni-tables.
13451         * lib/uninorm/decomposition-table2.h: New file, generated by
13452         gen-uni-tables.
13453         * modules/uninorm/decomposition-table: New file.
13454
13455         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
13456         (UC_DECOMP_*): New enumeration items.
13457         (get_decomposition): New function.
13458         (struct decomp_table): New type.
13459         (output_decomposition, output_decomposition_tables): New functions.
13460         (unicode_composition_exclusions): New variable.
13461         (fill_composition_exclusions, debug_output_composition_tables): New
13462         functions.
13463         (main): Accept one more argument. Invoke fill_composition_exclusions.
13464         Output decomposition and composition tables.
13465
13466         New module 'uninorm/base'.
13467         * lib/uninorm.h: New file.
13468         * lib/unictype.h: Update comment.
13469         * modules/uninorm/base: New file.
13470
13471 2009-02-21  David Lutterkort  <lutter@redhat.com>
13472
13473         Tests for module 'safe-alloc'.
13474         * tests/test-safe-alloc.c: New file.
13475         * modules/safe-alloc-tests: New file.
13476
13477         New module 'safe-alloc'.
13478         * lib/safe-alloc.h: New file.
13479         * lib/safe-alloc.c: New file.
13480         * m4/safe-alloc.m4: New file.
13481         * modules/safe-alloc: New file.
13482         * doc/safe-alloc.texi: New file.
13483         * doc/gnulib.texi: Include it.
13484         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13485         safe-alloc.
13486
13487 2009-02-18  Bruno Haible  <bruno@clisp.org>
13488
13489         Fix link error on non-glibc systems.
13490         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
13491         variable.
13492         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13493
13494 2009-02-18  Jim Meyering  <meyering@redhat.com>
13495
13496         fts: avoid used-uninitialized error due to recent change
13497         * lib/fts.c (fts_read): Guard uses of the new member,
13498         parent->fts_n_dirs_remaining, since it's not relevant for
13499         the parent of a directory specified on the command-line.
13500
13501 2009-02-17  James Youngman  <jay@gnu.org>
13502             Bruno Haible  <bruno@clisp.org>
13503
13504         * m4/include_next.m4: Reformulate comment.
13505
13506 2009-02-16  Jim Meyering  <meyering@redhat.com>
13507
13508         fts: add #if guards so that the fts_lgpl module still builds
13509         * lib/fts.c: Guard just-added hash-table-using parts with
13510         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
13511         Reported by Simon Josefsson.
13512
13513 2009-02-15  Bruno Haible  <bruno@clisp.org>
13514
13515         * modules/array-mergesort-tests: New file.
13516         * tests/test-array-mergesort.c: New file.
13517
13518         New module 'array-mergesort'.
13519         * modules/array-mergesort: New file.
13520         * lib/array-mergesort.h: New file.
13521
13522 2009-02-15  Bruno Haible  <bruno@clisp.org>
13523
13524         Fix 2009-02-07 commit.
13525         * lib/gen-uni-tables.c (output_predicate, output_category,
13526         output_combclass, output_bidi_category, output_decimal_digit,
13527         output_digit, output_numeric, output_mirror, output_scripts,
13528         output_ident_category, output_simple_mapping): Fix format directives.
13529         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
13530
13531 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
13532
13533         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
13534         fixes are available from IBM.
13535
13536 2009-02-13  Jim Meyering  <meyering@redhat.com>
13537
13538         fts: arrange not to stat non-directories in more cases
13539         This makes GNU find (when it doesn't need to stat each file)
13540         *much* more efficient at traversing reiserfs file systems.
13541         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
13542         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
13543         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
13544         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
13545         (leaf_optimization_applies): New function.
13546         (LCO_hash, LCO_compare): New helper functions.
13547         (link_count_optimize_ok): New function.
13548         (fts_stat): Initialize new member (if dir).
13549         (fts_read): Decrement parent's fts_n_dirs_remaining count if
13550         we've just stat'ed a directory.  Skip the stat call when possible.
13551         ---
13552         Note this AFS-related exchange:
13553         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
13554         and note find's pioctl call in find/fstype.c.
13555         But that is necessary only if you want to enable the
13556         optimization for AFS, and for now, I don't.
13557
13558         fts: move a function definition "up" (no semantic change)
13559         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
13560         "up" to precede upcoming use of a related function.
13561
13562 2009-02-11  Jim Meyering  <meyering@redhat.com>
13563
13564         fts: correct internal computation of nlinks (optimization-related)
13565         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
13566         whether the current entry is a directory, so don't test it.
13567
13568 2009-02-10  Bruno Haible  <bruno@clisp.org>
13569
13570         Tests for module 'uniwbrk/ulc-wordbreaks'.
13571         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
13572         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
13573         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
13574
13575         Tests for module 'uniwbrk/u32-wordbreaks'.
13576         * modules/uniwbrk/u32-wordbreaks-tests: New file.
13577         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
13578
13579         Tests for module 'uniwbrk/u16-wordbreaks'.
13580         * modules/uniwbrk/u16-wordbreaks-tests: New file.
13581         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
13582
13583         Tests for module 'uniwbrk/u8-wordbreaks'.
13584         * modules/uniwbrk/u8-wordbreaks-tests: New file.
13585         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
13586
13587 2009-02-10  Bruno Haible  <bruno@clisp.org>
13588
13589         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
13590         property.
13591         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
13592         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
13593         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
13594
13595 2009-02-10  Simon Josefsson  <simon@josefsson.org>
13596
13597         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
13598         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
13599
13600 2009-02-10  Bruno Haible  <bruno@clisp.org>
13601
13602         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
13603         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
13604         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
13605         * lib/unilbrk/u8-possible-linebreaks.c: Update.
13606         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
13607         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
13608
13609 2009-02-09  Simon Josefsson  <simon@josefsson.org>
13610
13611         * lib/sockets.h (gl_fd_to_handle): New function.
13612
13613         * tests/test-sockets.c: Call gl_fd_to_handle.
13614
13615 2009-02-09  Bruno Haible  <bruno@clisp.org>
13616
13617         * doc/havelib.texi: Document the conventions on bi-arch systems.
13618
13619 2009-02-08  Bruno Haible  <bruno@clisp.org>
13620
13621         Document the AC_LIB_LINKFLAGS macro.
13622         * doc/havelib.texi: New file, mostly written on 2005-05-24.
13623         * doc/gnulib.texi: Include it.
13624
13625 2009-02-08  Bruno Haible  <bruno@clisp.org>
13626
13627         Fix wrong order of sections, compared to TOC.
13628         * doc/gnulib.texi: Include relocatable-maint.texi after the
13629         "Regular expressions" node, not before.
13630
13631 2009-02-08  Bruno Haible  <bruno@clisp.org>
13632
13633         Tests for module 'unicase/totitle'.
13634         * modules/unicase/totitle-tests: New file.
13635
13636         Tests for module 'unicase/tolower'.
13637         * modules/unicase/tolower-tests: New file.
13638
13639         Tests for module 'unicase/toupper'.
13640         * modules/unicase/toupper-tests: New file.
13641         * tests/unicase/test-mapping-part1.h: New file.
13642         * tests/unicase/test-mapping-part2.h: New file.
13643
13644         New module 'unicase/totitle'.
13645         * modules/unicase/totitle: New file.
13646         * lib/unicase/totitle.c: New file.
13647
13648         New module 'unicase/tolower'.
13649         * modules/unicase/tolower: New file.
13650         * lib/unicase/tolower.c: New file.
13651
13652         New module 'unicase/toupper'.
13653         * modules/unicase/toupper: New file.
13654         * lib/unicase/toupper.c: New file.
13655         * lib/unicase/simple-mapping.h: New file.
13656
13657         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
13658         (mapping_table): New structure.
13659         (output_simple_mapping): New function.
13660         (main): Invoke output_simple_mapping_test and output_simple_mapping.
13661         * modules/gen-uni-tables (Description): Update.
13662         * lib/unicase/toupper.h: New file, automatically generated by
13663         gen-uni-tables.
13664         * lib/unicase/tolower.h: New file, automatically generated by
13665         gen-uni-tables.
13666         * lib/unicase/totitle.h: New file, automatically generated by
13667         gen-uni-tables.
13668         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
13669         gen-uni-tables.
13670         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
13671         gen-uni-tables.
13672         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
13673         gen-uni-tables.
13674
13675         New module 'unicase/base'.
13676         * modules/unicase/base: New file.
13677         * lib/unicase.h: New file.
13678
13679 2009-02-08  Bruno Haible  <bruno@clisp.org>
13680
13681         New module 'uniwbrk/ulc-wordbreaks'.
13682         * modules/uniwbrk/ulc-wordbreaks: New file.
13683         * lib/uniwbrk/ulc-wordbreaks.c: New file.
13684
13685         New module 'uniwbrk/u32-wordbreaks'.
13686         * modules/uniwbrk/u32-wordbreaks: New file.
13687         * lib/uniwbrk/u32-wordbreaks.c: New file.
13688
13689         New module 'uniwbrk/u16-wordbreaks'.
13690         * modules/uniwbrk/u16-wordbreaks: New file.
13691         * lib/uniwbrk/u16-wordbreaks.c: New file.
13692
13693         New module 'uniwbrk/u8-wordbreaks'.
13694         * modules/uniwbrk/u8-wordbreaks: New file.
13695         * lib/uniwbrk/u8-wordbreaks.c: New file.
13696         * lib/uniwbrk/u-wordbreaks.h: New file.
13697
13698         New module 'uniwbrk/table'.
13699         * modules/uniwbrk/table: New file.
13700         * lib/uniwbrk/wbrktable.h: New file.
13701         * lib/uniwbrk/wbrktable.c: New file.
13702
13703         New module 'uniwbrk/wordbreak-property'.
13704         * modules/uniwbrk/wordbreak-property: New file.
13705         * lib/uniwbrk/wordbreak-property.c: New file.
13706
13707         * lib/gen-uni-tables.c (WBP_*): New enum items.
13708         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
13709         (unicode_org_wbp): New variable.
13710         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
13711         New functions.
13712         (wbp_table): New structure.
13713         (output_wbp, output_wbrk_tables): New functions.
13714         (main): Accept additional argument. Invoke fill_org_wbp,
13715         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
13716         output_wbrk_tables.
13717         * modules/gen-uni-tables (Description): Update.
13718         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
13719         gen-uni-tables.
13720
13721         New module 'uniwbrk/base'.
13722         * modules/uniwbrk/base: New file.
13723         * lib/uniwbrk.h: New file.
13724
13725 2009-02-08  Bruno Haible  <bruno@clisp.org>
13726
13727         Update to Unicode 5.1.0.
13728         * lib/gen-uni-tables.c (is_property_alphabetic): Include
13729         U+2185..U+2188.
13730         (is_property_default_ignorable_code_point): Don't include characters
13731         of category Cc or Cs and not-a-characters.
13732         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
13733         U+0D79, U+109E, U+109F, U+A60C.
13734         * lib/unictype/bidi_of.h: Regenerated.
13735         * lib/unictype/blocks.h: Regenerated.
13736         * lib/unictype/categ_C.h: Regenerated.
13737         * lib/unictype/categ_Cf.h: Regenerated.
13738         * lib/unictype/categ_Cn.h: Regenerated.
13739         * lib/unictype/categ_L.h: Regenerated.
13740         * lib/unictype/categ_Ll.h: Regenerated.
13741         * lib/unictype/categ_Lm.h: Regenerated.
13742         * lib/unictype/categ_Lo.h: Regenerated.
13743         * lib/unictype/categ_Lu.h: Regenerated.
13744         * lib/unictype/categ_M.h: Regenerated.
13745         * lib/unictype/categ_Mc.h: Regenerated.
13746         * lib/unictype/categ_Me.h: Regenerated.
13747         * lib/unictype/categ_Mn.h: Regenerated.
13748         * lib/unictype/categ_N.h: Regenerated.
13749         * lib/unictype/categ_Nd.h: Regenerated.
13750         * lib/unictype/categ_Nl.h: Regenerated.
13751         * lib/unictype/categ_No.h: Regenerated.
13752         * lib/unictype/categ_P.h: Regenerated.
13753         * lib/unictype/categ_Pd.h: Regenerated.
13754         * lib/unictype/categ_Pe.h: Regenerated.
13755         * lib/unictype/categ_Pf.h: Regenerated.
13756         * lib/unictype/categ_Pi.h: Regenerated.
13757         * lib/unictype/categ_Po.h: Regenerated.
13758         * lib/unictype/categ_Ps.h: Regenerated.
13759         * lib/unictype/categ_S.h: Regenerated.
13760         * lib/unictype/categ_Sk.h: Regenerated.
13761         * lib/unictype/categ_Sm.h: Regenerated.
13762         * lib/unictype/categ_So.h: Regenerated.
13763         * lib/unictype/categ_of.h: Regenerated.
13764         * lib/unictype/combining.h: Regenerated.
13765         * lib/unictype/ctype_alnum.h: Regenerated.
13766         * lib/unictype/ctype_alpha.h: Regenerated.
13767         * lib/unictype/ctype_graph.h: Regenerated.
13768         * lib/unictype/ctype_lower.h: Regenerated.
13769         * lib/unictype/ctype_print.h: Regenerated.
13770         * lib/unictype/ctype_punct.h: Regenerated.
13771         * lib/unictype/ctype_upper.h: Regenerated.
13772         * lib/unictype/decdigit.h: Regenerated.
13773         * lib/unictype/digit.h: Regenerated.
13774         * lib/unictype/mirror.h: Regenerated.
13775         * lib/unictype/numeric.h: Regenerated.
13776         * lib/unictype/pr_alphabetic.h: Regenerated.
13777         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
13778         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
13779         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
13780         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
13781         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
13782         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
13783         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
13784         * lib/unictype/pr_combining.h: Regenerated.
13785         * lib/unictype/pr_dash.h: Regenerated.
13786         * lib/unictype/pr_decimal_digit.h: Regenerated.
13787         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
13788         * lib/unictype/pr_deprecated.h: Regenerated.
13789         * lib/unictype/pr_diacritic.h: Regenerated.
13790         * lib/unictype/pr_extender.h: Regenerated.
13791         * lib/unictype/pr_format_control.h: Regenerated.
13792         * lib/unictype/pr_grapheme_base.h: Regenerated.
13793         * lib/unictype/pr_grapheme_extend.h: Regenerated.
13794         * lib/unictype/pr_grapheme_link.h: Regenerated.
13795         * lib/unictype/pr_id_continue.h: Regenerated.
13796         * lib/unictype/pr_id_start.h: Regenerated.
13797         * lib/unictype/pr_ideographic.h: Regenerated.
13798         * lib/unictype/pr_ignorable_control.h: Regenerated.
13799         * lib/unictype/pr_lowercase.h: Regenerated.
13800         * lib/unictype/pr_math.h: Regenerated.
13801         * lib/unictype/pr_numeric.h: Regenerated.
13802         * lib/unictype/pr_other_alphabetic.h: Regenerated.
13803         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
13804         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
13805         * lib/unictype/pr_other_id_continue.h: Regenerated.
13806         * lib/unictype/pr_other_lowercase.h: Regenerated.
13807         * lib/unictype/pr_other_math.h: Regenerated.
13808         * lib/unictype/pr_punctuation.h: Regenerated.
13809         * lib/unictype/pr_sentence_terminal.h: Regenerated.
13810         * lib/unictype/pr_soft_dotted.h: Regenerated.
13811         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
13812         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
13813         * lib/unictype/pr_unified_ideograph.h: Regenerated.
13814         * lib/unictype/pr_uppercase.h: Regenerated.
13815         * lib/unictype/pr_xid_continue.h: Regenerated.
13816         * lib/unictype/pr_xid_start.h: Regenerated.
13817         * lib/unictype/pr_zero_width.h: Regenerated.
13818         * lib/unictype/scripts.h: Regenerated.
13819         * lib/unictype/scripts_byname.gperf: Regenerated.
13820         * lib/unictype/sy_java_ident.h: Regenerated.
13821         * lib/unilbrk/lbrkprop1.h: Regenerated.
13822         * lib/unilbrk/lbrkprop2.h: Regenerated.
13823         * tests/unictype/test-categ_C.c: Regenerated.
13824         * tests/unictype/test-categ_Cf.c: Regenerated.
13825         * tests/unictype/test-categ_Cn.c: Regenerated.
13826         * tests/unictype/test-categ_L.c: Regenerated.
13827         * tests/unictype/test-categ_Ll.c: Regenerated.
13828         * tests/unictype/test-categ_Lm.c: Regenerated.
13829         * tests/unictype/test-categ_Lo.c: Regenerated.
13830         * tests/unictype/test-categ_Lu.c: Regenerated.
13831         * tests/unictype/test-categ_M.c: Regenerated.
13832         * tests/unictype/test-categ_Mc.c: Regenerated.
13833         * tests/unictype/test-categ_Me.c: Regenerated.
13834         * tests/unictype/test-categ_Mn.c: Regenerated.
13835         * tests/unictype/test-categ_N.c: Regenerated.
13836         * tests/unictype/test-categ_Nd.c: Regenerated.
13837         * tests/unictype/test-categ_Nl.c: Regenerated.
13838         * tests/unictype/test-categ_No.c: Regenerated.
13839         * tests/unictype/test-categ_P.c: Regenerated.
13840         * tests/unictype/test-categ_Pd.c: Regenerated.
13841         * tests/unictype/test-categ_Pe.c: Regenerated.
13842         * tests/unictype/test-categ_Pf.c: Regenerated.
13843         * tests/unictype/test-categ_Pi.c: Regenerated.
13844         * tests/unictype/test-categ_Po.c: Regenerated.
13845         * tests/unictype/test-categ_Ps.c: Regenerated.
13846         * tests/unictype/test-categ_S.c: Regenerated.
13847         * tests/unictype/test-categ_Sk.c: Regenerated.
13848         * tests/unictype/test-categ_Sm.c: Regenerated.
13849         * tests/unictype/test-categ_So.c: Regenerated.
13850         * tests/unictype/test-ctype_alnum.c: Regenerated.
13851         * tests/unictype/test-ctype_alpha.c: Regenerated.
13852         * tests/unictype/test-ctype_graph.c: Regenerated.
13853         * tests/unictype/test-ctype_lower.c: Regenerated.
13854         * tests/unictype/test-ctype_print.c: Regenerated.
13855         * tests/unictype/test-ctype_punct.c: Regenerated.
13856         * tests/unictype/test-ctype_upper.c: Regenerated.
13857         * tests/unictype/test-decdigit.h: Regenerated.
13858         * tests/unictype/test-digit.h: Regenerated.
13859         * tests/unictype/test-numeric.h: Regenerated.
13860         * tests/unictype/test-pr_alphabetic.c: Regenerated.
13861         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
13862         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
13863         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
13864         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
13865         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
13866         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
13867         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
13868         * tests/unictype/test-pr_combining.c: Regenerated.
13869         * tests/unictype/test-pr_dash.c: Regenerated.
13870         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
13871         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
13872         * tests/unictype/test-pr_deprecated.c: Regenerated.
13873         * tests/unictype/test-pr_diacritic.c: Regenerated.
13874         * tests/unictype/test-pr_extender.c: Regenerated.
13875         * tests/unictype/test-pr_format_control.c: Regenerated.
13876         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
13877         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
13878         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
13879         * tests/unictype/test-pr_id_continue.c: Regenerated.
13880         * tests/unictype/test-pr_id_start.c: Regenerated.
13881         * tests/unictype/test-pr_ideographic.c: Regenerated.
13882         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
13883         * tests/unictype/test-pr_lowercase.c: Regenerated.
13884         * tests/unictype/test-pr_math.c: Regenerated.
13885         * tests/unictype/test-pr_numeric.c: Regenerated.
13886         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
13887         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
13888         Regenerated.
13889         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
13890         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
13891         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
13892         * tests/unictype/test-pr_other_math.c: Regenerated.
13893         * tests/unictype/test-pr_punctuation.c: Regenerated.
13894         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
13895         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
13896         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
13897         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
13898         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
13899         * tests/unictype/test-pr_uppercase.c: Regenerated.
13900         * tests/unictype/test-pr_xid_continue.c: Regenerated.
13901         * tests/unictype/test-pr_xid_start.c: Regenerated.
13902         * tests/unictype/test-pr_zero_width.c: Regenerated.
13903
13904         Update to Unicode 5.1.0.
13905         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
13906         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
13907         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
13908         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
13909         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
13910         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
13911         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
13912         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
13913         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
13914         (nonspacing_table_ind): Update.
13915         * tests/uniwidth/test-uc_width2.sh: Update expected result.
13916
13917         Update to Unicode 5.1.0.
13918         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
13919         code transform.
13920         * lib/uniname/uniname.c (unicode_character_name,
13921         unicode_name_character): Add the range 0x1Fxxx to the code transform.
13922         * lib/uniname/uninames.h: Regenerated.
13923         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
13924
13925 2009-02-07  Bruno Haible  <bruno@clisp.org>
13926
13927         Merge gen-ctype and gen-lbrk into a single program.
13928         * lib/gen-uni-tables.c: New file, incorporating
13929         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
13930         Add directory prefixes to the names of the generated files.
13931         * lib/unictype/gen-ctype.c: Remove file.
13932         * lib/unilbrk/gen-lbrk.c: Remove file.
13933         * modules/gen-uni-tables: New file.
13934         * modules/unictype/gen-ctype: Remove file.
13935         * modules/unilbrk/gen-lbrk: Remove file.
13936
13937 2009-02-07  Bruno Haible  <bruno@clisp.org>
13938
13939         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
13940
13941         New module 'unistr/u32-strcoll'.
13942         * modules/unistr/u32-strcoll: New file.
13943         * lib/unistr/u32-strcoll.c: New file.
13944
13945         New module 'unistr/u16-strcoll'.
13946         * modules/unistr/u16-strcoll: New file.
13947         * lib/unistr/u16-strcoll.c: New file.
13948
13949         New module 'unistr/u8-strcoll'.
13950         * modules/unistr/u8-strcoll: New file.
13951         * lib/unistr/u8-strcoll.c: New file.
13952         * lib/unistr/u-strcoll.h: New file.
13953
13954 2009-02-07  Bruno Haible  <bruno@clisp.org>
13955
13956         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
13957         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13958         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13959         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
13960         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
13961         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
13962
13963 2009-02-07  Bruno Haible  <bruno@clisp.org>
13964
13965         Make 64-bit clean.
13966         * lib/unictype/gen-ctype.c (output_predicate, output_category,
13967         output_combclass, output_bidi_category, output_decimal_digit,
13968         output_digit, output_numeric, output_mirror, output_scripts,
13969         output_ident_category): Use proper width specifier in format strings.
13970
13971 2009-02-07  Bruno Haible  <bruno@clisp.org>
13972
13973         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
13974         failure behaviour.
13975
13976 2009-02-07  Jim Meyering  <meyering@redhat.com>
13977
13978         regex: avoid compilation failure with upcoming gcc-4.4
13979         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
13980         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
13981         "... error: integer overflow in preprocessor expression".
13982
13983 2009-02-05  Ben Pfaff  <blp@gnu.org>
13984
13985         Fix link errors on Windows when close module is used.
13986         * modules/close: Add $(LIB_CLOSE) to Link section.
13987         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
13988         $(LIB_CLOSE) on Windows.
13989
13990 2009-02-05  Jim Meyering  <meyering@redhat.com>
13991
13992         still avoid unused-parameter warnings, but do it cleanly
13993         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
13994         (get_fs_usage): Cast to void instead.
13995         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
13996         (dev_from_mount_options, read_file_system_list): Cast to void.
13997         Prompted by Bruno Haible.
13998
13999 2009-02-04  Jim Meyering  <meyering@redhat.com>
14000
14001         fsusage.c: correct copyright year
14002         * lib/fsusage.c: Reflect year in which the change is pushed into
14003
14004         avoid misc. warnings
14005         * lib/fsusage.c (UNUSED_PARAM): Define.
14006         (get_fs_usage): Mark parameter "disk" as unused.
14007         * lib/getugroups.c (getgrent): Use "void" in prototype.
14008         * lib/mountlist.c: Mark unused parameters.
14009         (read_file_system_list): Declare a local with "const".
14010         * lib/nanosleep.c (getnow): Declare static.
14011         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
14012
14013         dirfd: set errno upon failure
14014         * lib/dirfd.c: Include <errno.h>.
14015         Set errno to ENOTSUP when returning -1.
14016         * modules/dirfd (Depends-on): Add errno.
14017         Suggested by John Kodis <kodis@comcast.net>.
14018
14019 2009-02-01  Bruno Haible  <bruno@clisp.org>
14020
14021         Don't assume sizeof (long) >= sizeof (void *).
14022         * lib/memcmp.c: Include stdint.h.
14023         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
14024         srcp2 to 'const byte *'.
14025         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
14026         types to uintptr_t.
14027         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
14028         * modules/memcmp (Depends-on): Add stdint.
14029         Reported by Ozkan Sezer <sezeroz@gmail.com>.
14030
14031 2009-01-30  Eric Blake  <ebb9@byu.net>
14032
14033         fix more require-before-expand issues
14034         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
14035         expand, AC_PROG_AWK.
14036         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
14037
14038 2009-01-28  Eric Blake  <ebb9@byu.net>
14039
14040         version-etc: use consistent URL formatting
14041         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
14042         Improve formatting.  Use fputs for string without %.
14043
14044 2009-01-28  Jim Meyering  <meyering@redhat.com>
14045
14046         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
14047         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
14048         "underquoted definition of NAME" from autoconf-2.59.
14049
14050 2009-01-28  Bruno Haible  <bruno@clisp.org>
14051
14052         * doc/gnulib.texi: Add "Obsolete modules" to index.
14053
14054 2009-01-28  Jim Meyering  <meyering@redhat.com>
14055
14056         useless-if-before-free: recognize more variants
14057         * build-aux/useless-if-before-free: Also recognize e.g.,
14058         if (NULL != p) free (p);
14059
14060 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
14061
14062         test-getaddrinfo: skip (don't fail) this test when there's no network
14063         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
14064         on the presumption that it means you lack network access.
14065
14066 2009-01-26  Jim Meyering  <meyering@redhat.com>
14067
14068         fflush: avoid warnings on modern systems
14069         * lib/fflush.c (rpl_fflush): Move declarations of locals,
14070         pos and result, into scopes where they're used.
14071
14072 2009-01-26  Eric Blake  <ebb9@byu.net>
14073
14074         Silence warning reintroduced by recent extensions patch.
14075         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
14076         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
14077         autoconf.
14078
14079         Backport improved autoconf semantics of AC_DEFUN_ONCE.
14080         * m4/00gnulib.m4: New file.
14081         * gnulib-tool (func_get_filelist): Always use it.
14082         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
14083         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
14084
14085 2009-01-25  Bruno Haible  <bruno@clisp.org>
14086
14087         Make test-quotearg work on MacOS X and AIX.
14088         * tests/test-quotearg.sh: New file.
14089         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
14090         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
14091         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
14092         include <libintl.h>.
14093         (fake_locale): Remove variable.
14094         (gettext, dgettext, dcgettext): Remove functions.
14095         (main): Instead of setting a fake locale, set a real locale. Call
14096         textdomain and bindtextdomain.
14097         * modules/quotearg-tests (Files): Add the new files.
14098         (Depends-on): Add gettext, setenv, unsetenv.
14099         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14100         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
14101         Augment TESTS_ENVIRONMENT.
14102
14103 2009-01-25  Bruno Haible  <bruno@clisp.org>
14104
14105         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
14106         fr_FR.ISO8859-1 locale on MacOS X.
14107         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
14108         ja_JP.eucJP locale on MacOS X.
14109         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
14110         zh_CN.GB18030 locale on MacOS X.
14111
14112 2009-01-25  Bruno Haible  <bruno@clisp.org>
14113
14114         Avoid link errors on MacOS X 10.3.
14115         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
14116         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14117
14118 2009-01-25  Bruno Haible  <bruno@clisp.org>
14119
14120         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14121         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
14122         * modules/pipe (Files): Remove m4/posix_spawn.m4.
14123         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14124         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
14125         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14126         posix_spawnattr_init, posix_spawnattr_setsigmask,
14127         posix_spawnattr_setflags, posix_spawnattr_destroy.
14128
14129         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14130         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
14131         * modules/execute (Files): Remove m4/posix_spawn.m4.
14132         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14133         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14134         posix_spawnattr_init, posix_spawnattr_setsigmask,
14135         posix_spawnattr_setflags, posix_spawnattr_destroy.
14136
14137 2009-01-25  Bruno Haible  <bruno@clisp.org>
14138
14139         * lib/glthread/threadlib.c: Include <stdlib.h>.
14140
14141 2009-01-25  Bruno Haible  <bruno@clisp.org>
14142
14143         * lib/glthread/threadlib.c (dummy): New declaration.
14144
14145 2009-01-25  Bruno Haible  <bruno@clisp.org>
14146
14147         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
14148         multibyte characters also for the GB18030 encoding. Don't crash when
14149         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
14150
14151 2009-01-25  Bruno Haible  <bruno@clisp.org>
14152
14153         Avoid redefining 'struct random_data' on OSF/1 5.1.
14154         * lib/stdlib.in.h: Include <random.h> if it exists.
14155         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
14156         HAVE_RANDOM_H. Include <random.h> when testing whether
14157         'struct random_data' exists.
14158         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
14159
14160 2009-01-25  Bruno Haible  <bruno@clisp.org>
14161
14162         Don't install charset.alias on MacOS X >= 10.3.
14163         * lib/localcharset.c (DARWIN7): New macro.
14164         (get_charset_aliases): Hardcode the result for Darwin7.
14165         * modules/localcharset (install-exec-local): Don't install
14166         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
14167
14168 2009-01-25  Bruno Haible  <bruno@clisp.org>
14169
14170         Don't install charset.alias on mingw and Cygwin.
14171         * modules/localcharset (install-exec-local): Don't install
14172         charset.alias on mingw and Cygwin, if the file does not yet exist.
14173         The result for these platforms is hardcoded in localcharset.c.
14174
14175 2009-01-25  Bruno Haible  <bruno@clisp.org>
14176
14177         Make it possible again to use AC_GNU_SOURCE together with gnulib.
14178         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
14179         before requiring AC_USE_SYSTEM_EXTENSIONS.
14180
14181 2009-01-25  Jim Meyering  <meyering@redhat.com>
14182
14183         c-strtod: avoid warnings
14184         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
14185         "assignment discards qualifiers from pointer target type" warnings.
14186
14187 2009-01-24  Bruno Haible  <bruno@clisp.org>
14188
14189         Add support for non-UTF-8 locales on MacOS X.
14190         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
14191         canonical encodings. For Darwin 7 and newer, don't map traditional
14192         encodings to UTF-8.
14193         Reported by Vincent Lefevre <vincent@vinc17.org>
14194         at <http://savannah.gnu.org/bugs/?25235>.
14195
14196 2009-01-24  Bruno Haible  <bruno@clisp.org>
14197
14198         * doc/gnulib.texi (Obsolete modules): New section.
14199         Reported by Mike Frysinger <vapier@gentoo.org>.
14200
14201 2009-01-24  Bruno Haible  <bruno@clisp.org>
14202
14203         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
14204         (%.dvi): New rule.
14205
14206 2009-01-24  Bruno Haible  <bruno@clisp.org>
14207
14208         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
14209         Reported by Eric Blake.
14210
14211 2009-01-24  Bruno Haible  <bruno@clisp.org>
14212
14213         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
14214         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
14215         Reported by Gary V. Vaughan <gary@gnu.org>.
14216
14217 2009-01-24  Bruno Haible  <bruno@clisp.org>
14218
14219         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
14220
14221 2009-01-23  Bruno Haible  <bruno@clisp.org>
14222
14223         Make c-strtod, c-strtold usable in libraries.
14224         * lib/c-strtod.c: Include string.h instead of xalloc.h.
14225         (C_STRTOD): Call strdup instead of xstrdup.
14226         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
14227         * modules/c-strtold (Depends-on): Likewise.
14228         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
14229         * NEWS: Mention the change.
14230         Reported by Michael Gold <mgold@ncf.ca>.
14231
14232 2009-01-23  Jim Meyering  <meyering@redhat.com>
14233
14234         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
14235         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
14236         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
14237
14238 2009-01-23  Simon Josefsson  <simon@josefsson.org>
14239
14240         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
14241         GNU CoreUtils.
14242         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
14243         * modules/version-etc (Description): Update.
14244
14245 2009-01-22  Bruno Haible  <bruno@clisp.org>
14246
14247         Cache the C locale object.
14248         * lib/c-strtod.c (c_locale_cache): New variable.
14249         (c_locale): New function.
14250         (C_STRTOD): Use it, and don't call freelocale.
14251         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
14252         Suggested by Paolo Bonzini.
14253
14254 2009-01-21  Bruno Haible  <bruno@clisp.org>
14255
14256         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
14257         conditions other than overflow.
14258
14259 2009-01-21  Bruno Haible  <bruno@clisp.org>
14260
14261         * lib/c-strtod.c: Include errno.h.
14262         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
14263         value from STRTOD_L and STRTOD.
14264
14265 2009-01-21  Bruno Haible  <bruno@clisp.org>
14266         and Jim Meyering  <meyering@redhat.com>
14267
14268         nanosleep: skip configure test (fail it) for apple universal builds
14269         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
14270         universal builds, assume that nanosleep does not work.
14271         * modules/nanosleep (Depends-on): Add multiarch.
14272
14273         mktime: skip configure test (fail it) for apple universal builds
14274         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
14275         universal builds, assume that mktime does not work.
14276         * modules/mktime (Depends-on): Add multiarch.
14277
14278 2009-01-21  Eric Blake  <ebb9@byu.net>
14279
14280         multiarch: avoid expand-before-require warning
14281         * modules/multiarch (configure.ac): Require, rather than expand,
14282         gl_MULTIARCH.
14283         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
14284         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
14285         enforce that all clients require it.  Partial reversion of
14286         2008-12-29 patch.
14287
14288         error: avoid expand-before-require warning
14289         * modules/errno (configure.ac): Require, rather than expand,
14290         gl_HEADER_ERRNO_H.
14291         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
14292         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
14293         enforce that all clients require it.
14294
14295         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
14296         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
14297         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
14298         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
14299
14300 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
14301
14302         Revert:
14303         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
14304
14305         regex: do not depend on obsolete modules.
14306         * modules/regex: Remove memcmp and memmove.
14307
14308 2009-01-20  Bruno Haible  <bruno@clisp.org>
14309
14310         Make the 'link' module link on Windows NT 4.
14311         * lib/link.c (_WIN32_WINNT): Don't define.
14312         (CreateHardLinkFuncType): New type.
14313         (CreateHardLinkFunc, initialized): New variables.
14314         (initialize): New function.
14315         (link): Invoke CreateHardLink indirectly through the function pointer.
14316
14317 2009-01-20  Bruno Haible  <bruno@clisp.org>
14318
14319         Fix compilation failure on mingw.
14320         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
14321
14322 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
14323
14324         * doc/c-strtod.texi: Mention a couple of restrictions.
14325
14326 2009-01-20  Jim Meyering  <meyering@redhat.com>
14327
14328         gettimeofday: move more declarations out of functions
14329         * lib/gettimeofday.c: Move extern declarations of tzset and
14330         gmtime out of containing functions.  Prompted by Bruno Haible.
14331
14332 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
14333
14334         regex: do not depend on obsolete modules.
14335         * modules/regex: Remove memcmp and memmove.
14336
14337 2009-01-19  Bruno Haible  <bruno@clisp.org>
14338
14339         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
14340         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
14341         gl_BIGENDIAN, not AC_C_BIGENDIAN.
14342         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
14343         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
14344
14345 2009-01-19  Bruno Haible  <bruno@clisp.org>
14346
14347         * tests/test-link.c: Include <errno.h>.
14348         (main): Exit with code 77 when a hard link cannot be created due to
14349         the file system.
14350         * tests/test-link.sh: Skip test when a hard link cannot be created due
14351         to the file system.
14352         Suggested by Eric Blake.
14353
14354 2009-01-19  Martin Lambers  <marlam@marlam.de>
14355
14356         * modules/link-tests: New file.
14357         * tests/test-link.sh: New file.
14358         * tests/test-link.c: New file.
14359
14360 2009-01-19  Eric Blake  <ebb9@byu.net>
14361
14362         doc: mention another function added in cygwin 1.7.0
14363         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
14364         Another new function in cygwin 1.7.
14365
14366 2009-01-19  Bruno Haible  <bruno@clisp.org>
14367
14368         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
14369         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
14370         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
14371         gl_BIGENDIAN, not AC_C_BIGENDIAN.
14372         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14373         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
14374         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14375         * m4/md4.m4 (gl_MD4): Likewise.
14376         * m4/md5.m4 (gl_MD5): Likewise.
14377         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
14378         * m4/sha1.m4 (gl_SHA1): Likewise.
14379         * m4/sha256.m4 (gl_SHA256): Likewise.
14380         * m4/sha512.m4 (gl_SHA512): Likewise.
14381
14382 2009-01-19  Bruno Haible  <bruno@clisp.org>
14383
14384         * modules/uniname/uniname-tests (Depends-on): Add progname.
14385         * tests/uniname/test-uninames.c: Include progname.h.
14386         (main): Call set_program_name.
14387
14388         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
14389         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
14390         (main): Call set_program_name.
14391
14392         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
14393         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
14394         (main): Call set_program_name.
14395
14396         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
14397         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
14398         (main): Call set_program_name.
14399
14400         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
14401         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
14402         (main): Call set_program_name.
14403
14404         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
14405         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
14406         (main): Call set_program_name.
14407
14408         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
14409         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
14410         (main): Call set_program_name.
14411
14412         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
14413         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
14414         (main): Call set_program_name.
14415
14416         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
14417         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
14418         (main): Call set_program_name.
14419
14420 2009-01-19  Eric Blake  <ebb9@byu.net>
14421
14422         test-unistd: test previous patch
14423         * tests/test-unistd.c: Test *_FILENO macros.
14424
14425         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
14426         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
14427         Guarantee a definition.
14428         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
14429         * modules/unistd-safer (Depends-on): Add dependency on unistd.
14430         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
14431         * lib/dup-safer.c (STDERR_FILENO): Likewise.
14432         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
14433         Likewise.
14434         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
14435         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
14436         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
14437         Likewise.
14438         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
14439         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
14440         (STDERR_FILENO): Likewise.
14441         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
14442         (STDERR_FILENO): Likewise.
14443         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
14444         (STDERR_FILENO): Likewise.
14445         Reported by Elbert Pol.
14446
14447 2009-01-19  Eric Blake  <ebb9@byu.net>
14448
14449         doc: mention more functions added in cygwin 1.7.0
14450         * doc/posix-functions/abort.texi (abort): Update wording related
14451         to cygwin.
14452         * doc/posix-functions/daylight.texi (daylight): Likewise.
14453         * doc/posix-functions/optarg.texi (optarg): Likewise.
14454         * doc/posix-functions/optarg.texi (opterr): Likewise.
14455         * doc/posix-functions/optarg.texi (optind): Likewise.
14456         * doc/posix-functions/optarg.texi (optopt): Likewise.
14457         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
14458         worked in 1.5.x, and was withdrawn in 1.7.
14459         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14460         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
14461         cygwin versions.
14462         * doc/posix-functions/perror.texi (perror): Likewise.
14463         * doc/posix-functions/printf.texi (printf): Likewise.
14464         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
14465         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
14466         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14467         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14468         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14469         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
14470         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
14471         Likewise.
14472         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
14473         Likewise.
14474         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
14475         this function.
14476         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
14477         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
14478         Likewise.
14479         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
14480         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
14481         * doc/posix-functions/confstr.texi (confstr): Likewise.
14482         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
14483         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
14484         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
14485         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
14486         * doc/posix-functions/fputws.texi (fputws): Likewise.
14487         * doc/posix-functions/fwide.texi (fwide): Likewise.
14488         * doc/posix-functions/getwc.texi (getwc): Likewise.
14489         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
14490         * doc/posix-functions/putwc.texi (putwc): Likewise.
14491         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14492         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
14493         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
14494         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14495         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
14496         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
14497         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
14498         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
14499         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
14500         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
14501         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
14502
14503 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
14504
14505         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
14506         * lib/ioctl.c: Include <sys/ioctl.h>.
14507
14508 2009-01-19  Simon Josefsson  <simon@josefsson.org>
14509
14510         * modules/getdate-tests (Depends-on): Add progname.
14511         * tests/test-getdate.c: Use progname module, to avoid link errors
14512         on non-glibc systems.
14513
14514 2009-01-18  Simon Josefsson  <simon@josefsson.org>
14515
14516         * modules/filenamecat-tests (Depends-on): Add progname.
14517         * modules/fstrcmp-tests (Depends-on): Likewise.
14518
14519         * tests/test-filenamecat.c: Use progname module, to avoid link
14520         errors on non-glibc systems.
14521         * tests/test-fstrcmp.c: Likewise.
14522
14523 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
14524
14525         gettimeofday: avoid warning: nested extern declaration of 'localtime'
14526         * lib/gettimeofday.c: Move extern declaration out of function.
14527
14528 2009-01-18  Bruno Haible  <bruno@clisp.org>
14529
14530         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
14531         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
14532         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
14533
14534 2009-01-18  Bruno Haible  <bruno@clisp.org>
14535
14536         * lib/strftime.c (MEMPCPY): Remove unused macro.
14537         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
14538
14539 2009-01-18  Martin Lambers  <marlam@marlam.de>
14540
14541         New module 'link'.
14542         * lib/unistd.in.h (link): New declaration.
14543         * lib/link.c: New file.
14544         * m4/link.m4: New file.
14545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
14546         HAVE_LINK.
14547         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
14548         * modules/link: New file.
14549         * doc/posix-functions/link.texi: Mention the new module.
14550
14551 2009-01-18  Bruno Haible  <bruno@clisp.org>
14552
14553         * tests/test-avltree_list.c (main): Call set_program_name.
14554         * tests/test-avltree_oset.c (main): Likewise.
14555         * tests/test-obstack-printf.c: Include progname.h.
14556         (main): Call set_program_name.
14557         * tests/test-quotearg.c: Include progname.h.
14558         (main): Call set_program_name.
14559         * tests/test-xmemdup0.c: Include progname.h.
14560         (main): Call set_program_name.
14561
14562 2009-01-18  Bruno Haible  <bruno@clisp.org>
14563
14564         New module 'alphasort'.
14565         * lib/dirent.in.h (alphasort): New declaration.
14566         * lib/alphasort.c: New file, from glibc with modifications.
14567         * m4/alphasort.m4: New file.
14568         * modules/alphasort: New file.
14569         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
14570         HAVE_ALPHASORT.
14571         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
14572         HAVE_ALPHASORT.
14573         * doc/posix-functions/alphasort.texi: Mention the new module and the
14574         portability problems.
14575
14576 2009-01-18  Bruno Haible  <bruno@clisp.org>
14577
14578         New module 'scandir'.
14579         * lib/dirent.in.h (scandir): New declaration.
14580         * lib/scandir.c: New file, from glibc with modifications.
14581         * m4/scandir.m4: New file.
14582         * modules/scandir: New file.
14583         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
14584         HAVE_SCANDIR.
14585         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
14586         HAVE_SCANDIR.
14587         * doc/posix-functions/scandir.texi: Mention the new module and the
14588         portability problems.
14589
14590 2009-01-17  Bruno Haible  <bruno@clisp.org>
14591
14592         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
14593         Update documentation.
14594         (func_remove_suffix): Escape all dots in the suffix. Update
14595         documentation.
14596         (func_filter_filelist): Update documentation.
14597         Reported by Ralf Wildenhues.
14598
14599 2009-01-17  Bruno Haible  <bruno@clisp.org>
14600
14601         * modules/dprintf-posix-tests: New file.
14602         * tests/test-dprintf-posix.sh: New file.
14603         * tests/test-dprintf-posix.c: New file.
14604
14605         New modules 'dprintf', 'dprintf-posix'.
14606         * lib/stdio.in.h (dprintf): New declaration.
14607         * lib/dprintf.c: New file.
14608         * m4/dprintf.m4: New file.
14609         * m4/dprintf-posix.m4: New file.
14610         * modules/dprintf: New file.
14611         * modules/dprintf-posix: New file.
14612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
14613         HAVE_DPRINTF, REPLACE_DPRINTF.
14614         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
14615         HAVE_DPRINTF, REPLACE_DPRINTF.
14616         * doc/posix-functions/dprintf.texi: Mention the new modules.
14617
14618 2009-01-17  Bruno Haible  <bruno@clisp.org>
14619
14620         * modules/vdprintf-posix-tests: New file.
14621         * tests/test-vdprintf-posix.sh: New file.
14622         * tests/test-vdprintf-posix.c: New file.
14623
14624         New modules 'vdprintf', 'vdprintf-posix'.
14625         * lib/stdio.in.h (vdprintf): New declaration.
14626         * lib/vdprintf.c: New file.
14627         * m4/vdprintf.m4: New file.
14628         * m4/vdprintf-posix.m4: New file.
14629         * modules/vdprintf: New file.
14630         * modules/vdprintf-posix: New file.
14631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
14632         HAVE_VDPRINTF, REPLACE_VDPRINTF.
14633         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
14634         HAVE_VDPRINTF, REPLACE_VDPRINTF.
14635         * doc/posix-functions/vdprintf.texi: Mention the new modules.
14636
14637 2009-01-17  Bruno Haible  <bruno@clisp.org>
14638
14639         Fix replacement of fopen on mingw.
14640         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
14641         mingw.
14642
14643 2009-01-17  Bruno Haible  <bruno@clisp.org>
14644
14645         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
14646         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
14647
14648 2009-01-17  Bruno Haible  <bruno@clisp.org>
14649
14650         Avoid test-fflush2.sh failure on mingw.
14651         * tests/test-fflush2.c: Include binary-io.h.
14652         (main): Put standard input into binary mode.
14653         * modules/fflush-tests (Depends-on): Add binary-io.
14654
14655 2009-01-17  Bruno Haible  <bruno@clisp.org>
14656
14657         * lib/wchar.in.h: In another particular situation, include only the
14658         system's <wchar.h> file.
14659         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
14660         Reported by Albert Chin-A-Young <china@thewrittenword.com>
14661         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
14662
14663 2009-01-17  Bruno Haible  <bruno@clisp.org>
14664
14665         Support for stripping executables in --enable-relocatable.
14666         * build-aux/install-reloc: Expect one more argument, or an environment
14667         variable RELOC_STRIP_PROG. If set, strip the destination program and
14668         its wrapper.
14669         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
14670         RELOC_STRIP_PROG.
14671         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
14672         to set RELOCATABLE_STRIP.
14673         * NEWS: Mention the new Makefile requirement.
14674
14675 2009-01-17  Bruno Haible  <bruno@clisp.org>
14676
14677         * build-aux/install-reloc: Remove debugging information left over by
14678         C compiler on MacOS X.
14679
14680 2009-01-17  Bruno Haible  <bruno@clisp.org>
14681
14682         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
14683         * lib/progreloc.c (find_executable): Fix type of pointer passed to
14684         _NSGetExecutablePath.
14685
14686 2009-01-16  Jim Meyering  <meyering@redhat.com>
14687
14688         strerror: avoid warnings about discarding "const"
14689         * lib/strerror.c (rpl_strerror): Instead of returning a const
14690         string from each and every "case", use a variable, and add a single
14691         cast after the switch.
14692
14693 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
14694
14695         * lib/arpa_inet.in.h: Add extern "C" block for C++.
14696
14697 2009-01-16  Bruno Haible  <bruno@clisp.org>
14698
14699         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
14700         array initializer syntax that also works in C++ mode.
14701         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14702
14703 2009-01-16  Jim Meyering  <meyering@redhat.com>
14704
14705         poll: suppress a warning
14706         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
14707         to ignore "...unsigned expression < 0 is always false" warnings.
14708
14709 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
14710
14711         poll: remove declarations of unused variables
14712         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
14713         sockbuf and optlen.
14714
14715 2009-01-15  Bruno Haible  <bruno@clisp.org>
14716
14717         Make fflush-after-ungetc POSIX compliant on BSD systems.
14718         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
14719         (clear_ungetc_buffer): Implement also for other systems.
14720         (rpl_fflush): On glibc systems, invoke
14721         clear_ungetc_buffer_preserving_position. Otherwise, invoke
14722         clear_ungetc_buffer after fetching the stream's position, not before.
14723
14724 2009-01-15  Bruno Haible  <bruno@clisp.org>
14725
14726         Make fflush-after-ungetc POSIX compliant on glibc systems.
14727         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
14728         after ungetc.
14729         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
14730         (rpl_fflush): On glibc systems, simply call the system's fflush
14731         function after clearing the ungetc buffer.
14732         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
14733         Instead, lseek only to the end of file, then use the system's fseeko
14734         for the rest. On glibc systems, reset the EOF indicator bit.
14735
14736 2009-01-15  Jim Meyering  <meyering@redhat.com>
14737
14738         openmp.m4: revert quote-adding change, for portability to older autoconf
14739         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
14740         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
14741         Simon Josefsson noticed the problem when using autoconf-2.61.
14742
14743 2009-01-15  Bruno Haible  <bruno@clisp.org>
14744
14745         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
14746         * tests/test-fflush2.c (ASSERT): Always fail.
14747         (main): Add two tests for fflush() after ungetc(), taking into account
14748         the Austin Group's clarification.
14749         Suggested by Eric Blake.
14750
14751 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
14752
14753         mktime.m4: remove K&R-style function prototypes
14754         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
14755         for the Sun C++ compiler.
14756
14757 2009-01-14  Bruno Haible  <bruno@clisp.org>
14758
14759         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
14760         while including <wchar.h>.
14761         * lib/wchar.in.h: In two particular situations on HP-UX, include only
14762         the system's <wchar.h> file.
14763         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14764
14765 2009-01-14  Bruno Haible  <bruno@clisp.org>
14766
14767         * m4/csharp.m4: Don't mention gettext on the serial number line.
14768         * m4/csharpexec.m4: Likewise.
14769         * m4/eaccess.m4: Likewise.
14770         * m4/javaexec.m4: Likewise.
14771         * m4/sig_atomic_t.m4: Likewise.
14772         * m4/tmpdir.m4: Likewise.
14773         * m4/intldir.m4: Bump gettext version.
14774         * m4/lib-ld.m4: Likewise.
14775
14776 2009-01-14  Bruno Haible  <bruno@clisp.org>
14777
14778         * lib/progname.c (set_program_name): Add more comments.
14779         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14780
14781 2009-01-14  Simon Josefsson  <simon@josefsson.org>
14782
14783         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
14784         were sys/stat.h does not define it.
14785
14786 2009-01-14  Jim Meyering  <meyering@redhat.com>
14787
14788         many *.m4 files: improve m4 quoting
14789         99% of this change was performed by running the following commands:
14790         git ls-files | grep '\.m4$' | xargs perl -pi \
14791           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
14792           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
14793           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
14794           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
14795         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
14796         The remainder were to add Copyright dates, increment serial numbers,
14797         undo some changes in comments, exclude m4/intl.m4, and add quotes
14798         around the "1" in ",1" where the unusual spacing prohibited the
14799         above regexps from doing the job.  For more details, see
14800         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
14801         * m4/acl.m4: Modified.
14802         * m4/afs.m4: Likewise.
14803         * m4/alloca.m4: Likewise.
14804         * m4/argp.m4: Likewise.
14805         * m4/argz.m4: Likewise.
14806         * m4/atexit.m4: Likewise.
14807         * m4/bison-i18n.m4: Likewise.
14808         * m4/bison.m4: Likewise.
14809         * m4/byteswap.m4: Likewise.
14810         * m4/c-stack.m4: Likewise.
14811         * m4/c-strtod.m4: Likewise.
14812         * m4/calloc.m4: Likewise.
14813         * m4/canonicalize-lgpl.m4: Likewise.
14814         * m4/chown.m4: Likewise.
14815         * m4/clock_time.m4: Likewise.
14816         * m4/codeset.m4: Likewise.
14817         * m4/copy-file.m4: Likewise.
14818         * m4/csharp.m4: Likewise.
14819         * m4/csharpcomp.m4: Likewise.
14820         * m4/csharpexec.m4: Likewise.
14821         * m4/d-ino.m4: Likewise.
14822         * m4/d-type.m4: Likewise.
14823         * m4/dirfd.m4: Likewise.
14824         * m4/double-slash-root.m4: Likewise.
14825         * m4/eaccess.m4: Likewise.
14826         * m4/eealloc.m4: Likewise.
14827         * m4/environ.m4: Likewise.
14828         * m4/errno_h.m4: Likewise.
14829         * m4/euidaccess.m4: Likewise.
14830         * m4/execute.m4: Likewise.
14831         * m4/fatal-signal.m4: Likewise.
14832         * m4/fchdir.m4: Likewise.
14833         * m4/fcntl_h.m4: Likewise.
14834         * m4/fileblocks.m4: Likewise.
14835         * m4/filenamecat.m4: Likewise.
14836         * m4/findprog.m4: Likewise.
14837         * m4/flexmember.m4: Likewise.
14838         * m4/fnmatch.m4: Likewise.
14839         * m4/fopen.m4: Likewise.
14840         * m4/fpending.m4: Likewise.
14841         * m4/fprintf-posix.m4: Likewise.
14842         * m4/free.m4: Likewise.
14843         * m4/frexp.m4: Likewise.
14844         * m4/frexpl.m4: Likewise.
14845         * m4/fsusage.m4: Likewise.
14846         * m4/ftruncate.m4: Likewise.
14847         * m4/gc-camellia.m4: Likewise.
14848         * m4/gc-random.m4: Likewise.
14849         * m4/gc.m4: Likewise.
14850         * m4/getaddrinfo.m4: Likewise.
14851         * m4/getcwd-abort-bug.m4: Likewise.
14852         * m4/getcwd-path-max.m4: Likewise.
14853         * m4/getdate.m4: Likewise.
14854         * m4/getdomainname.m4: Likewise.
14855         * m4/getgroups.m4: Likewise.
14856         * m4/gethostname.m4: Likewise.
14857         * m4/gethrxtime.m4: Likewise.
14858         * m4/getline.m4: Likewise.
14859         * m4/getloadavg.m4: Likewise.
14860         * m4/getndelim2.m4: Likewise.
14861         * m4/getpass.m4: Likewise.
14862         * m4/gettext.m4: Likewise.
14863         * m4/gettime.m4: Likewise.
14864         * m4/gettimeofday.m4: Likewise.
14865         * m4/gnulib-common.m4: Likewise.
14866         * m4/group-member.m4: Likewise.
14867         * m4/host-os.m4: Likewise.
14868         * m4/iconv.m4: Likewise.
14869         * m4/iconv_open.m4: Likewise.
14870         * m4/inet_ntop.m4: Likewise.
14871         * m4/inet_pton.m4: Likewise.
14872         * m4/inline.m4: Likewise.
14873         * m4/intldir.m4: Likewise.
14874         * m4/intlmacosx.m4: Likewise.
14875         * m4/intmax.m4: Likewise.
14876         * m4/intmax_t.m4: Likewise.
14877         * m4/inttypes.m4: Likewise.
14878         * m4/inttypes_h.m4: Likewise.
14879         * m4/inttypes-pri.m4: Likewise.
14880         * m4/isapipe.m4: Likewise.
14881         * m4/isnand.m4: Likewise.
14882         * m4/isnanf.m4: Likewise.
14883         * m4/isnanl.m4: Likewise.
14884         * m4/javacomp.m4: Likewise.
14885         * m4/javaexec.m4: Likewise.
14886         * m4/jm-winsz1.m4: Likewise.
14887         * m4/jm-winsz2.m4: Likewise.
14888         * m4/lchown.m4: Likewise.
14889         * m4/lcmessage.m4: Likewise.
14890         * m4/ldexpl.m4: Likewise.
14891         * m4/lib-ld.m4: Likewise.
14892         * m4/lib-link.m4: Likewise.
14893         * m4/libsigsegv.m4: Likewise.
14894         * m4/link-follow.m4: Likewise.
14895         * m4/localcharset.m4: Likewise.
14896         * m4/locale-fr.m4: Likewise.
14897         * m4/locale-ja.m4: Likewise.
14898         * m4/locale-tr.m4: Likewise.
14899         * m4/locale-zh.m4: Likewise.
14900         * m4/lock.m4: Likewise.
14901         * m4/longlong.m4: Likewise.
14902         * m4/ls-mntd-fs.m4: Likewise.
14903         * m4/lstat.m4: Likewise.
14904         * m4/malloc.m4: Likewise.
14905         * m4/mathl.m4: Likewise.
14906         * m4/mbrtowc.m4: Likewise.
14907         * m4/mbstate_t.m4: Likewise.
14908         * m4/mbswidth.m4: Likewise.
14909         * m4/memchr.m4: Likewise.
14910         * m4/memcmp.m4: Likewise.
14911         * m4/memcpy.m4: Likewise.
14912         * m4/memmem.m4: Likewise.
14913         * m4/memmove.m4: Likewise.
14914         * m4/mempcpy.m4: Likewise.
14915         * m4/memrchr.m4: Likewise.
14916         * m4/memset.m4: Likewise.
14917         * m4/minmax.m4: Likewise.
14918         * m4/mkdir-slash.m4: Likewise.
14919         * m4/mkdtemp.m4: Likewise.
14920         * m4/mktime.m4: Likewise.
14921         * m4/mmap-anon.m4: Likewise.
14922         * m4/mountlist.m4: Likewise.
14923         * m4/nanosleep.m4: Likewise.
14924         * m4/nls.m4: Likewise.
14925         * m4/nocrash.m4: Likewise.
14926         * m4/open.m4: Likewise.
14927         * m4/openat.m4: Likewise.
14928         * m4/openmp.m4: Likewise.
14929         * m4/pathmax.m4: Likewise.
14930         * m4/perl.m4: Likewise.
14931         * m4/physmem.m4: Likewise.
14932         * m4/pipe.m4: Likewise.
14933         * m4/po.m4: Likewise.
14934         * m4/poll.m4: Likewise.
14935         * m4/posixtm.m4: Likewise.
14936         * m4/posixver.m4: Likewise.
14937         * m4/printf-frexp.m4: Likewise.
14938         * m4/printf-frexpl.m4: Likewise.
14939         * m4/printf-posix.m4: Likewise.
14940         * m4/printf-posix-rpl.m4: Likewise.
14941         * m4/printf.m4: Likewise.
14942         * m4/progtest.m4: Likewise.
14943         * m4/putenv.m4: Likewise.
14944         * m4/readline.m4: Likewise.
14945         * m4/readlink.m4: Likewise.
14946         * m4/readutmp.m4: Likewise.
14947         * m4/realloc.m4: Likewise.
14948         * m4/regex.m4: Likewise.
14949         * m4/relocatable.m4: Likewise.
14950         * m4/relocatable-lib.m4: Likewise.
14951         * m4/rename-dest-slash.m4: Likewise.
14952         * m4/rename.m4: Likewise.
14953         * m4/rmdir-errno.m4: Likewise.
14954         * m4/rmdir.m4: Likewise.
14955         * m4/roundf.m4: Likewise.
14956         * m4/roundl.m4: Likewise.
14957         * m4/rpmatch.m4: Likewise.
14958         * m4/save-cwd.m4: Likewise.
14959         * m4/selinux-selinux-h.m4: Likewise.
14960         * m4/setenv.m4: Likewise.
14961         * m4/settime.m4: Likewise.
14962         * m4/sig2str.m4: Likewise.
14963         * m4/sig_atomic_t.m4: Likewise.
14964         * m4/signalblocking.m4: Likewise.
14965         * m4/signbit.m4: Likewise.
14966         * m4/sigpipe.m4: Likewise.
14967         * m4/sockets.m4: Likewise.
14968         * m4/sockpfaf.m4: Likewise.
14969         * m4/st_dm_mode.m4: Likewise.
14970         * m4/stat-time.m4: Likewise.
14971         * m4/stdbool.m4: Likewise.
14972         * m4/stdint.m4: Likewise.
14973         * m4/stdint_h.m4: Likewise.
14974         * m4/stpcpy.m4: Likewise.
14975         * m4/stpncpy.m4: Likewise.
14976         * m4/strcase.m4: Likewise.
14977         * m4/strchrnul.m4: Likewise.
14978         * m4/strcspn.m4: Likewise.
14979         * m4/strdup.m4: Likewise.
14980         * m4/strftime.m4: Likewise.
14981         * m4/strndup.m4: Likewise.
14982         * m4/strnlen.m4: Likewise.
14983         * m4/strpbrk.m4: Likewise.
14984         * m4/strptime.m4: Likewise.
14985         * m4/strsep.m4: Likewise.
14986         * m4/strtod.m4: Likewise.
14987         * m4/strtoimax.m4: Likewise.
14988         * m4/strtok_r.m4: Likewise.
14989         * m4/strtol.m4: Likewise.
14990         * m4/strtoll.m4: Likewise.
14991         * m4/strtoul.m4: Likewise.
14992         * m4/strtoull.m4: Likewise.
14993         * m4/strtoumax.m4: Likewise.
14994         * m4/strverscmp.m4: Likewise.
14995         * m4/threadlib.m4: Likewise.
14996         * m4/timegm.m4: Likewise.
14997         * m4/tm_gmtoff.m4: Likewise.
14998         * m4/tmpdir.m4: Likewise.
14999         * m4/tmpfile.m4: Likewise.
15000         * m4/tzset.m4: Likewise.
15001         * m4/uintmax_t.m4: Likewise.
15002         * m4/unlinkdir.m4: Likewise.
15003         * m4/unlocked-io.m4: Likewise.
15004         * m4/uptime.m4: Likewise.
15005         * m4/userspec.m4: Likewise.
15006         * m4/utimbuf.m4: Likewise.
15007         * m4/utime.m4: Likewise.
15008         * m4/utimes-null.m4: Likewise.
15009         * m4/utimes.m4: Likewise.
15010         * m4/vararrays.m4: Likewise.
15011         * m4/vasnprintf.m4: Likewise.
15012         * m4/vfprintf-posix.m4: Likewise.
15013         * m4/vprintf-posix.m4: Likewise.
15014         * m4/wait-process.m4: Likewise.
15015         * m4/wchar_t.m4: Likewise.
15016         * m4/wint_t.m4: Likewise.
15017         * m4/write-any-file.m4: Likewise.
15018         * m4/yield.m4: Likewise.
15019
15020 2009-01-13  Bruno Haible  <bruno@clisp.org>
15021
15022         Avoid test-copy-file.sh failures when ACL support insufficient.
15023         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
15024         TESTS_ENVIRONMENT.
15025         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
15026         Reported by Jim Meyering.
15027
15028 2009-01-13  Bruno Haible  <bruno@clisp.org>
15029
15030         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
15031         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
15032         * modules/unistdio/u8-printf-parse (Files): Likewise.
15033         * modules/unistdio/u32-printf-parse (Files): Likewise.
15034         * modules/unistdio/ulc-printf-parse (Files): Likewise.
15035
15036 2009-01-13  Simon Josefsson  <simon@josefsson.org>
15037
15038         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
15039         and m4/inttypes_h.m4 too.
15040
15041 2009-01-12  Eric Blake  <ebb9@byu.net>
15042
15043         tests: IRIX 6.2 cc can't compile -0.0 into .data
15044         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
15045         rather than at compile-time.
15046         * tests/test-floorl.c (minus_zero): Likewise.
15047         * tests/test-frexpl.c (minus_zero): Likewise.
15048         * tests/test-isnan.c (minus_zerol): Likewise.
15049         * tests/test-isnanl.h (minus_zero): Likewise.
15050         * tests/test-ldexpl.c (minus_zero): Likewise.
15051         * tests/test-roundl.c (minus_zero): Likewise.
15052         * tests/test-signbit.c (minus_zerol): Likewise.
15053         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
15054         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
15055         * tests/test-truncl.c (minus_zero): Likewise.
15056         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
15057         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
15058         Reported by Tom G. Christensen and Nelson H. F. Beebe.
15059
15060 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15061
15062         regex: fix glibc bug 9697
15063         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
15064         handling.
15065
15066 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15067
15068         regex: fix glibc bug 697
15069         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
15070         being NULL also if there are no backreferences.
15071
15072 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15073
15074         regex: merge glibc changes
15075         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
15076         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
15077         re_string_skip_chars, re_string_reconstruct): Likewise.
15078         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
15079
15080 2009-01-07  Jim Meyering  <meyering@redhat.com>
15081
15082         poll: filter through cppi
15083         * lib/poll.c: Indent cpp directives to reflect nesting.
15084
15085 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
15086
15087         poll: don't return uninitialized
15088         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
15089
15090 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
15091
15092         avoid compile failure on AIX 6.1
15093         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
15094         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
15095
15096 2009-01-04  Jim Meyering  <meyering@redhat.com>
15097
15098         remove duplicate inclusion of <stdio.h>
15099         * tests/test-fprintf-posix.c: Likewise.
15100         * tests/test-printf-posix.c: Likewise.
15101         * tests/test-snprintf-posix.c: Likewise.
15102         * tests/test-sprintf-posix.c: Likewise.
15103         * tests/test-vasprintf-posix.c: Likewise.
15104         * tests/test-vfprintf-posix.c: Likewise.
15105         * tests/test-vprintf-posix.c: Likewise.
15106         * tests/test-vsnprintf-posix.c: Likewise.
15107         * tests/test-vsprintf-posix.c: Likewise.
15108
15109 2009-01-03  Jim Meyering  <meyering@redhat.com>
15110
15111         gnulib-tool: fix sed-based filtering
15112         * gnulib-tool (func_filter_filelist): Remove extra backslash
15113         in sed_fff_filter definition.
15114
15115 2009-01-02  Jim Meyering  <meyering@redhat.com>
15116
15117         strftime: avoid compilation failure on Solaris 2.6
15118         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
15119         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
15120         Don't #define mbrlen or mbsinit, since now they're guaranteed to
15121         be available.  Reported by Tom G. Christensen.  Details in
15122         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
15123
15124 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15125             Bruno Haible  <bruno@clisp.org>
15126
15127         Speed up gnulib-tool by doing more string processing through shell
15128         built-ins.
15129         * gnulib-tool (fast_func_append): New variable.
15130         (func_remove_prefix, func_remove_suffix): New functions.
15131         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
15132         (func_filter_filelist): New function.
15133         (func_get_dependencies): Use func_remove_suffix instead of sed.
15134         (func_get_automake_snippet): Use func_filter_filelist instead of a
15135         subshell and sed invocation.
15136
15137 2009-01-01  Bruno Haible  <bruno@clisp.org>
15138
15139         Fix a security bug.
15140         * gnulib-tool (func_import, import, update): Don't allow the characters
15141         '"', '$', '`', '\' in macro arguments that become part of commands that
15142         are evaluated.
15143
15144 2009-01-01  Bruno Haible  <bruno@clisp.org>
15145
15146         * gnulib-tool (func_reset_sigpipe): Add more comments.
15147
15148 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15149
15150         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
15151         func_emit_tests_Makefile_am, func_import): Abort loops early if we
15152         already know the answer.
15153
15154 2009-01-01  Jim Meyering  <meyering@redhat.com>
15155
15156         * lib/version-etc.c (version_etc_va): Update copyright year.
15157
15158 2008-12-30  Bruno Haible  <bruno@clisp.org>
15159
15160         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
15161         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
15162         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
15163
15164 2008-12-29  Eric Blake  <ebb9@byu.net>
15165
15166         multiarch: avoid autoconf AC_REQUIRE bug
15167         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
15168         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
15169         2.63 and older.
15170         Reported by Bruno Haible, and analyzed in
15171         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
15172
15173 2008-12-29  Bruno Haible  <bruno@clisp.org>
15174
15175         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
15176         files in subdirectories correctly.
15177         Reported by Ralf Wildenhues.
15178
15179 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15180
15181         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
15182         rather than 'join FILE -', for Solaris join.
15183
15184 2008-12-29  Bruno Haible  <bruno@clisp.org>
15185
15186         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
15187         quoting.
15188         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15189         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15190         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15191         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
15192         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15193         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15194         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15195         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15196         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15197         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15198         * m4/nls.m4 (AM_NLS): Likewise.
15199         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
15200         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15201         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15202         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15203         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15204         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15205         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
15206         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15207         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15208         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15209         * m4/xsize.m4 (gl_XSIZE): Likewise.
15210         Suggested by Jim Meyering.
15211
15212 2008-11-17  Bruce Korb  <bkorb@gnu.org>
15213
15214         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
15215         * lib/parse-duration.c: use a switch instead of cascading if's.
15216
15217 2008-12-29  Eric Blake  <ebb9@byu.net>
15218
15219         wchar.h: supply WEOF on Irix 5.3
15220         * lib/wchar.in.h (wint_t): Also supply WEOF.
15221         * lib/wctype.in.h (wint_t): Likewise.
15222         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
15223         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
15224         Reported by Tom G. Christensen.
15225
15226 2008-12-26  Bruno Haible  <bruno@clisp.org>
15227
15228         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
15229         i486, i586, i686.
15230
15231 2008-12-26  Bruno Haible  <bruno@clisp.org>
15232
15233         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
15234
15235 2008-12-26  Bruno Haible  <bruno@clisp.org>
15236
15237         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
15238         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
15239         not __STDC_CONSTANT_MACROS.
15240         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
15241
15242 2008-12-25  Bruno Haible  <bruno@clisp.org>
15243
15244         Add support for universal builds to vasnprintf.
15245         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
15246         universal builds, guess no.
15247         * modules/vasnprintf-posix (Depends-on): Add multiarch.
15248         * modules/vasprintf-posix (Depends-on): Likewise.
15249         * modules/fprintf-posix (Depends-on): Likewise.
15250         * modules/vfprintf-posix (Depends-on): Likewise.
15251         * modules/snprintf-posix (Depends-on): Likewise.
15252         * modules/vsnprintf-posix (Depends-on): Likewise.
15253         * modules/sprintf-posix (Depends-on): Likewise.
15254         * modules/vsprintf-posix (Depends-on): Likewise.
15255         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15256         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15257         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15258         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15259         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15260         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15261         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15262
15263         Add support for universal builds to <inttypes.h>.
15264         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
15265         _SCNu64_PREFIX): In Apple
15266         universal builds, define directly, using _LP64.
15267         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
15268         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
15269         * modules/inttypes (Depends-on): Add multiarch.
15270         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
15271
15272         Add support for universal builds to <stdint.h>.
15273         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
15274         universal builds, define directly, using _LP64.
15275         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
15276         Apple universal builds, don't test for the size and suffix of ptrdiff_t
15277         and size_t.
15278         * modules/stdint (Depends-on): Add multiarch.
15279         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
15280
15281         New module 'multiarch'.
15282         * modules/multiarch: New file.
15283         * m4/multiarch.m4: New file.
15284
15285 2008-12-25  Bruno Haible  <bruno@clisp.org>
15286
15287         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
15288
15289 2008-12-25  Bruno Haible  <bruno@clisp.org>
15290
15291         * modules/btowc (License): Relicense under LGPLv2+.
15292         * modules/mbsinit (License): Likewise.
15293         * modules/mbrtowc (License): Likewise.
15294         * modules/wcrtomb (License): Likewise.
15295         * modules/streq (License): Likewise.
15296         Reported by David Lutterkort <lutter@redhat.com>.
15297
15298 2008-12-23  Bruno Haible  <bruno@clisp.org>
15299
15300         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
15301
15302 2008-12-23  Bruno Haible  <bruno@clisp.org>
15303
15304         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
15305         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
15306         GETADDRINFO_LIB, not in LIBS.
15307         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
15308         * modules/canon-host (Link): Likewise.
15309         * NEWS: Mention the change.
15310         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
15311         GETADDRINFO_LIB.
15312
15313 2008-12-22  Bruno Haible  <bruno@clisp.org>
15314
15315         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
15316         * doc/posix-functions/iswalpha_l.texi: Likewise.
15317         * doc/posix-functions/iswblank_l.texi: Likewise.
15318         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15319         * doc/posix-functions/iswctype_l.texi: Likewise.
15320         * doc/posix-functions/iswdigit_l.texi: Likewise.
15321         * doc/posix-functions/iswgraph_l.texi: Likewise.
15322         * doc/posix-functions/iswlower_l.texi: Likewise.
15323         * doc/posix-functions/iswprint_l.texi: Likewise.
15324         * doc/posix-functions/iswpunct_l.texi: Likewise.
15325         * doc/posix-functions/iswspace_l.texi: Likewise.
15326         * doc/posix-functions/iswupper_l.texi: Likewise.
15327         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15328         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
15329         * doc/posix-functions/open_wmemstream.texi: Likewise.
15330         * doc/posix-functions/swscanf.texi: Likewise.
15331         * doc/posix-functions/towctrans_l.texi: Likewise.
15332         * doc/posix-functions/towlower.texi: Likewise.
15333         * doc/posix-functions/towlower_l.texi: Likewise.
15334         * doc/posix-functions/towupper.texi: Likewise.
15335         * doc/posix-functions/towupper_l.texi: Likewise.
15336         * doc/posix-functions/vfwprintf.texi: Likewise.
15337         * doc/posix-functions/vfwscanf.texi: Likewise.
15338         * doc/posix-functions/vswscanf.texi: Likewise.
15339         * doc/posix-functions/vwprintf.texi: Likewise.
15340         * doc/posix-functions/vwscanf.texi: Likewise.
15341         * doc/posix-functions/wcpcpy.texi: Likewise.
15342         * doc/posix-functions/wcpncpy.texi: Likewise.
15343         * doc/posix-functions/wcscasecmp.texi: Likewise.
15344         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
15345         * doc/posix-functions/wcscoll_l.texi: Likewise.
15346         * doc/posix-functions/wcsdup.texi: Likewise.
15347         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15348         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
15349         * doc/posix-functions/wcsnlen.texi: Likewise.
15350         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15351         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
15352         * doc/posix-functions/wctrans_l.texi: Likewise.
15353         * doc/posix-functions/wctype_l.texi: Likewise.
15354         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
15355         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
15356         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
15357         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
15358         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
15359         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
15360         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
15361         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
15362         * doc/glibc-functions/wcschrnul.texi: Likewise.
15363         * doc/glibc-functions/wcsftime_l.texi: Likewise.
15364         * doc/glibc-functions/wcstod_l.texi: Likewise.
15365         * doc/glibc-functions/wcstof_l.texi: Likewise.
15366         * doc/glibc-functions/wcstol_l.texi: Likewise.
15367         * doc/glibc-functions/wcstold_l.texi: Likewise.
15368         * doc/glibc-functions/wcstoll_l.texi: Likewise.
15369         * doc/glibc-functions/wcstoq.texi: Likewise.
15370         * doc/glibc-functions/wcstoul_l.texi: Likewise.
15371         * doc/glibc-functions/wcstoull_l.texi: Likewise.
15372         * doc/glibc-functions/wcstouq.texi: Likewise.
15373         * doc/glibc-functions/wmempcpy.texi: Likewise.
15374
15375 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
15376             Eric Blake  <ebb9@byu.net>
15377             Paolo Bonzini  <bonzini@gnu.org>
15378             Bruno Haible  <bruno@clisp.org>
15379
15380         Make c-stack work on Haiku.
15381         * lib/c-stack.c (SA_ONSTACK): Define fallback.
15382         (c_stack_action): Use SA_ONSTACK flag.
15383
15384 2008-12-22  Bruno Haible  <bruno@clisp.org>
15385
15386         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
15387
15388 2008-12-22  Bruno Haible  <bruno@clisp.org>
15389
15390         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
15391         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
15392         being overridden.
15393         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
15394         New macros.
15395         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
15396         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
15397         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
15398         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
15399
15400 2008-12-22  Bruno Haible  <bruno@clisp.org>
15401
15402         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
15403         from test code.
15404
15405 2008-12-22  Eric Blake  <ebb9@byu.net>
15406
15407         Avoid gcc warnings on cygwin.
15408         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
15409         Avoid unused variable.
15410         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
15411         Likewise.
15412
15413 2008-12-22  Bruno Haible  <bruno@clisp.org>
15414
15415         Remove HAVE_MBRTOWC conditionals.
15416         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
15417         (mbscasecmp): Assume mbrtowc function.
15418         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
15419         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
15420         * lib/mbschr.c: Include mbuiter.h unconditionally.
15421         (mbschr): Assume mbrtowc function.
15422         * lib/mbscspn.c: Include mbuiter.h unconditionally.
15423         (mbscspn): Assume mbrtowc function.
15424         * lib/mbslen.c: Include mbuiter.h unconditionally.
15425         (mbslen): Assume mbrtowc function.
15426         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
15427         (mbsncasecmp): Assume mbrtowc function.
15428         * lib/mbsnlen.c: Include mbiter.h unconditionally.
15429         (mbsnlen): Assume mbrtowc function.
15430         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
15431         (mbspbrk): Assume mbrtowc function.
15432         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
15433         (mbspcasecmp): Assume mbrtowc function.
15434         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
15435         (mbsrchr): Assume mbrtowc function.
15436         * lib/mbssep.c: Include mbuiter.h unconditionally.
15437         (mbssep): Assume mbrtowc function.
15438         * lib/mbsspn.c: Include mbuiter.h unconditionally.
15439         (mbsspn): Assume mbrtowc function.
15440         * lib/mbsstr.c: Include mbuiter.h unconditionally.
15441         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
15442         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
15443         (mbstok_r): Assume mbrtowc function.
15444         * lib/propername.c: Include mbuiter.h unconditionally.
15445         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
15446         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
15447         (trim2): Assume mbrtowc function.
15448         * lib/mbswidth.c (mbsinit): Remove fallback definition.
15449         (mbsnwidth): Assume mbrtowc function.
15450         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
15451         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
15452         fallback definitions.
15453         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
15454
15455 2008-12-22  Bruno Haible  <bruno@clisp.org>
15456
15457         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
15458
15459 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
15460
15461         * modules/regex: Request emulations for the mb*/wc* functions we need.
15462         * m4/regex.m4: Don't look for those functions here.
15463         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
15464
15465 2008-12-22  Bruno Haible  <bruno@clisp.org>
15466
15467         * modules/fnmatch (Depends-on): Remove duplicated dependency.
15468
15469 2008-12-21  Bruno Haible  <bruno@clisp.org>
15470
15471         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
15472         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
15473         (Include): Remove conditionalization.
15474         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
15475         (Include): Remove conditionalization.
15476         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
15477         (Include): Remove conditionalization.
15478         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
15479         * m4/mbfile.m4 (gl_MBFILE): Likewise.
15480         * NEWS: Mention the change.
15481         Reported by Alan Hourihane <alanh@fairlite.co.uk>
15482         via Sergey Poznyakoff <gray@gnu.org.ua>.
15483
15484 2008-12-21  Bruno Haible  <bruno@clisp.org>
15485
15486         * MODULES.html.sh (Extended multibyte and wide character utilities
15487         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
15488         wcrtomb, wcsrtombs.
15489         (Support for systems lacking POSIX:2008): Add accept, bind, close,
15490         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
15491         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
15492         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
15493
15494 2008-12-21  Bruno Haible  <bruno@clisp.org>
15495
15496         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
15497
15498 2008-12-21  Bruno Haible  <bruno@clisp.org>
15499
15500         * modules/wcsnrtombs-tests: New file.
15501         * tests/test-wcsnrtombs1.sh: New file.
15502         * tests/test-wcsnrtombs2.sh: New file.
15503         * tests/test-wcsnrtombs3.sh: New file.
15504         * tests/test-wcsnrtombs4.sh: New file.
15505         * tests/test-wcsnrtombs.c: New file.
15506
15507         New module 'wcsnrtombs'.
15508         * lib/wchar.in.h (wcsnrtombs): New declaration.
15509         * lib/wcsnrtombs.c: New file.
15510         * lib/wcsrtombs-state.c: New file.
15511         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
15512         (internal_state): Remove variable.
15513         * m4/wcsnrtombs.m4: New file.
15514         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
15515         compilation units.
15516         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
15517         HAVE_WCSNRTOMBS.
15518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
15519         HAVE_WCSNRTOMBS.
15520         * modules/wcsnrtombs: New file.
15521         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
15522         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
15523
15524 2008-12-21  Bruno Haible  <bruno@clisp.org>
15525
15526         * modules/wcsrtombs-tests: New file.
15527         * tests/test-wcsrtombs1.sh: New file.
15528         * tests/test-wcsrtombs2.sh: New file.
15529         * tests/test-wcsrtombs3.sh: New file.
15530         * tests/test-wcsrtombs4.sh: New file.
15531         * tests/test-wcsrtombs.c: New file.
15532
15533         New module 'wcsrtombs'.
15534         * lib/wchar.in.h (wcsrtombs): New declaration.
15535         * lib/wcsrtombs.c: New file.
15536         * m4/wcsrtombs.m4: New file.
15537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
15538         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
15539         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
15540         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
15541         * modules/wcsrtombs: New file.
15542         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
15543         bugs.
15544
15545 2008-12-21  Bruno Haible  <bruno@clisp.org>
15546
15547         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
15548         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
15549         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
15550         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
15551         if not correct.
15552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
15553         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
15554         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15555         m4/locale-zh.m4, m4/codeset.m4.
15556         * doc/posix-functions/wcrtomb.texi: Document the bug.
15557
15558 2008-12-21  Bruno Haible  <bruno@clisp.org>
15559
15560         Work around a btowc() bug on IRIX 6.5.
15561         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
15562         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
15563         REPLACE_WTOBC if not.
15564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
15565         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
15566         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
15567
15568 2008-12-21  Bruno Haible  <bruno@clisp.org>
15569
15570         * modules/wcrtomb-tests: New file.
15571         * tests/test-wcrtomb.sh: New file.
15572         * tests/test-wcrtomb.c: New file.
15573
15574         New module 'wcrtomb'.
15575         * lib/wchar.in.h (wcrtomb): New declaration.
15576         * lib/wcrtomb.c: New file.
15577         * m4/wcrtomb.m4: New file.
15578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
15579         HAVE_WCRTOMB.
15580         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
15581         HAVE_WCRTOMB.
15582         * modules/wcrtomb: New file.
15583         * doc/posix-functions/wcrtomb.texi: Mention the new module.
15584
15585 2008-12-21  Bruno Haible  <bruno@clisp.org>
15586
15587         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
15588         * modules/mbsrtowcs (Files): Likewise.
15589         * modules/wctob (Files): Likewise.
15590         * modules/c-strcase-tests (Files): Likewise.
15591         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15592         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15593         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15594         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15595         * modules/vasnprintf-posix-tests (Files): Likewise.
15596
15597 2008-12-21  William Pursell  <bill.pursell@gmail.com>
15598
15599         gitlog-to-changelog: pass all command-line arguments to git-log
15600         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
15601         it is sometimes convenient to filter the commits in various ways.
15602         gitlog-to-changelog only allows --since to specify a start date,
15603         but git-log itself supports many other filtering mechanisms.
15604         At the moment, I want to filter by branch name.  Rather than
15605         adding a --branch option to gitlog-to-changelog, it seems more
15606         flexible to simply pass all options directly to git-log and let
15607         git do the work.  Notice that this effectively makes --since a
15608         redundant option for gitlog-to-changelog, but removing it would
15609         require current usage to change since calls would then require
15610         an additional '--'.
15611
15612 2008-12-21  Bruno Haible  <bruno@clisp.org>
15613
15614         * modules/mbsnrtowcs-tests: New file.
15615         * tests/test-mbsnrtowcs1.sh: New file.
15616         * tests/test-mbsnrtowcs2.sh: New file.
15617         * tests/test-mbsnrtowcs3.sh: New file.
15618         * tests/test-mbsnrtowcs4.sh: New file.
15619         * tests/test-mbsnrtowcs.c: New file.
15620
15621         New module 'mbsnrtowcs'.
15622         * lib/wchar.in.h (mbsnrtowcs): New declaration.
15623         * lib/mbsnrtowcs.c: New file.
15624         * lib/mbsrtowcs-state.c: New file.
15625         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
15626         (internal_state): Remove variable.
15627         * m4/mbsnrtowcs.m4: New file.
15628         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
15629         compilation units.
15630         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
15631         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
15632         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
15633         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
15634         * modules/mbsnrtowcs: New file.
15635         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
15636         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
15637         portability problem.
15638
15639 2008-12-21  Bruno Haible  <bruno@clisp.org>
15640
15641         Work around mbsrtowcs bug.
15642         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
15643         (gl_FUNC_MBSRTOWCS): Invoke it.
15644         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15645         m4/locale-zh.m4.
15646         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
15647
15648 2008-12-21  Bruno Haible  <bruno@clisp.org>
15649
15650         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
15651
15652 2008-12-21  Bruno Haible  <bruno@clisp.org>
15653
15654         Update doc for AIX.
15655         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
15656         16-bit wchar_t type.
15657         * doc/posix-functions/btowc.texi: Likewise.
15658         * doc/posix-functions/fgetwc.texi: Likewise.
15659         * doc/posix-functions/fgetws.texi: Likewise.
15660         * doc/posix-functions/fputwc.texi: Likewise.
15661         * doc/posix-functions/fputws.texi: Likewise.
15662         * doc/posix-functions/fwide.texi: Likewise.
15663         * doc/posix-functions/fwprintf.texi: Likewise.
15664         * doc/posix-functions/fwscanf.texi: Likewise.
15665         * doc/posix-functions/getwchar.texi: Likewise.
15666         * doc/posix-functions/getwc.texi: Likewise.
15667         * doc/posix-functions/iswalnum.texi: Likewise.
15668         * doc/posix-functions/iswalpha.texi: Likewise.
15669         * doc/posix-functions/iswblank.texi: Likewise.
15670         * doc/posix-functions/iswcntrl.texi: Likewise.
15671         * doc/posix-functions/iswctype.texi: Likewise.
15672         * doc/posix-functions/iswdigit.texi: Likewise.
15673         * doc/posix-functions/iswgraph.texi: Likewise.
15674         * doc/posix-functions/iswlower.texi: Likewise.
15675         * doc/posix-functions/iswprint.texi: Likewise.
15676         * doc/posix-functions/iswpunct.texi: Likewise.
15677         * doc/posix-functions/iswspace.texi: Likewise.
15678         * doc/posix-functions/iswupper.texi: Likewise.
15679         * doc/posix-functions/iswxdigit.texi: Likewise.
15680         * doc/posix-functions/mbrtowc.texi: Likewise.
15681         * doc/posix-functions/mbsrtowcs.texi: Likewise.
15682         * doc/posix-functions/mbstowcs.texi: Likewise.
15683         * doc/posix-functions/mbtowc.texi: Likewise.
15684         * doc/posix-functions/putwchar.texi: Likewise.
15685         * doc/posix-functions/putwc.texi: Likewise.
15686         * doc/posix-functions/swprintf.texi: Likewise.
15687         * doc/posix-functions/tolower.texi: Likewise.
15688         * doc/posix-functions/toupper.texi: Likewise.
15689         * doc/posix-functions/towctrans.texi: Likewise.
15690         * doc/posix-functions/ungetwc.texi: Likewise.
15691         * doc/posix-functions/vswprintf.texi: Likewise.
15692         * doc/posix-functions/wcrtomb.texi: Likewise.
15693         * doc/posix-functions/wcscat.texi: Likewise.
15694         * doc/posix-functions/wcschr.texi: Likewise.
15695         * doc/posix-functions/wcscmp.texi: Likewise.
15696         * doc/posix-functions/wcscoll.texi: Likewise.
15697         * doc/posix-functions/wcscpy.texi: Likewise.
15698         * doc/posix-functions/wcscspn.texi: Likewise.
15699         * doc/posix-functions/wcsftime.texi: Likewise.
15700         * doc/posix-functions/wcslen.texi: Likewise.
15701         * doc/posix-functions/wcsncat.texi: Likewise.
15702         * doc/posix-functions/wcsncmp.texi: Likewise.
15703         * doc/posix-functions/wcsncpy.texi: Likewise.
15704         * doc/posix-functions/wcspbrk.texi: Likewise.
15705         * doc/posix-functions/wcsrchr.texi: Likewise.
15706         * doc/posix-functions/wcsrtombs.texi: Likewise.
15707         * doc/posix-functions/wcsspn.texi: Likewise.
15708         * doc/posix-functions/wcsstr.texi: Likewise.
15709         * doc/posix-functions/wcstod.texi: Likewise.
15710         * doc/posix-functions/wcstof.texi: Likewise.
15711         * doc/posix-functions/wcstoimax.texi: Likewise.
15712         * doc/posix-functions/wcstok.texi: Likewise.
15713         * doc/posix-functions/wcstold.texi: Likewise.
15714         * doc/posix-functions/wcstoll.texi: Likewise.
15715         * doc/posix-functions/wcstol.texi: Likewise.
15716         * doc/posix-functions/wcstombs.texi: Likewise.
15717         * doc/posix-functions/wcstoull.texi: Likewise.
15718         * doc/posix-functions/wcstoul.texi: Likewise.
15719         * doc/posix-functions/wcstoumax.texi: Likewise.
15720         * doc/posix-functions/wcswidth.texi: Likewise.
15721         * doc/posix-functions/wcsxfrm.texi: Likewise.
15722         * doc/posix-functions/wctob.texi: Likewise.
15723         * doc/posix-functions/wctomb.texi: Likewise.
15724         * doc/posix-functions/wctrans.texi: Likewise.
15725         * doc/posix-functions/wctype.texi: Likewise.
15726         * doc/posix-functions/wcwidth.texi: Likewise.
15727         * doc/posix-functions/wmemchr.texi: Likewise.
15728         * doc/posix-functions/wmemcmp.texi: Likewise.
15729         * doc/posix-functions/wmemcpy.texi: Likewise.
15730         * doc/posix-functions/wmemmove.texi: Likewise.
15731         * doc/posix-functions/wmemset.texi: Likewise.
15732         * doc/posix-functions/wprintf.texi: Likewise.
15733         * doc/posix-functions/wscanf.texi: Likewise.
15734
15735 2008-12-21  Bruno Haible  <bruno@clisp.org>
15736
15737         Update doc for HP-UX 11.11.
15738         * doc/posix-functions/btowc.texi: Clarify that the function is missing
15739         in HP-UX version 11.00, not in all versions of HP-UX 11.
15740         * doc/posix-functions/fwide.texi: Likewise.
15741         * doc/posix-functions/fwprintf.texi: Likewise.
15742         * doc/posix-functions/fwscanf.texi: Likewise.
15743         * doc/posix-functions/inet_ntop.texi: Likewise.
15744         * doc/posix-functions/inet_pton.texi: Likewise.
15745         * doc/posix-functions/mbrlen.texi: Likewise.
15746         * doc/posix-functions/mbrtowc.texi: Likewise.
15747         * doc/posix-functions/mbsinit.texi: Likewise.
15748         * doc/posix-functions/mbsrtowcs.texi: Likewise.
15749         * doc/posix-functions/swprintf.texi: Likewise.
15750         * doc/posix-functions/swscanf.texi: Likewise.
15751         * doc/posix-functions/towctrans.texi: Likewise.
15752         * doc/posix-functions/vfwprintf.texi: Likewise.
15753         * doc/posix-functions/vswprintf.texi: Likewise.
15754         * doc/posix-functions/vwprintf.texi: Likewise.
15755         * doc/posix-functions/wcrtomb.texi: Likewise.
15756         * doc/posix-functions/wcsrtombs.texi: Likewise.
15757         * doc/posix-functions/wcsstr.texi: Likewise.
15758         * doc/posix-functions/wctob.texi: Likewise.
15759         * doc/posix-functions/wctrans.texi: Likewise.
15760         * doc/posix-functions/wmemchr.texi: Likewise.
15761         * doc/posix-functions/wmemcmp.texi: Likewise.
15762         * doc/posix-functions/wmemcpy.texi: Likewise.
15763         * doc/posix-functions/wmemmove.texi: Likewise.
15764         * doc/posix-functions/wmemset.texi: Likewise.
15765         * doc/posix-functions/wprintf.texi: Likewise.
15766         * doc/posix-functions/wscanf.texi: Likewise.
15767
15768 2008-12-21  Bruno Haible  <bruno@clisp.org>
15769
15770         Work around a portability problem.
15771         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
15772         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
15773
15774 2008-12-20  Bruno Haible  <bruno@clisp.org>
15775
15776         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
15777         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
15778         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
15779         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
15780         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
15781
15782         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
15783         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
15784         set.
15785         (GNULIB_defined_mbstate_t): New macro.
15786         (mbsinit): Redefine if REPLACE_MBSINIT is set.
15787         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
15788         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
15789         reuses the system's mbrtowc function but works around the bugs.
15790         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
15791         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
15792         macros.
15793         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
15794         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
15795         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
15796         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
15797         REPLACE_MBSINIT if mbsinit needs to be overridden.
15798         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
15799         REPLACE_MBSINIT, REPLACE_MBRTOWC.
15800         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
15801         REPLACE_MBSINIT, REPLACE_MBRTOWC.
15802         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15803         m4/locale-zh.m4.
15804         (Depends): Add mbsinit.
15805         * modules/mbsinit (Depends): Add mbrtowc.
15806         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
15807
15808 2008-12-20  Bruno Haible  <bruno@clisp.org>
15809
15810         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
15811         so that there are no conversion errors on AIX.
15812         * tests/test-mbsrtowcs.c (main): LIkewise.
15813
15814 2008-12-20  Bruno Haible  <bruno@clisp.org>
15815
15816         Work around wctob bug on Solaris <= 9.
15817         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
15818         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
15819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
15820         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
15821         * modules/wctob (Files): Add m4/locale-fr.m4.
15822         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
15823
15824 2008-12-20  Bruno Haible  <bruno@clisp.org>
15825
15826         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
15827         /dev/null.
15828         * tests/test-select-in.sh: Likewise.
15829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15830
15831 2008-12-20  Bruno Haible  <bruno@clisp.org>
15832
15833         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
15834         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
15835         Cygwin 1.5.x.
15836
15837 2008-12-20  Bruno Haible  <bruno@clisp.org>
15838
15839         Ensure mbstate_t is defined on HP-UX 11.11.
15840         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
15841         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
15842         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
15843         AC_USE_SYSTEM_EXTENSIONS.
15844         * modules/fnmatch (Depends-on): Add extensions.
15845         * modules/mbrlen (Depends-on): Likewise.
15846         * modules/mbrtowc (Depends-on): Likewise.
15847         * modules/mbsinit (Depends-on): Likewise.
15848         * modules/mbsrtowcs (Depends-on): Likewise.
15849         * modules/mbswidth (Depends-on): Likewise.
15850         * modules/quotearg (Depends-on): Likewise.
15851         * modules/strftime (Depends-on): Likewise.
15852
15853 2008-12-20  Bruno Haible  <bruno@clisp.org>
15854
15855         Ensure wctob is declared on IRIX 6.5.
15856         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
15857         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
15858         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
15859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
15860         of HAVE_WCTOB.
15861         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
15862         HAVE_WCTOB.
15863         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
15864
15865 2008-12-19  Bruno Haible  <bruno@clisp.org>
15866
15867         * modules/mbsrtowcs-tests: New file.
15868         * tests/test-mbsrtowcs1.sh: New file.
15869         * tests/test-mbsrtowcs2.sh: New file.
15870         * tests/test-mbsrtowcs3.sh: New file.
15871         * tests/test-mbsrtowcs4.sh: New file.
15872         * tests/test-mbsrtowcs.c: New file.
15873
15874         New module 'mbsrtowcs'.
15875         * lib/wchar.in.h (mbsrtowcs): New declaration.
15876         * lib/mbsrtowcs.c: New file.
15877         * m4/mbsrtowcs.m4: New file.
15878         * modules/mbsrtowcs: New file.
15879         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
15880         HAVE_MBSRTOWCS.
15881         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
15882         HAVE_MBSRTOWCS.
15883         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
15884
15885 2008-12-19  Bruno Haible  <bruno@clisp.org>
15886
15887         New module 'mbrlen'.
15888         * lib/wchar.in.h (mbrlen): New declaration.
15889         * lib/mbrlen.c: New file.
15890         * m4/mbrlen.m4: New file.
15891         * modules/mbrlen: New file.
15892         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
15893         HAVE_MBRLEN.
15894         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
15895         HAVE_MBRLEN.
15896         * doc/posix-functions/mbrlen.texi: Document the new module.
15897
15898 2008-12-19  Bruno Haible  <bruno@clisp.org>
15899
15900         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
15901         * modules/mbrtowc (Depends-on): Add verify.
15902         Suggested by Paul Eggert.
15903
15904 2008-12-18  Bruno Haible  <bruno@clisp.org>
15905
15906         * modules/mbsinit-tests: New file.
15907         * tests/test-mbsinit.sh: New file.
15908         * tests/test-mbsinit.c: New file.
15909
15910 2008-12-18  Bruno Haible  <bruno@clisp.org>
15911
15912         * modules/mbrtowc-tests: New file.
15913         * tests/test-mbrtowc1.sh: New file.
15914         * tests/test-mbrtowc2.sh: New file.
15915         * tests/test-mbrtowc3.sh: New file.
15916         * tests/test-mbrtowc4.sh: New file.
15917         * tests/test-mbrtowc.c: New file.
15918
15919         New module 'mbrtowc'.
15920         * lib/wchar.in.h (mbstate_t): Override when the system does not have
15921         mbsinit and mbrtowc.
15922         (mbrtowc): New declaration.
15923         * lib/mbrtowc.c: New file.
15924         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
15925         * modules/mbrtowc: New file.
15926         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
15927         HAVE_MBRTOWC.
15928         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
15929         HAVE_MBRTOWC.
15930         * doc/posix-functions/mbrtowc.texi: Document the new module.
15931
15932 2008-12-18  Bruno Haible  <bruno@clisp.org>
15933
15934         New module 'wctob'.
15935         * lib/wchar.in.h (wctob): New declaration.
15936         * lib/wctob.c: New file.
15937         * m4/wctob.m4: New file.
15938         * modules/wctob: New file.
15939         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
15940         HAVE_WCTOB.
15941         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
15942         * doc/posix-functions/wctob.texi: Document the new module.
15943
15944 2008-12-18  Bruno Haible  <bruno@clisp.org>
15945
15946         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
15947         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
15948
15949 2008-12-18  Simon Josefsson  <simon@josefsson.org>
15950
15951         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
15952         G. Christensen" <tgc@jupiterrise.com>.
15953
15954         * lib/flock.c: Need to include errno.h.  Reported by "Tom
15955         G. Christensen" <tgc@jupiterrise.com>.
15956
15957         * lib/flock.c: Need to include string.h.  Reported by "Tom
15958         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
15959         <ebb9@byu.net>.
15960
15961 2008-12-18  Bruno Haible  <bruno@clisp.org>
15962
15963         * m4/locale-ja.m4: New file, from GNU gettext.
15964
15965 2008-12-17  Bruno Haible  <bruno@clisp.org>
15966
15967         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
15968         Suggested by Eric Blake.
15969
15970 2008-12-17  Bruno Haible  <bruno@clisp.org>
15971
15972         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
15973
15974 2008-12-17  Bruno Haible  <bruno@clisp.org>
15975
15976         * lib/mbsinit.c: Include verify.h. Verify an assumption.
15977         * modules/mbsinit (Depends-on): Add verify.
15978         Suggested by Paul Eggert.
15979
15980 2008-12-17  Bruno Haible  <bruno@clisp.org>
15981
15982         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
15983         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
15984         gl_FUNC_MBRTOWC.
15985         * m4/mbiter.m4 (gl_MBITER): LIkewise.
15986         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
15987         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
15988         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
15989         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
15990         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
15991         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
15992         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
15993         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
15994         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
15995         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
15996         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
15997         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
15998         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
15999         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
16000         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16001         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
16002         * modules/trim (configure.ac): Likewise.
16003
16004 2008-12-17  Bruno Haible  <bruno@clisp.org>
16005
16006         * modules/btowc-tests: New file.
16007         * tests/test-btowc1.sh: New file.
16008         * tests/test-btowc2.sh: New file.
16009         * tests/test-btowc.c: New file.
16010
16011         New module 'btowc'.
16012         * lib/wchar.in.h (btowc): New declaration.
16013         * lib/btowc.c: New file.
16014         * m4/btowc.m4: New file.
16015         * modules/btowc: New file.
16016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
16017         HAVE_BTOWC.
16018         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
16019         * doc/posix-functions/btowc.texi: Document the new module.
16020
16021 2008-12-17  Bruno Haible  <bruno@clisp.org>
16022
16023         New module 'mbsinit'.
16024         * lib/wchar.in.h (mbsinit): New declaration.
16025         * lib/mbsinit.c: New file.
16026         * m4/mbsinit.m4: New file.
16027         * modules/mbsinit: New file.
16028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
16029         HAVE_MBSINIT.
16030         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
16031         HAVE_MBSINIT.
16032         * doc/posix-functions/mbsinit.texi: Document the new module.
16033
16034 2008-12-16  Bruno Haible  <bruno@clisp.org>
16035
16036         * lib/unistd.in.h: Add comment.
16037         * tests/test-environ.c: Don't include <stdlib.h>.
16038
16039 2008-12-16  Bruno Haible  <bruno@clisp.org>
16040
16041         * lib/parse-duration.h (parse_duration): Document return value
16042         convention.
16043         * lib/parse-duration.c: Include specification header first. Add
16044         comments.
16045         (_): Remove macro.
16046         (parse_year_month_day, parse_hour_minute_second): Move side effects
16047         outside of strchr call.
16048         (parse_non_iso8601): Move side effects outside of isspace call.
16049         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
16050         call.
16051
16052 2008-12-16  Bruno Haible  <bruno@clisp.org>
16053
16054         * tests/test-parse-duration.sh: Produce no output when the test
16055         succeeds.
16056
16057 2008-12-16  Bruno Haible  <bruno@clisp.org>
16058
16059         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
16060         expressions.
16061
16062 2008-12-15  Bruno Haible  <bruno@clisp.org>
16063
16064         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
16065         * doc/glibc-functions/flistxattr.texi: Likewise.
16066         * doc/glibc-functions/fopencookie.texi: Likewise.
16067         * doc/glibc-functions/fremovexattr.texi: Likewise.
16068         * doc/glibc-functions/fsetxattr.texi: Likewise.
16069         * doc/glibc-functions/getxattr.texi: Likewise.
16070         * doc/glibc-functions/lgetxattr.texi: Likewise.
16071         * doc/glibc-functions/listxattr.texi: Likewise.
16072         * doc/glibc-functions/llistxattr.texi: Likewise.
16073         * doc/glibc-functions/lremovexattr.texi: Likewise.
16074         * doc/glibc-functions/lsetxattr.texi: Likewise.
16075         * doc/glibc-functions/removexattr.texi: Likewise.
16076         * doc/glibc-functions/setxattr.texi: Likewise.
16077         * doc/posix-functions/open_memstream.texi: Likewise.
16078
16079 2008-12-15  Eric Blake  <ebb9@byu.net>
16080
16081         Update doc for cygwin 1.7.
16082         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
16083         functions.
16084         * doc/posix-functions/fchmodat.texi: Likewise.
16085         * doc/posix-functions/fchownat.texi: Likewise.
16086         * doc/posix-functions/fdopendir.texi: Likewise.
16087         * doc/posix-functions/fmemopen.texi: Likewise.
16088         * doc/posix-functions/freeaddrinfo.texi: Likewise.
16089         * doc/posix-functions/fstatat.texi: Likewise.
16090         * doc/posix-functions/futimens.texi: Likewise.
16091         * doc/posix-functions/gai_strerror.texi: Likewise.
16092         * doc/posix-functions/getaddrinfo.texi: Likewise.
16093         * doc/posix-functions/getnameinfo.texi: Likewise.
16094         * doc/posix-functions/if_freenameindex.texi: Likewise.
16095         * doc/posix-functions/if_indextoname.texi: Likewise.
16096         * doc/posix-functions/if_nameindex.texi: Likewise.
16097         * doc/posix-functions/if_nametoindex.texi: Likewise.
16098         * doc/posix-functions/insque.texi: Likewise.
16099         * doc/posix-functions/linkat.texi: Likewise.
16100         * doc/posix-functions/llrint.texi: Likewise.
16101         * doc/posix-functions/llrintf.texi: Likewise.
16102         * doc/posix-functions/llrintl.texi: Likewise.
16103         * doc/posix-functions/lockf.texi: Likewise.
16104         * doc/posix-functions/lrintl.texi: Likewise.
16105         * doc/posix-functions/mkdirat.texi: Likewise.
16106         * doc/posix-functions/mkfifoat.texi: Likewise.
16107         * doc/posix-functions/mknodat.texi: Likewise.
16108         * doc/posix-functions/mq_close.texi: Likewise.
16109         * doc/posix-functions/mq_getattr.texi: Likewise.
16110         * doc/posix-functions/mq_notify.texi: Likewise.
16111         * doc/posix-functions/mq_open.texi: Likewise.
16112         * doc/posix-functions/mq_receive.texi: Likewise.
16113         * doc/posix-functions/mq_send.texi: Likewise.
16114         * doc/posix-functions/mq_setattr.texi: Likewise.
16115         * doc/posix-functions/mq_timedreceive.texi: Likewise.
16116         * doc/posix-functions/mq_timedsend.texi: Likewise.
16117         * doc/posix-functions/mq_unlink.texi: Likewise.
16118         * doc/posix-functions/open_memstream.texi: Likewise.
16119         * doc/posix-functions/openat.texi: Likewise.
16120         * doc/posix-functions/posix_fadvise.texi: Likewise.
16121         * doc/posix-functions/posix_fallocate.texi: Likewise.
16122         * doc/posix-functions/posix_madvise.texi: Likewise.
16123         * doc/posix-functions/posix_memalign.texi: Likewise.
16124         * doc/posix-functions/posix_openpt.texi: Likewise.
16125         * doc/posix-functions/readlinkat.texi: Likewise.
16126         * doc/posix-functions/remque.texi: Likewise.
16127         * doc/posix-functions/renameat.texi: Likewise.
16128         * doc/posix-functions/rintl.texi: Likewise.
16129         * doc/posix-functions/sem_unlink.texi: Likewise.
16130         * doc/posix-functions/shm_open.texi: Likewise.
16131         * doc/posix-functions/shm_unlink.texi: Likewise.
16132         * doc/posix-functions/signgam.texi: Likewise.
16133         * doc/posix-functions/sigset.texi: Likewise.
16134         * doc/posix-functions/stpcpy.texi: Likewise.
16135         * doc/posix-functions/stpncpy.texi: Likewise.
16136         * doc/posix-functions/strerror.texi: Likewise.
16137         * doc/posix-functions/strtod.texi: Likewise.
16138         * doc/posix-functions/symlinkat.texi: Likewise.
16139         * doc/posix-functions/unlinkat.texi: Likewise.
16140         * doc/posix-functions/utimensat.texi: Likewise.
16141         * doc/glibc-functions/bindresvport.texi: Likewise.
16142         * doc/glibc-functions/dn_expand.texi: Likewise.
16143         * doc/glibc-functions/exp10.texi: Likewise.
16144         * doc/glibc-functions/exp10f.texi: Likewise.
16145         * doc/glibc-functions/fgetxattr.texi: Likewise.
16146         * doc/glibc-functions/flistxattr.texi: Likewise.
16147         * doc/glibc-functions/fopencookie.texi: Likewise.
16148         * doc/glibc-functions/freeifaddrs.texi: Likewise.
16149         * doc/glibc-functions/fremovexattr.texi: Likewise.
16150         * doc/glibc-functions/fsetxattr.texi: Likewise.
16151         * doc/glibc-functions/getifaddrs.texi: Likewise.
16152         * doc/glibc-functions/getxattr.texi: Likewise.
16153         * doc/glibc-functions/lgetxattr.texi: Likewise.
16154         * doc/glibc-functions/listxattr.texi: Likewise.
16155         * doc/glibc-functions/llistxattr.texi: Likewise.
16156         * doc/glibc-functions/lremovexattr.texi: Likewise.
16157         * doc/glibc-functions/lsetxattr.texi: Likewise.
16158         * doc/glibc-functions/pow10.texi: Likewise.
16159         * doc/glibc-functions/pow10f.texi: Likewise.
16160         * doc/glibc-functions/rcmd_af.texi: Likewise.
16161         * doc/glibc-functions/removexattr.texi: Likewise.
16162         * doc/glibc-functions/res_init.texi: Likewise.
16163         * doc/glibc-functions/res_mkquery.texi: Likewise.
16164         * doc/glibc-functions/res_query.texi: Likewise.
16165         * doc/glibc-functions/res_querydomain.texi: Likewise.
16166         * doc/glibc-functions/res_send.texi: Likewise.
16167         * doc/glibc-functions/rresvport_af.texi: Likewise.
16168         * doc/glibc-functions/setxattr.texi: Likewise.
16169         * doc/glibc-functions/strcasestr.texi: Likewise.
16170
16171 2008-12-15  Bruno Haible  <bruno@clisp.org>
16172
16173         Fix compilation error on OSF/1 4.0.
16174         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
16175         <sys/time.h>, simply delegate to the system header.
16176         Reported by Daniel Richard G. <oss@teragram.com>.
16177
16178 2008-12-15  Bruno Haible  <bruno@clisp.org>
16179
16180         * doc/posix-functions/openat.texi: Mention the 'openat' module.
16181         * doc/posix-functions/fchmodat.texi: Likewise.
16182         * doc/posix-functions/fchownat.texi: Likewise.
16183         * doc/posix-functions/fdopendir.texi: Likewise.
16184         * doc/posix-functions/fstatat.texi: Likewise.
16185         * doc/posix-functions/mkdirat.texi: Likewise.
16186         * doc/posix-functions/unlinkat.texi: Likewise.
16187
16188 2008-12-14  Bruno Haible  <bruno@clisp.org>
16189
16190         Update doc for POSIX:2008.
16191         * doc/posix-functions/faccessat.texi: New file.
16192         * doc/posix-functions/fchmodat.texi: New file.
16193         * doc/posix-functions/fchownat.texi: New file.
16194         * doc/posix-functions/fdopendir.texi: New file.
16195         * doc/posix-functions/fstatat.texi: New file.
16196         * doc/posix-functions/futimens.texi: New file.
16197         * doc/posix-functions/linkat.texi: New file.
16198         * doc/posix-functions/mkdirat.texi: New file.
16199         * doc/posix-functions/mkfifoat.texi: New file.
16200         * doc/posix-functions/mknodat.texi: New file.
16201         * doc/posix-functions/open_wmemstream.texi: New file.
16202         * doc/posix-functions/openat.texi: New file.
16203         * doc/posix-functions/psiginfo.texi: New file.
16204         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
16205         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
16206         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
16207         * doc/posix-functions/readlinkat.texi: New file.
16208         * doc/posix-functions/renameat.texi: New file.
16209         * doc/posix-functions/strerror_l.texi: New file.
16210         * doc/posix-functions/symlinkat.texi: New file.
16211         * doc/posix-functions/unlinkat.texi: New file.
16212         * doc/posix-functions/utimensat.texi: New file.
16213         * doc/gnulib.texi (Function Substitutes): Add these subsections.
16214
16215 2008-12-14  Bruno Haible  <bruno@clisp.org>
16216
16217         Update doc for POSIX:2008.
16218         * doc/posix-functions/alphasort.texi: Renamed from
16219         doc/glibc-functions/alphasort.texi.
16220         * doc/posix-functions/dirfd.texi: Renamed from
16221         doc/glibc-functions/dirfd.texi.
16222         * doc/posix-functions/dprintf.texi: Renamed from
16223         doc/glibc-functions/dprintf.texi.
16224         * doc/posix-functions/duplocale.texi: Renamed from
16225         doc/glibc-functions/duplocale.texi.
16226         * doc/posix-functions/fexecve.texi: Renamed from
16227         doc/glibc-functions/fexecve.texi.
16228         * doc/posix-functions/fmemopen.texi: Renamed from
16229         doc/glibc-functions/fmemopen.texi.
16230         * doc/posix-functions/freelocale.texi: Renamed from
16231         doc/glibc-functions/freelocale.texi.
16232         * doc/posix-functions/getdate_err.texi: Renamed from
16233         doc/glibc-functions/getdate_err.texi.
16234         * doc/posix-functions/isalnum_l.texi: Renamed from
16235         doc/glibc-functions/isalnum_l.texi.
16236         * doc/posix-functions/isalpha_l.texi: Renamed from
16237         doc/glibc-functions/isalpha_l.texi.
16238         * doc/posix-functions/isblank_l.texi: Renamed from
16239         doc/glibc-functions/isblank_l.texi.
16240         * doc/posix-functions/iscntrl_l.texi: Renamed from
16241         doc/glibc-functions/iscntrl_l.texi.
16242         * doc/posix-functions/isdigit_l.texi: Renamed from
16243         doc/glibc-functions/isdigit_l.texi.
16244         * doc/posix-functions/isgraph_l.texi: Renamed from
16245         doc/glibc-functions/isgraph_l.texi.
16246         * doc/posix-functions/islower_l.texi: Renamed from
16247         doc/glibc-functions/islower_l.texi.
16248         * doc/posix-functions/isprint_l.texi: Renamed from
16249         doc/glibc-functions/isprint_l.texi.
16250         * doc/posix-functions/ispunct_l.texi: Renamed from
16251         doc/glibc-functions/ispunct_l.texi.
16252         * doc/posix-functions/isspace_l.texi: Renamed from
16253         doc/glibc-functions/isspace_l.texi.
16254         * doc/posix-functions/isupper_l.texi: Renamed from
16255         doc/glibc-functions/isupper_l.texi.
16256         * doc/posix-functions/iswalnum_l.texi: Renamed from
16257         doc/glibc-functions/iswalnum_l.texi.
16258         * doc/posix-functions/iswalpha_l.texi: Renamed from
16259         doc/glibc-functions/iswalpha_l.texi.
16260         * doc/posix-functions/iswblank_l.texi: Renamed from
16261         doc/glibc-functions/iswblank_l.texi.
16262         * doc/posix-functions/iswcntrl_l.texi: Renamed from
16263         doc/glibc-functions/iswcntrl_l.texi.
16264         * doc/posix-functions/iswctype_l.texi: Renamed from
16265         doc/glibc-functions/iswctype_l.texi.
16266         * doc/posix-functions/iswdigit_l.texi: Renamed from
16267         doc/glibc-functions/iswdigit_l.texi.
16268         * doc/posix-functions/iswgraph_l.texi: Renamed from
16269         doc/glibc-functions/iswgraph_l.texi.
16270         * doc/posix-functions/iswlower_l.texi: Renamed from
16271         doc/glibc-functions/iswlower_l.texi.
16272         * doc/posix-functions/iswprint_l.texi: Renamed from
16273         doc/glibc-functions/iswprint_l.texi.
16274         * doc/posix-functions/iswpunct_l.texi: Renamed from
16275         doc/glibc-functions/iswpunct_l.texi.
16276         * doc/posix-functions/iswspace_l.texi: Renamed from
16277         doc/glibc-functions/iswspace_l.texi.
16278         * doc/posix-functions/iswupper_l.texi: Renamed from
16279         doc/glibc-functions/iswupper_l.texi.
16280         * doc/posix-functions/iswxdigit_l.texi: Renamed from
16281         doc/glibc-functions/iswxdigit_l.texi.
16282         * doc/posix-functions/isxdigit_l.texi: Renamed from
16283         doc/glibc-functions/isxdigit_l.texi.
16284         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
16285         doc/glibc-functions/mbsnrtowcs.texi.
16286         * doc/posix-functions/mkdtemp.texi: Renamed from
16287         doc/glibc-functions/mkdtemp.texi.
16288         * doc/posix-functions/newlocale.texi: Renamed from
16289         doc/glibc-functions/newlocale.texi.
16290         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
16291         doc/glibc-functions/nl_langinfo_l.texi.
16292         * doc/posix-functions/open_memstream.texi: Renamed from
16293         doc/glibc-functions/open_memstream.texi.
16294         * doc/posix-functions/opterr.texi: Renamed from
16295         doc/glibc-functions/opterr.texi.
16296         * doc/posix-functions/optind.texi: Renamed from
16297         doc/glibc-functions/optind.texi.
16298         * doc/posix-functions/optopt.texi: Renamed from
16299         doc/glibc-functions/optopt.texi.
16300         * doc/posix-functions/psignal.texi: Renamed from
16301         doc/glibc-functions/psignal.texi.
16302         * doc/posix-functions/scandir.texi: Renamed from
16303         doc/glibc-functions/scandir.texi.
16304         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
16305         doc/glibc-functions/sched_get_priority_min.texi.
16306         * doc/posix-functions/signgam.texi: Renamed from
16307         doc/glibc-functions/signgam.texi.
16308         * doc/posix-functions/stpcpy.texi: Renamed from
16309         doc/glibc-functions/stpcpy.texi.
16310         * doc/posix-functions/stpncpy.texi: Renamed from
16311         doc/glibc-functions/stpncpy.texi.
16312         * doc/posix-functions/strcasecmp_l.texi: Renamed from
16313         doc/glibc-functions/strcasecmp_l.texi.
16314         * doc/posix-functions/strcoll_l.texi: Renamed from
16315         doc/glibc-functions/strcoll_l.texi.
16316         * doc/posix-functions/strfmon_l.texi: Renamed from
16317         doc/glibc-functions/strfmon_l.texi.
16318         * doc/posix-functions/strftime_l.texi: Renamed from
16319         doc/glibc-functions/strftime_l.texi.
16320         * doc/posix-functions/strncasecmp_l.texi: Renamed from
16321         doc/glibc-functions/strncasecmp_l.texi.
16322         * doc/posix-functions/strndup.texi: Renamed from
16323         doc/glibc-functions/strndup.texi.
16324         * doc/posix-functions/strnlen.texi: Renamed from
16325         doc/glibc-functions/strnlen.texi.
16326         * doc/posix-functions/strsignal.texi: Renamed from
16327         doc/glibc-functions/strsignal.texi.
16328         * doc/posix-functions/strxfrm_l.texi: Renamed from
16329         doc/glibc-functions/strxfrm_l.texi.
16330         * doc/posix-functions/timer_gettime.texi: Renamed from
16331         doc/glibc-functions/timer_gettime.texi.
16332         * doc/posix-functions/tolower_l.texi: Renamed from
16333         doc/glibc-functions/tolower_l.texi.
16334         * doc/posix-functions/toupper_l.texi: Renamed from
16335         doc/glibc-functions/toupper_l.texi.
16336         * doc/posix-functions/towctrans_l.texi: Renamed from
16337         doc/glibc-functions/towctrans_l.texi.
16338         * doc/posix-functions/towlower_l.texi: Renamed from
16339         doc/glibc-functions/towlower_l.texi.
16340         * doc/posix-functions/towupper_l.texi: Renamed from
16341         doc/glibc-functions/towupper_l.texi.
16342         * doc/posix-functions/uselocale.texi: Renamed from
16343         doc/glibc-functions/uselocale.texi.
16344         * doc/posix-functions/vdprintf.texi: Renamed from
16345         doc/glibc-functions/vdprintf.texi.
16346         * doc/posix-functions/wcpcpy.texi:
16347         Renamed from doc/glibc-functions/wcpcpy.texi.
16348         * doc/posix-functions/wcpncpy.texi: Renamed from
16349         doc/glibc-functions/wcpncpy.texi.
16350         * doc/posix-functions/wcscasecmp.texi: Renamed from
16351         doc/glibc-functions/wcscasecmp.texi.
16352         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
16353         doc/glibc-functions/wcscasecmp_l.texi.
16354         * doc/posix-functions/wcscoll_l.texi: Renamed from
16355         doc/glibc-functions/wcscoll_l.texi.
16356         * doc/posix-functions/wcsdup.texi: Renamed from
16357         doc/glibc-functions/wcsdup.texi.
16358         * doc/posix-functions/wcsncasecmp.texi: Renamed from
16359         doc/glibc-functions/wcsncasecmp.texi.
16360         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
16361         doc/glibc-functions/wcsncasecmp_l.texi.
16362         * doc/posix-functions/wcsnlen.texi: Renamed from
16363         doc/glibc-functions/wcsnlen.texi.
16364         * doc/posix-functions/wcsnrtombs.texi: Renamed from
16365         doc/glibc-functions/wcsnrtombs.texi.
16366         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
16367         doc/glibc-functions/wcsxfrm_l.texi.
16368         * doc/posix-functions/wctrans_l.texi: Renamed from
16369         doc/glibc-functions/wctrans_l.texi.
16370         * doc/posix-functions/wctype_l.texi: Renamed from
16371         doc/glibc-functions/wctype_l.texi.
16372         * doc/gnulib.texi (Function Substitutes): Add these subsections.
16373         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
16374         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
16375         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
16376         these subsections.
16377         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
16378         Remove sections.
16379
16380 2008-12-14  Bruno Haible  <bruno@clisp.org>
16381
16382         Update doc for POSIX:2008.
16383         * doc/posix-functions/*.texi: Update URL of POSIX specification.
16384
16385 2008-12-14  Bruno Haible  <bruno@clisp.org>
16386
16387         Update doc for POSIX:2008.
16388         * doc/pastposix-functions/bcmp.texi: Renamed from
16389         doc/posix-functions/bcmp.texi.
16390         * doc/pastposix-functions/bcopy.texi: Renamed from
16391         doc/posix-functions/bcopy.texi.
16392         * doc/pastposix-functions/bsd_signal.texi: Renamed from
16393         doc/posix-functions/bsd_signal.texi.
16394         * doc/pastposix-functions/bzero.texi: Renamed from
16395         doc/posix-functions/bzero.texi.
16396         * doc/pastposix-functions/ecvt.texi: Renamed from
16397         doc/posix-functions/ecvt.texi.
16398         * doc/pastposix-functions/fcvt.texi: Renamed from
16399         doc/posix-functions/fcvt.texi.
16400         * doc/pastposix-functions/ftime.texi: Renamed from
16401         doc/posix-functions/ftime.texi.
16402         * doc/pastposix-functions/gcvt.texi: Renamed from
16403         doc/posix-functions/gcvt.texi.
16404         * doc/pastposix-functions/getcontext.texi: Renamed from
16405         doc/posix-functions/getcontext.texi.
16406         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
16407         doc/posix-functions/gethostbyaddr.texi.
16408         * doc/pastposix-functions/gethostbyname.texi: Renamed from
16409         doc/posix-functions/gethostbyname.texi.
16410         * doc/pastposix-functions/getwd.texi: Renamed from
16411         doc/posix-functions/getwd.texi.
16412         * doc/pastposix-functions/h_errno.texi: Renamed from
16413         doc/posix-functions/h_errno.texi.
16414         * doc/pastposix-functions/index.texi: Renamed from
16415         doc/posix-functions/index.texi.
16416         * doc/pastposix-functions/makecontext.texi: Renamed from
16417         doc/posix-functions/makecontext.texi.
16418         * doc/pastposix-functions/mktemp.texi: Renamed from
16419         doc/posix-functions/mktemp.texi.
16420         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
16421         doc/posix-functions/pthread_attr_getstackaddr.texi.
16422         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
16423         doc/posix-functions/pthread_attr_setstackaddr.texi.
16424         * doc/pastposix-functions/rindex.texi: Renamed from
16425         doc/posix-functions/rindex.texi.
16426         * doc/pastposix-functions/scalb.texi: Renamed from
16427         doc/posix-functions/scalb.texi.
16428         * doc/pastposix-functions/setcontext.texi: Renamed from
16429         doc/posix-functions/setcontext.texi.
16430         * doc/pastposix-functions/swapcontext.texi: Renamed from
16431         doc/posix-functions/swapcontext.texi.
16432         * doc/pastposix-functions/ualarm.texi: Renamed from
16433         doc/posix-functions/ualarm.texi.
16434         * doc/pastposix-functions/usleep.texi: Renamed from
16435         doc/posix-functions/usleep.texi.
16436         * doc/pastposix-functions/vfork.texi: Renamed from
16437         doc/posix-functions/vfork.texi.
16438         * doc/pastposix-functions/wcswcs.texi: Renamed from
16439         doc/posix-functions/wcswcs.texi.
16440         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
16441         (Function Substitutes): Update.
16442
16443 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16444
16445         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
16446         m4/strerror.m4.
16447
16448 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16449             Bruno Haible  <bruno@clisp.org>
16450
16451         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
16452
16453 2008-12-13  Bruno Haible  <bruno@clisp.org>
16454
16455         * modules/strtoull (Depends-on): Remove unistd.
16456
16457 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16458
16459         * modules/strtoull (Depends-on): Add stdlib.
16460
16461 2008-12-11  Simon Josefsson  <simon@josefsson.org>
16462
16463         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
16464
16465 2008-12-10  Jim Meyering  <meyering@redhat.com>
16466
16467         gl_ASSERT: don't say assertions are disabled when they're not
16468         * m4/assert.m4 (gl_ASSERT): Do not make configure report
16469         "checking whether to enable assertions... no", when they are in
16470         fact enabled.  This is solely a bug in the output of configure.
16471         In spite of saying "no", NDEBUG was not defined in that case.
16472         Also, as noted by Eric Blake, leave assertions enabled upon
16473         --enable-assert=INVALID.
16474
16475 2008-12-10  Bruno Haible  <bruno@clisp.org>
16476
16477         Change MODULES.html to refer to POSIX:2008 where possible.
16478         * MODULES.html.sh (POSIX2008_URL): New variable.
16479         (posix_headers): Remove sys/timeb, ucontext.
16480         (posix2001_headers): New variable.
16481         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
16482         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
16483         index, makecontext, mktemp, pthread_attr_getstackaddr,
16484         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
16485         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
16486         (posix2001_functions): New variable.
16487         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
16488         otherwise.
16489
16490 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16491
16492         add missing include to parse-duration.c
16493         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
16494         * modules/parse-duration (Depends-on): Add xalloc.
16495
16496         fix sed script reading maint.mk
16497         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
16498         (syntax-check-rules): Use it.
16499
16500 2008-12-09  Bruno Haible  <bruno@clisp.org>
16501
16502         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
16503         MacOS X 10.4/PowerPC.
16504         Reported by Simon Josefsson.
16505
16506 2008-12-08  Jim Meyering  <meyering@redhat.com>
16507
16508         work around mingw's lack of some S_IF definitions
16509         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
16510         Reported by Simon Josefsson.
16511
16512 2008-12-08  Bruno Haible  <bruno@clisp.org>
16513
16514         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
16515         applied to variables. Needed on MacOS X 10.4/PowerPC.
16516         Reported by Simon Josefsson.
16517
16518 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
16519         and Eric Blake  <ebb9@byu.net>
16520
16521         assert: honor --enable-assert
16522         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
16523         order to honor --enable-assert, rather than treating it as a
16524         synonym for --disable-assert.
16525
16526 2008-12-08  Jim Meyering  <meyering@redhat.com>
16527
16528         * lib/posixtm.c: Remove now-useless declaration of mktime.
16529
16530         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
16531
16532 2008-12-07  Bruno Haible  <bruno@clisp.org>
16533
16534         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
16535         test_once): Mark functions as static.
16536         * tests/test-tls.c (test_tls): Likewise.
16537
16538 2008-12-07  Bruno Haible  <bruno@clisp.org>
16539
16540         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
16541         iconv_register_autodetect.
16542
16543 2008-12-07  Jim Meyering  <meyering@redhat.com>
16544
16545         posixtm.c: avoid a warning
16546         * lib/posixtm.c (posixtime): Don't initialize tm0.
16547         It's no longer needed to placate gcc4's -Wuninitialized,
16548         and the attempt to placate would elicit a new warning.
16549
16550         unicodeio.c: mark unused parameters
16551         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
16552         (fallback_failure_callback): Likewise.
16553
16554 2008-12-07  Bruno Haible  <bruno@clisp.org>
16555
16556         * gnulib-tool (func_create_testdir): When building the tests
16557         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
16558         Reported by Simon Josefsson.
16559
16560 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16561
16562         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
16563
16564 2008-12-06  Bruno Haible  <bruno@clisp.org>
16565
16566         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
16567         Suggested by Eric Blake.
16568
16569 2008-12-06  Bruno Haible  <bruno@clisp.org>
16570
16571         Fix a c-stack test failure on MacOS X.
16572         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
16573         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
16574         handler for SIGBUS as well.
16575         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
16576         install a signal handler for SIGBUS as well.
16577         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
16578
16579 2008-12-06  Bruno Haible  <bruno@clisp.org>
16580
16581         Advocacy documentation.
16582         * doc/gnulib-intro.texi (Benefits): New section.
16583         * doc/gnulib.texi: Update.
16584
16585 2008-12-06  Bruno Haible  <bruno@clisp.org>
16586
16587         Document the 'manywarnings' module.
16588         * doc/manywarnings.texi: New file.
16589         * doc/gnulib.texi: Include it.
16590
16591 2008-12-05  Eric Blake  <ebb9@byu.net>
16592
16593         tests: silence some gcc warnings
16594         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
16595         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
16596         type mismatches.
16597
16598 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16599             Bruno Haible  <bruno@clisp.org>
16600
16601         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
16602
16603 2008-11-29  Jim Meyering  <meyering@redhat.com>
16604
16605         unicodeio.c: mark unused parameters
16606         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
16607         (fallback_failure_callback): Likewise.
16608
16609         fts: fix a thinko
16610         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
16611         (set_stat_type): Return S_IF*-valued "type" directly.
16612         Prompted by James Youngman's spotting a related bug.
16613         Confirmed by further testing through find.
16614
16615         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
16616         * lib/fts.c (D_TYPE): Define.
16617         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
16618         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
16619         (s_ifmt_shift_bits): New function.
16620         (set_stat_type): New function.
16621         (fts_build): When not calling fts_stat, call set_stat_type
16622         to propagate dirent.d_type info to fts_read caller.
16623         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
16624         fts_statp->st_mode type information may be valid.
16625
16626 2008-11-28  Simon Josefsson  <simon@josefsson.org>
16627
16628         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
16629         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
16630         <sds@gnu.org>.
16631
16632 2008-11-20  Bruno Haible  <bruno@clisp.org>
16633
16634         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
16635         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
16636         INCLUDE_NEXT.
16637         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
16638         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
16639         * modules/math (Makefile.am): Substitute
16640         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
16641         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16642
16643 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
16644             Bruno Haible  <bruno@clisp.org>
16645
16646         * lib/stdint.in.h: Define all type macros so that their expansion is
16647         a single typedef'ed token. Fixes a compilation failure in Boost which
16648         does "using ::int8_t;".
16649
16650 2008-11-18  Simon Josefsson  <simon@josefsson.org>
16651
16652         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
16653         gl_MANYWARN_ALL_GCC.
16654         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
16655         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
16656         * modules/manywarnings: New file.
16657         * MODULES.html.sh: Mention manywarnings module.
16658
16659 2008-11-18  Bruno Haible  <bruno@clisp.org>
16660
16661         * doc/gnulib-tool.texi (Unit tests): New section.
16662
16663 2008-11-18  Simon Josefsson  <simon@josefsson.org>
16664
16665         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
16666         paths like 'lib/po/foo.po'.
16667
16668 2008-11-17  Simon Josefsson  <simon@josefsson.org>
16669
16670         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
16671         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
16672
16673 2008-11-17  Simon Josefsson  <simon@josefsson.org>
16674
16675         * m4/warnings.m4: Use CPPFLAGS to really check whether the
16676         parameter works.
16677
16678 2008-11-17  Simon Josefsson  <simon@josefsson.org>
16679
16680         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
16681
16682 2008-11-17  Bruce Korb  <bkorb@gnu.org>
16683
16684         * modules/parse-duration-tests: New file.
16685         * tests/test-parse-duration.sh: New file.
16686         * tests/test-parse-duration.c: New file.
16687
16688         New module 'parse-duration'.
16689         * lib/parse-duration.h: New file.
16690         * lib/parse-duration.c: New file.
16691         * modules/parse-duration: New file.
16692
16693 2008-11-17  Bruno Haible  <bruno@clisp.org>
16694
16695         * tests/test-select-out.sh: Comment out the first pipe test.
16696         Reported by Simon Josefsson.
16697
16698 2008-11-17  Bruno Haible  <bruno@clisp.org>
16699
16700         * modules/getaddrinfo (Depends-on): Add servent, hostent.
16701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
16702         gl_HOSTENT.
16703
16704 2008-11-17  Bruno Haible  <bruno@clisp.org>
16705
16706         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
16707         -lnetwork and -lnet. Needed for Haiku and BeOS.
16708
16709 2008-11-16  Bruno Haible  <bruno@clisp.org>
16710
16711         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
16712
16713 2008-11-16  Bruno Haible  <bruno@clisp.org>
16714
16715         Avoid test failure on Haiku.
16716         * tests/test-fsync.c: Include <errno.h>.
16717         (main): Don't require that fsync (0) fails.
16718
16719 2008-11-15  Bruno Haible  <bruno@clisp.org>
16720
16721         New module 'hostent'.
16722         * modules/hostent: New file.
16723         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
16724
16725 2008-11-15  Bruno Haible  <bruno@clisp.org>
16726
16727         New module 'servent'.
16728         * modules/servent: New file.
16729         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
16730
16731 2008-11-15  Bruno Haible  <bruno@clisp.org>
16732
16733         Avoid generating same test program with two different rules.
16734         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
16735         test-frexp to test-frexp-nolibm.
16736         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
16737         test-frexpl to test-frexpl-nolibm.
16738
16739 2008-11-15  Bruno Haible  <bruno@clisp.org>
16740
16741         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
16742         $(FREXPL_LIBM).
16743
16744 2008-11-15  Bruno Haible  <bruno@clisp.org>
16745
16746         * lib/netdb.in.h: Activate the definitions also when the system's
16747         <netdb.h> has 'struct addrinfo'.
16748         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
16749         EAI_OVERFLOW or AI_NUMERICSERV.
16750         * doc/posix-headers/netdb.texi: Document the problem.
16751
16752 2008-11-15  Bruno Haible  <bruno@clisp.org>
16753
16754         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
16755
16756         Make the 'sched' module work on platforms where <sched.h> exists but
16757         is incomplete (such as Haiku).
16758         * lib/sched.in.h; Include the system's <sched.h> if it exists.
16759         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
16760         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
16761         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
16762         HAVE_STRUCT_SCHED_PARAM.
16763         * modules/sched (Depends-on): Add include_next.
16764         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
16765         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
16766         * doc/posix-headers/sched.texi: Document the issue.
16767
16768 2008-11-13  Jim Meyering  <meyering@redhat.com>
16769
16770         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
16771         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
16772         test would fail due to the difference in the Report bugs to ...
16773         line.  The expected address is empty, "<>", while the actual
16774         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
16775
16776 2008-11-12  Bruno Haible  <bruno@clisp.org>
16777
16778         lstat: don't compile lstat.c on systems lacking lstat
16779         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
16780         which don't have lstat; this is handled by lib/sys_stat.in.h already.
16781         Reported by Daniel P. Berrange via Jim Meyering.
16782
16783 2008-11-12  Jim Meyering  <meyering@redhat.com>
16784
16785         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
16786
16787 2008-11-12  Simon Josefsson  <simon@josefsson.org>
16788
16789         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
16790         instead.
16791
16792 2008-11-12  Bruno Haible  <bruno@clisp.org>
16793
16794         * lib/unicodeio.c: Include unistr.h.
16795         (utf8_wctomb): Remove function.
16796         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
16797
16798 2008-11-12  Simon Josefsson  <simon@josefsson.org>
16799
16800         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
16801         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
16802         <bruno@clisp.org>.
16803         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
16804
16805 2008-11-12  Simon Josefsson  <simon@josefsson.org>
16806
16807         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
16808         * doc/gnulib.texi: Add section for warnings.
16809
16810 2008-11-11  Bruno Haible  <bruno@clisp.org>
16811
16812         * lib/sockets.h: Add a comment.
16813
16814 2008-11-11  Karl Berry  <karl@gnu.org>
16815
16816         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
16817
16818 2008-11-11  Eric Blake  <ebb9@byu.net>
16819
16820         fdl.texi: avoid git symlinks
16821         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
16822
16823 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16824
16825         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
16826
16827 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16828
16829         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
16830         (gl_WARN_ADD): Substitute $2 if literal.
16831
16832 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16833
16834         * m4/warning.m4: Remove.
16835
16836 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16837
16838         * m4/warnings.m4: Almost complete rewrite. :-)
16839
16840 2008-11-10  Simon Josefsson  <simon@josefsson.org>
16841
16842         * modules/warnings: New module.
16843         * m4/warnings.m4: New file.
16844         * MODULES.html.sh: Mention warnings module.
16845         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
16846         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16847
16848 2008-11-10  Eric Blake  <ebb9@byu.net>
16849
16850         fdl.texi: make a symlink to the latest version
16851         * doc/standards.texi: Revert today's earlier change.
16852         * doc/fdl-1.2.texi: Rename from old fdl.texi...
16853         * doc/fdl.texi: ...and replace this with a symlink to the newer
16854         fdl-1.3.texi.
16855
16856 2008-11-10  Bruno Haible  <bruno@clisp.org>
16857
16858         * tests/test-select-fd.c (main): Accept the result file name as fourth
16859         argument.
16860         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
16861         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
16862
16863 2008-11-10  Bruno Haible  <bruno@clisp.org>
16864
16865         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
16866         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
16867         as autoconf-substituted macros.
16868         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
16869         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
16870         gl_NETDB_H_DEFAULTS. Set these variables.
16871         * modules/netdb (Makefile.am): Substitute these variables.
16872
16873 2008-11-10  Eric Blake  <ebb9@byu.net>
16874
16875         standards.texi: include correct file for FDL 1.3
16876         * doc/standards.texi (GNU Free Documentation License): Change
16877         include file to pull in FDL 1.3, not 1.2.
16878
16879         fdl.texi: revert accidental change to license
16880         * doc/fdl.texi: This is FDL 1.2, not 1.3.
16881
16882 2008-11-10  Bruno Haible  <bruno@clisp.org>
16883
16884         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
16885         cross-compiling guesses also when the native compile gives no result.
16886
16887 2008-11-10  Bruno Haible  <bruno@clisp.org>
16888
16889         * lib/spawni.c (__spawni): Force variable into the stack.
16890
16891 2008-11-10  Bruno Haible  <bruno@clisp.org>
16892
16893         Add support for Haiku.
16894         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
16895         glibc and BeOS, but also on Haiku.
16896         * lib/fpurge.c (fpurge): Likewise.
16897         * lib/freadable.c (freadable): Likewise.
16898         * lib/freadahead.c (freadahead): Likewise.
16899         * lib/freading.c (freading): Likewise.
16900         * lib/freadptr.c (freadptr): Likewise.
16901         * lib/freadseek.c (freadptrinc): Likewise.
16902         * lib/fseeko.c (rpl_fseeko): Likewise.
16903         * lib/fseterr.c (fseterr): Likewise.
16904         * lib/fwritable.c (fwritable): Likewise.
16905         * lib/fwriting.c (fwriting): Likewise.
16906         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
16907
16908 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
16909
16910         * lib/config.charset: Treat Haiku like BeOS.
16911
16912 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
16913
16914         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
16915         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
16916
16917 2008-11-08  Bruno Haible  <bruno@clisp.org>
16918
16919         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
16920         AC_CACHE_CHECK.
16921
16922 2008-11-08  Bruno Haible  <bruno@clisp.org>
16923
16924         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
16925
16926 2008-11-08  Bruno Haible  <bruno@clisp.org>
16927
16928         * tests/test-select-fd.c: New file.
16929         * tests/test-select-in.sh: New file.
16930         * tests/test-select-out.sh: New file.
16931         * tests/test-select-stdin.c: New file.
16932         * modules/select-tests (Files): Add the new files.
16933         (Depends-on): Add gettimeofday.
16934         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
16935         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
16936         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
16937
16938 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
16939             Bruno Haible  <bruno@clisp.org>
16940
16941         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
16942
16943 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
16944
16945         * build-aux/pmccabe2html: Added support for C++ source files.
16946
16947 2008-11-05  Ben Pfaff  <blp@gnu.org>
16948
16949         Fix lib/close.c build on Windows.
16950         * modules/close (Files): Add lib/w32sock.h.
16951
16952 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
16953
16954         Accept Bison's NEWS format.
16955         * build-aux/announce-gen (print_news_deltas): Tweak
16956         $re_prefix.
16957
16958 2008-11-04  Bruno Haible  <bruno@clisp.org>
16959
16960         * modules/random_r (Maintainer): Add glibc.
16961
16962 2008-11-04  Simon Josefsson  <simon@josefsson.org>
16963
16964         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
16965         by karl@freefriends.org (Karl Berry).
16966         * doc/alloca.texi: Likewise.
16967         * doc/c-ctype.texi: Likewise.
16968         * doc/c-strcase.texi: Likewise.
16969         * doc/c-strcaseeq.texi: Likewise.
16970         * doc/c-strcasestr.texi: Likewise.
16971         * doc/c-strstr.texi: Likewise.
16972         * doc/c-strtod.texi: Likewise.
16973         * doc/c-strtold.texi: Likewise.
16974         * doc/ctime.texi: Likewise.
16975         * doc/error.texi: Likewise.
16976         * doc/fdl.texi: Likewise.
16977         * doc/gcd.texi: Likewise.
16978         * doc/getdate.texi: Likewise.
16979         * doc/gnulib-intro.texi: Likewise.
16980         * doc/gnulib-tool.texi: Likewise.
16981         * doc/gnulib.texi: Likewise.
16982         * doc/inet_ntoa.texi: Likewise.
16983         * doc/maintain.texi: Likewise.
16984         * doc/make-stds.texi: Likewise.
16985         * doc/quote.texi: Likewise.
16986         * doc/regexprops-generic.texi: Likewise.
16987         * doc/standards.texi: Likewise.
16988         * doc/verify.texi: Likewise.
16989         * doc/visibility.texi: Likewise.
16990         * doc/gnulib.texi (GNU Free Documentation License): Include
16991         fdl-1.3.texi instead of fdl.texi.
16992
16993 2008-11-04  Simon Josefsson  <simon@josefsson.org>
16994
16995         * doc/fdl-1.3.texi: New file, from
16996         <http://www.gnu.org/licenses/fdl-1.3.texi>.
16997         * modules/fdl-1.3: Add.
16998         * MODULES.html.sh: Add fdl-1.3.
16999
17000 2008-11-03  Bruno Haible  <bruno@clisp.org>
17001
17002         Make determination of absolute name of header file work with AIX xlc.
17003         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
17004         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
17005         preprocessing.
17006         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17007         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
17008
17009 2008-11-03  Simon Josefsson  <simon@josefsson.org>
17010
17011         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
17012         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
17013         <ludo@gnu.org>.
17014
17015 2008-11-02  Bruno Haible  <bruno@clisp.org>
17016
17017         Mark 'strpbrk' obsolete.
17018         * modules/strpbrk (Status, Notice): New sections.
17019         * modules/strtok_r (Depends-on): Add strpbrk.
17020
17021 2008-11-02  Bruno Haible  <bruno@clisp.org>
17022
17023         Mark 'strdup' obsolete.
17024         * modules/strdup (Status, Notice): New sections.
17025         * modules/findprog (Depends-on): Add strdup.
17026         * modules/getaddrinfo (Depends-on): Likewise.
17027         * modules/localename (Depends-on): Likewise.
17028         * modules/relocatable-lib (Depends-on): Likewise.
17029         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
17030         * modules/relocatable-prog (Depends-on): Likewise.
17031         * modules/trim (Depends-on): Likewise.
17032         * modules/unictype/gen-ctype (Depends-on): Likewise.
17033         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17034
17035 2008-11-02  Bruno Haible  <bruno@clisp.org>
17036
17037         Mark 'strcspn' obsolete.
17038         * modules/strcspn (Status, Notice): New sections.
17039
17040 2008-11-02  Bruno Haible  <bruno@clisp.org>
17041
17042         Mark 'rmdir' obsolete.
17043         * modules/rmdir (Status, Notice): New sections.
17044         * modules/clean-temp (Depends-on): Add rmdir.
17045         * modules/openat (Depends-on): Likewise.
17046
17047 2008-11-02  Bruno Haible  <bruno@clisp.org>
17048
17049         Mark 'raise' obsolete.
17050         * modules/raise (Status, Notice): New sections.
17051         (Include): Specify <signal.h>.
17052         * modules/stdio (Depends-on): Add raise.
17053         * modules/write (Depends-on): Likewise.
17054
17055 2008-11-02  Bruno Haible  <bruno@clisp.org>
17056
17057         Mark 'memset' obsolete.
17058         * modules/memset (Status, Notice): New sections.
17059
17060 2008-11-02  Bruno Haible  <bruno@clisp.org>
17061
17062         Mark 'memmove' obsolete.
17063         * modules/memmove (Status, Notice): New sections.
17064         * modules/argp (Depends-on): Add memmove.
17065         * modules/argz (Depends-on): Likewise.
17066         * modules/canonicalize (Depends-on): Likewise.
17067         * modules/canonicalize-lgpl (Depends-on): Likewise.
17068         * modules/fts (Depends-on): Likewise.
17069         * modules/getcwd (Depends-on): Likewise.
17070         * modules/human (Depends-on): Likewise.
17071         * modules/regex (Depends-on): Likewise.
17072         * modules/striconveh (Depends-on): Likewise.
17073         * modules/trim (Depends-on): Likewise.
17074         * modules/unistr/u8-move (Depends-on): Likewise.
17075         * modules/unistr/u16-move (Depends-on): Likewise.
17076         * modules/unistr/u32-move (Depends-on): Likewise.
17077
17078 2008-11-02  Bruno Haible  <bruno@clisp.org>
17079
17080         Mark 'memcpy' obsolete.
17081         * modules/memcpy (Status, Notice): New sections.
17082
17083 2008-11-02  Bruno Haible  <bruno@clisp.org>
17084
17085         Mark 'memcmp' obsolete.
17086         * modules/memcmp (Status, Notice): New sections.
17087         * modules/argmatch (Depends-on): Add memchr.
17088         * modules/backupfile (Depends-on): Likewise.
17089         * modules/c-strcasestr (Depends-on): Likewise.
17090         * modules/crypto/des (Depends-on): Likewise.
17091         * modules/csharpcomp (Depends-on): Likewise.
17092         * modules/fnmatch (Depends-on): Likewise.
17093         * modules/git-merge-changelog (Depends-on): Likewise.
17094         * modules/isnand (Depends-on): Likewise.
17095         * modules/isnand-nolibm (Depends-on): Likewise.
17096         * modules/isnanf (Depends-on): Likewise.
17097         * modules/isnanf-nolibm (Depends-on): Likewise.
17098         * modules/isnanl (Depends-on): Likewise.
17099         * modules/isnanl-nolibm (Depends-on): Likewise.
17100         * modules/mbchar (Depends-on): Likewise.
17101         * modules/memcoll (Depends-on): Likewise.
17102         * modules/quotearg (Depends-on): Likewise.
17103         * modules/regex (Depends-on): Likewise.
17104         * modules/relocatable-prog (Depends-on): Likewise.
17105         * modules/same (Depends-on): Likewise.
17106         * modules/signbit (Depends-on): Likewise.
17107         * modules/strcasestr-simple (Depends-on): Likewise.
17108         * modules/unictype/gen-ctype (Depends-on): Likewise.
17109         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17110         * modules/uniname/uniname (Depends-on): Likewise.
17111         * modules/unistr/u8-cmp (Depends-on): Likewise.
17112
17113 2008-11-02  Bruno Haible  <bruno@clisp.org>
17114
17115         Mark 'memchr' obsolete.
17116         * modules/memchr (Status, Notice): New sections.
17117         * modules/argp (Depends-on): Add memchr.
17118         * modules/base64 (Depends-on): Likewise.
17119         * modules/c-strcasestr (Depends-on): Likewise.
17120         * modules/chdir-long (Depends-on): Likewise.
17121         * modules/fnmatch (Depends-on): Likewise.
17122         * modules/getsubopt (Depends-on): Likewise.
17123         * modules/git-merge-changelog (Depends-on): Likewise.
17124         * modules/glob (Depends-on): Likewise.
17125         * modules/strcasestr-simple (Depends-on): Likewise.
17126         * modules/strnlen (Depends-on): Likewise.
17127
17128 2008-11-02  Bruno Haible  <bruno@clisp.org>
17129
17130         Mark 'atexit' obsolete.
17131         * modules/atexit (Status, Notice): New sections.
17132         * modules/chdir-long (Depends-on): Add atexit.
17133         * modules/wait-process (Depends-on): Likewise.
17134
17135 2008-11-02  Bruno Haible  <bruno@clisp.org>
17136
17137         * gnulib-tool: New option --with-obsolete.
17138         (func_usage): Document it.
17139         (func_modules_transitive_closure): Drop obsolete dependencies if
17140         incobsolete is not true.
17141         (func_import): Read and save the incobsolete variable to the cache.
17142
17143 2008-11-02  Bruno Haible  <bruno@clisp.org>
17144
17145         * modules/TEMPLATE-EXTENDED: New field 'Status'.
17146         * gnulib-tool: New option --extract-status.
17147         (func_usage): Document it.
17148         (sed_extract_prog): Recognize it.
17149         (func_get_status): New function.
17150
17151 2008-10-30  Simon Josefsson  <simon@josefsson.org>
17152
17153         * modules/sockets (License): Change from LGPL to LGPLv2+.
17154
17155 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17156
17157         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
17158
17159 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17160
17161         * MODULES.html.sh (Support for systems lacking POSIX:2001):
17162         Mention times and sys_times.
17163         * modules/sys_times, modules/sys_times-tests: New modules.
17164         * modules/times, modules/times-tests: Likewise
17165         * m4/sys_times_h.m4: New file.
17166         * lib/sys_times.in.h: Likewise
17167         * lib/times.c: Likewise.
17168         * tests/test-sys_times.c: Likewise.
17169         * tests/test-times.c: Likewise.
17170         * doc/posix-headers/sys_times.texi: Update.
17171         * doc/posix-functions/times.texi: Update.
17172
17173 2008-10-28  Jim Meyering  <meyering@redhat.com>
17174
17175         * modules/tempname (Depends-on): Add lstat.
17176
17177         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
17178
17179 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17180
17181         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
17182         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
17183         using idiom used elsewhere in gnulib.
17184
17185 2008-10-27  Jim Meyering  <meyering@redhat.com>
17186
17187         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
17188
17189 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17190
17191         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
17192         TESTS_ENVIRONMENT, for shell scripts that needs to call built
17193         programs.
17194         * tests/test-argp-2.sh: Use $EXEEXT when needed.
17195
17196 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17197
17198         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
17199
17200 2008-10-27  Bruno Haible  <bruno@clisp.org>
17201
17202         * tests/test-lstat.c: Include <stdio.h>.
17203
17204 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17205
17206         * modules/lstat-tests: New module.
17207         * tests/test-lstat.c: New file.
17208
17209 2008-10-26  Jim Meyering  <meyering@redhat.com>
17210
17211         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
17212
17213 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17214             Bruno Haible  <bruno@clisp.org>
17215
17216         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
17217         * modules/configmake (Include): Add a note that the include must come
17218         after all system headers.
17219         * lib/javaversion.c: Include configmake.h after all other includes.
17220
17221 2008-10-26  Bruno Haible  <bruno@clisp.org>
17222
17223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
17224         HAVE_STRUCT_RANDOM_DATA to 1.
17225         (gl_STDLIB_H): Simplify.
17226
17227 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17228
17229         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
17230         substitute HAVE_STRUCT_RANDOM_DATA.
17231         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
17232         random_data.
17233         * modules/stdlib (Makefile.am): Substitute
17234         HAVE_STRUCT_RANDOM_DATA.
17235
17236 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17237
17238         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
17239         * doc/gnulib-intro.texi (Copyright): Likewise.
17240
17241 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17242
17243         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
17244         findings.
17245
17246 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
17247             Bruno Haible  <bruno@clisp.org>
17248
17249         * lib/unistd.in.h: Include <winsock2.h>.
17250         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
17251         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
17252         Provide dummy declarations.
17253         (gethostname): Override.
17254         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
17255         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
17256         gl_PREREQ_SYS_H_WINSOCK2.
17257         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
17258         * doc/posix-functions/gethostname.texi: More details.
17259
17260 2008-10-25  Bruno Haible  <bruno@clisp.org>
17261
17262         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17263         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
17264         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
17265
17266         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
17267         here ...
17268         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
17269         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
17270         gl_UNISTD_H_DEFAULTS.
17271
17272 2008-10-25  Eric Blake  <ebb9@byu.net>
17273
17274         signbit: avoid spurious compiler failure
17275         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
17276         declarations inside function.
17277
17278 2008-10-24  Simon Josefsson  <simon@josefsson.org>
17279             Bruno Haible  <bruno@clisp.org>
17280
17281         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
17282         * modules/random_r (Depends-on): Add stdint.
17283
17284 2008-10-24  Bruno Haible  <bruno@clisp.org>
17285
17286         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
17287         Eggert.
17288         * modules/strerror (License): Likewise.
17289
17290 2008-10-24  Jim Meyering  <meyering@redhat.com>
17291
17292         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
17293         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
17294
17295 2008-10-24  Eric Blake  <ebb9@byu.net>
17296
17297         getgroups: fix compilation when getgroups is available
17298         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
17299         but with <config.h> override of getgroups disabled.
17300
17301 2008-10-24  Simon Josefsson  <simon@josefsson.org>
17302
17303         * doc/gnulib.texi (Header files): Add note about C++ problems.
17304         Explained by Bruno Haible <bruno@clisp.org>.
17305
17306 2008-10-23  Bruno Haible  <bruno@clisp.org>
17307
17308         Define a dummy SA_NODEFER macro on Interix.
17309         * lib/signal.in.h (SA_NODEFER): Define fallback.
17310         Reported by Aleksey Cheusov <cheusov@tut.by> via
17311         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
17312
17313 2008-10-23  Bruno Haible  <bruno@clisp.org>
17314
17315         * modules/freadahead (License): Change to LGPLv2+.
17316         Suggested by Simon Josefsson.
17317
17318 2008-10-23  Jim Meyering  <meyering@redhat.com>
17319
17320         random_r: new module
17321         * modules/random_r: New file.
17322         * m4/random_r.m4: New file.
17323         * lib/random_r.c: New file, from glibc.
17324         * modules/random_r-tests: New file.
17325         * tests/test-random_r.c: New file.
17326         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
17327          Declare.
17328         (RAND_MAX): Define.
17329         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
17330         * modules/stdlib: Substitute them, too.
17331         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
17332         * doc/glibc-functions/initstate_r.texi: Mention the new module.
17333         * doc/glibc-functions/random_r.texi: Likewise.
17334         * doc/glibc-functions/setstate_r.texi: Likewise.
17335         * doc/glibc-functions/srandom_r.texi: Likewise.
17336         * config/srclist.txt: Mention it.
17337
17338 2008-10-23  David Lutterkort  <lutter@redhat.com>
17339
17340         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
17341         link requirement
17342
17343 2008-10-23  Jim Meyering  <meyering@redhat.com>
17344
17345         selinux-h: mark parameters of stub functions as intentionally unused
17346         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
17347         * lib/se-context.in.h: Likewise.
17348
17349 2008-10-22  Simon Josefsson  <simon@josefsson.org>
17350
17351         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
17352
17353 2008-10-22  Simon Josefsson  <simon@josefsson.org>
17354
17355         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
17356
17357 2008-10-22  Eric Blake  <ebb9@byu.net>
17358
17359         glthread/thread: avoid compiler warning
17360         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
17361         Add unreachable abort to silence compiler.
17362
17363 2008-10-22  Eric Blake  <ebb9@byu.net>
17364
17365         netdb: also supply struct addrinfo for cygwin 1.5.x
17366         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
17367         older cygwin.
17368         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
17369         cygwin.
17370         * doc/posix-headers/netdb.texi (netdb.h): Document this.
17371
17372 2008-10-22  Bruno Haible  <bruno@clisp.org>
17373
17374         * users.txt: Update entry about pspp.
17375
17376 2008-10-21  Bruno Haible  <bruno@clisp.org>
17377
17378         Simplification.
17379         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
17380         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
17381
17382         Simplification.
17383         * lib/ioctl.c (ioctl): Don't undefine.
17384         * lib/socket.c (socket): Don't undefine.
17385
17386         Remove unused module indicator macros.
17387         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
17388         GNULIB_$1 as a C macro.
17389
17390         * doc/posix-functions/close.texi: Undo last change.
17391         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
17392         Windows platforms.
17393
17394 2008-10-21  Bruno Haible  <bruno@clisp.org>
17395
17396         Add gethostname() declaration to <unistd.h>.
17397         * lib/unistd.in.h (gethostname): New declaration.
17398         * lib/gethostname.c: Include <unistd.h>.
17399         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
17400         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
17401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
17402         and HAVE_GETHOSTNAME.
17403         * modules/gethostname (Depends-on): Add unistd.
17404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17405         (Include): Specify <unistd.h>.
17406         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
17407         HAVE_GETHOSTNAME.
17408         * tests/test-gethostname.c: Include <unistd.h> first.
17409
17410 2008-10-21  Bruno Haible  <bruno@clisp.org>
17411
17412         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
17413         * modules/select-tests (Depends-on): Likewise.
17414         Reported by Simon Josefsson.
17415
17416 2008-10-21  Simon Josefsson  <simon@josefsson.org>
17417
17418         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
17419         * lib/accept.c: New file, based on winsock.c.
17420         * lib/bind.c: New file, based on winsock.c.
17421         * lib/connect.c: New file, based on winsock.c.
17422         * lib/getpeername.c: New file, based on winsock.c.
17423         * lib/getsockname.c: New file, based on winsock.c.
17424         * lib/getsockopt.c: New file, based on winsock.c.
17425         * lib/ioctl.c: New file, based on winsock.c.
17426         * lib/listen.c: New file, based on winsock.c.
17427         * lib/recv.c: New file, based on winsock.c.
17428         * lib/recvfrom.c: New file, based on winsock.c.
17429         * lib/send.c: New file, based on winsock.c.
17430         * lib/sendto.c: New file, based on winsock.c.
17431         * lib/setsockopt.c: New file, based on winsock.c.
17432         * lib/shutdown.c: New file, based on winsock.c.
17433         * lib/socket.c: New file, based on winsock.c.
17434         * lib/w32sock.h: New file, based on winsock.c.
17435         * lib/winsock.c: Remove file.
17436         * modules/accept: Likewise.
17437         * modules/bind: Likewise.
17438         * modules/connect: Likewise.
17439         * modules/getpeername: Likewise.
17440         * modules/getsockname: Likewise.
17441         * modules/getsockopt: Likewise.
17442         * modules/ioctl: Likewise.
17443         * modules/listen: Likewise.
17444         * modules/recv: Likewise.
17445         * modules/recvfrom: Likewise.
17446         * modules/send: Likewise.
17447         * modules/sendto: Likewise.
17448         * modules/setsockopt: Likewise.
17449         * modules/shutdown: Likewise.
17450         * modules/socket: Use socket.c instead of winsock.c.
17451         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
17452         * doc/posix-functions/accept.texi: Doc fix.
17453         * doc/posix-functions/bind.texi: Doc fix.
17454         * doc/posix-functions/close.texi: Doc fix.
17455         * doc/posix-functions/connect.texi: Doc fix.
17456         * doc/posix-functions/getpeername.texi: Doc fix.
17457         * doc/posix-functions/getsockname.texi: Doc fix.
17458         * doc/posix-functions/getsockopt.texi: Doc fix.
17459         * doc/posix-functions/ioctl.texi: Doc fix.
17460         * doc/posix-functions/listen.texi: Doc fix.
17461         * doc/posix-functions/recv.texi: Doc fix.
17462         * doc/posix-functions/recvfrom.texi: Doc fix.
17463         * doc/posix-functions/send.texi: Doc fix.
17464         * doc/posix-functions/sendto.texi: Doc fix.
17465         * doc/posix-functions/setsockopt.texi: Doc fix.
17466         * doc/posix-functions/shutdown.texi: Doc fix.
17467         * doc/posix-functions/socket.texi: Doc fix.
17468
17469 2008-10-20  Bruno Haible  <bruno@clisp.org>
17470
17471         Take into account the role of SIGABRT_COMPAT on Windows 2008.
17472         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
17473         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
17474         as an alias for SIGABRT.
17475         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
17476         (sigaction): Map it to SIGABRT.
17477         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
17478
17479 2008-10-20  Bruno Haible  <bruno@clisp.org>
17480
17481         * lib/fts.c: Don't include lstat.h.
17482         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
17483
17484         Move the lstat() declaration to <sys/stat.h>.
17485         * lib/lstat.h: Remove file.
17486         * lib/sys_stat.in.h: Add special invocation convention.
17487         (lstat): New declaration.
17488         * lib/lstat.c (orig_lstat): New function.
17489         (rpl_lstat): Use orig_lstat instead of lstat.
17490         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
17491         AC_C_INLINE. Set REPLACE_LSTAT.
17492         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
17493         and REPLACE_LSTAT.
17494         * modules/lstat (Files): Remove lib/lstat.h.
17495         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
17496         (Include): Specify <sys/stat.h> instead of lstat.h.
17497         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
17498         REPLACE_LSTAT.
17499         * NEWS: Mention the change.
17500
17501 2008-10-20  Bruno Haible  <bruno@clisp.org>
17502
17503         * modules/posix_spawn-tests: New file.
17504         * tests/test-posix_spawn3.c: New file.
17505
17506 2008-10-20  Bruno Haible  <bruno@clisp.org>
17507
17508         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
17509         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
17510         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
17511         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
17512         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
17513
17514 2008-10-20  Bruno Haible  <bruno@clisp.org>
17515
17516         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
17517         of posix_spawn on AIX 5.3.
17518
17519 2008-10-20  Bruno Haible  <bruno@clisp.org>
17520
17521         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
17522
17523 2008-10-20  Bruno Haible  <bruno@clisp.org>
17524
17525         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
17526         of AC_LANG_PROGRAM.
17527
17528 2008-10-20  Simon Josefsson  <simon@josefsson.org>
17529
17530         * lib/netdb.in.h: Don't define GNU specific constants until they
17531         are supported or needed.  Reported by Bruno Haible
17532         <bruno@clisp.org>.
17533
17534 2008-10-20  Simon Josefsson  <simon@josefsson.org>
17535
17536         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
17537
17538 2008-10-20  Simon Josefsson  <simon@josefsson.org>
17539
17540         * lib/getaddrinfo.h: Remove file.
17541         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
17542         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
17543         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
17544         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
17545         * modules/netdb: Substitute GNULIB_GETADDRINFO.
17546         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
17547         * tests/test-getaddrinfo.c: Likewise.
17548         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
17549         * NEWS: Mention change.
17550
17551 2008-10-19  Bruno Haible  <bruno@clisp.org>
17552
17553         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
17554
17555 2008-10-19  Bruno Haible  <bruno@clisp.org>
17556
17557         * lib/wait-process.c: Include simply <sys/wait.h>.
17558         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
17559         WIFSTOPPED): Remove fallback definitions.
17560         * modules/wait-process (Depends-on): Add sys_wait.
17561
17562         New module 'sys_wait'.
17563         * modules/sys_wait: New file.
17564         * lib/sys_wait.in.h: New file, partially copied from
17565         lib/wait-process.c.
17566         * m4/sys_wait_h.m4: New file.
17567         * doc/posix-headers/sys_wait.texi: Mention the new module.
17568
17569 2008-10-19  Bruno Haible  <bruno@clisp.org>
17570
17571         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
17572
17573 2008-10-19  Bruno Haible  <bruno@clisp.org>
17574
17575         Assume that waitpid() fills an 'int' status, not a 'union wait'.
17576         * lib/wait-process.c (WAIT_T): Remove type.
17577         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
17578         (wait_subprocess): Update.
17579
17580 2008-10-19  Bruno Haible  <bruno@clisp.org>
17581
17582         New module 'atoll'.
17583         * modules/atoll: New file.
17584         * lib/stdlib.in.h (atoll): New declaration.
17585         * lib/atoll.c: New file, from glibc with modifications.
17586         * m4/atoll.m4: New file.
17587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
17588         HAVE_ATOLL.
17589         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
17590         * doc/posix-functions/atoll.texi: Mention the new module.
17591
17592 2008-10-19  Bruno Haible  <bruno@clisp.org>
17593
17594         Add strtoull() declaration to <stdlib.h>.
17595         * lib/stdlib.in.h (strtoull): New declaration.
17596         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
17597         Set HAVE_STRTOULL.
17598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
17599         HAVE_STRTOULL.
17600         * modules/strtoull (Depends-on): Add stdlib.
17601         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17602         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
17603         HAVE_STRTOULL.
17604
17605 2008-10-19  Bruno Haible  <bruno@clisp.org>
17606
17607         Add strtoll() declaration to <stdlib.h>.
17608         * lib/stdlib.in.h (strtoll): New declaration.
17609         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
17610         Set HAVE_STRTOLL.
17611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
17612         HAVE_STRTOLL.
17613         * modules/strtoll (Depends-on): Add stdlib.
17614         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17615         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
17616
17617 2008-10-19  Bruno Haible  <bruno@clisp.org>
17618
17619         * modules/bcopy (Depends-on): Add strings.
17620         (Include): Specify <strings.h>.
17621
17622 2008-10-19  Bruno Haible  <bruno@clisp.org>
17623
17624         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
17625
17626 2008-10-19  Bruno Haible  <bruno@clisp.org>
17627
17628         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
17629         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
17630         mingw.
17631
17632 2008-10-19  Bruno Haible  <bruno@clisp.org>
17633
17634         * lib/atanl.c: Don't include isnanl.h.
17635         * lib/cosl.c: Likewise.
17636         * lib/ldexpl.c: Likewise.
17637         * lib/logl.c: Likewise.
17638         * lib/sinl.c: Likewise.
17639         * lib/sqrtl.c: Likewise.
17640         * lib/tanl.c: Likewise.
17641
17642         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
17643         * lib/isnanf.h: Remove file.
17644         * lib/isnand.h: Remove file.
17645         * lib/isnanl.h: Remove file.
17646         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
17647         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
17648         macros.
17649         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
17650         HAVE_ISNANF, don't define it as a C macro.
17651         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
17652         HAVE_ISNAND, don't define it as a C macro.
17653         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
17654         HAVE_ISNANL, don't define it as a C macro.
17655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
17656         HAVE_ISNAN[FDL].
17657         * modules/isnanf (Files): Remove lib/isnanf.h.
17658         (Depends-on): Add math.
17659         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17660         (Include): Specify <math.h> instead of isnanf.h.
17661         * modules/isnand (Files): Remove lib/isnand.h.
17662         (Depends-on): Add math.
17663         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17664         (Include): Specify <math.h> instead of isnand.h.
17665         * modules/isnanl (Files): Remove lib/isnanl.h.
17666         (Depends-on): Add math.
17667         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17668         (Include): Specify <math.h> instead of isnanl.h.
17669         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
17670         HAVE_ISNAN[FDL].
17671         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
17672         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
17673         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
17674         * NEWS: Mention the change.
17675
17676 2008-10-18  Bruno Haible  <bruno@clisp.org>
17677
17678         Add getusershell(), setusershell(), endusershell() declarations to
17679         <unistd.h>.
17680         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
17681         declarations.
17682         * lib/getusershell.c: Include unistd.h.
17683         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
17684         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
17685         HAVE_GETUSERSHELL.
17686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
17687         and HAVE_GETUSERSHELL.
17688         * modules/getusershell (Depends-on): Add unistd, extensions.
17689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17690         (Include): Specify <unistd.h>.
17691         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
17692         HAVE_GETUSERSHELL.
17693
17694 2008-10-18  Bruno Haible  <bruno@clisp.org>
17695
17696         Add a getloadavg() declaration to <stdlib.h>.
17697         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
17698         getloadavg declaration.
17699         (getloadavg): New declaration.
17700         * lib/getloadavg.c: Include <stdlib.h> first.
17701         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
17702         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
17703         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
17704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
17705         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
17706         * modules/getloadavg (Depends-on): Add stdlib, extensions.
17707         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17708         (Include): Specify <stdlib.h>.
17709         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
17710         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
17711
17712 2008-10-18  Bruno Haible  <bruno@clisp.org>
17713
17714         * lib/dirchownmod.c: Don't include lchmod.h.
17715
17716         Move the lchmod() declaration to <sys/stat.h>.
17717         * lib/lchmod.h: Remove file.
17718         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
17719         (lchmod): New declaration, moved here from lib/lchown.h.
17720         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
17721         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
17722         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
17723         and HAVE_LCHMOD.
17724         * modules/lchmod (Files): Remove lib/lchmod.h.
17725         (Depends-on): Add sys_stat, extensions.
17726         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
17727         (Include): Specify <sys/stat.h> instead of lchmod.h.
17728         * modules/sys_stat (Depends-on): Add link-warning.
17729         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
17730         definition of GL_LINK_WARNING.
17731         * NEWS: Mention the change.
17732
17733 2008-10-18  Bruno Haible  <bruno@clisp.org>
17734
17735         * lib/fchdir.c: Don't include dirfd.h.
17736         * lib/fts.c: Likewise.
17737         * lib/getcwd.c: Likewise.
17738         * lib/glob.c: Likewise.
17739
17740         Move the dirfd() declaration to <dirent.h>.
17741         * lib/dirfd.h: Remove file.
17742         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
17743         (dirfd): New declaration.
17744         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
17745         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
17746         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
17747         HAVE_DECL_DIRFD.
17748         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
17749         HAVE_DECL_DIRFD.
17750         * modules/dirfd (Files): Remove lib/dirfd.h.
17751         (Depends-on): Add dirent, extensions.
17752         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
17753         (Include): Specify <dirent.h> instead of dirfd.h.
17754         * modules/dirent (Depends-on): Add link-warning.
17755         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
17756         definition of GL_LINK_WARNING.
17757         * NEWS: Mention the change.
17758
17759 2008-10-18  Bruno Haible  <bruno@clisp.org>
17760
17761         Move the euidaccess() declaration to <unistd.h>.
17762         * lib/euidaccess.h: Remove file.
17763         * lib/unistd.in.h (euidaccess): New declaration.
17764         * lib/euidaccess.c: Don't include euidaccess.h.
17765         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
17766         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
17767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
17768         and HAVE_EUIDACCESS.
17769         * modules/euidaccess (Files): Remove lib/euidaccess.h.
17770         (Depends-on): Add unistd.
17771         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17772         (Include): Specify <unistd.h> instead of euidaccess.h.
17773         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
17774         HAVE_EUIDACCESS.
17775         * NEWS: Mention the change.
17776
17777 2008-10-18  Bruno Haible  <bruno@clisp.org>
17778
17779         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
17780
17781         Move the getdomainname() declaration to <unistd.h>.
17782         * lib/getdomainname.h: Remove file.
17783         * lib/unistd.in.h (getdomainname): New declaration.
17784         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
17785         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17786         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
17787         HAVE_GETDOMAINNAME.
17788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17789         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
17790         * modules/getdomainname (Files): Remove lib/getdomainname.h.
17791         (Depends-on): Add unistd, extensions.
17792         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17793         (Includes): Specify <unistd.h> instead of getdomainname.h.
17794         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
17795         HAVE_GETDOMAINNAME.
17796         * NEWS: Mention the change.
17797
17798 2008-10-18  Bruno Haible  <bruno@clisp.org>
17799
17800         * modules/dirent: New file.
17801         * m4/dirent_h.m4: New file.
17802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
17803         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
17804         * modules/fchdir (Files): Remove lib/dirent.in.h.
17805         (Depends-on): Add dirent.
17806         (Makefile.am): Move rules to modules/dirent.
17807         * doc/posix-headers/dirent.texi: Mention the new module.
17808
17809 2008-10-18  Bruno Haible  <bruno@clisp.org>
17810
17811         Avoid -Wunused-parameter warnings in public gnulib header files.
17812         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
17813         macro.
17814         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
17815
17816 2008-10-18  Bruno Haible  <bruno@clisp.org>
17817
17818         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
17819         * doc/glibc-functions/error.texi: Mention the module 'error'.
17820         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
17821         * doc/glibc-functions/getdomainname.texi: Mention the module
17822         'getdomainname'.
17823         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
17824         * doc/glibc-functions/getpagesize.texi: Mention the module
17825         'getpagesize'.
17826         * doc/glibc-functions/getusershell.texi: Mention the module
17827         'getusershell'.
17828         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
17829         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
17830         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
17831         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
17832         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
17833         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
17834         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
17835         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
17836         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
17837         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
17838         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
17839         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
17840         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
17841         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
17842
17843 2008-10-17  Bruno Haible  <bruno@clisp.org>
17844
17845         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
17846         HP-UX and IRIX, use -0.0L.
17847         * tests/test-ceill.c (minus_zero): Likewise.
17848         * tests/test-floorl.c (minus_zero): Likewise.
17849         * tests/test-frexpl.c (minus_zero): Likewise.
17850         * tests/test-isnan.c (minus_zerol): Likewise.
17851         * tests/test-isnanl.h (minus_zero): Likewise.
17852         * tests/test-ldexpl.c (minus_zero): Likewise.
17853         * tests/test-roundl.c (minus_zero): Likewise.
17854         * tests/test-signbit.c (minus_zerol): Likewise.
17855         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17856         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17857         * tests/test-truncl.c (minus_zero): Likewise.
17858         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17859         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17860         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
17861         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17862
17863 2008-10-17  Bruno Haible  <bruno@clisp.org>
17864
17865         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
17866         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
17867         that it gets activated only for gcc >= 3.0.
17868         * lib/dirent.in.h: Likewise.
17869         * lib/errno.in.h: Likewise.
17870         * lib/fcntl.in.h: Likewise.
17871         * lib/float.in.h: Likewise.
17872         * lib/iconv.in.h: Likewise.
17873         * lib/inttypes.in.h: Likewise.
17874         * lib/locale.in.h: Likewise.
17875         * lib/math.in.h: Likewise.
17876         * lib/netdb.in.h: Likewise.
17877         * lib/netinet_in.in.h: Likewise.
17878         * lib/search.in.h: Likewise.
17879         * lib/signal.in.h: Likewise.
17880         * lib/spawn.in.h: Likewise.
17881         * lib/stdarg.in.h: Likewise.
17882         * lib/stdint.in.h: Likewise.
17883         * lib/stdio.in.h: Likewise.
17884         * lib/stdlib.in.h: Likewise.
17885         * lib/string.in.h: Likewise.
17886         * lib/strings.in.h: Likewise.
17887         * lib/sys_file.in.h: Likewise.
17888         * lib/sys_ioctl.in.h: Likewise.
17889         * lib/sys_select.in.h: Likewise.
17890         * lib/sys_socket.in.h: Likewise.
17891         * lib/sys_stat.in.h: Likewise.
17892         * lib/sys_time.in.h: Likewise.
17893         * lib/sysexits.in.h: Likewise.
17894         * lib/time.in.h: Likewise.
17895         * lib/unistd.in.h: Likewise.
17896         * lib/wchar.in.h: Likewise.
17897         * lib/wctype.in.h: Likewise.
17898         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17899
17900 2008-10-17  Jim Meyering  <meyering@redhat.com>
17901
17902         ignore-value: don't depend on inline module
17903         * modules/ignore-value (Depends-on): Remove 'inline'.
17904         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
17905         Suggestion from Bruno Haible.
17906
17907 2008-10-17  Bruno Haible  <bruno@clisp.org>
17908
17909         New implementation of condition variables for Win32.
17910         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
17911         (gl_linked_waitqueue_t): New type.
17912         (gl_cond_t): Use it.
17913         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
17914         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
17915         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
17916         (glthread_cond_init_func, glthread_cond_wait_func,
17917         glthread_cond_timedwait_func, glthread_cond_signal_func,
17918         glthread_cond_broadcast_func, glthread_cond_destroy_func):
17919         Reimplemented on the basis of gl_linked_waitqueue_t.
17920         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
17921         gl_waitqueue_t.
17922         (gl_rwlock_t): Update.
17923         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
17924
17925 2008-10-17  Simon Josefsson  <simon@josefsson.org>
17926
17927         * modules/recvfrom (Depends-on): Add dependency on getpeername.
17928         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17929
17930 2008-10-17  Jim Meyering  <meyering@redhat.com>
17931
17932         ignore-value: new module
17933         * modules/ignore-value: New file.
17934         * lib/ignore-value.h: New file.
17935         * MODULES.html.sh (Compiler warning management): New section,
17936         just for this module.  More to come.
17937
17938 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17939
17940         open-safer.c: avoid 'signed and unsigned in conditional...' warning
17941         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
17942         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
17943
17944 2008-10-16  Jim Meyering  <meyering@redhat.com>
17945
17946         openat-die.c: avoid 'no previous prototype' warning
17947         * lib/openat-die.c: Include "openat.h".
17948         Reported by Reuben Thomas <rrt@sc3d.org>.
17949
17950 2008-10-16  Simon Josefsson  <simon@josefsson.org>
17951
17952         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
17953         * lib/netdb.in.h: Fix typo.
17954         Reported by Bruno Haible  <bruno@clisp.org>
17955
17956         * lib/netdb.in.h: Include sys/socket.h for platforms without
17957         netdb.h, to get structures like hostent on MinGW.
17958         * modules/netdb (Depends-on): Add sys_socket.
17959
17960 2008-10-15  Simon Josefsson  <simon@josefsson.org>
17961
17962         * modules/netdb, modules/netdb-tests: New file.
17963         * m4/netdb_h.m4: New file.
17964         * lib/netdb.in.h: Add, currently just an empty file pending
17965         definitions.
17966         * tests/test-netdb.c: New file.
17967         * doc/posix-headers/netdb.texi: Mention that we replace it if
17968         needed.
17969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17970         netdb.
17971
17972 2008-10-15  Simon Josefsson  <simon@josefsson.org>
17973
17974         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
17975         with code.
17976
17977 2008-10-13  Bruno Haible  <bruno@clisp.org>
17978
17979         * lib/glthread/cond.c (glthread_cond_wait_func,
17980         glthread_cond_timedwait_func): Add a comment.
17981
17982 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17983
17984         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
17985         * tests/test-select.c: Likewise,
17986
17987 2008-10-13  Bruno Haible  <bruno@clisp.org>
17988
17989         * lib/glthread/cond.c (glthread_cond_wait_func,
17990         glthread_cond_timedwait_func): Fix variable name.
17991         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17992
17993 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
17994
17995         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
17996         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
17997         struct sockaddr.sa_len.
17998         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
17999
18000 2008-10-13  Simon Josefsson  <simon@josefsson.org>
18001
18002         * build-aux/pmccabe2html: Add css and css_url parameters.
18003
18004 2008-10-12  Bruno Haible  <bruno@clisp.org>
18005
18006         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
18007         calling aclx_get.
18008         Reported by Rainer Tammer <tammer@tammer.net>.
18009
18010 2008-10-12  Bruno Haible  <bruno@clisp.org>
18011
18012         Use msvcrt aware primitives for creation/termination of Win32 threads.
18013         * lib/glthread/thread.c: Include <process.h>.
18014         (glthread_create_func): Use _beginthreadex instead of CreateThread.
18015         (wrapper_func): Update signature.
18016         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
18017
18018 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18019             Bruno Haible  <bruno@clisp.org>
18020
18021         Provide a Win32 implementation of the 'cond' module.
18022         * lib/glthread/cond.h [USE_WIN32]: New implementation.
18023         * lib/glthread/cond.c (glthread_cond_init_func,
18024         glthread_cond_wait_func, glthread_cond_timedwait_func,
18025         glthread_cond_signal_func, glthread_cond_broadcast_func,
18026         glthread_cond_destroy_func) [USE_WIN32]: New functions.
18027         * modules/cond (Dependencies): Add gettimeofday.
18028
18029 2008-10-11  Bruno Haible  <bruno@clisp.org>
18030
18031         Make sleep work on older versions of mingw.
18032         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
18033         only whether it exists.
18034         * doc/posix-functions/sleep.texi: Mention the problem with older
18035         versions of mingw.
18036
18037 2008-10-11  Bruno Haible  <bruno@clisp.org>
18038
18039         New module 'shutdown'.
18040         * modules/shutdown: New file.
18041         * lib/sys_socket.in.h (shutdown): New declaration.
18042         * lib/winsock.c (shutdown): New function.
18043         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18044         GNULIB_SHUTDOWN.
18045         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
18046         * doc/posix-functions/shutdown.texi: Document the new module.
18047
18048 2008-10-11  Jim Meyering  <meyering@redhat.com>
18049
18050         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
18051
18052 2008-10-11  Bruno Haible  <bruno@clisp.org>
18053
18054         New module 'fclose'.
18055         * modules/fclose: New file.
18056         * lib/stdio.in.h (fclose): New declaration.
18057         * lib/fclose.c: New file.
18058         * m4/fclose.m4: New file.
18059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
18060         REPLACE_FCLOSE.
18061         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
18062         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
18063         REPLACE_FCLOSE.
18064         * modules/close (Depends-on): fclose.
18065         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
18066
18067 2008-10-11  Bruno Haible  <bruno@clisp.org>
18068
18069         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
18070         set errno and don't call _close.
18071
18072 2008-10-10  Bruno Haible  <bruno@clisp.org>
18073
18074         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
18075         ACL, not afterwards. Fixes test failure on Cygwin.
18076
18077 2008-10-09  Ben Pfaff  <blp@gnu.org>
18078
18079         * build-aux/announce-gen: Fix gnulib version related part of usage
18080         message.  Die with a useful error message if no tarballs are
18081         found.
18082
18083 2008-10-10  Jim Meyering  <meyering@redhat.com>
18084
18085         bootstrap: use git's --depth=N option only if it's supported
18086         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
18087         recognize the --depth option.  Reported by Pádraig Brady.
18088
18089 2008-10-09  Bruno Haible  <bruno@clisp.org>
18090
18091         New module 'ioctl'.
18092         * modules/ioctl: New file.
18093         * lib/sys_socket.in.h (ioctl): Remove declaration.
18094         * lib/winsock.c: Include <sys/ioctl.h>.
18095         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
18096         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18097         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
18098         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
18099         * doc/posix-functions/ioctl.texi: Mention the new module.
18100
18101 2008-10-09  Bruno Haible  <bruno@clisp.org>
18102
18103         New module 'sys_ioctl'.
18104         * lib/sys_ioctl.in.h: New file.
18105         * m4/sys_ioctl_h.m4: New file.
18106         * modules/sys_ioctl: New file.
18107         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
18108
18109 2008-10-09  Bruno Haible  <bruno@clisp.org>
18110
18111         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
18112         * lib/winsock.c: Include <stdarg.h>.
18113         (rpl_ioctl): Change to second argument 'int' and then varargs.
18114
18115 2008-10-09  Bruno Haible  <bruno@clisp.org>
18116
18117         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
18118         when the sys_socket module is present and the system has <winsock2.h>.
18119
18120 2008-10-09  Bruno Haible  <bruno@clisp.org>
18121
18122         * doc/posix-functions/close.texi: Mention module 'close' instead of
18123         module 'sys_socket'.
18124
18125 2008-10-09  Bruno Haible  <bruno@clisp.org>
18126
18127         * doc/glibc-headers/sys_ioctl.texi: New file.
18128         * doc/gnulib.texi: Include it.
18129
18130 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18131             Bruno Haible  <bruno@clisp.org>
18132
18133         Combine the two replacements of 'close'.
18134         * lib/sys_socket.in.h (close): Define to a reminder to include
18135         <unistd.h>.
18136         (_gl_close_fd_maybe_socket): New declaration.
18137         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
18138         * lib/winsock.c (close): Remove undefinition.
18139         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
18140         needed for the gnulib module 'close'.
18141         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
18142         define to an error symbol or to a warning, if suitable.
18143         * lib/close.c: Include <sys/socket.h>.
18144         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
18145         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
18146         UNISTD_H_HAVE_WINSOCK2_H.
18147         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
18148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18149         UNISTD_H_HAVE_WINSOCK2_H.
18150         * modules/sys_socket (Files): Add m4/unistd_h.m4.
18151         (configure.ac): Set a module indicator.
18152         (Makefile.am): Substitute GNULIB_CLOSE.
18153         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
18154         * modules/poll-tests (Depends-on): Add close.
18155         * modules/select-tests (Depends-on): Likewise.
18156
18157 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18158             Bruno Haible  <bruno@clisp.org>
18159
18160         New module 'close'.
18161         * modules/close: New file.
18162         * lib/unistd.in.h (close): Move declaration out of the
18163         FCHDIR_REPLACEMENT scope.
18164         (_gl_unregister_fd): New declaration.
18165         * lib/close.c: New file.
18166         * lib/fchdir.c (rpl_close): Remove function.
18167         * m4/close.m4: New file.
18168         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18169         close.
18170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
18171         REPLACE_CLOSE.
18172         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
18173         REPLACE_CLOSE.
18174         * modules/fchdir (Depends-on): Add close.
18175
18176 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18177             Bruno Haible  <bruno@clisp.org>
18178
18179         * lib/fcntl.in.h (open): Simplify conditionals.
18180         (_gl_register_fd): New declaration.
18181         * lib/fchdir.c (rpl_open): Remove function.
18182         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
18183         also.
18184         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
18185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18186         open.
18187
18188 2008-10-09  Jim Meyering  <meyering@redhat.com>
18189
18190         GNUmakefile: use the more name-space-friendly "_version"
18191         * top/GNUmakefile (_dummy): Update.
18192         (_version): Rename from "version".
18193
18194 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18195             Bruno Haible  <bruno@clisp.org>
18196
18197         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
18198         rpl_close.
18199         (_gl_register_fd): New function, extracted from rpl_open.
18200         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
18201         (rpl_open, rpl_opendir): Use _gl_register_fd.
18202
18203 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18204
18205         Fix organization of 'open' replacement.
18206         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
18207         (gl_FUNC_OPEN): Use it.
18208         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
18209
18210 2008-10-08  Bruno Haible  <bruno@clisp.org>
18211
18212         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
18213
18214 2008-10-08  Simon Josefsson  <simon@josefsson.org>
18215
18216         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
18217         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
18218         listen).
18219
18220 2008-10-08  Eric Blake  <ebb9@byu.net>
18221
18222         GNUmakefile: add 'make version' target
18223         * top/GNUmakefile (_curr-ver): Split version update rules...
18224         (version): ...into a target.
18225
18226 2008-10-07  Bruno Haible  <bruno@clisp.org>
18227
18228         Use a more portable replacement expression for -0.0L.
18229         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
18230         instead of -0.0L. Fix m4 quotation.
18231
18232         * tests/test-signbit.c: Include <float.h>.
18233         (minus_zero): New variable.
18234         (test_signbitl): Use minus_zero instead of -zero.
18235         * modules/signbit-tests (Depends-on): Add float.
18236
18237         * tests/test-ceill.c: Include <float.h>.
18238         (zero): Remove variable.
18239         (minus_zero): New variable.
18240         (main): Use minus_zero instead of -zero.
18241         * modules/ceill-tests (Depends-on): Add float.
18242
18243         * tests/test-floorl.c: Include <float.h>.
18244         (zero): Remove variable.
18245         (minus_zero): New variable.
18246         (main): Use minus_zero instead of -zero.
18247         * modules/floorl-tests (Depends-on): Add float.
18248
18249         * tests/test-roundl.c: Include <float.h>.
18250         (zero): Remove variable.
18251         (minus_zero): New variable.
18252         (main): Use minus_zero instead of -zero.
18253         * modules/roundl-tests (Depends-on): Add float.
18254
18255         * tests/test-truncl.c: Include <float.h>.
18256         (zero): Remove variable.
18257         (minus_zero): New variable.
18258         (main): Use minus_zero instead of -zero.
18259         * modules/truncl-tests (Depends-on): Add float.
18260
18261         * tests/test-frexpl.c (zero): Remove variable.
18262         (minus_zero): New variable.
18263         (main): Use minus_zero instead of -zero.
18264         * modules/frexpl-tests (Depends-on): Add float.
18265
18266         * tests/test-isnan.c (zerol): Remove variable.
18267         (minus_zerol): New variable.
18268         (test_long_double): Use minus_zerol instead of -zerol.
18269         * modules/isnan-tests (Depends-on): Add float.
18270
18271         * tests/test-isnanl.h (zero): Remove variable.
18272         (minus_zero): New variable.
18273         (main): Use minus_zero instead of -zero.
18274         * modules/isnanl-nolibm-tests (Depends-on): Add float.
18275         * modules/isnanl-tests (Depends-on): Add float.
18276
18277         * tests/test-ldexpl.c (zero): Remove variable.
18278         (minus_zero): New variable.
18279         (main): Use minus_zero instead of -zero.
18280         * modules/ldexpl-tests (Depends-on): Add float.
18281
18282         * tests/test-snprintf-posix.h (zerol): Remove variable.
18283         (minus_zerol): New variable.
18284         (test_function): Use minus_zerol instead of -zerol.
18285         * modules/snprintf-posix-tests (Depends-on): Add float.
18286         * modules/vsnprintf-posix-tests (Depends-on): Add float.
18287
18288         * tests/test-sprintf-posix.h (zerol): Remove variable.
18289         (minus_zerol): New variable.
18290         (test_function): Use minus_zerol instead of -zerol.
18291         * modules/sprintf-posix-tests (Depends-on): Add float.
18292         * modules/vsprintf-posix-tests (Depends-on): Add float.
18293
18294         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
18295         (minus_zerol): New variable.
18296         (test_function): Use minus_zerol instead of -zerol.
18297         * modules/vasnprintf-posix-tests (Depends-on): Add float.
18298
18299         * tests/test-vasprintf-posix.c (zerol): Remove variable.
18300         (minus_zerol): New variable.
18301         (test_function): Use minus_zerol instead of -zerol.
18302         * modules/vasprintf-posix-tests (Depends-on): Add float.
18303
18304 2008-10-07  Simon Josefsson  <simon@josefsson.org>
18305
18306         * MODULES.html.sh (Support for building documentation): Mention
18307         pmccabe2html.  Sort entries.
18308
18309         Add pmccabe2html module, from gnupdf.
18310         * build-aux/pmccabe.css: New file.
18311         * build-aux/pmccabe2html: New file.
18312         * m4/pmccabe2html.m4: New file.
18313         * modules/pmccabe2html: New file.
18314
18315 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
18316
18317         flock: new module
18318         * MODULES.html.sh: Add to list of modules.
18319         * lib/flock.c: flock implementation for Windows and Unix systems
18320         which have fcntl.
18321         * doc/glibc-functions/flock.texi: Update documentation.
18322         * lib/sys_file.in.h: <sys/file.h> header file.
18323         * m4/flock.m4: M4 macros.
18324         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
18325         * modules/flock: flock module.
18326         * modules/flock-tests: flock tests module.
18327         * modules/sys_file: sys/file.h module.
18328         * tests/test-flock.c: test suite for flock.
18329
18330 2008-10-06  Jim Meyering  <meyering@redhat.com>
18331
18332         bootstrap: check for LT_INIT more portably still ;-)
18333         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
18334         Spotted by Bruno Haible.
18335
18336 2008-10-06  Eric Blake  <ebb9@byu.net>
18337
18338         test-signbit: avoid tripping Irix cc bug on -0.0L
18339         * tests/test-signbit.c (minus_zerol): Delete, and replace with
18340         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
18341         entire testsuite consistent and avoids an Irix 6.2 bug.
18342
18343 2008-10-05  Bruno Haible  <bruno@clisp.org>
18344             Jim Meyering  <jim@meyering.net>
18345
18346         Add an option for ignoring EPIPE during close_stdout.
18347         * lib/closeout.h: Include <stdbool.h>.
18348         (close_stdout_set_ignore_EPIPE): New declaration.
18349         * lib/closeout.c: Include <stdbool.h>.
18350         (ignore_EPIPE): New variable.
18351         (close_stdout_set_ignore_EPIPE): New function.
18352         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
18353         * lib/close-stream.c (close_stream): Mention the possible EPIPE
18354         failure.
18355         * modules/closeout (Depends-on): Add stdbool.
18356
18357 2008-10-05  Bruno Haible  <bruno@clisp.org>
18358
18359         * modules/accept: New file.
18360         * modules/bind: New file.
18361         * modules/connect: New file.
18362         * modules/getpeername: New file.
18363         * modules/getsockname: New file.
18364         * modules/getsockopt: New file.
18365         * modules/listen: New file.
18366         * modules/recv: New file.
18367         * modules/recvfrom: New file.
18368         * modules/send: New file.
18369         * modules/sendto: New file.
18370         * modules/setsockopt: New file.
18371         * modules/socket: New file.
18372         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
18373         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18374         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
18375         the particular module is requested. Add a link warning when the
18376         particular module is not requested.
18377         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
18378         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
18379         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
18380         the particular module is requested.
18381         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
18382         gl_SYS_SOCKET_H_DEFAULTS): New macros.
18383         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
18384         * modules/sys_socket (Depends-on): Add link-warning.
18385         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
18386         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
18387         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
18388         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
18389         GL_LINK_WARNING.
18390         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
18391         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
18392         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
18393         * doc/posix-functions/getpeername.texi: Mention the new module
18394         'getpeername'.
18395         * doc/posix-functions/getsockname.texi: Mention the new module
18396         'getsockname'.
18397         * doc/posix-functions/getsockopt.texi: Mention the new module
18398         'getsockopt'.
18399         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
18400         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
18401         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
18402         * doc/posix-functions/send.texi: Mention the new module 'send'.
18403         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
18404         * doc/posix-functions/setsockopt.texi: Mention the new module
18405         'setsockopt'.
18406         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
18407         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
18408         listen, connect, accept.
18409         * modules/select-tests (Depends-on): Likewise.
18410
18411 2008-10-05  Bruno Haible  <bruno@clisp.org>
18412
18413         * lib/winsock.c (strerror): Remove unused #undef.
18414         (rpl_close): Remove unused local variable.
18415
18416         * modules/sys_socket (Depends-on); Add errno.
18417
18418 2008-10-05  Bruno Haible  <bruno@clisp.org>
18419
18420         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
18421         (select): Add a link warning when the 'select' module is not used.
18422         * modules/sys_select (Depends-on): Add link-warning.
18423         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
18424         Suggested by Paolo Bonzini.
18425
18426 2008-10-05  Jim Meyering  <meyering@redhat.com>
18427
18428         bootstrap: check for LT_INIT more portably
18429         * build-aux/bootstrap: Avoid using grep -E, since it's not
18430         portable enough.  Suggestion from Bruno Haible.
18431
18432 2008-10-05  Bruno Haible  <bruno@clisp.org>
18433
18434         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
18435         as being fixed by gnulib.
18436
18437 2008-10-05  Bruno Haible  <bruno@clisp.org>
18438
18439         * modules/select-tests: New file, mostly copied from
18440         modules/sys_select-tests.
18441         * tests/test-select.c: New file, mostly copied from
18442         tests/test-sys_select.c.
18443         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
18444         * modules/sys_select-tests (Depends-on): Remove all dependencies.
18445         (Makefile.am): Remove test_sys_select_LDADD.
18446
18447         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
18448         to an undefined symbol, for an error message.
18449         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
18450         (gl_SYS_SELECT_H_DEFAULTS): New macro.
18451         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
18452         winsock-select.c here.
18453         * modules/sys_select (Files): Remove lib/winsock-select.c.
18454         (Depends-on): Remove alloca.
18455         (Makefile.am): Substitute GNULIB_SELECT.
18456         * modules/select: New file.
18457         * doc/posix-functions/select.texi: Update.
18458
18459 2008-10-05  Bruno Haible  <bruno@clisp.org>
18460
18461         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
18462         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
18463         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
18464         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
18465         getdtablesize.
18466         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18467         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18468
18469 2008-10-05  Bruno Haible  <bruno@clisp.org>
18470
18471         * modules/getdtablesize-tests: New file.
18472         * tests/test-getdtablesize.c: New file.
18473
18474         New module 'getdtablesize'.
18475         * lib/unistd.in.h (getdtablesize): New declaration.
18476         * lib/getdtablesize.c: New file.
18477         * m4/getdtablesize.m4: New file.
18478         * modules/getdtablesize: New file.
18479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18480         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
18481         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
18482         HAVE_GETDTABLESIZE.
18483         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
18484
18485 2008-10-05  Bruno Haible  <bruno@clisp.org>
18486
18487         * modules/sched (Makefile.am): Fix typo.
18488         Reported by Simon Josefsson.
18489
18490 2008-10-05  Jim Meyering  <meyering@redhat.com>
18491
18492         bootstrap: check for LT_INIT, too
18493         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
18494         are deprecated.  Suggestion from Ralf Wildenhues.
18495
18496 2008-10-05  Bruno Haible  <bruno@clisp.org>
18497
18498         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
18499         overriding them by ours.
18500         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
18501
18502 2008-10-05  Jim Meyering  <meyering@redhat.com>
18503
18504         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
18505         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
18506         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
18507
18508 2008-10-04  Bruno Haible  <bruno@clisp.org>
18509
18510         * modules/dup2 (License): Change to LGPLv2+.
18511         * modules/sleep (License): Likewise.
18512         * modules/perror (License): Likewise.
18513         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
18514         Blake.
18515         * modules/signal (License): Likewise.
18516         * modules/sigprocmask (License): Likewise.
18517         * modules/raise (License): Change to LGPLv2+, with approval by Jim
18518         Meyering.
18519
18520 2008-10-04  Bruno Haible  <bruno@clisp.org>
18521
18522         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
18523         Reported by Rainer Tammer <tammer@tammer.net>.
18524
18525 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
18526             Bruno Haible  <bruno@clisp.org>
18527
18528         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
18529         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
18530         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
18531
18532 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
18533
18534         filevercmp: new module
18535         * lib/filevercmp.h: New function filevercmp comparing version strings.
18536         * lib/filevercmp.c: Implementation of filevercmp function.
18537         * modules/filevercmp: Module metadata.
18538         * tests/test-filevercmp.c: Unit test for new module.
18539         * modules/filevercmp-tests: Unit test metadata.
18540         * MODULES.html.sh: Add filevercmp module.
18541
18542 2008-10-03  Bruno Haible  <bruno@clisp.org>
18543
18544         * lib/c-ctype.h: Add comment.
18545         Reported by Jim Meyering.
18546
18547 2008-10-02  Bruno Haible  <bruno@clisp.org>
18548
18549         * modules/posix_spawn-internal (Depends-on): Add 'open'.
18550
18551 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
18552
18553         * build-aux/bootstrap: Allow renaming bootstrap, and change the
18554         name of bootstrap.conf accordingly.
18555
18556 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
18557
18558         * build-aux/bootstrap: Install git-merge-changelog configuration
18559         items into .gitconfig if needed.
18560
18561 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
18562
18563         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
18564         git repository, and initialize/update it accordingly.
18565
18566 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
18567
18568         * modules/fsync-tests: New file.
18569         * tests/test-fsync.c: New file.
18570
18571         New module 'fsync'.
18572         * lib/fsync.c: New file.
18573         * m4/fsync.m4: New file.
18574         * modules/fsync: New file.
18575         * lib/unistd.in.h (fsync): New declaration.
18576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
18577         GNULIB_FSYNC and HAVE_FSYNC.
18578         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
18579         * MODULES.html.sh (posix_functions): Add fsync.
18580         * doc/posix-functions/fsync.texi: Mention the new module.
18581
18582 2008-10-02  Jim Meyering  <meyering@redhat.com>
18583
18584         fts.c: sync with similar code from coreutils' remove.c
18585         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
18586         Guard also with "#if defined __linux__", since for now at least,
18587         this code is Linux-kernel-specific.
18588
18589 2008-10-02  Jim Meyering  <meyering@redhat.com>
18590
18591         fts: bug fixes
18592         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
18593         Include <sys/vfs.h>, not <sys/statfs.h>.
18594
18595         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
18596         Include <sys/vfs.h>, not <sys/statfs.h>.
18597
18598 2008-10-01  Bruno Haible  <bruno@clisp.org>
18599
18600         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
18601         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
18602         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
18603         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
18604         * doc/posix-functions/posix_spawnp.texi: Likewise.
18605         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
18606         whether posix_spawn actually works.
18607         * m4/pipe.m4 (gl_PIPE): Likewise.
18608         * modules/execute (Files): Add m4/posix_spawn.m4.
18609         * modules/pipe (Files): Add m4/posix_spawn.m4.
18610         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
18611
18612 2008-10-01  Jim Meyering  <meyering@redhat.com>
18613
18614         remove trailing spaces
18615         * NEWS: Likewise.
18616         * lib/poll.c (poll): Likewise.
18617         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
18618         * lib/winsock.c (rpl_close): Likewise.
18619         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
18620         * modules/yield: Likewise.
18621         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
18622         * tests/test-sys_select.c (connect_to_socket): Likewise.
18623
18624         fts.c: adjust a new interface to be more generally useful
18625         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
18626         (fts_build): Adjust caller.
18627
18628 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18629
18630         * modules/cond-tests: New file.
18631         * tests/test-cond.c: New file.
18632
18633 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18634             Bruno Haible  <bruno@clisp.org>
18635
18636         * modules/cond (Dependencies): Add errno, time.
18637         * lib/glthread/cond.h: Include <time.h>.
18638         (gl_cond_define, gl_cond_define_initialized): Use the same definition
18639         across platforms.
18640
18641 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18642             Bruno Haible  <bruno@clisp.org>
18643
18644         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
18645
18646 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18647             Bruno Haible  <bruno@clisp.org>
18648
18649         * modules/tls-tests (Depends-on): Add thread, yield.
18650         (configure.ac): Remove all checks.
18651         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
18652         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
18653         gl_thread_self): Remove definitions. Include glthread/thread.h and
18654         glthread/yield.h instead.
18655         (test_tls): Pass an additional NULL argument to gl_thread_join.
18656
18657 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18658             Bruno Haible  <bruno@clisp.org>
18659
18660         * modules/lock-tests (Depends-on): Add thread, yield.
18661         (configure.ac): Remove all checks.
18662         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
18663         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
18664         gl_thread_self): Remove definitions. Include glthread/thread.h and
18665         glthread/yield.h instead.
18666         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
18667         additional NULL argument to gl_thread_join.
18668
18669 2008-09-30  Bruno Haible  <bruno@clisp.org>
18670
18671         Fix the Win32 implementation of the 'thread' module.
18672         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
18673         pointer type.
18674         (gl_thread_self): Invoke gl_thread_self_func.
18675         (gl_thread_self_func): New declaration.
18676         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
18677         (do_init_self_key, init_self_key): New functions.
18678         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
18679         Remove some fields.
18680         (running_threads, running_lock): Remove variables.
18681         (get_current_thread_handle): New function.
18682         (gl_thread_self_func, wrapper_func, glthread_create_func,
18683         glthread_join_func, gl_thread_exit_func): Largely rewritten and
18684         simplified.
18685
18686 2008-09-30  Bruno Haible  <bruno@clisp.org>
18687
18688         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
18689         files.
18690
18691 2008-09-30  Jim Meyering  <meyering@redhat.com>
18692
18693         fts.m4: correct the test for statfs.f_type
18694         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
18695         when checking for statfs.f_type.
18696
18697 2008-09-15  Simon Josefsson  <simon@josefsson.org>
18698
18699         tests: avoid some compiler warnings
18700         * tests/test-memchr.c (main): Pass NULL indirectly.
18701         * tests/test-getdate.c (main): Remove unused variable 'ret'.
18702
18703 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
18704
18705         getdate.y: disallow countable dayshifts like "4 yesterday ago"
18706         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
18707         exactly specified dayshifts.
18708         (dayshift): New rule.
18709         (rel): Add dayshift.
18710         (relative_time_table) [tomorrow, yesterday, today, now]:
18711         Use tDAY_SHIFT in place of tDAY_UNIT.
18712         * tests/test-getdate.c: Add tests for now-disallowed countable
18713         dayshifts, e.g., "4 yesterday ago".
18714
18715 2008-09-29  Bruno Haible  <bruno@clisp.org>
18716
18717         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
18718         * tests/test-posix_spawn1.in.sh: Renamed from
18719         tests/test-posix_spawn.in.sh.
18720         * tests/test-posix_spawn2.c: New file.
18721         * tests/test-posix_spawn2.in.sh: New file.
18722         * modules/posix_spawnp-tests (Files): Update.
18723         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
18724
18725 2008-09-29  Bruno Haible  <bruno@clisp.org>
18726
18727         Propagate effects of putenv/setenv/unsetenv to child processes.
18728         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
18729         * lib/pipe.c (create_pipe): Likewise.
18730
18731 2008-09-29  Bruno Haible  <bruno@clisp.org>
18732
18733         Enable use of shell scripts as executables in mingw.
18734         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
18735         run the program as a shell script.
18736         * lib/pipe.c (create_pipe): Likewise.
18737         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
18738         resulting array.
18739
18740 2008-09-29  Eric Blake  <ebb9@byu.net>
18741
18742         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
18743
18744 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
18745
18746         * doc/posix-functions/accept.texi: Update mingw problems.
18747         * doc/posix-functions/bind.texi: Update mingw problems.
18748         * doc/posix-functions/close.texi: Update mingw problems.
18749         * doc/posix-functions/connect.texi: Update mingw problems.
18750         * doc/posix-functions/getpeername.texi: Update mingw problems.
18751         * doc/posix-functions/getsockname.texi: Update mingw problems.
18752         * doc/posix-functions/getsockopt.texi: Update mingw problems.
18753         * doc/posix-functions/ioctl.texi: Update mingw problems.
18754         * doc/posix-functions/listen.texi: Update mingw problems.
18755         * doc/posix-functions/recv.texi: Update mingw problems.
18756         * doc/posix-functions/recvfrom.texi: Update mingw problems.
18757         * doc/posix-functions/select.texi: Update mingw problems.
18758         * doc/posix-functions/send.texi: Update mingw problems.
18759         * doc/posix-functions/sendto.texi: Update mingw problems.
18760         * doc/posix-functions/setsockopt.texi: Update mingw problems.
18761         * doc/posix-functions/socket.texi: Update mingw problems.
18762
18763 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
18764             Bruno Haible  <bruno@clisp.org>
18765
18766         * lib/sys_select.in.h: Include sys/time.h.
18767         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
18768         * modules/sys_select: Depend on sys_time.
18769         * tests/test-sys_select.c: Test that sys/select.h defines struct
18770         timeval fully.
18771
18772 2008-09-29  Bruno Haible  <bruno@clisp.org>
18773
18774         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
18775         * lib/sys_select.in.h: Likewise.
18776
18777 2008-09-29  Bruno Haible  <bruno@clisp.org>
18778
18779         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
18780
18781 2008-09-29  Bruno Haible  <bruno@clisp.org>
18782
18783         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
18784         Set LIBSOCKET instead of augmenting LIBS.
18785         * modules/sockets (Link): New section.
18786         * modules/sockets-tests (test_sockets_LDADD): New variable.
18787         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
18788         * modules/poll-tests (test_poll_LDADD): New variable.
18789         * NEWS: Document the change.
18790
18791 2008-09-29  Bruno Haible  <bruno@clisp.org>
18792
18793         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
18794         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
18795         ARPA_INET_H directly.
18796         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18797
18798 2008-09-28  Bruno Haible  <bruno@clisp.org>
18799
18800         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
18801         from gl_HEADER_SYS_SOCKET.
18802         (gl_HEADER_SYS_SOCKET): Invoke it.
18803         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18804
18805 2008-09-28  Bruno Haible  <bruno@clisp.org>
18806
18807         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
18808         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
18809         Needed on OSF/1 4.0.
18810
18811 2008-09-28  Bruno Haible  <bruno@clisp.org>
18812
18813         Override open more carefully.
18814         * lib/open.c (orig_open): New function.
18815         (rpl_open): Use orig_open instead of open.
18816         * lib/fcntl.in.h: Add special invocation convention.
18817         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
18818         (gl_FUNC_OPEN): Invoke it.
18819
18820         Override freopen more carefully.
18821         * lib/freopen.c (orig_freopen): New function.
18822         (rpl_freopen): Use orig_freopen instead of freopen.
18823         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
18824         (gl_FUNC_FREOPEN): Invoke it.
18825
18826         Override fopen more carefully.
18827         * lib/fopen.c (orig_fopen): New function.
18828         (rpl_fopen): Use orig_fopen instead of fopen.
18829         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
18830         (gl_FUNC_FOPEN): Invoke it.
18831         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
18832
18833 2008-09-28  Bruno Haible  <bruno@clisp.org>
18834
18835         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
18836         SIGPIPE.
18837
18838 2008-09-28  Bruno Haible  <bruno@clisp.org>
18839
18840         * tests/test-sigaction.c (handler, main): Disable the check whether
18841         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
18842         glibc systems with LinuxThreads.
18843
18844 2008-09-28  Bruno Haible  <bruno@clisp.org>
18845
18846         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
18847
18848         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
18849         with AIX xlc.
18850         * lib/fcntl.in.h (open): Likewise.
18851         Reported by Rainer Tammer <tammer@tammer.net>.
18852
18853 2008-09-28  Bruno Haible  <bruno@clisp.org>
18854
18855         * modules/posix_spawnp-tests: New file.
18856         * tests/test-posix_spawn.c: New file.
18857         * tests/test-posix_spawn.in.sh: New file.
18858
18859         New module 'posix_spawnp'.
18860         * modules/posix_spawnp: New file.
18861         * lib/spawnp.c: New file, from GNU libc with modifications.
18862         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
18863
18864         New module 'posix_spawn'.
18865         * modules/posix_spawn: New file.
18866         * lib/spawn.c: New file, from GNU libc with modifications.
18867         * doc/posix-functions/posix_spawn.texi: Mention the new module.
18868
18869         New module 'posix_spawnattr_destroy'.
18870         * modules/posix_spawnattr_destroy: New file.
18871         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
18872         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
18873         module.
18874
18875         New module 'posix_spawnattr_setsigmask'.
18876         * modules/posix_spawnattr_setsigmask: New file.
18877         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
18878         modifications.
18879         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
18880         new module.
18881
18882         New module 'posix_spawnattr_getsigmask'.
18883         * modules/posix_spawnattr_getsigmask: New file.
18884         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
18885         modifications.
18886         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
18887         new module.
18888
18889         New module 'posix_spawnattr_setsigdefault'.
18890         * modules/posix_spawnattr_setsigdefault: New file.
18891         * lib/spawnattr_setdefault.c: New file, from GNU libc with
18892         modifications.
18893         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
18894         new module.
18895
18896         New module 'posix_spawnattr_getsigdefault'.
18897         * modules/posix_spawnattr_getsigdefault: New file.
18898         * lib/spawnattr_getdefault.c: New file, from GNU libc with
18899         modifications.
18900         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
18901         new module.
18902
18903         New module 'posix_spawnattr_setschedpolicy'.
18904         * modules/posix_spawnattr_setschedpolicy: New file.
18905         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
18906         modifications.
18907         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
18908         new module.
18909
18910         New module 'posix_spawnattr_getschedpolicy'.
18911         * modules/posix_spawnattr_getschedpolicy: New file.
18912         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
18913         modifications.
18914         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
18915         new module.
18916
18917         New module 'posix_spawnattr_setschedparam'.
18918         * modules/posix_spawnattr_setschedparam: New file.
18919         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
18920         modifications.
18921         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
18922         new module.
18923
18924         New module 'posix_spawnattr_getschedparam'.
18925         * modules/posix_spawnattr_getschedparam: New file.
18926         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
18927         modifications.
18928         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
18929         new module.
18930
18931         New module 'posix_spawnattr_setpgroup'.
18932         * modules/posix_spawnattr_setpgroup: New file.
18933         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
18934         modifications.
18935         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
18936         module.
18937
18938         New module 'posix_spawnattr_getpgroup'.
18939         * modules/posix_spawnattr_getpgroup: New file.
18940         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
18941         modifications.
18942         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
18943         module.
18944
18945         New module 'posix_spawnattr_setflags'.
18946         * modules/posix_spawnattr_setflags: New file.
18947         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
18948         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
18949         module.
18950
18951         New module 'posix_spawnattr_getflags'.
18952         * modules/posix_spawnattr_getflags: New file.
18953         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
18954         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
18955         module.
18956
18957         New module 'posix_spawnattr_init'.
18958         * modules/posix_spawnattr_init: New file.
18959         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
18960         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
18961         module.
18962
18963         New module 'posix_spawn_file_actions_destroy'.
18964         * modules/posix_spawn_file_actions_destroy: New file.
18965         * lib/spawn_faction_destroy.c: New file, from GNU libc with
18966         modifications.
18967         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
18968         the new module.
18969
18970         New module 'posix_spawn_file_actions_addopen'.
18971         * modules/posix_spawn_file_actions_addopen: New file.
18972         * lib/spawn_faction_addopen.c: New file, from GNU libc with
18973         modifications.
18974         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
18975         the new module.
18976
18977         New module 'posix_spawn_file_actions_adddup2'.
18978         * modules/posix_spawn_file_actions_adddup2: New file.
18979         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
18980         modifications.
18981         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
18982         the new module.
18983
18984         New module 'posix_spawn_file_actions_addclose'.
18985         * modules/posix_spawn_file_actions_addclose: New file.
18986         * lib/spawn_faction_addclose.c: New file, from GNU libc with
18987         modifications.
18988         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
18989         the new module.
18990
18991         New module 'posix_spawn_file_actions_init'.
18992         * modules/posix_spawn_file_actions_init: New file.
18993         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
18994         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
18995         new module.
18996
18997         New module 'posix_spawn-internal'.
18998         * modules/posix_spawn-internal: New file.
18999         * lib/spawn_int.h: New file, from GNU libc with modifications.
19000         * lib/spawni.c: New file, from GNU libc with modifications.
19001         * m4/posix_spawn.m4: New file.
19002
19003         New module 'spawn'.
19004         * modules/spawn: New file.
19005         * lib/spawn.in.h: New file, from GNU libc with modifications.
19006         * m4/spawn_h.m4: New file.
19007         * doc/posix-headers/spawn.texi: Mention the new module.
19008
19009 2008-09-28  Bruno Haible  <bruno@clisp.org>
19010
19011         * modules/sched-tests: New file.
19012         * tests/test-sched.c: New file.
19013
19014         New module 'sched'.
19015         * modules/sched: New file.
19016         * lib/sched.in.h: New file.
19017         * m4/sched_h.m4: New file.
19018         * doc/posix-headers/sched.texi: Mention the new module.
19019
19020 2008-09-27  Eric Blake  <ebb9@byu.net>
19021
19022         Fix previous patch, and tweak references to $0.
19023         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
19024         (func_version, func_gnulib_dir): Don't call this program
19025         gnulib-tool.
19026         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
19027         with using $0 in function.
19028         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
19029         (func_fatal_error): Reuse the name the user invoked us with.
19030
19031 2008-09-27  Bruno Haible  <bruno@clisp.org>
19032
19033         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
19034         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
19035         (gl_ICONV_H): Not here.
19036         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19037         instead of assigning ICONV_H directly.
19038
19039         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
19040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
19041         WCHAR_H directly.
19042
19043 2008-09-27  Bruno Haible  <bruno@clisp.org>
19044
19045         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
19046         * modules/arpa_inet (Depends-on): Add link-warning.
19047         (Makefile.am): Insert the definition of GL_LINK-WARNING.
19048         * modules/unistd (Makefile.am): Likewise.
19049
19050 2008-09-26  Bruno Haible  <bruno@clisp.org>
19051
19052         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
19053         variables.
19054         (func_version): Essentially copied from gnulib-tool.
19055         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
19056         func_readlink): Copied from gnulib-tool.
19057
19058 2008-09-26  Bruno Haible  <bruno@clisp.org>
19059
19060         * gnulib-tool (func_version): Change directory to $gnulib_dir before
19061         invoking git-version-gen.
19062
19063 2008-09-26  Bruno Haible  <bruno@clisp.org>
19064
19065         * posix-modules: Update to directory names changed on 2008-01-19.
19066         Remove commas in output before splitting into words. No more need to
19067         avoid 'ftruncate' since 2007-02-19.
19068
19069 2008-09-26  Bruno Haible  <bruno@clisp.org>
19070
19071         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
19072
19073 2008-09-26  Bruno Haible  <bruno@clisp.org>
19074
19075         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
19076         * modules/fwriteerror (Depends-on): Add errno.
19077
19078 2008-09-26  Bruno Haible  <bruno@clisp.org>
19079
19080         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
19081         * tests/test-vc-list-files-cvs.sh: Likewise.
19082
19083 2008-09-26  Bruno Haible  <bruno@clisp.org>
19084
19085         * doc/posix-headers/sys_resource.texi: Reorder items.
19086
19087 2008-09-26  Jim Meyering  <meyering@redhat.com>
19088
19089         fts: tweak inode comparison function
19090         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
19091         inode numbers, as documented.
19092
19093         fts: sort dirent entries on inode number before traversing
19094         This avoids a quadratic, seek-related performance penalty when
19095         operating on a directory containing many entries (measurable at 10k;
19096         3.5 hours at 2 million entries with a cold cache) on certain types
19097         of file systems, including ext3 and ext4, but not tmpfs.
19098         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
19099         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
19100         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
19101         (fs_handles_readdir_ordered_dirents_efficiently): New function.
19102         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
19103         (fts_build): Set the stat.st_ino member from D_INO.
19104         If it is likely to be useful, sort dirent entries on inode number.
19105
19106         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
19107         and the struct statfs.f_type member.
19108         * modules/fts (Depends-on): Add d-ino.
19109
19110 2008-09-26  Bruno Haible  <bruno@clisp.org>
19111
19112         * modules/sigpipe-die (Depends-on): Add sigpipe.
19113
19114         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
19115         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
19116         and GNULIB_STDIO_H_SIGPIPE are set.
19117         * lib/stdio-write.c: New file.
19118         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
19119         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19120         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19121         REPLACE_STDIO_WRITE_FUNCS.
19122         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
19123         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19124         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19125         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19126         * modules/stdio (Files): Add lib/stdio-write.c.
19127         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
19128         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19129         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19130         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19131         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
19132         REPLACE_FPRINTF_POSIX.
19133         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
19134         REPLACE_PRINTF_POSIX.
19135         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
19136         REPLACE_VFPRINTF_POSIX.
19137         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
19138         REPLACE_VPRINTF_POSIX.
19139         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
19140         SIGPIPE issue.
19141         * doc/posix-functions/fputc.texi: Likewise.
19142         * doc/posix-functions/fputs.texi: Likewise.
19143         * doc/posix-functions/fwrite.texi: Likewise.
19144         * doc/posix-functions/printf.texi: Likewise.
19145         * doc/posix-functions/putc.texi: Likewise.
19146         * doc/posix-functions/putchar.texi: Likewise.
19147         * doc/posix-functions/puts.texi: Likewise.
19148         * doc/posix-functions/vfprintf.texi: Likewise.
19149         * doc/posix-functions/vprintf.texi: Likewise.
19150
19151         * modules/safe-write (Depends-on): Add write.
19152
19153         * modules/sigpipe-tests: New file.
19154         * tests/test-sigpipe.c: New file.
19155         * tests/test-sigpipe.sh: New file.
19156
19157         * modules/write: New file.
19158         * lib/unistd.in.h: Include <sys/types.h>.
19159         (write): New declaration.
19160         * lib/write.c: New file.
19161         * m4/write.m4: New file.
19162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19163         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
19164         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
19165         GNULIB_WRITE, REPLACE_WRITE.
19166         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
19167         and the SIGPIPE issue.
19168
19169         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
19170         (raise): New declaration.
19171         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
19172         (ext_signal): New function.
19173         (rpl_raise): New function.
19174         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
19175         GNULIB_SIGNAL_H_SIGPIPE.
19176         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
19177         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
19178
19179         * modules/sigpipe: New file.
19180         * m4/sigpipe.m4: New file.
19181
19182 2008-09-25  Derek Price  <derek@ximbiot.com>
19183             Bruno Haible  <bruno@clisp.org>
19184
19185         * gnulib-tool (func_import): Report all license incompatibilities, not
19186         just the first one.
19187
19188 2008-09-25  Bruno Haible  <bruno@clisp.org>
19189
19190         * gnulib-tool (func_import): When computing the edits, consider not
19191         only the Makefile.ams that exist but also those that will be generated.
19192
19193 2008-09-25  Simon Josefsson  <simon@josefsson.org>
19194
19195         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
19196         fixes gnulib-tool --test warning about duplicate dependency.
19197
19198 2008-09-25  Bruno Haible  <bruno@clisp.org>
19199
19200         * gnulib-tool: Don't ask the user to perform edits in the generated
19201         Makefile.ams.
19202         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
19203         apply to the Makefile.am being generated.
19204         (func_emit_tests_Makefile_am): Execute edits that apply to the
19205         Makefile.am being generated.
19206         (func_import): Setup list of Makefile.am edits before emitting the
19207         Makefile.ams, not at the end.
19208         (func_create_testdir): Update.
19209         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19210
19211 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19212
19213         * gnulib-tool (func_import): Store the --tests-base option in the
19214         comment in gnulib-cache.m4.
19215
19216 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
19217
19218         * NEWS: Document increased portability that sys_select now provides.
19219
19220         * lib/sys_select.in.h: Install select wrapper.
19221         * lib/sys_socket.in.h: Use more descriptive name when there is no
19222         select wrapper.
19223         * lib/winsock-select.c: New.
19224         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
19225         Require gl_HEADER_SYS_SOCKET.
19226         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
19227         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
19228         * tests/test-sys_select.c: Add functional tests.
19229
19230 2008-09-24  Eric Blake  <ebb9@byu.net>
19231
19232         open, fopen: close fd leak in last patch
19233         * lib/open.c (rpl_open): Close fd before returning error.
19234         * lib/fopen.c (rpl_fopen): Close fd before returning error.
19235         * doc/posix-functions/open.texi (open): Document that Irix also
19236         has the bug.
19237         * doc/posix-functions/fopen.texi (fopen): Likewise.
19238         Reported by Paolo Bonzini.
19239
19240 2008-09-24  Bruno Haible  <bruno@clisp.org>
19241
19242         Ensure that a filename ending in a slash cannot be used to access a
19243         non-directory.
19244         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
19245         to check whether it's really a directory.
19246         * lib/fopen.c: Include fcntl.h, unistd.h.
19247         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
19248         and fdopen().
19249         * modules/fopen (Depends-on): Add unistd.
19250         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
19251         * tests/test-fopen.c (main): Likewise.
19252         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
19253         * doc/posix-functions/fopen.texi: Likewise.
19254         Reported by Eric Blake.
19255
19256 2008-09-23  Eric Blake  <ebb9@byu.net>
19257
19258         c-stack: avoid compiler optimizations when provoking overflow
19259         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
19260         recursion harder to optimize, to ensure a stack overflow occurs.
19261         * tests/test-c-stack.c (recurse): Likewise.
19262         Borrowed from libsigsegv.
19263
19264         c-stack: work around Irix sigaltstack bug
19265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
19266         whether sigaltstack uses wrong end of stack_t (copied in part from
19267         libsigsegv).
19268         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
19269         Irix bug, without requiring an over-allocation.
19270         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
19271         bug.
19272
19273         fopen: document mingw bug on directories
19274         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
19275         not allowing a stream visiting a directory, even though reading
19276         from such a stream is not portable.
19277
19278 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19279
19280         * lib/poll.c: Rewrite.
19281         * modules/poll: Depend on alloca.
19282
19283 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19284
19285         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
19286         instead define prototypes for a full set of wrappers.  Ensure
19287         that Cygwin does not use the compatibility code, which is only
19288         for MinGW.
19289         * lib/winsock.c: New.
19290         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
19291         * modules/sys_socket: Add lib/winsock.c.
19292
19293         * modules/poll-tests: Add errno and perror.
19294         * tests/test-poll.c: Use ioctl, not ioctlsocket.
19295
19296 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19297
19298         * tests/test-poll.c: Downgrade minimum needed Winsock version.
19299
19300 2008-09-23  Bruno Haible  <bruno@clisp.org>
19301
19302         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
19303         * doc/glibc-functions/*: Likewise.
19304
19305 2008-09-23  Simon Josefsson  <simon@josefsson.org>
19306
19307         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
19308         success.
19309
19310 2008-09-22  Eric Blake  <ebb9@byu.net>
19311             Bruno Haible  <bruno@clisp.org>
19312
19313         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
19314         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
19315         supply %A but mishandle pseudo-NaN.
19316         Reported by Simon Josefsson.
19317
19318 2008-09-21  Bruno Haible  <bruno@clisp.org>
19319
19320         * tests/test-lock.c (main): Tweak skip message.
19321         * tests/test-tls.c (main): Likewise.
19322
19323 2008-09-21  Bruno Haible  <bruno@clisp.org>
19324
19325         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
19326         whether 'struct sigaction' has sa_sigaction here...
19327         (gl_PREREQ_SIG_HANDLER_H): ... not here.
19328         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
19329
19330 2008-09-21  Bruno Haible  <bruno@clisp.org>
19331
19332         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
19333         section.
19334         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
19335         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
19336         the new section.
19337         (Support for obsolete systems lacking POSIX:2001): New section.
19338         (String handling <string.h>): Move strdup to the new section.
19339         Suggested by Simon Josefsson and Paolo Bonzini.
19340
19341 2008-09-21  Bruno Haible  <bruno@clisp.org>
19342
19343         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
19344         exponents in %e and %g results on 'long double'. Needed for mingw's
19345         improved *printf functions.
19346         * tests/test-vasprintf-posix.c (test_function): Likewise.
19347         * tests/test-snprintf-posix.h (test_function): Likewise.
19348         * tests/test-sprintf-posix.h (test_function): Likewise.
19349         Reported by Eric Blake.
19350
19351 2008-09-21  Bruno Haible  <bruno@clisp.org>
19352
19353         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
19354         * tests/test-sprintf-posix.h (test_function): Likewise.
19355
19356 2008-09-21  Bruno Haible  <bruno@clisp.org>
19357
19358         * modules/getpass (Depends-on): Add strdup-posix.
19359
19360         New module 'strdup-posix'.
19361         * modules/strdup-posix: New file.
19362         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
19363         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
19364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19365         REPLACE_STRDUP.
19366         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
19367         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
19368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19369         strdup-posix.
19370
19371         * modules/strdup (Depends-on): Remove malloc-posix.
19372
19373 2008-09-20  Bruno Haible  <bruno@clisp.org>
19374
19375         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
19376         Wildenhues.
19377
19378 2008-09-20  Bruno Haible  <bruno@clisp.org>
19379
19380         Ensure that wint_t gets defined on IRIX 5.3.
19381         * lib/wchar.in.h (wint_t): Define if not defined by the system.
19382         * lib/wctype.in.h (wint_t): Likewise.
19383         (__wctype_wint_t): Remove type.
19384         (isw*): Use wint_t instead of __wctype_wint_t.
19385         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
19386         * modules/wchar (Files): Add m4/wint_t.m4.
19387         (Makefile.am): Substitute HAVE_WINT_T.
19388         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
19389         * tests/test-wctype.c: Check that wint_t is defined.
19390         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
19391         * doc/posix-headers/wctype.texi: Likewise.
19392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19393
19394 2008-09-18  Bruno Haible  <bruno@clisp.org>
19395
19396         * gnulib-tool (func_exit): Update comment.
19397
19398 2008-09-18  Simon Josefsson  <simon@josefsson.org>
19399
19400         * modules/getaddrinfo (Depends-on): Remove strdup, this module
19401         assumes strdup exists and does not depend on strdup to return
19402         ENOMEM on out of memory conditions.
19403
19404 2008-09-18  Bruno Haible  <bruno@clisp.org>
19405
19406         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
19407         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
19408         digits for the exponent.
19409
19410 2008-09-18  Jim Meyering  <meyering@redhat.com>
19411             Bruno Haible  <bruno@clisp.org>
19412
19413         * lib/vasnprintf.c (decimal_point_char): Define also if
19414         NEED_PRINTF_INFINITE_LONG_DOUBLE.
19415
19416 2008-09-16  Bruno Haible  <bruno@clisp.org>
19417         and Eric Blake  <ebb9@byu.net>
19418
19419         vasnprintf: support Irix 5.3
19420         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
19421         that mishandle long double infinity.
19422         Reported by Tom G. Christensen.
19423
19424 2008-09-16  Bruno Haible  <bruno@clisp.org>
19425
19426         * doc/glibc-functions/scandir.texi: Mention the function is missing on
19427         Solaris 9.
19428         * doc/glibc-functions/alphasort.texi: Likewise.
19429         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
19430
19431 2008-09-16  Jim Meyering  <meyering@redhat.com>
19432
19433         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
19434         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
19435         a umask modification leak out of a subshell.  Otherwise, the
19436         opensolaris /bin/sh would be accepted and thus cause unwarranted
19437         failures in the coreutils test suite.
19438
19439 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
19440
19441         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
19442         to succeed.
19443
19444 2008-09-16  Jim Meyering  <meyering@redhat.com>
19445
19446         avoid spurious test failure when library is built without ACL support
19447         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
19448         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
19449         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
19450         * tests/test-copy-acl.sh: Likewise.
19451
19452 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19453
19454         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
19455         based on character occurrence counts.
19456
19457 2008-09-15  Eric Blake  <ebb9@byu.net>
19458
19459         tests: avoid some compiler warnings
19460         * tests/test-memchr.c (main): Pass NULL indirectly.
19461         * tests/test-closein.c (main): Avoid unused variable.
19462
19463 2008-09-15  Bruno Haible  <bruno@clisp.org>
19464
19465         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
19466         are missing on OpenBSD 4.0 individually.
19467         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19468
19469 2008-09-15  Bruno Haible  <bruno@clisp.org>
19470
19471         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
19472         * doc/posix-functions/strerror.texi: Mention also Cygwin.
19473         * doc/posix-functions/perror.texi: Likewise.
19474         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
19475         is missing.
19476         Reported by Eric Blake.
19477
19478         * lib/errno.in.h: Use replacement values >= 2000.
19479         Reported by Eric Blake.
19480
19481 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19482
19483         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
19484         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
19485         limit.
19486         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
19487         compareseq was aborted.
19488
19489 2008-09-14  Bruno Haible  <bruno@clisp.org>
19490
19491         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
19492         yvec_edit_count.
19493         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
19494         (fstrcmp_bounded): Simplify result computation accordingly.
19495
19496 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19497
19498         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
19499         (fstrcmp): Define in terms of fstrcmp_bounded.
19500         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
19501         lower_bound argument.
19502         Return quickly if the result is certainly < lower_bound.
19503         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
19504
19505 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19506
19507         * lib/diffseq.h (EARLY_ABORT): New macro.
19508         (compareseq): Change return type to bool. Return true when EARLY_ABORT
19509         evaluates to true.
19510
19511 2008-09-14  Bruno Haible  <bruno@clisp.org>
19512
19513         * modules/perror-tests: New file.
19514         * tests/test-perror.sh: New file.
19515         * tests/test-perror.c: New file.
19516
19517         New module 'perror'.
19518         * lib/stdio.in.h (perror): New declaration.
19519         * lib/perror.c: New file.
19520         * m4/perror.m4: New file.
19521         * modules/perror: New file.
19522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
19523         * doc/posix-functions/perror.texi: Mention the perror module.
19524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
19525         REPLACE_PERROR.
19526         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
19527         REPLACE_PERROR.
19528
19529 2008-09-14  Bruno Haible  <bruno@clisp.org>
19530
19531         * modules/stdio (Makefile.am): Reorder to match the order in
19532         lib/stdio.in.h.
19533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19534
19535 2008-09-13  Bruno Haible  <bruno@clisp.org>
19536
19537         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
19538
19539 2008-09-13  Bruno Haible  <bruno@clisp.org>
19540
19541         Extend strerror to cover the added errno values.
19542         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
19543         (rpl_strerror): Provide error messages for the added errno values and
19544         for the WSA* values.
19545         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
19546         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
19547         strerror.
19548         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
19549         * modules/strerror (Depends-on): Add errno.
19550         * doc/posix-functions/strerror.texi: Document the change.
19551         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
19552         and EOVERFLOW.
19553
19554 2008-09-13  Bruno Haible  <bruno@clisp.org>
19555
19556         * modules/EOVERFLOW: Remove file.
19557         * m4/eoverflow.m4: Remove file.
19558         * modules/EOVERFLOW-tests: Remove file.
19559         * tests/test-EOVERFLOW.c: Remove file.
19560         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
19561         * modules/ftell (Depends-on): Likewise.
19562         * modules/getdelim (Depends-on): Likewise.
19563         * modules/getugroups (Depends-on): Likewise.
19564         * modules/poll (Depends-on): Likewise.
19565         * modules/snprintf (Depends-on): Likewise.
19566         * modules/sprintf-posix (Depends-on): Likewise.
19567         * modules/vasnprintf (Depends-on): Likewise.
19568         * modules/vasprintf (Depends-on): Likewise.
19569         * modules/vfprintf-posix (Depends-on): Likewise.
19570         * modules/vsnprintf (Depends-on): Likewise.
19571         * modules/vsprintf-posix (Depends-on): Likewise.
19572         * modules/xvasprintf (Depends-on): Likewise.
19573         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19574         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
19575         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
19576         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
19577         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19578         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
19579         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
19580         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
19581         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19582         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
19583         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
19584         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
19585         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19586         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
19587         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
19588         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
19589         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19590         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
19591         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
19592         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
19593         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19594         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
19595         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
19596         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
19597         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
19598         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19599         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
19600         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
19601         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
19602         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
19603         * MODULES.html.sh: Remove EOVERFLOW.
19604         * NEWS: Mention the change.
19605
19606 2008-09-13  Bruno Haible  <bruno@clisp.org>
19607
19608         * modules/errno-tests: New file.
19609         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
19610
19611         * lib/errno.in.h: New file.
19612         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
19613         * modules/errno: New file.
19614         * doc/posix-headers/errno.texi: Update documentation.
19615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
19616
19617 2008-09-13  Bruno Haible  <bruno@clisp.org>
19618
19619         * tests/test-poll.c: Use #if for native Windows, rather than testing
19620         __MSVCRT__.
19621
19622 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19623             Bruno Haible  <bruno@clisp.org>
19624
19625         * lib/glob.c: Don't include <pwd.h> on native Windows.
19626         (WINDOWS32): New macro.
19627         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
19628
19629 2008-09-13  Bruno Haible  <bruno@clisp.org>
19630
19631         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
19632         (ETIMEDOUT): Remove macro.
19633         (glthread_cond_timedwait_multithreaded): New declaration.
19634         (glthread_cond_timedwait): Use it.
19635         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
19636         (glthread_cond_timedwait_multithreaded): New function.
19637
19638 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
19639
19640         * modules/poll-tests: Do not check for io.h.
19641         * tests/test-poll.c: Check for __MSVCRT__ instead.
19642
19643 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
19644
19645         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
19646         * modules/poll-tests: Add inet_pton, stdbool, sockets.
19647         * tests/test-poll.c: Use them.  Use _pipe on Windows.
19648
19649 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
19650
19651         * modules/poll-tests: New.
19652         * tests/test-poll.c: New.
19653
19654 2008-09-12  Eric Blake  <ebb9@byu.net>
19655
19656         frexp: test for NetBSD failure on -0.0
19657         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
19658         not all, bugs from NetBSD 3.0 have been fixed.
19659         * doc/posix-functions/frexp.texi (frexp): Document bug.
19660         Reported by Thomas Klausner.
19661
19662         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
19663         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
19664         literal -0.0.
19665         Reported by Jonathan C. Patschke <jp@centtech.com>.
19666
19667 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19668
19669         * lib/glthread/cond.h: Use dummy implementation also if
19670         USE_WIN32_THREADS.
19671
19672 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19673
19674         * modules/fnmatch-posix (License): Change to LGPLv2+.
19675         * modules/fnmatch-gnu (License): Likewise.
19676
19677 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19678
19679         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
19680
19681 2008-09-11  Jim Meyering  <meyering@redhat.com>
19682
19683         * users.txt: Add gtk-vnc.
19684
19685 2008-09-08  Simon Josefsson  <simon@josefsson.org>
19686
19687         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
19688         rotate amounts.
19689
19690         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
19691         required for 16-bit and 8-bit rotates.
19692         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
19693         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
19694         UINT8_MAX instead of hard-coded constants.
19695         Suggested by Paul Eggert.
19696
19697 2008-09-07  Bruno Haible  <bruno@clisp.org>
19698
19699         * tests/test-striconveh.c (main): Check behaviour when converting from
19700         UTF-7.
19701
19702         Make striconveh work better with stateful encodings.
19703         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
19704         that iconv does not increment the inptr when returning -1/EINVAL.
19705
19706 2008-09-07  Bruno Haible  <bruno@clisp.org>
19707
19708         * build-aux/config.rpath: Update according to libtool-2.2.6.
19709         * build-aux/config.libpath: Likewise.
19710
19711 2008-09-06  Bruno Haible  <bruno@clisp.org>
19712
19713         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
19714         * lib/freadptr.c (freadptr): Likewise.
19715         * lib/freadseek.c (freadptrinc): Likewise.
19716         Reported by Simon Josefsson.
19717
19718 2008-09-06  Bruno Haible  <bruno@clisp.org>
19719
19720         * modules/freadptr (License): Change to LGPLv2+.
19721         * modules/freadseek (License): Likewise.
19722         Suggested by Eric Blake.
19723
19724         * modules/memchr2 (License): Change to LGPLv2+.
19725         Approved by Eric Blake.
19726
19727 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19728             Bruno Haible  <bruno@clisp.org>
19729
19730         Make gnulib-tool work with native 'sed' on AIX.
19731         * gnulib-tool (sed_noop): New variable.
19732         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
19733         func_add_or_update, func_create_testdir): Use it to initialize sed
19734         script variables.
19735         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19736
19737 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
19738             Bruno Haible  <bruno@clisp.org>
19739
19740         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
19741         also works after #include directives.
19742
19743 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
19744
19745         getdate.y: reject an out-of-range timezone value
19746         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
19747         the range [-24...+24].  When specified with only one or two digits,
19748         * tests/test-getdate.c: Tests for the fix.
19749         * doc/getdate.texi: Document this change.
19750
19751 2008-09-03  Bruno Haible  <bruno@clisp.org>
19752
19753         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
19754
19755 2008-09-02  Simon Josefsson  <simon@josefsson.org>
19756
19757         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
19758         <bruce.korb@gmail.com> with ideas from Ben Pfaff
19759         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
19760         Blake <ebb9@byu.net>.
19761
19762         * tests/test-bitrotate.c: Add more test vectors.
19763
19764 2008-09-02  Eric Blake  <ebb9@byu.net>
19765
19766         vasnprintf-posix: handle large precision via %.*d
19767         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
19768         when handling it ourselves.
19769         * tests/test-vasnprintf-posix.c (test_function): Add test.
19770         * tests/test-snprintf-posix.h (test_function): Likewise.
19771         * tests/test-sprintf-posix.h (test_function): Likewise.
19772         * tests/test-vasprintf-posix.c (test_function): Likewise.
19773         Reported by Alain Guibert.
19774
19775 2008-09-01  Eric Blake  <ebb9@byu.net>
19776
19777         c-stack: make configure-time check more robust
19778         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
19779         successful sigaction call.
19780         Reported by Tom G. Christensen.
19781
19782 2008-09-01  Bruno Haible  <bruno@clisp.org>
19783
19784         New module 'findprog-lgpl'.
19785         * modules/findprog-lgpl: New file.
19786         * lib/findprog-lgpl.c: New file.
19787         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
19788         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
19789         to decide whether to use strdup or xstrdup, concatenated_filename or
19790         xconcatenated_filename.
19791
19792 2008-09-01  Bruno Haible  <bruno@clisp.org>
19793
19794         Split module 'concat-filename' into 'concat-filename' (LGPL) and
19795         'xconcat-filename' (GPL).
19796         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
19797         (License): Change to LGPLv2+.
19798         * modules/xconcat-filename: New file.
19799         * lib/concat-filename.h (concatenated_filename): Change specification.
19800         (xconcatenated_filename): New declaration.
19801         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
19802         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
19803         memory situations.
19804         * lib/xconcat-filename.c: New file.
19805         * NEWS: Mention the change.
19806         * lib/findprog.c: Include concat-filename.h, not filename.h.
19807         (find_in_path): Use xconcatenated_filename instead of
19808         concatenated_filename.
19809         * lib/javacomp.c: Include concat-filename.h, not filename.h.
19810         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
19811         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
19812         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
19813         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
19814         instead of concatenated_filename.
19815         * lib/javaexec.c: Include concat-filename.h, not filename.h.
19816         (execute_java_class): Use xconcatenated_filename instead of
19817         concatenated_filename.
19818         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
19819         * modules/javacomp (Depends-on): Likewise.
19820         * modules/javaexec (Depends-on): Likewise.
19821
19822 2008-09-01  Bruno Haible  <bruno@clisp.org>
19823
19824         Split module 'filename' into 'filename' and 'concat-filename'.
19825         * modules/filename: Keep only lib/filename.h.
19826         (License): Change to LGPLv2+.
19827         * modules/concat-filename: New file, extracted from modules/filename.
19828         * lib/filename.h (concatenated_filename): Remove declaration.
19829         * lib/concat-filename.h: New file, extracted from lib/filename.h.
19830         * lib/concat-filename.c: Include concat-filename.h.
19831         * NEWS: Mention the change.
19832
19833 2008-09-01  Simon Josefsson  <simon@josefsson.org>
19834
19835         * lib/bitrotate.h (rotl8, rotr8): Add.
19836
19837         * modules/bitrotate (configure.ac): Need
19838         AC_REQUIRE([AC_C_INLINE]).
19839         (Description): Mention stdint.h.  Reported by Bruno Haible
19840         <bruno@clisp.org>.
19841
19842         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
19843         Paolo Bonzini <bonzini@gnu.org>.
19844
19845 2008-08-31  Bruno Haible  <bruno@clisp.org>
19846
19847         Assume Solaris specific bi-arch conventions on Solaris systems.
19848         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
19849         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
19850         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
19851         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
19852         like acl_libdirstem.
19853         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
19854         acl_libdirstem.
19855         * NEWS: Mention the change.
19856         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
19857
19858 2008-08-31  Jim Meyering  <meyering@redhat.com>
19859
19860         * lib/strftime.h: Add comments describing the two added arguments.
19861
19862         remove duplicate #include directives
19863         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
19864         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
19865
19866 2008-08-31  Bruno Haible  <bruno@clisp.org>
19867
19868         New module 'sigpipe-die'.
19869         * modules/sigpipe-die: New file.
19870         * lib/sigpipe-die.h: New file.
19871         * lib/sigpipe-die.c: New file.
19872         * MODULES.html.sh (Signal handling): Add sigpipe-die.
19873
19874 2008-08-31  Bruno Haible  <bruno@clisp.org>
19875
19876         Don't override previously installed signal handlers.
19877         * lib/fatal-signal.c (saved_sigactions): New variable.
19878         (uninstall_handlers): Reset the signal to the saved handler, not
19879         to SIG_DFL (except when ignored).
19880         (install_handlers): Save the previous handlers.
19881
19882 2008-08-30  Bruno Haible  <bruno@clisp.org>
19883
19884         * gnulib-tool (func_reset_sigpipe): New function.
19885         (func_get_automake_snippet, func_modules_transitive_closure,
19886         func_import): Invoke it before a join command that reads from stdin,
19887         to avoid "echo: write error: Broken pipe" error messages on stderr.
19888         Reported by Sam Steingold <sds@gnu.org>.
19889
19890 2008-08-30  Bruno Haible  <bruno@clisp.org>
19891
19892         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
19893         Code copied from m4/open.m4.
19894         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
19895         access and the filename ends in a slash. Code copied from lib/open.c.
19896         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
19897         * tests/test-fopen.c (main): Check against bug with trailing slash.
19898
19899 2008-08-29  Bruno Haible  <bruno@clisp.org>
19900
19901         Avoid some "gcc -pedantic" warnings.
19902         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
19903         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
19904         * lib/dirent.in.h: Likewise.
19905         * lib/fcntl.in.h: Likewise.
19906         * lib/float.in.h: Likewise.
19907         * lib/iconv.in.h: Likewise.
19908         * lib/inttypes.in.h: Likewise.
19909         * lib/locale.in.h: Likewise.
19910         * lib/math.in.h: Likewise.
19911         * lib/netinet_in.in.h: Likewise.
19912         * lib/search.in.h: Likewise.
19913         * lib/signal.in.h: Likewise.
19914         * lib/stdarg.in.h: Likewise.
19915         * lib/stdint.in.h: Likewise.
19916         * lib/stdio.in.h: Likewise.
19917         * lib/stdlib.in.h: Likewise.
19918         * lib/string.in.h: Likewise.
19919         * lib/strings.in.h: Likewise.
19920         * lib/sys_select.in.h: Likewise.
19921         * lib/sys_socket.in.h: Likewise.
19922         * lib/sys_stat.in.h: Likewise.
19923         * lib/sys_time.in.h: Likewise.
19924         * lib/sysexits.in.h: Likewise.
19925         * lib/time.in.h: Likewise.
19926         * lib/unistd.in.h: Likewise.
19927         * lib/wchar.in.h: Likewise.
19928         * lib/wctype.in.h: Likewise.
19929         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
19930         * modules/fchdir (Makefile.am): Likewise.
19931         * modules/fcntl (Makefile.am): Likewise.
19932         * modules/float (Makefile.am): Likewise.
19933         * modules/iconv_open (Makefile.am): Likewise.
19934         * modules/inttypes (Makefile.am): Likewise.
19935         * modules/locale (Makefile.am): Likewise.
19936         * modules/math (Makefile.am): Likewise.
19937         * modules/netinet_in (Makefile.am): Likewise.
19938         * modules/search (Makefile.am): Likewise.
19939         * modules/signal (Makefile.am): Likewise.
19940         * modules/stdarg (Makefile.am): Likewise.
19941         * modules/stdint (Makefile.am): Likewise.
19942         * modules/stdio (Makefile.am): Likewise.
19943         * modules/stdlib (Makefile.am): Likewise.
19944         * modules/string (Makefile.am): Likewise.
19945         * modules/strings (Makefile.am): Likewise.
19946         * modules/sys_select (Makefile.am): Likewise.
19947         * modules/sys_socket (Makefile.am): Likewise.
19948         * modules/sys_stat (Makefile.am): Likewise.
19949         * modules/sys_time (Makefile.am): Likewise.
19950         * modules/sysexits (Makefile.am): Likewise.
19951         * modules/time (Makefile.am): Likewise.
19952         * modules/unistd (Makefile.am): Likewise.
19953         * modules/wchar (Makefile.am): Likewise.
19954         * modules/wctype (Makefile.am): Likewise.
19955         Reported by Reuben Thomas <rrt@sc3d.org>.
19956
19957 2008-08-29  Bruno Haible  <bruno@clisp.org>
19958
19959         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
19960         any more.
19961
19962 2008-08-29  Simon Josefsson  <simon@josefsson.org>
19963
19964         * MODULES.html.sh (Misc): Add bitrotate.
19965
19966         * modules/bitrotate: New file.
19967
19968         * lib/bitrotate.h: New file.
19969
19970         * modules/bitrotate-tests: New file.
19971
19972         * tests/test-bitrotate.c: New file.
19973
19974         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
19975         on the bitrotate module.
19976
19977         * lib/arctwo.c: Use new bitrotate module.
19978
19979 2008-08-29  Jim Meyering  <meyering@redhat.com>
19980
19981         bootstrap: merge changes from coreutils
19982         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
19983         of copied files.  Remove a kludge, now that this is fixed.
19984         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
19985         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
19986         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
19987
19988 2008-08-29  Bruno Haible  <bruno@clisp.org>
19989
19990         * MODULES.html.sh: Remove --cvs-urls option.
19991
19992 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
19993
19994         maint.mk: adjust to file name change
19995         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
19996
19997 2008-08-28  Jim Meyering  <meyering@redhat.com>
19998
19999         * modules/getndelim2 (License): Relicense to LGPLv2+.
20000         Approved by Richard Stallman for the version of 1995, and by
20001         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
20002
20003 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
20004
20005         * lib/getdelim.c (flockfile, funlockfile): Make all of them
20006         dummy if one is not available.  Do not touch them if
20007         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
20008         (getc_maybe_unlocked): New.
20009         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
20010
20011 2008-08-26  Eric Blake  <ebb9@byu.net>
20012
20013         doc/INSTALL: resync from autoconf
20014         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
20015         (INSTALL_PRELUDE): Delete; this is done more efficiently by
20016         moving...
20017         * install.texi [!autoconf]: ...here.  Resync from autoconf.
20018         * INSTALL: Regenerate.
20019         * INSTALL.ISO: New file.
20020         * INSTALL.UTF-8: Likewise.
20021
20022 2008-08-26  Jim Meyering  <meyering@redhat.com>
20023
20024         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
20025         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
20026         these definitions conditional, so that they may be overridden, too.
20027
20028 2008-08-26  Bruno Haible  <bruno@clisp.org>
20029
20030         Generate INSTALL file variants with prettier quotes.
20031         * doc/Makefile (INSTALL_PRELUDE): New macro.
20032         (INSTALL): Use it.
20033         (INSTALL.ISO, INSTALL.UTF-8): New rules.
20034
20035 2008-08-26  Bruno Haible  <bruno@clisp.org>
20036
20037         Run makeinfo in an English locale.
20038         * doc/Makefile (MAKEINFO): New variable.
20039
20040 2008-08-26  Bruno Haible  <bruno@clisp.org>
20041
20042         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
20043         Suggested by Eric Blake.
20044
20045 2008-08-25  Bruno Haible  <bruno@clisp.org>
20046
20047         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
20048
20049 2008-08-25  Eric Blake  <ebb9@byu.net>
20050
20051         c-stack: test that stack overflow can be caught
20052         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
20053         that platform allows handling stack overflow; at least OS/2 EMX
20054         has sigaltstack, but crashes before transferring control to
20055         handler on stack overflow.
20056         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
20057         check for HAVE_STACK_OVERFLOW_HANDLING.
20058         Reported by Elbert Pol.
20059
20060 2008-08-25  Bruno Haible  <bruno@clisp.org>
20061
20062         * doc/posix-functions/strftime.texi: Fix description of strftime
20063         module.
20064
20065 2008-08-24  Bruno Haible  <bruno@clisp.org>
20066
20067         * tests/uniwidth/test-uc_width2.c: New file.
20068         * tests/uniwidth/test-uc_width2.sh: New file.
20069         * modules/uniwidth/width-tests (Files): Add the new files.
20070         (TESTS): Add uniwidth/test-uc_width2.sh.
20071         (TESTS_ENVIRONMENT): New variable.
20072         (check_PROGRAMS): Add test-uc_width2.
20073         (test_uc_width2_SOURCES): New variable.
20074
20075         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
20076         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
20077         not 0x00AB.
20078         Reported by Alexander V. Lukyanov <lav@netis.ru>.
20079
20080 2008-08-22  Eric Blake  <ebb9@byu.net>
20081
20082         test-lock, test-tls: mention why a test is skipped
20083         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
20084         skipped.
20085         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
20086
20087         count-one-bits: relax license
20088         * modules/count-one-bits (License): Relicense to LGPLv2+.
20089         Suggested by Ludovic Courtès, approved by Ben Pfaff.
20090
20091 2008-08-22  Andreas Schwab  <schwab@suse.de>
20092
20093         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20094         Remove spurious space in assignment.
20095
20096 2008-08-21  Simon Josefsson  <simon@josefsson.org>
20097
20098         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
20099         Paul Eggert <eggert@CS.UCLA.EDU>.
20100
20101 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
20102
20103         * modules/gettext: Add m4/threadlib.m4.
20104
20105 2008-08-19  Eric Blake  <ebb9@byu.net>
20106
20107         test-c-stack: fix compilation failure on FreeBSD 5.0
20108         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
20109         headers before <sys/resource.h>.
20110         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
20111         the bug.
20112         Reported by Nelson H. F. Beebe.
20113
20114         strverscmp: migrate from "strverscmp.h" to <string.h>
20115         * modules/string (Makefile.am): Add new hooks.
20116         * modules/strverscmp (Files): Remove strverscmp.h.
20117         (Depends-on): Add string.
20118         (configure.ac): Add indicator.
20119         (Include): Mention new header.
20120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
20121         defaults.
20122         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
20123         results.
20124         * lib/strverscmp.h: Delete.
20125         * lib/string.in.h (strverscmp): Provide declaration, when needed.
20126         * tests/test-strverscmp.c (includes): Adjust client.
20127         * lib/check-version.c (includes): Likewise.
20128         * NEWS: Document the change.
20129
20130         strverscmp: add unit test
20131         * modules/strverscmp-tests: New file.
20132         * tests/test-strverscmp.c: Likewise.
20133
20134 2008-08-19  Simon Josefsson  <simon@josefsson.org>
20135
20136         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
20137         regarding Windows crypto stuff, from Mono.
20138
20139 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
20140
20141         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
20142         if present, for intel RND.  Return error on failures.
20143
20144 2008-08-18  Ben Pfaff  <blp@gnu.org>
20145
20146         gitlog-to-changelog: give better diagnostic for failed pipe-open
20147         * build-aux/gitlog-to-changelog: Improve error message: suggest
20148         that the version of Git may be too old.
20149
20150 2008-08-18  Simon Josefsson  <simon@josefsson.org>
20151
20152         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
20153         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
20154
20155 2008-08-18  Bruno Haible  <bruno@clisp.org>
20156
20157         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
20158         pthread_in_use().
20159
20160 2008-08-18  Bruno Haible  <bruno@clisp.org>
20161
20162         * lib/glthread/threadlib.c: Include <pthread.h>.
20163
20164 2008-08-18  Bruno Haible  <bruno@clisp.org>
20165
20166         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
20167         glthread_recursive_lock_* macros.
20168         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
20169         Fix syntax error.
20170
20171 2008-08-18  Bruno Haible  <bruno@clisp.org>
20172
20173         * lib/glthread/thread.c: Avoid forcing a context switch right after
20174         thread creation.
20175
20176 2008-08-17  Bruno Haible  <bruno@clisp.org>
20177
20178         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
20179         * lib/glthread/thread.h: Provide Win32 specific implementation.
20180         * modules/thread (Files): Add lib/glthread/thread.c.
20181         (Depends-on): Add lock.
20182         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
20183
20184 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20185
20186         New module 'yield'.
20187         * modules/yield: New file.
20188         * lib/glthread/yield.h: New file.
20189         * m4/yield.m4: New file.
20190         * MODULES.html.sh (Multithreading): Add yield.
20191
20192 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20193
20194         New module 'thread'.
20195         * modules/thread: New file.
20196         * lib/glthread/thread.h: New file.
20197         * m4/thread.m4: New file.
20198         * MODULES.html.sh (Multithreading): Add thread.
20199
20200 2008-08-17  Bruno Haible  <bruno@clisp.org>
20201
20202         * lib/glthread/lock.h: Include <stdlib.h> always.
20203         * lib/glthread/tls.h: Likewise.
20204         * lib/glthread/cond.h: Likewise.
20205
20206 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20207
20208         New module 'cond'.
20209         * modules/cond: New file.
20210         * lib/glthread/cond.h: New file.
20211         * lib/glthread/cond.c: New file.
20212         * m4/cond.m4: New file.
20213         * MODULES.html.sh (Multithreading): Add cond.
20214
20215 2008-08-16  Eric Blake  <ebb9@byu.net>
20216
20217         c-stack: fix regression on Irix 5.3 from 2008-06-21
20218         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
20219         sa_sigaction...
20220         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
20221         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
20222         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
20223         * modules/signal (Makefile.am): Use the value.
20224         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
20225         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
20226         * doc/posix-headers/signal.texi (signal.h): Document this
20227         portability issue.
20228         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
20229         Reported by Tom G. Christensen.
20230
20231 2008-08-17  Bruno Haible  <bruno@clisp.org>
20232
20233         New module 'threadlib'.
20234         * modules/threadlib: New file.
20235         * lib/glthread/threadlib.c: New file, extracted from
20236         lib/glthread/lock.c.
20237         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
20238         functions.
20239         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
20240         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
20241         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
20242         macros.
20243         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
20244         (gl_DISABLE_THREADS): Remove macro.
20245         * modules/lock (Files): Remove build-aux/config.rpath.
20246         (Depends-on): Remove havelib. Add threadlib.
20247         (configure.ac-early): Remove section.
20248         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
20249         * modules/tls (Depends-on): Remove lock. Add threadlib.
20250         (Link): New section, copied from threadlib.
20251         * MODULES.html.sh (Multithreading): Add threadlib.
20252
20253 2008-08-14  Bruno Haible  <bruno@clisp.org>
20254
20255         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
20256         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
20257         glthread_rwlock_unlock, glthread_rwlock_destroy,
20258         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
20259         glthread_recursive_lock_destroy): Define as macros always.
20260         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
20261         glthread_lock_lock.
20262         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
20263         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
20264         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
20265         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
20266         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
20267         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
20268         (glthread_recursive_lock_lock_func): Renamed from
20269         glthread_recursive_lock_lock.
20270         (glthread_recursive_lock_unlock_func): Renamed from
20271         glthread_recursive_lock_unlock.
20272         (glthread_recursive_lock_destroy_func): Renamed from
20273         glthread_recursive_lock_destroy.
20274
20275 2008-08-14  Bruno Haible  <bruno@clisp.org>
20276
20277         * lib/glthread/lock.h: Renamed from lib/lock.h.
20278         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
20279         * lib/glthread/tls.h: Renamed from lib/tls.h.
20280         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
20281         * lib/fstrcmp.c: Update includes.
20282         * lib/strsignal.c: Update includes.
20283         * modules/lock (Files, Makefile.am): Update.
20284         (Include): Change to "glthread/lock.h".
20285         * modules/tls (Files, Makefile.am): Update.
20286         (Include): Change to "glthread/tls.h".
20287         * tests/test-lock.c: Update includes.
20288         * tests/test-tls.c: Update includes.
20289         * NEWS: Mention the renamed header files.
20290
20291 2008-08-11  Jim Meyering  <meyering@redhat.com>
20292
20293         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
20294
20295 2008-08-11  Eric Blake  <ebb9@byu.net>
20296
20297         test-c-stack: avoid C99-ism
20298         * tests/test-c-stack.c (main): Fix whitespace, move declaration
20299         before statement.
20300         Reported by Alain Guibert.
20301
20302 2008-08-10  Jim Meyering  <meyering@redhat.com>
20303
20304         ensure that return value of uinttostr et al are not ignored
20305         * lib/inttostr.h (__GNUC_PREREQ): Define.
20306         (__attribute_warn_unused_result__): Define.
20307         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
20308
20309 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
20310
20311         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
20312         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
20313
20314 2008-08-07  Jim Meyering  <meyering@redhat.com>
20315
20316         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
20317
20318         * modules/mkstemp (License): Relicense under LGPLv2+.
20319         * modules/tempname (License): Likewise.
20320
20321 2008-08-06  Bruno Haible  <bruno@clisp.org>
20322
20323         * lib/poll.c (poll): Further micro-optimization.
20324
20325 2008-08-06  Jim Meyering  <meyering@redhat.com>
20326
20327         inet_pton.c: use locale-independent tolower
20328         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
20329         (inet_pton6): Use c_tolower rather than tolower.
20330         * modules/inet_pton (Depends-on): Add c-ctype.
20331
20332 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
20333
20334         * lib/poll.c (poll): Avoid division when timeout is 0, cache
20335         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
20336
20337 2008-08-06  Jim Meyering  <meyering@redhat.com>
20338
20339         * modules/inet_pton (License): Relicense under LGPLv2+.
20340
20341 2008-08-03  Bruno Haible  <bruno@clisp.org>
20342
20343         Additional non-aborting API for lock and tls.
20344         * lib/lock.h: Include <errno.h>.
20345         (glthread_lock_init): New macro/function.
20346         (gl_lock_init): Define as wrapper around glthread_lock_init.
20347         (glthread_lock_lock): New macro/function.
20348         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
20349         (glthread_lock_unlock): New macro/function.
20350         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
20351         (glthread_lock_destroy): New macro/function.
20352         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
20353         (glthread_rwlock_init): New macro/function.
20354         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
20355         (glthread_rwlock_rdlock): New macro/function.
20356         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
20357         (glthread_rwlock_wrlock): New macro/function.
20358         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
20359         (glthread_rwlock_unlock): New macro/function.
20360         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
20361         (glthread_rwlock_destroy): New macro/function.
20362         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
20363         (glthread_recursive_lock_init): New macro/function.
20364         (gl_recursive_lock_init): Define as wrapper around
20365         glthread_recursive_lock_init.
20366         (glthread_recursive_lock_lock): New macro/function.
20367         (gl_recursive_lock_lock): Define as wrapper around
20368         glthread_recursive_lock_lock.
20369         (glthread_recursive_lock_unlock): New macro/function.
20370         (gl_recursive_lock_unlock): Define as wrapper around
20371         glthread_recursive_lock_unlock.
20372         (glthread_recursive_lock_destroy): New macro/function.
20373         (gl_recursive_lock_destroy): Define as wrapper around
20374         glthread_recursive_lock_destroy.
20375         (glthread_once): New macro/function.
20376         (gl_once): Define as wrapper around glthread_once.
20377         Update function declarations.
20378         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
20379         glthread_rwlock_init. Return error code.
20380         (glthread_rwlock_rdlock_multithreaded): Renamed from
20381         glthread_rwlock_rdlock. Return error code.
20382         (glthread_rwlock_wrlock_multithreaded): Renamed from
20383         glthread_rwlock_wrlock. Return error code.
20384         (glthread_rwlock_unlock_multithreaded): Renamed from
20385         glthread_rwlock_unlock. Return error code.
20386         (glthread_rwlock_destroy_multithreaded): Renamed from
20387         glthread_rwlock_destroy. Return error code.
20388         (glthread_recursive_lock_init_multithreaded): Renamed from
20389         glthread_recursive_lock_init. Return error code.
20390         (glthread_recursive_lock_lock_multithreaded): Renamed from
20391         glthread_recursive_lock_lock. Return error code.
20392         (glthread_recursive_lock_unlock_multithreaded): Renamed from
20393         glthread_recursive_lock_unlock. Return error code.
20394         (glthread_recursive_lock_destroy_multithreaded): Renamed from
20395         glthread_recursive_lock_destroy. Return error code.
20396         (glthread_once_call): Make static.
20397         (glthread_once_multithreaded): Renamed from glthread_once.
20398         * lib/tls.h: Include <errno.h>.
20399         (glthread_tls_key_init): New macro/function.
20400         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
20401         (glthread_tls_set): New macro/function.
20402         (gl_tls_set): Define as wrapper around glthread_tls_set.
20403         (glthread_tls_key_destroy): New macro/function.
20404         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
20405         Update function declarations.
20406         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
20407         glthread_tls_get.
20408         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20409
20410 2008-08-04  Eric Blake  <ebb9@byu.net>
20411
20412         gnumakefile: use space, not TAB, outside of targets
20413         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
20414
20415 2008-08-02  Jim Meyering  <meyering@redhat.com>
20416
20417         getdate.y: avoid locale-dependent date parsing failure
20418         In Turkish locales, getdate would fail to recognize keywords
20419         containing a lowercase "i".  The solution is not to rely on
20420         locale-sensitive case-conversion.
20421         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
20422         (lookup_word): Use c_toupper in place of toupper.
20423         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
20424         Reported by Vefa Bicakci <bicave@superonline.com> in
20425         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
20426         * modules/getdate (Depends-on): Add c-ctype.
20427
20428 2008-08-02  Bruno Haible  <bruno@clisp.org>
20429
20430         * gnulib-tool (func_import): When updating or creating a .gitignore
20431         file, prepend each added line with a slash, and ignore leading slashes
20432         from the existing lines.
20433         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
20434
20435 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20436
20437         Portability fix for GNU make 3.79.1.
20438         * top/GNUmakefile: Avoid 'else COND', which older GNU make
20439         versions do not understand.
20440
20441 2008-08-01  Bruno Haible  <bruno@clisp.org>
20442
20443         Work around bug of HP-UX 10.20 cc with -0.0 literal.
20444         * tests/test-isnanf.h (zero): New variable.
20445         (main): Avoid literal -0.0f.
20446         * tests/test-isnand.h (zero): New variable.
20447         (main): Avoid literal -0.0.
20448         * tests/test-isnanl.h (zero): New variable.
20449         (main): Avoid literal -0.0L.
20450         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
20451         (test_float, test_double, test_long_double): Avoid literals -0.0f,
20452         -0.0, -0.0L.
20453         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
20454         (test_signbitd): Avoid literal -0.0.
20455         (test_signbitl): Avoid literal -0.0L.
20456         * tests/test-ceilf1.c (zero): New variable.
20457         (main): Avoid literal -0.0f.
20458         * tests/test-ceill.c (zero): New variable.
20459         (main): Avoid literal -0.0L.
20460         * tests/test-floorf1.c (zero): New variable.
20461         (main): Avoid literal -0.0f.
20462         * tests/test-floorl.c (zero): New variable.
20463         (main): Avoid literal -0.0L.
20464         * tests/test-roundf1.c (zero): New variable.
20465         (main): Avoid literal -0.0f.
20466         * tests/test-round1.c (zero): New variable.
20467         (main): Avoid literal -0.0.
20468         * tests/test-roundl.c (zero): New variable.
20469         (main): Avoid literal -0.0L.
20470         * tests/test-truncf1.c (zero): New variable.
20471         (main): Avoid literal -0.0f.
20472         * tests/test-trunc1.c (zero): New variable.
20473         (main): Avoid literal -0.0.
20474         * tests/test-truncl.c (zero): New variable.
20475         (main): Avoid literal -0.0L.
20476         * tests/test-frexp.c (zero): New variable.
20477         (main): Avoid literal -0.0.
20478         * tests/test-frexpl.c (zero): New variable.
20479         (main): Avoid literal -0.0L.
20480         * tests/test-ldexpl.c (zero): New variable.
20481         (main): Avoid literal -0.0L.
20482         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
20483         (zerod, zerol): New variables.
20484         (test_function): Avoid literals -0.0, -0.0L.
20485         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
20486         (zerod, zerol): New variables.
20487         (test_function): Avoid literals -0.0, -0.0L.
20488         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
20489         (zerod, zerol): New variables.
20490         (test_function): Avoid literals -0.0, -0.0L.
20491         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
20492         (zerod, zerol): New variables.
20493         (test_function): Avoid literals -0.0, -0.0L.
20494         * tests/test-strtod.c (zero): New variable.
20495         (main): Avoid literal -0.0.
20496         Reported by Jonathan C. Patschke <jp@centtech.com>.
20497
20498 2008-07-31  Jim Meyering  <meyering@redhat.com>
20499
20500         sha256.h: correct definition of SHA224_DIGEST_SIZE
20501         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
20502         Reported by Paulie Pena IV <paulie4@gmail.com>.
20503         Define as 224 / 8, rather than as a literal.
20504         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
20505         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
20506         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
20507
20508 2008-07-31  Bruno Haible  <bruno@clisp.org>
20509
20510         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
20511         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
20512         Reported by Jonathan Patschke <jp@centtech.com>.
20513
20514 2008-07-31  Bruno Haible  <bruno@clisp.org>
20515
20516         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
20517         Reported by Paolo Bonzini <bonzini@gnu.org>.
20518
20519 2008-07-30  Eric Blake  <ebb9@byu.net>
20520
20521         test-strtod: allow compilation without -lm
20522         * tests/test-strtod.c (main): Avoid link dependence on fabs.
20523         Reported by Dennis Clarke <blastwave@gmail.com>.
20524
20525 2008-07-28  Jim Meyering  <meyering@redhat.com>
20526
20527         bootstrap: work also when there are no .po files in po/
20528         * build-aux/bootstrap (update_po_files): Complete the change
20529         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
20530
20531 2008-07-27  Jim Meyering  <meyering@redhat.com>
20532
20533         * users.txt: Add zile.
20534
20535 2008-07-26  Ben Pfaff  <blp@gnu.org>
20536
20537         Add missing dependencies on new m4/exponent[fdl].m4 files.
20538         * modules/isnanf-nolibm: Add m4/exponentf.m4.
20539         * modules/isnand-nolibm: Add m4/exponentd.m4.
20540         * modules/isnanl-nolibm: Add m4/exponentl.m4.
20541         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
20542         m4/isnan[fdl].m4, because the macros actually used moved.
20543         Reported by Jim Meyering.
20544
20545 2008-07-14  Ben Pfaff  <blp@gnu.org>
20546
20547         Add isinf module.
20548         * lib/isinf.c: New file.
20549         * lib/math.in.h: Define isinf macro if we have decided to replace
20550         it.
20551         * m4/isinf.m4: New file.
20552         * m4/math_h.m4: Initialize and substitute variables for isinf
20553         module.
20554         * modules/isinf: New file.
20555         * modules/isinf-tests: New file.
20556         * modules/math: Add substitutions for new module.
20557         * tests/test-isinf.c: New file.
20558         * doc/posix-functions/isinf.texi: Mention new module.
20559         * MODULES.html.sh: Mention new module.
20560
20561 2008-07-14  Ben Pfaff  <blp@gnu.org>
20562
20563         Factor out some macros for use by additional modules.
20564         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
20565         exponentf.m4.
20566         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
20567         exponentd.m4.
20568         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
20569         file exponentl.m4.
20570         * m4/exponentf.m4: New file.
20571         * m4/exponentd.m4: New file.
20572         * m4/exponentl.m4: New file.
20573         * modules/isnanf: Use new file m4/exponentf.m4.
20574         * modules/isnand: Use new file m4/exponentd.m4.
20575         * modules/isnanl: Use new file m4/exponentl.m4.
20576
20577 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
20578
20579         mktime.c: normalize tp->tm_isdst value to -1/0/1.
20580         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
20581         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
20582         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
20583
20584         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
20585         readlink on platforms without PATH_MAX.
20586
20587 2008-07-21  Eric Blake  <ebb9@byu.net>
20588
20589         Warn, not fail, on stale version.
20590         * top/GNUmakefile (_curr-ver): Tone down previous patch.
20591
20592         Don't allow installation with stale devel version number.
20593         * top/GNUmakefile (_is-install-target): New macro.
20594         (_curr-ver): Forbid installation with stale version number.
20595
20596 2008-07-20  Bruno Haible  <bruno@clisp.org>
20597
20598         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
20599         TESTS_ENVIRONMENT.
20600         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
20601
20602 2008-07-20  Bruno Haible  <bruno@clisp.org>
20603
20604         * lib/c-stack.h (c_stack_action): Add documentation.
20605         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
20606
20607 2008-07-20  Bruno Haible  <bruno@clisp.org>
20608
20609         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
20610         * modules/readlink (License): Likewise.
20611
20612 2008-07-17  Eric Blake  <ebb9@byu.net>
20613
20614         * modules/c-stack (Link): Fix typo.
20615
20616         Make c-stack use libsigsegv, when available.
20617         * modules/c-stack (Depends-on): Add libsigsegv.
20618         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
20619         needed.
20620         * lib/c-stack.c (SIGSTKSZ): Define fallback.
20621         (segv_handler, overflow_handler, c_stack_action)
20622         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
20623         implementation when libsigsegv is available, but only when using
20624         the library is necessary.
20625         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
20626         comment, explaining why XSI check fails on Linux.
20627         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
20628         * tests/test-c-stack2.sh: Tweak skip message.
20629         * NEWS: Document new link-time requirements.
20630
20631 2008-07-16  Eric Blake  <ebb9@byu.net>
20632
20633         c-stack: Expose false positives when not using libsigsegv.
20634         * modules/c-stack-tests (Files): Expand test.
20635         * tests/test-c-stack.c (main): Add means to conditionally trigger
20636         non-overflow SIGSEGV.
20637         * tests/test-c-stack2.sh: New file.
20638
20639 2008-07-14  Bruno Haible  <bruno@clisp.org>
20640
20641         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
20642         Reported by Eric Blake.
20643
20644 2008-07-14  Sam Steingold  <sds@gnu.org>
20645             Bruno Haible  <bruno@clisp.org>
20646
20647         New module libsigsegv.
20648         * modules/libsigsegv: New file.
20649         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
20650         modifications.
20651         * MODULES.html.sh (Signal handling): New section.
20652
20653 2008-07-14  Bruno Haible  <bruno@clisp.org>
20654
20655         * modules/unictype/ctype-* (Description): Add the word "function".
20656         Improves the resulting doc in MODULES.html.
20657
20658 2008-07-12  Ben Pfaff  <blp@gnu.org>
20659
20660         Add longlong module.
20661         * modules/longlong: New file.
20662
20663 2008-07-12  Bruno Haible  <bruno@clisp.org>
20664
20665         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
20666         to empty.
20667
20668 2008-07-10  Ben Pfaff  <blp@gnu.org>
20669
20670         Add isnan module.
20671         * doc/posix-functions/isnan.texi: Mention new module.
20672         * lib/math.in.h: Define isnan macro if we have decided to replace
20673         it.
20674         * m4/isnan.m4: New file.
20675         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
20676         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
20677         also.
20678         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
20679         redundancy.
20680         * m4/math_h.m4: Initialize and substitute variables for isnan
20681         module.
20682         * modules/isnan: New file.
20683         * modules/isnan-tests: New file.
20684         * modules/math: Add substitutions for new module.
20685         * tests/test-isnan.c: New file.
20686         * MODULES.html.sh: Mention new module.
20687
20688 2008-07-10  Ben Pfaff  <blp@gnu.org>
20689
20690         Add isnanf module.
20691         * lib/isnanf.m4: New file.
20692         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
20693         (gl_HAVE_ISNANF_IN_LIBM): New macro.
20694         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
20695         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
20696         * modules/isnanf: New file.
20697         * modules/isnanf-tests: New file.
20698         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
20699         files.
20700         * tests/test-isnanf-nolibm.c: factored most of its contents into
20701         new file tests/test-isnanf.h.
20702         * tests/test-isnanf.h: New file.
20703         * tests/test-isnanf.c: New file.
20704         * MODULES.html.sh: Mention new module.
20705         * doc/glibc-functions/isnanf.texi: Mention new module.
20706
20707 2008-07-10  Ben Pfaff  <blp@gnu.org>
20708
20709         Add isnand module.
20710         * lib/isnand.h: New file.
20711         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
20712         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
20713         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
20714         functionality also.
20715         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
20716         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
20717         (gl_HAVE_ISNAND_IN_LIBM): New macro.
20718         * modules/isnand: New file.
20719         * modules/isnand-tests: New file.
20720         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
20721         files.
20722         * tests/test-isnand-nolibm.c: factored most of its contents into
20723         new file tests/test-isnand.h.
20724         * tests/test-isnand.h: New file.
20725         * tests/test-isnand.c: New file.
20726         * MODULES.html.sh: Mention new module.
20727
20728 2008-07-10  Ben Pfaff  <blp@gnu.org>
20729
20730         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
20731         * lib/isnand.h: Rename lib/isnand-nolibm.h.
20732         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
20733         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
20734         * modules/isnanf-nolibm: Update references to renamed files.
20735         * modules/isnand-nolibm: Likewise.
20736         * modules/isnanf-nolibm-tests: Likewise.
20737         * modules/isnand-nolibm-tests: Likewise.
20738         * lib/frexp.c: Likewise.
20739         * lib/isfinite.c: Likewise.
20740         * lib/signbitd.c: Likewise.
20741         * lib/signbitf.c: Likewise.
20742         * lib/vasnprintf.c: Likewise.
20743         * tests/test-ceilf1.c: Likewise.
20744         * tests/test-ceilf2.c: Likewise.
20745         * tests/test-floorf1.c: Likewise.
20746         * tests/test-floorf2.c: Likewise.
20747         * tests/test-frexp.c: Likewise.
20748         * tests/test-round1.c: Likewise.
20749         * tests/test-round2.c: Likewise.
20750         * tests/test-roundf1.c: Likewise.
20751         * tests/test-strtod.c: Likewise.
20752         * tests/test-trunc1.c: Likewise.
20753         * tests/test-trunc2.c: Likewise.
20754         * tests/test-truncf1.c: Likewise.
20755         * tests/test-truncf2.c: Likewise.
20756         * NEWS: Mention the renamed header files.
20757
20758 2008-07-11  Jim Meyering  <meyering@redhat.com>
20759
20760         vc-list-files: make the last-resort awk code more portable
20761         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
20762         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
20763         does not support it.
20764
20765 2008-07-10  Eric Blake  <ebb9@byu.net>
20766
20767         Work with tar's bootstrap.
20768         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
20769         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
20770         an m4 comment.
20771
20772 2008-07-09  Jim Meyering  <meyering@redhat.com>
20773
20774         posix-shell.m4: fix typo that made this test malfunction
20775         * m4/posix-shell.m4: Remove capitalization in variable name.
20776
20777 2008-07-08  Bruno Haible  <bruno@clisp.org>
20778
20779         * m4/onceonly.m4: Update comments.
20780         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20781
20782 2008-07-04  Jim Meyering  <meyering@redhat.com>
20783
20784         * users.txt: Add vc-dwim.
20785         (bison, coreutils): Use the gitweb URL.
20786
20787 2008-07-03  Jim Meyering  <meyering@redhat.com>
20788
20789         * users.txt: Add libffcall.  From Sam Steingold.
20790
20791 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
20792
20793         getdate.y: do not ignore TZ with relative day, month or year offset
20794         * lib/getdate.y (get_date): Move the tz-handling block to follow the
20795         relative-date-handling, since otherwise, the latter would clobber the
20796         sole output (an updated Start value) of the tz-handling block.
20797         * tests/test-getdate.c: Tests for the fix
20798
20799 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20800
20801         Recognize 'foo_LIBRARIES += libgnu.a'.
20802         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
20803         makefile snippet has already specified an installation location,
20804         also using '+='.
20805
20806 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
20807
20808         getdate.y: factor out common actions
20809         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
20810         Use them in place of open-coded actions.
20811
20812 2008-07-01  Simon Josefsson  <simon@josefsson.org>
20813
20814         Add self-test for getdate module.
20815         * modules/getdate-tests: New file.
20816         * tests/test-getdate.c: New file.
20817
20818 2008-06-29  Bruno Haible  <bruno@clisp.org>
20819
20820         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
20821         .gitignore.
20822         Reported by Sylvain Beucler <beuc@beuc.net>.
20823
20824 2008-06-29  Bruno Haible  <bruno@clisp.org>
20825
20826         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
20827         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
20828
20829 2008-06-29  Bruno Haible  <bruno@clisp.org>
20830
20831         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
20832         EXTRA_DIST.
20833         Reported by Sylvain Beucler <beuc@beuc.net>.
20834
20835 2008-06-26  Jim Meyering  <meyering@redhat.com>
20836
20837         make several modules depend on the "open" module
20838         This provides slightly increased consistency when opening-for-write
20839         the name of a non-directory spelled with a trailing slash.
20840         * modules/chdir-safer: Likewise.
20841         * modules/chown: Likewise.
20842         * modules/clean-temp: Likewise.
20843         * modules/copy-file: Likewise.
20844         * modules/fchdir: Likewise.
20845         * modules/fcntl-safer: Likewise.
20846         * modules/pipe: Likewise.
20847         * modules/utime: Likewise.
20848         Prompted by Eric Blake and Bruno Haible.
20849
20850 2008-06-24  Andreas Schwab  <schwab@suse.de>
20851
20852         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
20853         literals can be used as initializers for global variables.
20854
20855 2008-06-23  Eric Blake  <ebb9@byu.net>
20856
20857         Make gnulib-cache.m4 easier to diff.
20858         * gnulib-tool (func_import): Allow newlines when reading cached
20859         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
20860
20861 2008-06-23  Bruno Haible  <bruno@clisp.org>
20862
20863         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
20864         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
20865         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
20866         m4/signalblocking.m4.
20867         (gl_PREREQ_SIGACTION): Don't invoke it.
20868         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
20869         gl_PREREQ_SIG_HANDLER_H.
20870         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20871         Don't check for sigaction here.
20872
20873 2008-06-23  Bruno Haible  <bruno@clisp.org>
20874
20875         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
20876         (install_handlers): Don't set the SA_RESETHAND flag.
20877
20878 2008-06-23  Bruno Haible  <bruno@clisp.org>
20879
20880         * m4/sigaction.m4: Comment fixes.
20881         * lib/signal.in.h: Likewise.
20882
20883 2008-06-23  Eric Blake  <ebb9@byu.net>
20884
20885         Fix typo.
20886         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
20887
20888         Avoid SA_ namespace.
20889         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
20890         Reported by Ralf Wildenhues.
20891
20892         Avoid test failure due to SA_RESTORER.
20893         * tests/test-sigaction.c (SA_MASK): New macro.
20894         (main): Avoid failing due to extension flags being set.
20895         Reported by Jim Meyering.
20896
20897         Revert use of sig-handler.h in sigprocmask.c.
20898         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
20899         it requires the existence of struct sigaction.
20900         * lib/sigprocmask.c (handler_t): Restore typedef.
20901         (rpl_signal, old_handlers): Use local type.
20902
20903 2008-06-22  Bruno Haible  <bruno@clisp.org>
20904
20905         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
20906         conditionally.
20907         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20908
20909 2008-06-22  Bruno Haible  <bruno@clisp.org>
20910
20911         * doc/posix-functions/siginterrupt.texi: Move note.
20912
20913         * lib/signal.in.h (SA_RESTART): New macro.
20914         * lib/sigaction.c: Update comment.
20915
20916         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
20917
20918         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
20919         (gl_PREREQ_SIGPROCMASK): Invoke it.
20920         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
20921
20922         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
20923
20924         * lib/sigprocmask.c: Update a comment.
20925
20926 2008-06-21  Eric Blake  <ebb9@byu.net>
20927
20928         Use sigaction module rather than signal().
20929         * modules/c-stack (Depends-on): Add sigaction.
20930         * modules/fatal-signal (Depends-on): Likewise.
20931         * modules/nanosleep (Depends-on): Likewise.
20932         * modules/sigprocmask (Files): Add sig-handler.h.
20933         * modules/sigaction (Files): Likewise.
20934         * lib/sig-handler.h (get_handler): New file, suggested by Paul
20935         Eggert.
20936         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
20937         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
20938         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
20939         (init_fatal_signals): Likewise.
20940         * lib/nanosleep.c (rpl_nanosleep): Likewise.
20941         (siginterrupt): Delete fallback.
20942         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
20943         instead.
20944         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
20945         siginterrupt.
20946
20947         New module sigaction, for mingw.
20948         * modules/sigaction: New module...
20949         * modules/sigaction-tests: ...and its test.
20950         * m4/sigaction.m4: New file.
20951         * lib/sigaction.c: Likewise.
20952         * tests/test-sigaction.c: Likewise.
20953         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
20954         * modules/signal (Makefile.am): Likewise.
20955         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
20956         needed.
20957         * doc/posix-headers/signal.texi (signal.h): Mention provided
20958         types.
20959         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
20960         that sigaction is preferable.
20961         * doc/posix-functions/sigaction.texi (sigaction): Mention new
20962         module.
20963         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20964         sigaction.
20965
20966         Improve robustness of sigprocmask by overriding signal.
20967         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
20968         is in use.
20969         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
20970         (SIGKILL, SIGSTOP): Provide fallbacks.
20971         (rpl_signal): Implement.
20972         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
20973         signal can be called inside handlers.
20974
20975         Fix nanosleep module on mingw.
20976         * modules/nanosleep (Depends-on): Add sys_select.
20977         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
20978
20979         Fix licensing of sigprocmask.
20980         * modules/raise (License): Relicense as LGPL.
20981
20982 2008-06-21  Bruno Haible  <bruno@clisp.org>
20983
20984         * lib/propername.c (proper_name_utf8): Don't use the transliterated
20985         result if it contains question marks.
20986         Reported by Michael Geng <linux@michaelgeng.de>.
20987
20988 2008-06-19  Bruno Haible  <bruno@clisp.org>
20989
20990         Fix CVS-ism.
20991         * doc/gnulib.texi: Include updated-stamp.texi.
20992         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
20993         (updated-stamp.texi): New rule.
20994         (gnulib.info): Depend on it.
20995         * doc/.gitignore: Add updated-stamp.texi.
20996         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
20997
20998 2008-06-19  Bruno Haible  <bruno@clisp.org>
20999
21000         * doc/Makefile (gnulib.info): Update and simplify dependencies.
21001         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21002
21003 2008-06-19  Eric Blake  <ebb9@byu.net>
21004
21005         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
21006         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
21007         Reported by Stepan Kasal.
21008
21009 2008-06-18  Bruno Haible  <bruno@clisp.org>
21010
21011         * lib/fatal-signal.c (init_fatal_signals): Add comment.
21012         Reported by Eric Blake.
21013
21014 2008-06-18  Eric Blake  <ebb9@byu.net>
21015
21016         Work around cygwin 1.5.25 strsignal bug.
21017         * tests/test-strsignal.c: Allow for const char *.
21018         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
21019
21020 2008-06-18  Simon Josefsson  <simon@josefsson.org>
21021
21022         * users.txt: Update URL to article and add author/date
21023         information.
21024
21025 2008-06-17  Bruno Haible  <bruno@clisp.org>
21026
21027         New macro gl_DISABLE_THREADS.
21028         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
21029         if the user did not pass --enable-threads or --disable-threads option.
21030         (gl_DISABLE_THREADS): New macro.
21031         Reported by Eric Blake <ebb9@byu.net>.
21032
21033 2008-06-17  Bruno Haible  <bruno@clisp.org>
21034
21035         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
21036         when the macro ignores it.
21037         Based on a patch by Eric Blake <ebb9@byu.net>.
21038
21039 2008-06-17  Bruno Haible  <bruno@clisp.org>
21040
21041         * modules/tls (License): Change to LGPLv2+.
21042         Reported by Eric Blake.
21043
21044 2008-06-17  Eric Blake  <ebb9@byu.net>
21045
21046         Simplify c-stack prerequisites.
21047         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
21048         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
21049         no longer requires <ucontext.h> to exist.  Optimize setrlimit
21050         check.
21051         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
21052         <sys/resource.h>.
21053
21054         Move c-stack test into testsuite.
21055         * modules/c-stack-tests: New file.
21056         * lib/c-stack.c [DEBUG]: Move test program...
21057         * tests/test-c-stack.c: ...into this new file.  Skip rather than
21058         fail test if sigaltstack is lacking.
21059         * tests/test-c-stack.sh: New driver file.
21060
21061 2008-06-16  Eric Blake  <ebb9@byu.net>
21062
21063         Use raise module consistently.
21064         * modules/fatal-signal (Depends-on): Add raise.
21065         * modules/sigprocmask (Depends-on): Likewise.
21066         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
21067         * lib/sigprocmask.c (sigprocmask): Likewise.
21068         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21069         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
21070
21071         Fix compliance bug in sigpending.
21072         * lib/sigprocmask.c (sigpending): Return pending array via
21073         parameter, not return value.
21074
21075 2008-06-14  Eric Blake  <ebb9@byu.net>
21076
21077         Improve obstack-printf test code.
21078         * tests/test-obstack-printf.c (test_function): Fix comment, and
21079         simplify usage of obstack_* in macros.  Add a test for coverage.
21080         Reported by Bruno Haible.
21081
21082 2008-06-14  Bruno Haible  <bruno@clisp.org>
21083
21084         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
21085         array size as a constant, not as a const variable.
21086         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
21087         AC_USE_SYSTEM_EXTENSIONS.
21088         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21089         Test whether the obstack_printf function actually exists.
21090         * modules/obstack-printf (Depends-on): Add extensions.
21091         (Include): Remove obstack.h.
21092         * modules/obstack-printf-posix (Depends-on): Add extensions.
21093         (Include): Remove obstack.h.
21094
21095 2008-06-13  Eric Blake  <ebb9@byu.net>
21096
21097         Add obstack-printf and obstack-printf-posix modules.
21098         * modules/obstack-printf: New file.
21099         * modules/obstack-printf-posix: Likewise.
21100         * MODULES.html.sh (Misc): Mention them.
21101         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21102         Likewise.
21103         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21104         Likewise.
21105         * modules/stdio (Makefile.am): Accomodate new modules.
21106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21107         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
21108         Declare.
21109         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
21110         functions.
21111         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
21112         (gl_REPLACE_OBSTACK_PRINTF): New macros
21113         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
21114         * tests/test-obstack-printf.c: New file.
21115         * modules/obstack-printf-tests: Likewise.
21116         * modules/obstack-printf-posix-tests: Likewise.
21117
21118 2008-06-11  Bruno Haible  <bruno@clisp.org>
21119
21120         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
21121         * lib/open.c: Include errno.h.
21122         (open): Fail when attempting to write to a file that has a trailing
21123         slash.
21124         * tests/test-open.c (main): Test against trailing slash bug.
21125         * doc/posix-functions/open.texi: Mention the trailing slash bug.
21126
21127 2008-06-10  Bruno Haible  <bruno@clisp.org>
21128
21129         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
21130         for $? to work inside the trap command, with various /bin/sh-s.
21131         * tests/test-vc-list-files-cvs.sh: Likewise.
21132
21133 2008-06-10  Bruno Haible  <bruno@clisp.org>
21134
21135         * lib/acl-internal.h: Don't include gettext.h here.
21136         * lib/set-mode-acl.c: Include gettext.h here.
21137         * lib/copy-acl.c: Likewise.
21138
21139 2008-06-10  Bruno Haible  <bruno@clisp.org>
21140
21141         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
21142         * lib/wait-process.c (wait_subprocess): Likewise.
21143         * lib/execute.h (execute): Add termsigp argument.
21144         * lib/execute.c (execute): Likewise.
21145         * lib/csharpcomp.c (compile_csharp_using_pnet,
21146         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
21147         * lib/csharpexec.c (execute_csharp_using_pnet,
21148         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
21149         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
21150         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
21151         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
21152         is_jikes_present): Update.
21153         * lib/javaexec.c (execute_java_class): Update.
21154         * lib/javaversion.c (execute_and_read_line): Update.
21155         * NEWS: Document the changes.
21156         Reported by Eric Blake.
21157
21158 2008-06-10  Eric Blake  <ebb9@byu.net>
21159
21160         Add missing include.
21161         * tests/test-strstr.c (includes): Add <signal.h>.
21162         * tests/test-strcasestr.c (includes): Likewise.
21163         * tests/test-memmem.c (includes): Likewise.
21164
21165 2008-06-10  Bruno Haible  <bruno@clisp.org>
21166
21167         * lib/wait-process.c (wait_subprocess): Add an assertion.
21168
21169 2008-06-10  Bruno Haible  <bruno@clisp.org>
21170
21171         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
21172
21173 2008-06-10  Bruno Haible  <bruno@clisp.org>
21174
21175         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
21176         using alarm().
21177         * tests/test-strcasestr.c (main): Likewise.
21178         * tests/test-strstr.c (main): Likewise.
21179
21180 2008-06-09  Bruno Haible  <bruno@clisp.org>
21181
21182         Work around the Solaris 10 ACE ACLs ABI change.
21183         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
21184         declare if ACL_NO_TRIVIAL is present.
21185         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
21186         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
21187         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
21188         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
21189         define if ACL_NO_TRIVIAL is present.
21190         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
21191         and use the current ABI.
21192         (file_has_acl): Use same #if condition as elsewhere.
21193         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
21194         in use, and use the current ABI.
21195         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
21196         Reported by Jim Meyering.
21197
21198 2008-06-09  Eric Blake  <ebb9@byu.net>
21199
21200         Work around environments that (stupidly) ignore SIGALRM.
21201         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
21202         before using alarm().
21203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21204         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21205         Reported by Ian Beckwith <ianb@erislabs.net>.
21206
21207         Produce autobuild blurb earlier in log.
21208         * modules/autobuild (configure.ac-early): Move AB_INIT here.
21209
21210 2008-06-09  Jim Meyering  <meyering@redhat.com>
21211         and OndÅ™ej Vašík  <ovasik@redhat.com>
21212
21213         utimens.c: correct kernel bug work-around
21214         OndÅ™ej Vašík found that the invalid return value of 280 indicates
21215         failure, not success, and the kernel bug we're trying to work
21216         around affects not just the utimensat call, but also the fallback
21217         futimens call.
21218         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
21219         not success.
21220         [HAVE_FUTIMENS]: Use the same work-around, here.
21221
21222 2008-06-09  Jim Meyering  <meyering@redhat.com>
21223
21224         add more guards around definition of ACE_-related code
21225         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
21226         ALLOW and ACE_OWNER are also defined.
21227
21228 2008-06-08  Bruno Haible  <bruno@clisp.org>
21229
21230         * lib/acl-internal.h: Add me as co-author.
21231         * lib/file-has-acl.c: Likewise.
21232         * lib/set-mode-acl.c: Likewise.
21233         * lib/copy-acl.c: Likewise.
21234
21235 2008-06-08  Bruno Haible  <bruno@clisp.org>
21236
21237         Add support for AIX ACLs.
21238         * lib/acl-internal.h (acl_nontrivial): New declaration.
21239         * lib/file-has-acl.c (acl_nontrivial): New function.
21240         (file_has_acl): Add implementation using AIX 4 ACL API.
21241         * lib/set-mode-acl.c (qset_acl): Likewise.
21242         * lib/copy-acl.c (qcopy_acl): Likewise.
21243
21244 2008-06-08  Bruno Haible  <bruno@clisp.org>
21245
21246         Add support for HP-UX ACLs.
21247         * lib/acl-internal.h (acl_nontrivial): New declaration.
21248         * lib/file-has-acl.c (acl_nontrivial): New function.
21249         (file_has_acl): Add implementation using HP-UX 11 ACL API.
21250         * lib/set-mode-acl.c (qset_acl): Likewise.
21251         * lib/copy-acl.c (qcopy_acl): Likewise.
21252
21253 2008-06-08  Bruno Haible  <bruno@clisp.org>
21254
21255         Add support for Cygwin ACLs.
21256         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
21257         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
21258         the chmod_or_fchmod call.
21259         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
21260
21261 2008-06-08  Bruno Haible  <bruno@clisp.org>
21262
21263         Fix bug with setuid modes in Solaris 10+ code.
21264         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
21265         succeeded, when the mode contains some special bits.
21266
21267 2008-06-08  Bruno Haible  <bruno@clisp.org>
21268
21269         Add support for Solaris 7..10 ACLs.
21270         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
21271         declarations.
21272         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
21273         functions.
21274         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
21275         * lib/set-mode-acl.c (qset_acl): Likewise.
21276         * lib/copy-acl.c (qcopy_acl): Likewise.
21277
21278 2008-06-08  Bruno Haible  <bruno@clisp.org>
21279
21280         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
21281         declaration.
21282         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
21283         (acl_access_nontrivial): Remove MacOS X case.
21284         (file_has_acl): Use acl_extended_nontrivial.
21285         * lib/copy-acl.c (qcopy_acl): Likewise.
21286
21287 2008-06-08  Bruno Haible  <bruno@clisp.org>
21288
21289         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
21290
21291 2008-06-08  Jim Meyering  <meyering@redhat.com>
21292
21293         * modules/acl (Maintainer): Add Bruno Haible.
21294
21295 2008-06-07  Bruno Haible  <bruno@clisp.org>
21296
21297         Improve support for Tru64 ACLs.
21298         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
21299         ACL on OSF/1.
21300
21301 2008-06-07  Bruno Haible  <bruno@clisp.org>
21302
21303         Add support for MacOS X ACLs.
21304         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
21305         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
21306         * lib/set-mode-acl.c (qset_acl): Likewise.
21307         * lib/copy-acl.c (qcopy_acl): Likewise.
21308
21309 2008-06-07  Bruno Haible  <bruno@clisp.org>
21310
21311         Fix memory leak introduced on 2008-05-22.
21312         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
21313         use.
21314
21315 2008-06-07  Bruno Haible  <bruno@clisp.org>
21316
21317         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
21318         to construct an empty ACL.
21319
21320 2008-06-07  Bruno Haible  <bruno@clisp.org>
21321
21322         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
21323         precisely.
21324         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
21325
21326 2008-06-07  Bruno Haible  <bruno@clisp.org>
21327
21328         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
21329         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
21330
21331 2008-06-07  Bruno Haible  <bruno@clisp.org>
21332
21333         * doc/posix-functions/_setjmp.texi: Explain the use of this function
21334         regardless of POSIX.
21335         * doc/posix-functions/_longjmp.texi: Likewise.
21336         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
21337         SystemV platform in this case.
21338
21339 2008-06-06  Eric Blake  <ebb9@byu.net>
21340
21341         Document abort() bugs.
21342         * doc/posix-functions/abort.texi (abort): Mention anomalies.
21343
21344         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
21345         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
21346         sigsetjmp.
21347         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
21348         siglongjmp, but only as a macro.
21349         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
21350         is obsolete.
21351         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
21352
21353         Tweak documentation to cover cygwin argz bugs.
21354         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
21355         argz bug fix; no code change needed since no cygwin releases
21356         occurred between the last fix and the bug being tested.
21357         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
21358         module and recently fixed cygwin bugs.
21359         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
21360         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
21361         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
21362         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
21363         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
21364         Likewise.
21365         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
21366         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
21367         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
21368         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
21369         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
21370         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
21371         Likewise.
21372
21373         Avoid gcc warning on cygwin.
21374         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
21375         !ACL_NO_TRIVIAL]: Avoid unused variable.
21376
21377 2008-06-05  Eric Blake  <ebb9@byu.net>
21378
21379         Be tolerant of UNKNOWN version in gnulib-tool test dir.
21380         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
21381         git-version-gen fails to come up with a version.
21382         Reported by Simon Josefsson.
21383
21384 2008-06-05  Jim Meyering  <meyering@redhat.com>
21385             Paul Eggert  <eggert@cs.ucla.edu>
21386
21387         utimens.c: work around a probable Linux kernel bug
21388         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
21389         appears to be a kernel bug that causes utimensat to return 280
21390         instead of 0, indicating success.
21391
21392 2008-06-04  Bruno Haible  <bruno@clisp.org>
21393
21394         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
21395         2008-06-01 commit.
21396
21397 2008-06-04  Bruno Haible  <bruno@clisp.org>
21398
21399         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
21400         * lib/file-has-acl.c (acl_access_nontrivial): New function.
21401         (file_has_acl): Use it. Save errno afterwards.
21402         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
21403
21404 2008-06-03  Bruno Haible  <bruno@clisp.org>
21405
21406         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
21407         draft code. Simplify #ifs.
21408         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
21409         Put Solaris code after POSIX-draft code. Fix comments regarding
21410         Solaris 10, HP-UX. Mention Cygwin.
21411         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
21412
21413 2008-06-03  Eric Blake  <ebb9@byu.net>
21414
21415         Provide fallback for older kernels.
21416         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
21417         Provide runtime fallback if kernel lacks support.
21418         Reported by Mike Frysinger.
21419
21420 2008-06-02  Bruno Haible  <bruno@clisp.org>
21421
21422         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
21423         it exists.
21424
21425 2008-06-02  Bruno Haible  <bruno@clisp.org>
21426
21427         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
21428         * lib/copy-acl.c (qcopy_acl): Update comment.
21429
21430 2008-06-02  Bruno Haible  <bruno@clisp.org>
21431
21432         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
21433         like ACL APIs.
21434
21435 2008-06-02  Bruno Haible  <bruno@clisp.org>
21436
21437         * tests/test-file-has-acl.sh: Use different code for Cygwin.
21438         * tests/test-set-mode-acl.sh: Likewise.
21439         * tests/test-copy-acl.sh: Likewise.
21440         * tests/test-copy-file.sh: Likewise.
21441
21442 2008-06-02  Bruno Haible  <bruno@clisp.org>
21443
21444         * tests/test-file-has-acl.sh: Remove unused code.
21445
21446 2008-06-01  Bruno Haible  <bruno@clisp.org>
21447
21448         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
21449         (copy_acl): Just a wrapper around qcopy_acl that emits the error
21450         messages.
21451         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
21452
21453 2008-06-01  Bruno Haible  <bruno@clisp.org>
21454
21455         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
21456         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
21457         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
21458         APIs.
21459         * modules/acl-tests (configure.ac): Remove tests now contained in
21460         m4/acl.m4.
21461
21462 2008-06-02  Jim Meyering  <meyering@redhat.com>
21463
21464         announce-gen: use a better key-server host name
21465         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
21466         it may be more consistently reliable.  Suggested by Werner Koch
21467         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
21468
21469 2008-06-01  Bruno Haible  <bruno@clisp.org>
21470
21471         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
21472         Reported by Voroskoi Andras <voroskoi@gmail.com>.
21473
21474 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
21475
21476         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
21477
21478 2008-06-01  Bruno Haible  <bruno@clisp.org>
21479
21480         New ACL tests.
21481         * tests/test-file-has-acl.sh: New file.
21482         * tests/test-file-has-acl.c: New file.
21483         * tests/test-set-mode-acl.sh: New file.
21484         * tests/test-set-mode-acl.c: New file.
21485         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
21486         * tests/test-copy-acl.c: New file.
21487         * modules/acl-tests: New file, based on modules/copy-file-tests.
21488         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
21489         (Depends-on): Add acl-tests.
21490         (configure.ac): Remove checks.
21491         (Makefile.am): Don't create test-sameacls program here any more.
21492
21493 2008-06-01  Bruno Haible  <bruno@clisp.org>
21494
21495         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
21496         * tests/test-sameacls.c: Include progname.h.
21497         (main): Invoke set_program_name. Portability fixes for MacOS X,
21498         Solaris, HP-UX.
21499
21500 2008-06-01  Bruno Haible  <bruno@clisp.org>
21501
21502         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
21503         function.
21504         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
21505
21506 2008-06-01  Bruno Haible  <bruno@clisp.org>
21507
21508         * modules/rpmatch (Depends-on): Add strdup.
21509
21510 2008-06-01  Bruno Haible  <bruno@clisp.org>
21511
21512         * lib/pipe.c: Include unistd-safer.h.
21513         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
21514         * modules/pipe (Depends-on): Add unistd-safer.
21515
21516 2008-05-30  Simon Josefsson  <simon@josefsson.org>
21517
21518         * modules/autobuild (configure.ac): Call AB_INIT.
21519
21520 2008-05-30  Simon Josefsson  <simon@josefsson.org>
21521
21522         * tests/test-getaddrinfo.c: Don't print debug messages by default.
21523         Suggested by Bruno Haible <bruno@clisp.org>.
21524
21525 2008-05-30  Simon Josefsson  <simon@josefsson.org>
21526
21527         * tests/test-base64.c: Cast size_t to unsigned long when invoking
21528         printf.  Use %lu instead of %d.  Reported by Bruno Haible
21529         <bruno@clisp.org>.
21530
21531 2008-05-29  Eric Blake  <ebb9@byu.net>
21532
21533         Prefer new POSIX 200x interfaces over futimesat.
21534         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
21535         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
21536         when available.
21537         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
21538
21539 2008-05-28  Bruno Haible  <bruno@clisp.org>
21540
21541         * modules/stpcpy (License): Change to LGPLv2+.
21542         Requested by David Lutterkort <dlutter@redhat.com>.
21543
21544 2008-05-27  Bruno Haible  <bruno@clisp.org>
21545
21546         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
21547         current mingw.
21548         Reported by Jose E. Marchesi <jemarch@gnu.org>.
21549
21550 2008-05-27  Bruno Haible  <bruno@clisp.org>
21551
21552         * modules/iconv_open (Link): New section, from module 'iconv'.
21553         * modules/striconv (Link): Likewise.
21554         * modules/striconveh (Link): Likewise.
21555         * modules/xstriconv (Link): Likewise.
21556         * modules/unicodeio (Link): Likewise.
21557         * modules/propername (Link): Likewise.
21558         Reported by Jim Meyering.
21559
21560 2008-05-26  Jim Meyering  <meyering@redhat.com>
21561
21562         sha256: do not artificially restrict buffer length to be < 2^32
21563         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
21564         uint32_t to size_t.
21565         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
21566         to match.
21567
21568         avoid unaligned access errors, e.g., on sparc
21569         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
21570         direct access through a possibly-unaligned uint64* pointer.
21571         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
21572         direct access through a possibly-unaligned uint32* pointer.
21573         Prompted by this patch from Tom "spot" Callaway:
21574         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
21575
21576         sha512.c: fix typo in comment
21577         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
21578
21579 2008-05-25  Bruno Haible  <bruno@clisp.org>
21580
21581         * lib/set-mode-acl.c: Renamed from lib/acl.c.
21582         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
21583         (Makefile.am): Update lib_SOURCES.
21584
21585 2008-05-25  Bruno Haible  <bruno@clisp.org>
21586
21587         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
21588
21589 2008-05-25  Jim Meyering  <meyering@redhat.com>
21590
21591         useless-if-before-free: freed expr may have white-space differences
21592         * build-aux/useless-if-before-free: Recognize cases in which the
21593         freed expression differs from the tested one in embedded white
21594         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
21595         $1 was used, so we can't make any regexp shy.  Improved tests now
21596         detect this.
21597
21598         useless-if-before-free: accept white space in the expression.
21599         * build-aux/useless-if-before-free: For now, any white space
21600         in the expression must be identical in the free argument.
21601
21602         useless-if-before-free: efficiency tweak
21603         * build-aux/useless-if-before-free: Make the expression-matching
21604         regexp "shy".
21605         Make the *outer* regexp shy, not the expr-matching one.
21606
21607         update code-in-comment to accept cast of free arg
21608         * build-aux/useless-if-before-free: Update regexp.
21609
21610 2008-05-25  Bruno Haible  <bruno@clisp.org>
21611
21612         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
21613         * modules/copy-file-tests (Files, Makefile.am): Update.
21614         * tests/test-copy-file.c (func_test_copy): Update.
21615
21616 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
21617
21618         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
21619
21620 2008-05-23  Bruno Haible  <bruno@clisp.org>
21621
21622         Improve support for ACLs on OSF/1.
21623         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
21624         Remove fallback for unknown flavors of ACLs.
21625
21626 2008-05-22  Bruno Haible  <bruno@clisp.org>
21627
21628         Add support for ACLs on OSF/1.
21629         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
21630         replacements.
21631         (acl_free_text): New macro fallback.
21632         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
21633         acl_free.
21634         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
21635         acl_free_text function. Require AC_C_INLINE.
21636
21637 2008-05-22  Bruno Haible  <bruno@clisp.org>
21638
21639         Make copy_acl work on MacOS X 10.5.
21640         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
21641         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
21642         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
21643         If MODE_INSIDE_ACL, don't assume that every system has the same text
21644         representation for ACLs as FreeBSD.
21645         * lib/copy-acl.c (copy_acl): Add support for platforms with
21646         !MODE_INSIDE_ACL.
21647         * lib/file-has-acl.c (file_has_acl): Likewise.
21648         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
21649         FreeBSD, MacOS X, or IRIX, respectively.
21650
21651 2008-05-22  Bruno Haible  <bruno@clisp.org>
21652
21653         * lib/acl.h: Don't include <sys/acl.h>.
21654         (GETACLCNT): Move fallback to lib/acl-internal.h.
21655         * lib/acl-internal.h: Include <sys/acl.h> here.
21656         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
21657
21658 2008-05-22  Bruno Haible  <bruno@clisp.org>
21659
21660         Split off copy_acl function to separate file.
21661         * lib/copy-acl.c: New file, extracted from lib/acl.c.
21662         * lib/acl.c (copy_acl): Moved function to separate file.
21663         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
21664         * modules/acl (Files): Add lib/copy-acl.c.
21665         (Makefiles.am): Augment lib_SOURCES.
21666
21667 2008-05-22  Bruno Haible  <bruno@clisp.org>
21668
21669         * modules/copy-file-tests: New file.
21670         * tests/test-copy-file.sh: New file.
21671         * tests/test-copy-file.c: New file.
21672         * tests/test-copy-file-sameacls.c: New file.
21673
21674 2008-05-22  Eric Blake  <ebb9@byu.net>
21675
21676         Avoid gcc warning.
21677         * tests/test-memcmp.c (main): Pass NULL indirectly.
21678
21679 2008-05-21  Bruno Haible  <bruno@clisp.org>
21680
21681         Add reference doc about ACLs.
21682         * doc/acl-resources.txt: New file.
21683         * doc/acl-cygwin.txt: New file.
21684
21685 2008-05-21  Bruno Haible  <bruno@clisp.org>
21686
21687         Avoid one more warning from gcc.
21688         * lib/vasnprintf.c (IF_LINT): Update comments.
21689         (VASNPRINTF): Use it also for the 'prefix' array initializer.
21690
21691 2008-05-21  Jim Meyering  <meyering@redhat.com>
21692
21693         avoid a warning from gcc
21694         * lib/vasnprintf.c (IF_LINT): Define.
21695         (scale10_round_decimal_long_double):
21696         Use it to avoid a "may be used uninitialized" warning.
21697         (scale10_round_decimal_double): Likewise.
21698
21699 2008-05-21  Simon Josefsson  <simon@josefsson.org>
21700
21701         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
21702         declared.
21703
21704 2008-05-20  Bruno Haible  <bruno@clisp.org>
21705
21706         * tests/test-memcmp.c (main): Test also the sign of the result. Test
21707         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
21708
21709 2008-05-20  Simon Josefsson  <simon@josefsson.org>
21710
21711         * modules/memcmp-tests: New file.
21712         * tests/test-memcmp.c: New file.
21713
21714 2008-05-19  Bruno Haible  <bruno@clisp.org>
21715
21716         * modules/propername (Notice, configure.ac): Put quoted "..." into
21717         --keyword option.
21718         * lib/propername.h: Update comments accordingly.
21719         Reported by Eric Blake.
21720
21721 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
21722
21723         * modules/getpass-gnu (Depends-on): Add fseeko.
21724
21725 2008-05-19  Simon Josefsson  <simon@josefsson.org>
21726
21727         * modules/base64-tests: New file.
21728
21729 2008-05-19  Bo Borgerson <gigabo@gmail.com>
21730
21731         * lib/base64.c (base64_decode_ctx): If a decode context structure
21732         was passed in use it to ignore newlines.  If a context structure
21733         was _not_ passed in, continue to treat newlines as garbage (this
21734         is the historical behavior).  Formerly base64_decode.
21735         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
21736         takes a decode context structure.
21737         * lib/base64.h (base64_decode): Macro for four-argument calls.
21738         (base64_decode_alloc): Likewise.
21739         * lib/base64.c (base64_decode_ctx): If a decode context structure
21740         was passed in use it to ignore newlines.  If a context structure
21741         was _not_ passed in, continue to treat newlines as garbage (this
21742         is the historical behavior).  Formerly base64_decode.
21743         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
21744         takes a decode context structure.
21745         * lib/base64.h (base64_decode): Macro for four-argument calls.
21746         (base64_decode_alloc): Likewise.
21747
21748 2008-05-19  Jim Meyering  <meyering@redhat.com>
21749
21750         avoid a warning from gcc
21751         * lib/trim.c (IF_LINT): Define.
21752         (trim2): Use it to avoid a "may be used uninitialized" warning.
21753
21754         Fix doc typo.
21755         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
21756
21757 2008-05-19  Bruno Haible  <bruno@clisp.org>
21758
21759         * doc/glibc-functions/getpass.texi: Document limits of other
21760         implementations.
21761
21762 2008-05-19  Simon Josefsson  <simon@josefsson.org>
21763             Bruno Haible <bruno@clisp.org>
21764
21765         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
21766
21767 2008-05-18  Bruno Haible  <bruno@clisp.org>
21768
21769         * modules/propername: New file, from GNU gettext.
21770         * lib/propername.h: New file, from GNU gettext.
21771         * lib/propername.c: New file, from GNU gettext.
21772         * MODULES.html.sh (Internationalization functions): Add propername.
21773
21774 2008-05-16  Jim Meyering  <meyering@redhat.com>
21775             Bruno Haible  <bruno@clisp.org>
21776
21777         Avoid some warnings from "gcc -Wshadow".
21778         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
21779
21780 2008-05-15  Eric Blake  <ebb9@byu.net>
21781
21782         Extend previous patch to cygwin 1.7.0.
21783         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
21784         fast implementation in cygwin >= 1.7.0.
21785         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21787
21788 2008-05-15  Bruno Haible  <bruno@clisp.org>
21789
21790         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
21791         implementation in glibc >= 2.9.
21792         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21794
21795 2008-05-15  Bruno Haible  <bruno@clisp.org>
21796
21797         * MODULES.html.sh (Internationalization functions): Remove linebreak.
21798         (Unicode string functions): Add unilbrk/*.
21799         Reported by Karl Berry.
21800
21801 2008-05-15  Eric Blake  <ebb9@byu.net>
21802
21803         Fix violation of <stdbool.h> replacement in regex.
21804         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
21805         * lib/regexec.c (re_search_internal): Likewise.
21806         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
21807
21808 2008-05-15  Jim Meyering  <meyering@redhat.com>
21809
21810         avoid distracting test output when git or cvs is not found
21811         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
21812         * tests/test-vc-list-files-git.sh: Likewise.
21813
21814 2008-05-15  Eric Blake  <ebb9@byu.net>
21815
21816         Glibc finally accepted the memmem speedup code, bugzilla #5514.
21817         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
21818         glibc version.
21819         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21820         * doc/posix-functions/strstr.texi (strstr): Likewise.
21821         * lib/str-two-way.h (MAX): Sychronize with glibc.
21822
21823 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
21824
21825         * lib/regcomp.c (optimize_utf8): Add a note on why we test
21826         opr.ctx_type.
21827         (calc_first): Initialize constraint field.
21828         (duplicate_node_closure): Use it instead of special casing ANCHORS.
21829         Fix grammar.
21830         (duplicate_node): Merge constraint field for all node types.
21831         (calc_eclosure_iter): Look at constraint field for all node types.
21832         * lib/regex_internal.c (create_cd_newstate): Don't look at
21833         opr.ctx_type.
21834
21835 2008-05-14  Bruno Haible  <bruno@clisp.org>
21836
21837         Help GCC to do better code generation.
21838         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
21839         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21840         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
21841         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
21842         Declare with attribute 'malloc' if supported.
21843
21844 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
21845
21846         use "echo STR|wc -c" rather than unportable "expr length STR"
21847         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
21848         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
21849
21850 2008-05-14  Jim Meyering  <meyering@redhat.com>
21851
21852         use dd ibs=$n count=1 ... rather than less-portable head -c$n
21853         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
21854         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
21855         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
21856         via Collin Lasse.
21857
21858 2008-05-14  Eric Blake  <ebb9@byu.net>
21859
21860         Avoid quadratic growth in gl_LIBSOURCES.
21861         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
21862         Suggested by Bruno Haible.
21863
21864         Test xmemdup0.
21865         * modules/xmemdup0-tests: New file.
21866         * tests/test-xmemdup0.c: Likewise.
21867
21868 2008-05-13  Eric Blake  <ebb9@byu.net>
21869
21870         Split xmemdup0 into its own module.
21871         * modules/xmemdup0: New file.
21872         * lib/xmemdup0.h: Likewise.
21873         * lib/xmemdup0.c: Likewise.
21874         * MODULES.html.sh (Memory management functions): Add xmemdup0.
21875         * lib/xalloc.h (xmemdup0): Remove.
21876         * lib/xmalloc.c (xmemdup0): Likewise.
21877
21878 2008-05-13  Eric Blake  <ebb9@byu.net>
21879             Bruno Haible  <bruno@clisp.org>
21880
21881         Reduce number of forks required during autoconf.
21882         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
21883         and gl_LIBSOURCES_DIR.
21884         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
21885         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
21886         m4_syscmd per file.
21887         <m4_foreach_w>: Move...
21888         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
21889
21890 2008-05-13  Eric Blake  <ebb9@byu.net>
21891
21892         * gnulib-tool: Fix various comment typos.
21893
21894 2008-05-12  Bruno Haible  <bruno@clisp.org>
21895
21896         Tailor the linebreaking algorithm.
21897         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
21898
21899 2008-05-12  Bruno Haible  <bruno@clisp.org>
21900
21901         Update to Unicode 5.0.0.
21902         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21903         LBP_JV, LBP_JT. Redistribute values.
21904         (unilbrk_table): Change size.
21905         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
21906         Unicode TR#14 rev. 22.
21907         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21908         LBP_JV, LBP_JT. Redistribute values.
21909         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
21910         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
21911         Update.
21912         * lib/unilbrk/lbrkprop1.h: Regenerated.
21913         * lib/unilbrk/lbrkprop2.h: Regenerated.
21914         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
21915         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
21916         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
21917         Likewise.
21918         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
21919         Likewise.
21920         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
21921         result.
21922         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21923         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21924         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21925         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
21926         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
21927         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
21928
21929 2008-05-11  Bruno Haible  <bruno@clisp.org>
21930
21931         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
21932
21933 2008-05-11  Bruno Haible  <bruno@clisp.org>
21934
21935         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
21936         * modules/unilbrk/gen-lbrk: New file.
21937
21938 2008-05-11  Bruno Haible  <bruno@clisp.org>
21939
21940         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
21941         * m4/sha512.m4 (gl_SHA512): Likewise.
21942
21943 2008-05-11  Jim Meyering  <meyering@redhat.com>
21944
21945         New modules: crypto/sha256, crypto/sha512 (from coreutils)
21946         * modules/crypto/sha256: New file.
21947         * modules/crypto/sha512: Likewise.
21948         * lib/sha256.c: Likewise.
21949         * lib/sha256.h: Likewise.
21950         * lib/sha512.c: Likewise.
21951         * lib/sha512.h: Likewise.
21952         * lib/u64.h: Likewise.
21953         * m4/sha256.m4: Likewise.
21954         * m4/sha512.m4: Likewise.
21955         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
21956
21957 2008-05-10  Bruno Haible  <bruno@clisp.org>
21958
21959         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
21960         (Input/Output <stdio.h>): Add xprintf.
21961         (Signal handling <signal.h>): Add strsignal.
21962         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
21963         (Core language properties): Add func.
21964         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
21965         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
21966         strings.
21967         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
21968         (Input/output): New section.
21969         (File system functions): Add openat-die, stat-macros.
21970         (Networking functions): Add sockets.
21971         (Unicode string functions): Add unictype/*.
21972         (Support for building libraries and executables): Add gperf.
21973         (Support for building documentation): Add agpl-3.0.
21974         (Misc): Add nocrash.
21975
21976 2008-05-10  Bruno Haible  <bruno@clisp.org>
21977
21978         * modules/unictype/gen-ctype: New file.
21979
21980 2008-05-10  Jim Meyering  <meyering@redhat.com>
21981
21982         Make chdir-safer.c more efficient on a system with no symlinks.
21983         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
21984         also if ELOOP is zero.  Suggested by Bruno Haible.
21985
21986         Make chdir-safer.c slightly safer.
21987         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
21988         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
21989
21990         Avoid compile failure on systems without ELOOP (like mingw).
21991         * lib/chdir-safer.c (ELOOP): Define if not already defined.
21992         Reported by Bruno Haible.
21993
21994 2008-05-10  Bruno Haible  <bruno@clisp.org>
21995
21996         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
21997         (is_utf8_encoding): Use a case-insensitive comparison.
21998         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
21999         streq.
22000
22001 2008-05-10  Bruno Haible  <bruno@clisp.org>
22002
22003         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
22004         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
22005         * lib/unilbrk/ulc-common.h (iconv_string_length,
22006         iconv_string_keeping_offsets): Remove declarations.
22007         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
22008         Don't include <iconv.h>, streq.h, xsize.h.
22009         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
22010         conversion.
22011         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
22012         <iconv.h>, streq.h, xsize.h.
22013         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
22014         conversion.
22015         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
22016         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
22017         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
22018         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
22019
22020 2008-05-10  Bruno Haible  <bruno@clisp.org>
22021
22022         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
22023         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
22024
22025         * modules/unilbrk/u32-width-linebreaks-tests: New file.
22026         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
22027
22028         * modules/unilbrk/u16-width-linebreaks-tests: New file.
22029         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
22030
22031         * modules/unilbrk/u8-width-linebreaks-tests: New file.
22032         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
22033
22034         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
22035         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
22036
22037         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
22038         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
22039
22040         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
22041         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
22042
22043         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
22044         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
22045
22046 2008-05-10  Bruno Haible  <bruno@clisp.org>
22047
22048         Split up 'linebreak' module.
22049         * lib/unilbrk.h: New file, based on lib/linebreak.h.
22050         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
22051         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
22052         modifications.
22053         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
22054         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
22055         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
22056         lib/linebreak.c.
22057         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
22058         lib/linebreak.c.
22059         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
22060         lib/linebreak.c.
22061         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
22062         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
22063         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
22064         lib/linebreak.c.
22065         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
22066         lib/linebreak.c.
22067         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
22068         lib/linebreak.c.
22069         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
22070         lib/linebreak.c.
22071         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
22072         lib/linebreak.c.
22073         * modules/unilbrk/base: New file.
22074         * modules/unilbrk/tables: New file.
22075         * modules/unilbrk/u8-possible-linebreaks: New file.
22076         * modules/unilbrk/u16-possible-linebreaks: New file.
22077         * modules/unilbrk/u32-possible-linebreaks: New file.
22078         * modules/unilbrk/ulc-common: New file.
22079         * modules/unilbrk/ulc-possible-linebreaks: New file.
22080         * modules/unilbrk/u8-width-linebreaks: New file.
22081         * modules/unilbrk/u16-width-linebreaks: New file.
22082         * modules/unilbrk/u32-width-linebreaks: New file.
22083         * modules/unilbrk/ulc-width-linebreaks: New file.
22084         * lib/linebreak.h: Remove file.
22085         * lib/linebreak.c: Remove file.
22086         * m4/linebreak.m4: Remove file.
22087         * modules/linebreak: Remove file.
22088         * NEWS: Mention the changes.
22089
22090 2008-05-09  Eric Blake  <ebb9@byu.net>
22091
22092         Add xmemdup0.
22093         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
22094         implementation.
22095         * lib/xmalloc.c (xmemdup0): New C implementation.
22096
22097 2008-05-08  Bruno Haible  <bruno@clisp.org>
22098
22099         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
22100
22101 2008-05-07  Eric Blake  <ebb9@byu.net>
22102
22103         Support cross-compilation of <wctype.h>.
22104         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
22105         AC_CACHE_CHECK.
22106
22107 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
22108
22109         * build-aux/vc-list-files: Add support for bzr.
22110
22111 2008-05-03  Jim Meyering  <meyering@redhat.com>
22112
22113         avoid failed assertion with tight malloc
22114         * tests/test-getndelim2.c: Correct an off-by-one assertion.
22115
22116 2008-05-03  Simon Josefsson  <simon@josefsson.org>
22117
22118         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
22119         are needed from arpa/inet.h.
22120         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
22121         Reported by Bruno Haible.
22122
22123 2008-05-02  Jim Meyering  <meyering@redhat.com>
22124
22125         avoid compilation error on FreeBSD 6
22126         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
22127
22128 2008-05-01  Jim Meyering  <meyering@redhat.com>
22129
22130         useless-if-before-free: correct --help's exit status description
22131         * build-aux/useless-if-before-free (usage): Like grep, exit 0
22132         for one or more matches, etc.  Reported by Bruno Haible.
22133
22134         vc-list-files: make the stand-alone gnulib test work
22135         * modules/vc-list-files-tests (configure.ac):
22136         Define and AC_SUBST abs_aux_dir.
22137         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
22138         $(abs_top_srcdir) to each script and having each of them
22139         duplicate the work of setting PATH, set PATH here, using
22140         the new variable, abs_aux_dir instead.
22141         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
22142         * tests/test-vc-list-files-git.sh: Likewise.
22143         Reported by Bruno Haible.
22144
22145 2008-05-01  Bruno Haible  <bruno@clisp.org>
22146
22147         * lib/getndelim2.c (getndelim2): Fix newsize computation during
22148         reallocation. Rename 'done' to 'found_delimiter'.
22149
22150 2008-05-01  Jim Meyering  <meyering@redhat.com>
22151
22152         vc-list-files: accommodate /bin/sh like the one from Solaris 10
22153         * build-aux/vc-list-files: Use `...`, not $(...).
22154
22155 2008-04-30  Jim Meyering  <meyering@redhat.com>
22156
22157         add tests for vc-list-files
22158         * modules/vc-list-files-tests: New module.
22159         * tests/test-vc-list-files-cvs.sh: New file.
22160         * tests/test-vc-list-files-git.sh: New file.
22161
22162         avoid a warning from gcc
22163         * lib/getndelim2.c (IF_LINT): Define.
22164         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
22165
22166         vc-list-files: work properly with build-aux/cvsu, too
22167         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
22168         to all cvs-based clauses.
22169
22170         vc-list-files: work properly in the CVS+awk case, too
22171         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
22172
22173         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
22174         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
22175         take more than one file argument, so .  Add quotes, just in case $dir
22176         ever contains a shell meta-character.  Prompted by Soren Hansen in
22177         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
22178
22179 2008-04-29  Eric Blake  <ebb9@byu.net>
22180
22181         Optimize getndelim2 to use block operations when possible.
22182         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
22183         freadseek, and memchr2.
22184         * lib/getndelim2.c (getndelim2): Use them for block reads.
22185
22186 2008-04-29  Bruno Haible  <bruno@clisp.org>
22187
22188         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
22189         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22190         * modules/inet_ntop (Depends-on): Add extensions.
22191         * modules/inet_pton (Depends-on): Likewise.
22192         Reported by Simon Josefsson.
22193
22194 2008-04-29  Jim Meyering  <meyering@redhat.com>
22195
22196         When the is more than one match in a block, match all of them.
22197         * build-aux/useless-if-before-free: Iterate through each block
22198         until there are no more matches.
22199
22200         Fix broken useless-if-before-free script.
22201         * build-aux/useless-if-before-free: Fix typo: missing "?" after
22202         the expression to match cast of argument to free-like function.
22203
22204 2008-04-29  Eric Blake  <ebb9@byu.net>
22205
22206         Use new header.
22207         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
22208
22209 2008-04-29  Jim Meyering  <meyering@redhat.com>
22210
22211         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
22212         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
22213         by gnulib to exist and to declare e.g., inet_ntop.
22214         Don't include "inet_ntop.h", now removed.
22215
22216         * m4/arpa_inet_h.m4: Remove trailing blanks.
22217
22218 2008-04-29  Eric Blake  <ebb9@byu.net>
22219
22220         Silence valgrind on safe reads beyond potential array bounds.
22221         * lib/rawmemchr.valgrind: New file.
22222         * lib/strchrnul.valgrind: Likewise.
22223         * modules/rawmemchr (Files): Distribute new file.
22224         * modules/strchrnul (Files): Likewise.
22225         Suggested by Bruno Haible.
22226
22227 2008-04-29  Bruno Haible  <bruno@clisp.org>
22228
22229         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
22230         (inet_ntop, inet_pton): Change portability warning's wording.
22231         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
22232         Invoke gl_CHECK_NEXT_HEADERS.
22233         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
22234         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
22235         set ARPA_INET_H.
22236         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22237         * modules/arpa_inet (Description): No longer only for systems that
22238         lack it.
22239         (Depends-on): Add include_next.
22240         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
22241         HAVE_ARPA_INET_H.
22242
22243 2008-04-29  Jim Meyering  <meyering@redhat.com>
22244
22245         * modules/mkdir (License): Re-license as LGPLv2+.
22246
22247 2008-04-29  Bruno Haible  <bruno@clisp.org>
22248
22249         * modules/rawmemchr (Maintainer): Set to Eric.
22250         * modules/strchrnul (Maintainer): Likewise.
22251
22252 2008-04-29  Simon Josefsson  <simon@josefsson.org>
22253
22254         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
22255         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
22256
22257         * modules/arpa_inet (arpa/inet.h): Use them.
22258
22259 2008-04-28  Eric Blake  <ebb9@byu.net>
22260
22261         Test getndelim2.
22262         * modules/getndelim2-tests: New file.
22263         * tests/test-getndelim2.c: Likewise.
22264         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
22265         stream.
22266         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
22267
22268         * MODULES.html.sh: Document new module.
22269
22270 2008-04-20  Bruno Haible  <bruno@clisp.org>
22271
22272         * lib/c-stack.c (die): Use raise.
22273         * modules/c-stack (Depends-on): Add raise.
22274
22275 2008-04-28  Bruno Haible  <bruno@clisp.org>
22276
22277         Expect rpmatch to be declared.
22278         * lib/yesno.c (rpmatch): Remove declaration.
22279
22280         Declare rpmatch.
22281         * lib/stdlib.in.h (rpmatch): New declaration.
22282         * lib/rpmatch.c: Include <stdlib.h> first.
22283         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
22284         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
22285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
22286         HAVE_RPMATCH.
22287         * modules/rpmatch (Depends-on): Add stdlib, extensions.
22288         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22289         (Include): Set to <stdlib.h>.
22290         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
22291         HAVE_RPMATCH.
22292         * NEWS: Document the change.
22293
22294 2008-04-28  Bruno Haible  <bruno@clisp.org>
22295
22296         Change rpmatch to use nl_langinfo when appropriate.
22297         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
22298         (N_): New macro.
22299         (localized_pattern): New function/macro.
22300         (try): Remove match, nomatch arguments. Copy the pattern into safe
22301         memory before caching it.
22302         (rpmatch): Use localized_pattern. Add translator comments.
22303         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
22304         Suggested by Eric Blake.
22305         * modules/rpmatch (Depends-on): Add stdbool.
22306
22307 2008-04-28  Eric Blake  <ebb9@byu.net>
22308
22309         Add rawmemchr module, matching glibc.
22310         * modules/string (Makefile.am): New indicator.
22311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
22312         * lib/string.in.h (rawmemchr): Declare when appropriate.
22313         * modules/rawmemchr: New file.
22314         * m4/rawmemchr.m4: Likewise.
22315         * lib/rawmemchr.c: Likewise.
22316         * modules/rawmemchr-tests: Likewise.
22317         * tests/test-rawmemchr.c: Likewise.
22318         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
22319         module.
22320         * modules/strchrnul (Depends-on): Add rawmemchr.
22321         * lib/strchrnul.c (strchrnul): Optimize a corner case.
22322
22323         Whitespace cleanup.
22324         * tests/test-strchrnul.c: Reindent.
22325         * lib/strchrnul.c: Likewise.
22326
22327         Optimize and test strchrnul.
22328         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
22329         * modules/strchrnul-tests: New file.
22330         * tests/test-strchrnul.c: Likewise.
22331
22332         Remove intprops dependency.
22333         * modules/memchr (Depends-on): Remove intprops.
22334         * modules/memrchr (Depends-on): Likewise.
22335         * modules/memchr2 (Depends-on): Likewise.
22336         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
22337         * lib/memrchr.c (__memrchr): Likewise.
22338         * lib/memrchr2.c (memchr2): Likewise.
22339         Reported by Simon Josefsson.
22340
22341 2008-04-28  Simon Josefsson  <simon@josefsson.org>
22342
22343         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
22344         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22345
22346 2008-04-28  Simon Josefsson  <simon@josefsson.org>
22347
22348         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
22349
22350         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
22351
22352         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
22353
22354         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
22355         declarations.
22356         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
22357
22358         * m4/inet_pton.m4: Don't check for header files.
22359
22360         * m4/inet_ntop.m4: Don't check for header files.
22361
22362 2008-04-28  Simon Josefsson  <simon@josefsson.org>
22363
22364         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
22365         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
22366         trigger for cygwin).
22367         Reported by Bruno Haible  <bruno@clisp.org>.
22368
22369 2008-04-28  Bruno Haible  <bruno@clisp.org>
22370
22371         * doc/posix-functions/strdup.texi: Mention mingw problem.
22372
22373 2008-04-27  Bruno Haible  <bruno@clisp.org>
22374
22375         * modules/stat-time-tests (Depends-on): Add sleep.
22376         * tests/test-stat-time.c (force_unlink): New function.
22377         (cleanup): Use it.
22378         (test_mtime): Remove the ctime related tests.
22379         (test_ctime): New function, containing the ctime related tests.
22380         (main): Call test_ctime, except on native Windows platforms.
22381
22382 2008-04-27  Bruno Haible  <bruno@clisp.org>
22383
22384         * lib/rpmatch.c (rpmatch): Add some comments.
22385         Reported by James Youngman <jay@gnu.org>.
22386
22387 2008-04-27  Bruno Haible  <bruno@clisp.org>
22388
22389         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
22390         quiet NaNs.
22391
22392 2008-04-27  Bruno Haible  <bruno@clisp.org>
22393
22394         Make test-yesno.sh work on mingw.
22395         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
22396         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
22397         (main): Set stdin to binary mode.
22398         * modules/yesno-tests (Depends-on): Add binary-io.
22399
22400 2008-04-27  Bruno Haible  <bruno@clisp.org>
22401
22402         Fix 'isfinite' on x86, x86_64, ia64 platforms.
22403         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
22404         argument that lie outside the IEEE 854 domain.
22405         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
22406         (gl_ISFINITE): Use it.
22407         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
22408
22409 2008-04-27  Bruno Haible  <bruno@clisp.org>
22410
22411         Allow local renaming in config.h.
22412         * lib/memrchr.c (memrchr): Don't undefine outside libc.
22413
22414 2008-04-27  Bruno Haible  <bruno@clisp.org>
22415
22416         * lib/memchr.c (__memchr): Change type of 'i'.
22417         * lib/memchr2.c (memchr2): Likewise.
22418
22419 2008-04-26  Eric Blake  <ebb9@byu.net>
22420         and Bruno Haible  <bruno@clisp.org>
22421
22422         Optimize and test memrchr.
22423         * modules/memrchr (Depends-on): Add intprops.
22424         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
22425         * modules/memrchr-tests: New file.
22426         * tests/test-memrchr.c: New file.
22427
22428 2008-04-26  Bruno Haible  <bruno@clisp.org>
22429
22430         Add tentative support for DragonFly BSD.
22431         * lib/stdio-impl.h: Add macros for DragonFly BSD.
22432         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
22433         fp.
22434         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
22435         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
22436         * lib/fpurge.c (fpurge): Likewise.
22437         * lib/freadable.c (freaadable): Likewise.
22438         * lib/freadahead.c (freadahead): Likewise.
22439         * lib/freading.c (freading): Likewise.
22440         * lib/freadptr.c (freadptr): Likewise.
22441         * lib/freadseek.c (freadptrinc): Likewise.
22442         * lib/fseeko.c (fseeko): Likewise.
22443         * lib/fseterr.c (fseterr): Likewise.
22444         * lib/fwritable.c (fwritable): Likewise.
22445         * lib/fwriting.c (fwriting): Likewise.
22446
22447 2008-04-26  Bruno Haible  <bruno@clisp.org>
22448
22449         * lib/stdio-impl.h: New file.
22450         * lib/fbufmode.c: Include stdio-impl.h.
22451         (fbufmode): Use fp_, remove redundant #defines.
22452         * lib/fflush.c: Include stdio-impl.h.
22453         (clear_ungetc_buffer): Remove redundant #defines.
22454         * lib/fpurge.c: Include stdio-impl.h.
22455         (fpurge): Remove redundant #defines.
22456         * lib/freadable.c: Include stdio-impl.h.
22457         (freadable): Remove redundant #defines.
22458         * lib/freadahead.c: Include stdio-impl.h.
22459         (freadahead): Remove redundant #defines.
22460         * lib/freading.c: Include stdio-impl.h.
22461         (freading): Remove redundant #defines.
22462         * lib/freadptr.c: Include stdio-impl.h.
22463         (freadptr): Remove redundant #defines.
22464         * lib/freadseek.c: Include stdio-impl.h.
22465         (freadptrinc): Remove redundant #defines.
22466         * lib/fseeko.c: Include stdio-impl.h.
22467         (rpl_fseeko): Remove redundant #defines.
22468         * lib/fseterr.c: Include stdio-impl.h.
22469         (fseterr): Remove redundant #defines.
22470         * lib/fwritable.c: Include stdio-impl.h.
22471         (fwritable: Remove redundant #defines.
22472         * lib/fwriting.c: Include stdio-impl.h.
22473         (fwriting): Remove redundant #defines.
22474         * modules/fbufmode (Files): Add lib/stdio-impl.h.
22475         * modules/fflush (Files): Likewise.
22476         * modules/fpurge (Files): Likewise.
22477         * modules/freadable (Files): Likewise.
22478         * modules/freadahead (Files): Likewise.
22479         * modules/freading (Files): Likewise.
22480         * modules/freadptr (Files): Likewise.
22481         * modules/freadseek (Files): Likewise.
22482         * modules/fseeko (Files): Likewise.
22483         * modules/fseterr (Files): Likewise.
22484         * modules/fwritable (Files): Likewise.
22485         * modules/fwriting (Files): Likewise.
22486
22487 2008-04-26  Bruno Haible  <bruno@clisp.org>
22488
22489         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
22490         restore_seek_optimization, update_fpos_cache): New functions, extracted
22491         from rpl_fflush.
22492         (rpl_fflush): Use them.
22493         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
22494         (gl_REPLACE_FFLUSH): Use it.
22495
22496 2008-04-26  Bruno Haible  <bruno@clisp.org>
22497
22498         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
22499         on Solaris.
22500         * tests/test-xstrtoimax.sh: Likewise.
22501         * tests/test-xstrtoumax.sh: Likewise.
22502         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22503
22504 2008-04-26  Bruno Haible  <bruno@clisp.org>
22505
22506         * modules/memchr-tests: New file.
22507         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
22508
22509 2008-04-26  Eric Blake  <ebb9@byu.net>
22510             Bruno Haible  <bruno@clisp.org>
22511
22512         * lib/memchr.c: Include intprops.h.
22513         (__memchr): Optimize parallel detection of matching bytes. Rename local
22514         variables. Add explanatory comments.
22515
22516 2008-04-26  Bruno Haible  <bruno@clisp.org>
22517
22518         Fix module 'memchr', broken since 2000-10-28.
22519         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
22520
22521 2008-04-26  Bruno Haible  <bruno@clisp.org>
22522
22523         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
22524         comments.
22525
22526 2008-04-25  Eric Blake  <ebb9@byu.net>
22527
22528         Use native fstatat on cygwin 1.7.0.
22529         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
22530         first.
22531
22532 2008-04-23  Eric Blake  <ebb9@byu.net>
22533
22534         Improve memchr2 performance.
22535         * lib/memchr2.c (memchr2): Further optimize parallel detection of
22536         NUL bytes.
22537         * modules/memchr2 (Depends-on): Use intprops.h.
22538
22539 2008-04-23  Simon Josefsson  <simon@josefsson.org>
22540
22541         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
22542         an inline function instead of a CPP macro.  Patch by Ben Pfaff
22543         <blp@cs.stanford.edu>.
22544
22545 2008-04-23  Simon Josefsson  <simon@josefsson.org>
22546
22547         * lib/arpa_inet.in.h: New file.
22548
22549         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
22550         (Makefile.am): Sed in substitute header file.
22551
22552         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
22553         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
22554
22555         * modules/inet_ntop (configure.ac): Use
22556         gl_ARPA_INET_MODULE_INDICATOR.
22557
22558         * modules/inet_pton (configure.ac): Use
22559         gl_ARPA_INET_MODULE_INDICATOR.
22560
22561 2008-04-22  Jim Meyering  <meyering@redhat.com>
22562
22563         * modules/verify (License): Re-license as LGPLv2+.
22564
22565 2008-04-22  Simon Josefsson  <simon@josefsson.org>
22566
22567         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
22568         parameter to void* as per POSIX standard (MinGW uses char*).
22569
22570 2008-04-21  Bruno Haible  <bruno@clisp.org>
22571
22572         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22573         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
22574         Define to replacements if REPLACE_ISWCNTRL is 1.
22575         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
22576         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
22577         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
22578         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
22579         what it fixes.
22580         * doc/posix-functions/iswalpha.texi: Likewise.
22581         * doc/posix-functions/iswblank.texi: Likewise.
22582         * doc/posix-functions/iswcntrl.texi: Likewise.
22583         * doc/posix-functions/iswdigit.texi: Likewise.
22584         * doc/posix-functions/iswgraph.texi: Likewise.
22585         * doc/posix-functions/iswlower.texi: Likewise.
22586         * doc/posix-functions/iswprint.texi: Likewise.
22587         * doc/posix-functions/iswpunct.texi: Likewise.
22588         * doc/posix-functions/iswspace.texi: Likewise.
22589         * doc/posix-functions/iswupper.texi: Likewise.
22590         * doc/posix-functions/iswxdigit.texi: Likewise.
22591         Reported by Alain Guibert.
22592
22593 2008-04-21  Bruno Haible  <bruno@clisp.org>
22594
22595         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
22596         Patch by Alain Guibert.
22597
22598 2008-04-21  Bruno Haible  <bruno@clisp.org>
22599
22600         Fix test failures on mingw.
22601         * tests/test-xstrtol.c (print_no_progname): New function.
22602         (main): Install it in error_print_progname hook.
22603         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
22604         * tests/test-xstrtoimax.sh: Likewise.
22605         * tests/test-xstrtoumax.sh: Likewise.
22606
22607 2008-04-21  Bruno Haible  <bruno@clisp.org>
22608
22609         Fix test failure on mingw.
22610         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
22611
22612 2008-04-21  Bruno Haible  <bruno@clisp.org>
22613
22614         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
22615         Actually assign a value.
22616
22617 2008-04-20  Bruno Haible  <bruno@clisp.org>
22618
22619         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
22620         take 2.
22621         * lib/canonicalize.c (canonicalize_file_name): Elide if the
22622         'canonicalize-lgpl' module is also used.
22623         * lib/canonicalize-lgpl.c: Undo last change.
22624         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
22625
22626 2008-04-20  Bruno Haible  <bruno@clisp.org>
22627
22628         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
22629         config.h. Provide _mkdir based fallback for mingw.
22630         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
22631         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
22632         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
22633         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
22634         rather than defining mkdir in config.h.
22635         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
22636         (gl_SYS_STAT_H_DEFAULTS): New macro.
22637         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
22638         HAVE_IO_H any more.
22639         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
22640         HAVE_DECL_MKDIR and HAVE_IO_H.
22641
22642 2008-04-20  Bruno Haible  <bruno@clisp.org>
22643
22644         * lib/isapipe.c: Port to native Windows platforms.
22645
22646 2008-04-20  Bruno Haible  <bruno@clisp.org>
22647
22648         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
22649
22650 2008-04-21  Eric Blake  <ebb9@byu.net>
22651
22652         Work around preprocessors that don't handle UINTMAX_MAX.
22653         * lib/memchr2.c (memchr2): Avoid embedded #if.
22654         Reported by Alain Guibert, fix suggested by Bruno Haible.
22655
22656 2008-04-21  Simon Josefsson  <simon@josefsson.org>
22657
22658         * doc/posix-functions/strftime.texi (strftime): Explain better
22659         Windows incompatibility.  Suggested by Micah Cowan
22660         <micah@cowan.name>.
22661
22662 2008-04-20  Bruno Haible  <bruno@clisp.org>
22663
22664         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
22665         unistr/u8-mblen.
22666
22667 2008-04-20  Bruno Haible  <bruno@clisp.org>
22668
22669         Fix test failure on platforms with non-GNU iconv.
22670         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
22671         (U_TO_U8): Use it, rather than u16_to_u8.
22672         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
22673         units at the end of the input string.
22674         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
22675
22676 2008-04-20  Bruno Haible  <bruno@clisp.org>
22677
22678         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
22679         when the resulting length is 0.
22680         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
22681
22682 2008-04-20  Bruno Haible  <bruno@clisp.org>
22683
22684         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
22685         works.
22686         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
22687
22688 2008-04-20  Bruno Haible  <bruno@clisp.org>
22689
22690         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
22691         * modules/tsearch-tests (configure.ac): Test for initstate function.
22692
22693 2008-04-20  Bruno Haible  <bruno@clisp.org>
22694
22695         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
22696         for nlink_t if missing.
22697         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
22698
22699 2008-04-19  Bruno Haible  <bruno@clisp.org>
22700
22701         Work around snprintf bug on Linux libc5.
22702         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
22703         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22704         gl_SNPRINTF_SIZE1.
22705         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22706         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
22707         that test failed.
22708         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
22709         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
22710         * modules/snprintf (Files): Add m4/printf.m4.
22711         * modules/vsnprintf (Files): Likewise.
22712         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
22713         * doc/posix-functions/vsnprintf.texi: Likewise.
22714
22715 2008-04-19  Bruno Haible  <bruno@clisp.org>
22716
22717         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
22718         from 0.0058 to less than 10^-7.
22719
22720 2008-04-19  Bruno Haible  <bruno@clisp.org>
22721
22722         Fix rounding when a precision is given.
22723         * lib/vasnprintf.c (is_borderline): New function.
22724         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
22725         9...9x.
22726         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
22727         %e, %g.
22728         * tests/test-vasprintf-posix.c (test_function): Likewise.
22729         * tests/test-snprintf-posix.h (test_function): Likewise.
22730         * tests/test-sprintf-posix.h (test_function): Likewise.
22731         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
22732         * tests/test-printf-posix.h (test_function): Likewise.
22733         * tests/test-printf-posix.output: Update.
22734         Reported by John Darrington <john@darrington.wattle.id.au> via
22735         Ben Pfaff <blp@cs.stanford.edu>.
22736
22737 2008-04-18  Simon Josefsson  <simon@josefsson.org>
22738
22739         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
22740         Suggested by Bruno Haible <bruno@clisp.org>.
22741
22742 2008-04-17  Bruno Haible  <bruno@clisp.org>
22743
22744         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
22745         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
22746         implementation.
22747         Patch by Bruce Merry <bmerry@gmail.com>.
22748
22749 2008-04-17  Simon Josefsson  <simon@josefsson.org>
22750
22751         * doc/posix-functions/strftime.texi (strftime): Mention that %e
22752         doesn't work under Windows.
22753
22754 2008-04-16  Bruno Haible  <bruno@clisp.org>
22755
22756         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
22757         New macros.
22758         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
22759         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
22760         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
22761         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
22762         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
22763         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
22764         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
22765         macros.
22766         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
22767         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
22768         Northern Sotho, Uighur.
22769
22770 2008-04-16  Bruno Haible  <bruno@clisp.org>
22771
22772         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
22773         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
22774         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
22775         Reported by Daniel Bergström <daniel@octocode.com>.
22776
22777 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
22778             Bruno Haible  <bruno@clisp.org>
22779
22780         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
22781         function.
22782         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
22783         New functions, mostly extracted from gl_locale_name_default.
22784         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
22785
22786 2008-04-16  Eric Blake  <ebb9@byu.net>
22787
22788         Adjust strtod detection to catch glibc 2.7 bug.
22789         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
22790         Reported by John Gatewood Ham.
22791
22792 2008-04-16  Bruno Haible  <bruno@clisp.org>
22793
22794         Add tentative support for Linux libc5.
22795         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
22796         * lib/fpurge.c (fpurge): Likewise.
22797         * lib/freadable.c (freadable): Likewise.
22798         * lib/freadahead.c (freadahead): Likewise.
22799         * lib/freading.c (freading): Likewise.
22800         * lib/freadptr.c (freadptr): Likewise.
22801         * lib/freadseek.c (freadptrinc): Likewise.
22802         * lib/fseeko.c (rpl_fseeko): Likewise.
22803         * lib/fseterr.c (fseterr): Likewise.
22804         * lib/fwritable.c (fwritable): Likewise.
22805         * lib/fwriting.c (fwriting): Likewise.
22806         Reported by Alain Guibert <alguibert+bts@free.fr>.
22807
22808 2008-04-15  Bruno Haible  <bruno@clisp.org>
22809
22810         * modules/mathl (configure.ac): Define module indicator.
22811
22812 2008-04-15  Bruno Haible  <bruno@clisp.org>
22813
22814         * lib/logl.c (logl): Remove unused variables.
22815
22816 2008-04-15  Bruno Haible  <bruno@clisp.org>
22817
22818         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
22819         fails.
22820
22821 2008-04-15  Bruno Haible  <bruno@clisp.org>
22822
22823         * lib/trim.c (trim2): Fix argument of isspace() macro.
22824
22825 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
22826
22827         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
22828         to 0.
22829         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
22830
22831 2008-04-14  Bruno Haible  <bruno@clisp.org>
22832
22833         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
22834         AC_LANG_PROGRAM argument.
22835         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
22836         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
22837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22838         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22839         * m4/math_h.m4 (gl_MATH_H): Likewise.
22840         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22841         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22842         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
22843         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22844         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22845         * m4/regex.m4 (gl_REGEX): Likewise.
22846         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
22847         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
22848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22849         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
22850         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
22851         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22852         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22853         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22854
22855 2008-04-14  Jim Meyering  <meyering@redhat.com>
22856
22857         test-strtod: fix typos: s/abs/fabs/
22858         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
22859
22860 2008-04-13  Bruno Haible  <bruno@clisp.org>
22861
22862         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
22863         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
22864         module is also used and while not building the reloc-wrapper.
22865
22866 2008-04-13  Bruno Haible  <bruno@clisp.org>
22867
22868         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
22869
22870 2008-04-13  Bruno Haible  <bruno@clisp.org>
22871
22872         Fix AIX compilation failure introduced on 2008-04-02.
22873         * tests/test-frexp.c (exp): Undefine before redefining.
22874         * tests/test-frexpl.c (exp): Likewise.
22875
22876 2008-04-13  Bruno Haible  <bruno@clisp.org>
22877
22878         Work around a HP-UX stdio bug.
22879         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
22880         * tests/test-ftello.c (main): Likewise.
22881         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
22882         * doc/posix-functions/ftello.texi: Likewise.
22883
22884 2008-04-13  Bruno Haible  <bruno@clisp.org>
22885
22886         Make test-signbit pass on HP-UX/hppa.
22887         * tests/test-signbit.c (minus_zerol): New variable.
22888         (test_signbitl): Use it.
22889
22890 2008-04-13  Bruno Haible  <bruno@clisp.org>
22891
22892         Make truncl work on OSF/1 4.0.
22893         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
22894         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
22895         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
22896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
22897         HAVE_DECL_TRUNCL.
22898         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
22899         HAVE_DECL_TRUNCL.
22900         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
22901
22902 2008-04-13  Bruno Haible  <bruno@clisp.org>
22903
22904         * lib/unictype.h: Remove trailing comma from enumeration definitions.
22905
22906 2008-04-13  Bruno Haible  <bruno@clisp.org>
22907
22908         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
22909         expression, so as to avoid HP-UX 11 cc compiler bug.
22910
22911 2008-04-13  Bruno Haible  <bruno@clisp.org>
22912
22913         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
22914
22915 2008-04-13  Bruno Haible  <bruno@clisp.org>
22916
22917         * lib/git-merge-changelog.c: Remove empty declaration outside of
22918         functions.
22919
22920 2008-04-13  Bruno Haible  <bruno@clisp.org>
22921
22922         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
22923
22924 2008-04-13  Bruno Haible  <bruno@clisp.org>
22925
22926         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
22927         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
22928         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
22929         also if it exists but lacks definitions of the SHUT_* macros.
22930         * modules/sys_socket (Description): Update.
22931         Reported by Elbert Pol <e.pol@chello.nl>.
22932
22933 2008-04-13  Bruno Haible  <bruno@clisp.org>
22934
22935         * lib/localcharset.c (OS2): Don't redefine if already defined.
22936         Reported by Elbert Pol <e.pol@chello.nl>.
22937
22938 2008-04-13  Bruno Haible  <bruno@clisp.org>
22939
22940         * lib/binary-io.h [__EMX__]: Include <io.h>.
22941         Reported by Elbert Pol <e.pol@chello.nl>.
22942
22943 2008-04-12  Bruno Haible  <bruno@clisp.org>
22944
22945         * lib/fpucw.h: Enable the definitions also for x86_64.
22946         Needed for NetBSD/x86_64.
22947         Reported by Thomas Klausner <tk@giga.or.at>.
22948
22949 2008-04-12  Bruno Haible  <bruno@clisp.org>
22950
22951         * tests/test-strtod.c: Include isnand.h.
22952         (main): Use isnand instead of isnan.
22953         Reported by Jim Meyering.
22954
22955 2008-04-12  Bruno Haible  <bruno@clisp.org>
22956
22957         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
22958         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22959
22960 2008-04-12  Jim Meyering  <meyering@redhat.com>
22961
22962         * m4/math_h.m4 (gl_MATH_H): Fix typos.
22963
22964 2008-04-12  Bruno Haible  <bruno@clisp.org>
22965
22966         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
22967         Reported by Elbert Pol <e.pol@chello.nl>.
22968
22969 2008-04-12  Eric Blake  <ebb9@byu.net>
22970
22971         Work around Solaris 10 math.h bug.
22972         * m4/math_h.m4 (gl_MATH_H): Check for bug.
22973         (gl_MATH_H_DEFAULTS): Set up default.
22974         * modules/math (Makefile.am): Replace new indicators.
22975         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
22976         * tests/test-math.c (main): Test this.
22977         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
22978         * doc/posix-headers/math.texi (math.h): Mention bug.
22979         Reported by Nelson H. F. Beebe and Jim Meyering.
22980
22981 2008-04-11  Bruno Haible  <bruno@clisp.org>
22982
22983         Adapt to future versions of Apple GCC.
22984         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
22985         Reported by Peter O'Gorman <peter@pogma.com>.
22986
22987 2008-04-11  Bruno Haible  <bruno@clisp.org>
22988
22989         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
22990
22991 2008-04-11  Bruno Haible  <bruno@clisp.org>
22992
22993         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
22994
22995         * modules/getaddrinfo-tests (Makefile.am): Define
22996         test_getaddrinfo_LDADD.
22997
22998 2008-04-11  Bruno Haible  <bruno@clisp.org>
22999
23000         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
23001         (init): Fix syntax error.
23002         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
23003         is declared.
23004
23005 2008-04-11  Bruno Haible  <bruno@clisp.org>
23006
23007         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
23008         * modules/glob (Depends-on): Add stdbool.
23009
23010 2008-04-11  Bruno Haible  <bruno@clisp.org>
23011
23012         * lib/trim.c: Include <string.h>.
23013
23014 2008-04-11  Eric Blake  <ebb9@byu.net>
23015
23016         Avoid compile failure on OS/2.
23017         * lib/regex_internal.h (internal_function): Disable optimization
23018         on OS/2 (__EMX__), where it caused compiler error.
23019         Reported by Elbert Pol.
23020
23021 2008-04-11  Bruno Haible  <bruno@clisp.org>
23022
23023         Flush the standard error stream before aborting. Needed on mingw.
23024         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
23025         * tests/test-array_list.c (ASSERT): Likewise.
23026         * tests/test-array_oset.c (ASSERT): Likewise.
23027         * tests/test-avltree_list.c (ASSERT): Likewise.
23028         * tests/test-avltree_oset.c (ASSERT): Likewise.
23029         * tests/test-avltreehash_list.c (ASSERT): Likewise.
23030         * tests/test-binary-io.c (ASSERT): Likewise.
23031         * tests/test-byteswap.c (ASSERT): Likewise.
23032         * tests/test-c-ctype.c (ASSERT): Likewise.
23033         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
23034         * tests/test-c-strcasestr.c (ASSERT): Likewise.
23035         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
23036         * tests/test-c-strstr.c (ASSERT): Likewise.
23037         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
23038         * tests/test-canonicalize.c (ASSERT): Likewise.
23039         * tests/test-carray_list.c (ASSERT): Likewise.
23040         * tests/test-ceilf1.c (ASSERT): Likewise.
23041         * tests/test-ceilf2.c (ASSERT): Likewise.
23042         * tests/test-ceill.c (ASSERT): Likewise.
23043         * tests/test-count-one-bits.c (ASSERT): Likewise.
23044         * tests/test-fbufmode.c (ASSERT): Likewise.
23045         * tests/test-fflush2.c (ASSERT): Likewise.
23046         * tests/test-floorf1.c (ASSERT): Likewise.
23047         * tests/test-floorf2.c (ASSERT): Likewise.
23048         * tests/test-floorl.c (ASSERT): Likewise.
23049         * tests/test-fopen.c (ASSERT): Likewise.
23050         * tests/test-fpending.c (ASSERT): Likewise.
23051         * tests/test-fprintf-posix.c (ASSERT): Likewise.
23052         * tests/test-fpurge.c (ASSERT): Likewise.
23053         * tests/test-freadable.c (ASSERT): Likewise.
23054         * tests/test-freadahead.c (ASSERT): Likewise.
23055         * tests/test-freading.c (ASSERT): Likewise.
23056         * tests/test-freadptr.c (ASSERT): Likewise.
23057         * tests/test-freadptr2.c (ASSERT): Likewise.
23058         * tests/test-freadseek.c (ASSERT): Likewise.
23059         * tests/test-freopen.c (ASSERT): Likewise.
23060         * tests/test-frexp.c (ASSERT): Likewise.
23061         * tests/test-frexpl.c (ASSERT): Likewise.
23062         * tests/test-fseek.c (ASSERT): Likewise.
23063         * tests/test-fseeko.c (ASSERT): Likewise.
23064         * tests/test-fstrcmp.c (ASSERT): Likewise.
23065         * tests/test-ftell.c (ASSERT): Likewise.
23066         * tests/test-ftello.c (ASSERT): Likewise.
23067         * tests/test-func.c (ASSERT): Likewise.
23068         * tests/test-fwritable.c (ASSERT): Likewise.
23069         * tests/test-fwriting.c (ASSERT): Likewise.
23070         * tests/test-getdelim.c (ASSERT): Likewise.
23071         * tests/test-getline.c (ASSERT): Likewise.
23072         * tests/test-i-ring.c (ASSERT): Likewise.
23073         * tests/test-iconv-utf.c (ASSERT): Likewise.
23074         * tests/test-iconv.c (ASSERT): Likewise.
23075         * tests/test-isfinite.c (ASSERT): Likewise.
23076         * tests/test-isnand.c (ASSERT): Likewise.
23077         * tests/test-isnanf.c (ASSERT): Likewise.
23078         * tests/test-isnanl.h (ASSERT): Likewise.
23079         * tests/test-ldexpl.c (ASSERT): Likewise.
23080         * tests/test-linked_list.c (ASSERT): Likewise.
23081         * tests/test-linkedhash_list.c (ASSERT): Likewise.
23082         * tests/test-localename.c (ASSERT): Likewise.
23083         * tests/test-lseek.c (ASSERT): Likewise.
23084         * tests/test-mbscasecmp.c (ASSERT): Likewise.
23085         * tests/test-mbscasestr1.c (ASSERT): Likewise.
23086         * tests/test-mbscasestr2.c (ASSERT): Likewise.
23087         * tests/test-mbscasestr3.c (ASSERT): Likewise.
23088         * tests/test-mbscasestr4.c (ASSERT): Likewise.
23089         * tests/test-mbschr.c (ASSERT): Likewise.
23090         * tests/test-mbscspn.c (ASSERT): Likewise.
23091         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
23092         * tests/test-mbspbrk.c (ASSERT): Likewise.
23093         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
23094         * tests/test-mbsrchr.c (ASSERT): Likewise.
23095         * tests/test-mbsspn.c (ASSERT): Likewise.
23096         * tests/test-mbsstr1.c (ASSERT): Likewise.
23097         * tests/test-mbsstr2.c (ASSERT): Likewise.
23098         * tests/test-mbsstr3.c (ASSERT): Likewise.
23099         * tests/test-memchr2.c (ASSERT): Likewise.
23100         * tests/test-memmem.c (ASSERT): Likewise.
23101         * tests/test-open.c (ASSERT): Likewise.
23102         * tests/test-printf-frexp.c (ASSERT): Likewise.
23103         * tests/test-printf-frexpl.c (ASSERT): Likewise.
23104         * tests/test-printf-posix.c (ASSERT): Likewise.
23105         * tests/test-quotearg.c (ASSERT): Likewise.
23106         * tests/test-rbtree_list.c (ASSERT): Likewise.
23107         * tests/test-rbtree_oset.c (ASSERT): Likewise.
23108         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
23109         * tests/test-round1.c (ASSERT): Likewise.
23110         * tests/test-roundf1.c (ASSERT): Likewise.
23111         * tests/test-roundl.c (ASSERT): Likewise.
23112         * tests/test-signbit.c (ASSERT): Likewise.
23113         * tests/test-sleep.c (ASSERT): Likewise.
23114         * tests/test-snprintf-posix.c (ASSERT): Likewise.
23115         * tests/test-snprintf.c (ASSERT): Likewise.
23116         * tests/test-sprintf-posix.c (ASSERT): Likewise.
23117         * tests/test-stat-time.c (ASSERT): Likewise.
23118         * tests/test-strcasestr.c (ASSERT): Likewise.
23119         * tests/test-strerror.c (ASSERT): Likewise.
23120         * tests/test-striconv.c (ASSERT): Likewise.
23121         * tests/test-striconveh.c (ASSERT): Likewise.
23122         * tests/test-striconveha.c (ASSERT): Likewise.
23123         * tests/test-strsignal.c (ASSERT): Likewise.
23124         * tests/test-strstr.c (ASSERT): Likewise.
23125         * tests/test-strtod.c (ASSERT): Likewise.
23126         * tests/test-trunc1.c (ASSERT): Likewise.
23127         * tests/test-trunc2.c (ASSERT): Likewise.
23128         * tests/test-truncf1.c (ASSERT): Likewise.
23129         * tests/test-truncf2.c (ASSERT): Likewise.
23130         * tests/test-truncl.c (ASSERT): Likewise.
23131         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
23132         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
23133         * tests/test-vasnprintf.c (ASSERT): Likewise.
23134         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
23135         * tests/test-vasprintf.c (ASSERT): Likewise.
23136         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
23137         * tests/test-vprintf-posix.c (ASSERT): Likewise.
23138         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
23139         * tests/test-vsnprintf.c (ASSERT): Likewise.
23140         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
23141         * tests/test-wcwidth.c (ASSERT): Likewise.
23142         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
23143         * tests/test-xprintf-posix.c (ASSERT): Likewise.
23144         * tests/test-xvasprintf.c (ASSERT): Likewise.
23145         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
23146         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
23147         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
23148         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
23149         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
23150         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
23151         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
23152         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
23153         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
23154         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
23155         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
23156         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
23157         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
23158         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
23159         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
23160         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
23161         * tests/unictype/test-block_list.c (ASSERT): Likewise.
23162         * tests/unictype/test-block_of.c (ASSERT): Likewise.
23163         * tests/unictype/test-block_test.c (ASSERT): Likewise.
23164         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
23165         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
23166         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
23167         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
23168         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
23169         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
23170         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
23171         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
23172         * tests/unictype/test-combining.c (ASSERT): Likewise.
23173         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
23174         * tests/unictype/test-digit.c (ASSERT): Likewise.
23175         * tests/unictype/test-mirror.c (ASSERT): Likewise.
23176         * tests/unictype/test-numeric.c (ASSERT): Likewise.
23177         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
23178         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
23179         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
23180         * tests/unictype/test-scripts.c (ASSERT): Likewise.
23181         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
23182         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
23183         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
23184         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
23185         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
23186         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
23187         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
23188         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
23189         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
23190         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
23191         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
23192         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
23193         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
23194         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
23195         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
23196         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
23197         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
23198         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
23199         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
23200         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
23201         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
23202         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
23203         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
23204         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
23205         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
23206         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
23207         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
23208         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
23209         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
23210         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
23211         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
23212         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
23213         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
23214         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
23215         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
23216         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
23217         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
23218         Reported by Eric Blake.
23219
23220 2008-04-11  Bruno Haible  <bruno@clisp.org>
23221
23222         * lib/wchar.in.h: Tweak comment.
23223
23224 2008-04-11  Bruno Haible  <bruno@clisp.org>
23225
23226         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
23227         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
23228         gl_COMMON.
23229         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
23230
23231 2008-04-11  Bruno Haible  <bruno@clisp.org>
23232
23233         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
23234
23235 2008-04-11  Simon Josefsson  <simon@josefsson.org>
23236
23237         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
23238         of attempting to use non-existing /dev/*random.  Based on patch
23239         from Adam Strzelecki <ono@java.pl> in
23240         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
23241
23242 2008-04-08  Bruno Haible  <bruno@clisp.org>
23243
23244         Add tentative support for emx+gcc.
23245         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
23246         * lib/fpurge.c (fpurge): Likewise.
23247         * lib/freadable.c (freadable): Likewise.
23248         * lib/freadahead.c (freadahead): Likewise.
23249         * lib/freading.c (freading): Likewise.
23250         * lib/freadptr.c (freadptr): Likewise.
23251         * lib/freadseek.c (freadptrinc): Likewise.
23252         * lib/fseeko.c (rpl_fseeko): Likewise.
23253         * lib/fseterr.c (fseterr): Likewise.
23254         * lib/fwritable.c (fwritable): Likewise.
23255         * lib/fwriting.c (fwriting): Likewise.
23256         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
23257
23258 2008-04-09  Eric Blake  <ebb9@byu.net>
23259
23260         Avoid some autoconf warnings.
23261         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
23262         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
23263         * m4/afs.m4 (gl_AFS): Likewise.
23264         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
23265         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
23266         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23267         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
23268         (gl_INTEGER_TYPE_SUFFIX): Likewise.
23269         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
23270         (AC_CHECK_DECLS_ONCE): Likewise.
23271         Rename file...
23272         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
23273         gnulib-tool requires autoconf 2.59 or better.
23274         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
23275
23276 2008-04-08  Eric Blake  <ebb9@byu.net>
23277
23278         Use 'git describe --match' if present (added in git 1.5.5).
23279         * build-aux/git-version-gen: Limit result to tags that match 'v*'
23280         if possible.
23281
23282 2008-04-08  Bruno Haible  <bruno@clisp.org>
23283
23284         Add tentative support for OpenServer.
23285         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
23286         _ptr, _cnt.
23287         * lib/fpurge.c (fpurge): Likewise.
23288         * lib/freadable.c (freadable): Likewise.
23289         * lib/freadahead.c (freadahead): Likewise.
23290         * lib/freading.c (freading): Likewise.
23291         * lib/freadptr.c (freadptr): Likewise.
23292         * lib/freadseek.c (freadptrinc): Likewise.
23293         * lib/fseeko.c (rpl_fseeko): Likewise.
23294         * lib/fseterr.c (fseterr): Likewise.
23295         * lib/fwritable.c (fwritable): Likewise.
23296         * lib/fwriting.c (fwriting): Likewise.
23297         Reported by Roger Cornelius <rac@tenzing.org> and
23298         Brian K. White <brian@aljex.com>.
23299
23300 2008-04-06  Jim Meyering  <meyering@redhat.com>
23301
23302         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
23303
23304 2008-04-06  Bruno Haible  <bruno@clisp.org>
23305
23306         Avoid possible error with non-ASCII bytes in UTF-8 locales.
23307         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
23308         * tests/test-printf-posix.sh: Likewise.
23309         * tests/test-vfprintf-posix.sh: Likewise.
23310         * tests/test-vprintf-posix.sh: Likewise.
23311         * tests/test-xprintf-posix.sh: Likewise.
23312
23313 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23314
23315         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
23316         hide error from 'ls', needed on OS/2.
23317         Report by Elbert Pol <elbert.pol@gmail.com>.
23318
23319 2008-04-04  Eric Blake  <ebb9@byu.net>
23320
23321         Make test-fseeko.c failures meaningful.
23322         * tests/test-fseeko.c: Print line number on failure.
23323         * tests/test-fseek.c: Likewise.
23324         Reported by Nelson H. F. Beebe.
23325
23326         Improve strtod bug detection check.
23327         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
23328         required for Solaris 10.
23329         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
23330
23331 2008-04-04  Bruno Haible  <bruno@clisp.org>
23332
23333         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
23334         by m4/setenv.m4.
23335
23336 2008-04-03  Eric Blake  <ebb9@byu.net>
23337
23338         Ensure sane .version contents.
23339         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
23340         version string.
23341         * build-aux/git-version-gen: Improve documentation.
23342
23343         Make GNU make output nicer.
23344         * top/GNUmakefile [!_have-Makefile]: Add dependency on
23345         MAKECMDGOALS to enforce message for all command line targets.  Set
23346         srcdir for use in maint.mk.
23347
23348         Another maintainer tweak.
23349         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
23350         a target that regenerates version.
23351
23352 2008-04-03  Jim Meyering  <meyering@redhat.com>
23353
23354         vc-list-files: don't cause coreutils "make po-check" failure
23355         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
23356
23357 2008-04-03  Eric Blake  <ebb9@byu.net>
23358
23359         Allow VPATH usage of vc-list-files.
23360         * build-aux/vc-list-files (scriptversion): Add timestamp.
23361         (options): Add --help, --version, -C.
23362         (CVS): Support installed cvsu.
23363
23364 2008-04-02  Bruno Haible  <bruno@clisp.org>
23365
23366         Avoid some "statement with no effect" warnings from gcc.
23367         * tests/test-wctype.c (main): Explicitly ignore unused values.
23368         Reported by Jim Meyering.
23369
23370 2008-04-02  Jim Meyering  <meyering@redhat.com>
23371
23372         Avoid some warnings from "gcc -Wshadow".
23373         * tests/test-frexp.c (exp): Define to a different identifier.
23374         * tests/test-frexpl.c (exp): Likewise.
23375
23376 2008-04-03  Jim Meyering  <meyering@redhat.com>
23377
23378         bootstrap: remove dangling *.[ch] symlinks from lib
23379         * build-aux/bootstrap [dangling symlink removal]: Move find's
23380         -depth option to precede all others, to avoid a warning.
23381         Remove *.[ch] files too, and from "$source_base" (usually lib/).
23382
23383 2008-04-02  Bruno Haible  <bruno@clisp.org>
23384
23385         Avoid some warnings from "gcc -Wshadow".
23386         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
23387         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
23388         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
23389         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
23390         Reported by Jim Meyering.
23391
23392 2008-04-01  Bruno Haible  <bruno@clisp.org>
23393
23394         Fix test to work on IRIX 6.5 with cc.
23395         * tests/test-math.c (numeric_equal): New function.
23396         (main): Use it.
23397
23398 2008-04-01  Bruno Haible  <bruno@clisp.org>
23399
23400         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
23401
23402 2008-04-01  Bruno Haible  <bruno@clisp.org>
23403
23404         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
23405         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23406         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
23407         (Depends-on): Remove math.
23408
23409         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
23410         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23411         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
23412         (Depends-on): Remove math.
23413
23414         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
23415         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23416         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
23417         (Depends-on): Remove math.
23418         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
23419         (Depends-on): Remove math.
23420
23421         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
23422         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23423         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
23424         (Depends-on): Remove math.
23425         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
23426         (Depends-on): Remove math.
23427
23428         * tests/test-round1.c: Include nan.h.
23429         (main): Use NaNd instead of NAN.
23430         * modules/round-tests (Files): Add tests/nan.h.
23431
23432         * tests/test-trunc1.c: Include nan.h.
23433         (main): Use NaNd instead of NAN.
23434         * modules/trunc-tests (Files): Add tests/nan.h.
23435
23436         * tests/test-roundf1.c: Include nan.h.
23437         (main): Use NaNf instead of NAN.
23438         * modules/roundf-tests (Files): Add tests/nan.h.
23439
23440         * tests/test-truncf1.c: Include nan.h.
23441         (main): Use NaNf instead of NAN.
23442         * modules/truncf-tests (Files): Add tests/nan.h.
23443
23444         * tests/test-ceilf1.c: Include nan.h.
23445         (main): Use NaNf instead of NAN.
23446         * modules/ceilf-tests (Files): Add tests/nan.h.
23447
23448         * tests/test-floorf1.c: Include nan.h.
23449         (main): Use NaNf instead of NAN.
23450         * modules/floorf-tests (Files): Add tests/nan.h.
23451
23452         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
23453         (main): Use NaNf instead of NAN.
23454         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
23455
23456         * tests/test-isnand.c: Include nan.h instead of <math.h>.
23457         (main): Use NaNd instead of NAN.
23458         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
23459
23460         * tests/test-frexp.c: Include nan.h.
23461         (main): Use NaNd instead of NAN.
23462         * modules/frexp-tests (Files): Add tests/nan.h.
23463
23464         * lib/isnan.c: Don't include <math.h>.
23465         (FUNC): Don't use NAN macro.
23466         * modules/isnand-nolibm (Depends-on): Remove math.
23467         * modules/isnanf-nolibm (Depends-on): Remove math.
23468         * modules/isnanl (Depends-on): Remove math.
23469         * modules/isnanl-nolibm (Depends-on): Remove math.
23470
23471         * tests/nan.h: New file.
23472
23473 2008-04-01  Eric Blake  <ebb9@byu.net>
23474
23475         Fix typos.
23476         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
23477         values to be the right type.
23478
23479         For now, cater to gnulib strtod inaccuracies.
23480         * tests/test-strtod.c (main): Allow 1-ulp error on expected
23481         fractional results.  While not as nice from a QoI perspective, it
23482         is a quicker patch than correctly implementing decimal to binary
23483         rounding.
23484
23485 2008-03-31  Eric Blake  <ebb9@byu.net>
23486
23487         Guarantee a definition of NAN.
23488         * lib/math.in.h (NAN): Define if missing.
23489         * tests/test-math.c (main): Test it.
23490         * doc/posix-headers/math.texi (math.h): Document this.
23491         * lib/isnan.c (rpl_isnand): Use it.
23492         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
23493         * tests/test-floorf1.c (NaN): Likewise.
23494         * tests/test-frexp.c (NaN): Likewise.
23495         * tests/test-isnand.c (NaN): Likewise.
23496         * tests/test-isnanf.c (NaN): Likewise.
23497         * tests/test-round1.c (NaN): Likewise.
23498         * tests/test-roundf1.c (NaN): Likewise.
23499         * tests/test-snprintf-posix.h (NaN): Likewise.
23500         * tests/test-sprintf-posix.h (NaN): Likewise.
23501         * tests/test-trunc1.c (NaN): Likewise.
23502         * tests/test-truncf1.c (NaN): Likewise.
23503         * tests/test-vasnprintf-posix.c (NaN): Likewise.
23504         * tests/test-vasprintf-posix.c (NaN): Likewise.
23505         * modules/isnand-nolibm (Depends-on): Add math.
23506         * modules/isnanf-nolibm (Depends-on): Likewise.
23507         * modules/isnanl (Depends-on): Likewise.
23508         * modules/isnanl-nolibm (Depends-on): Likewise.
23509         * modules/snprintf-posix-tests (Depends-on): Likewise.
23510         * modules/sprintf-posix-tests (Depends-on): Likewise.
23511         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
23512         * modules/vsprintf-posix-tests (Depends-on): Likewise.
23513         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
23514         * modules/vasprintf-posix-tests (Depends-on): Likewise.
23515
23516 2008-03-31  Bruno Haible  <bruno@clisp.org>
23517
23518         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
23519         * doc/posix-functions/strtod.texi: Likewise.
23520
23521 2008-03-31  Bruno Haible  <bruno@clisp.org>
23522
23523         * tests/test-strtod.c (main): Don't use C99 syntax.
23524
23525 2008-03-31  Bruno Haible  <bruno@clisp.org>
23526
23527         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
23528         Reported by Eric Blake.
23529
23530 2008-03-31  Jim Meyering  <meyering@redhat.com>
23531
23532         Don't compare actual signbit return values.
23533         * tests/test-strtod.c (main): Rather, compare only their
23534         zero/non-zero nature.
23535
23536 2008-03-31  Eric Blake  <ebb9@byu.net>
23537
23538         More strtod documentation.
23539         * doc/posix-functions/strtod.texi (strtod): Interpret more test
23540         failures as distinct bugs.
23541
23542 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
23543
23544         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
23545         Problem reported by Erik Benada in
23546         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
23547
23548 2008-03-30  Bruno Haible  <bruno@clisp.org>
23549
23550         * tests/test-strtod.c: Add comments about which assertion fails on which
23551         platform.
23552         * doc/posix-functions/strtod.texi: Add info about many more platforms.
23553
23554 2008-03-30  Eric Blake  <ebb9@byu.net>
23555
23556         Test signbit behavior on zeros.
23557         * tests/test-signbit.c (test_signbitf): Add tests for zero.
23558         (test_signbitd, test_signbitl): Likewise.
23559
23560         More strtod touchups.
23561         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
23562         sign of negative underflow, for now.  Use .5, not .1.
23563         * doc/posix-functions/strtod.texi (strtod): Mention these
23564         limitations.
23565         Reported by Jim Meyering.
23566
23567 2008-03-30  Bruno Haible  <bruno@clisp.org>
23568
23569         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
23570         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
23571
23572 2008-03-30  Bruno Haible  <bruno@clisp.org>
23573
23574         Avoid failure when attempting to return empty iconv results on some
23575         platforms.
23576         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
23577         allocation, don't report ENOMEM when the resulting string is empty.
23578
23579 2008-03-30  Bruno Haible  <bruno@clisp.org>
23580
23581         Fix buffer overrun.
23582         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
23583         Don't consider the width for tmp_length. Check count against tmp_length
23584         before doing the padding. Ensure enough allocation during padding.
23585
23586 2008-03-30  Eric Blake  <ebb9@byu.net>
23587
23588         strtod touchups.
23589         * lib/strtod.c (strtod): Avoid compiler warnings.
23590         Reported by Jim Meyering.
23591
23592 2008-03-30  Bruno Haible  <bruno@clisp.org>
23593
23594         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
23595         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
23596         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
23597         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
23598         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
23599         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
23600         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
23601         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
23602
23603         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
23604         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
23605         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
23606         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
23607         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
23608         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
23609         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
23610         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
23611
23612         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
23613         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
23614         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
23615         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
23616         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
23617         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
23618         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
23619         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
23620
23621         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
23622         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
23623
23624         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
23625         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
23626
23627         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
23628         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
23629
23630         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
23631         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
23632         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
23633
23634         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
23635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
23636         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
23637
23638         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
23639         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
23640         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
23641
23642         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
23643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
23644         * modules/vasprintf (Depends-on): Add EOVERFLOW.
23645
23646         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
23647         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
23648         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
23649         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
23650         (Depends-on): Add EOVERFLOW.
23651         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
23652         (Depends-on): Add EOVERFLOW.
23653         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
23654         (Depends-on): Add EOVERFLOW.
23655         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
23656         (Depends-on): Add EOVERFLOW.
23657         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
23658         (Depends-on): Add EOVERFLOW.
23659         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
23660         (Depends-on): Add EOVERFLOW.
23661         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
23662         (Depends-on): Add EOVERFLOW.
23663         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
23664         (Depends-on): Add EOVERFLOW.
23665
23666         * lib/sprintf.c (EOVERFLOW): Remove fallback.
23667         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
23668         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
23669
23670         * lib/snprintf.c (EOVERFLOW): Remove fallback.
23671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
23672         * modules/snprintf (Depends-on): Add EOVERFLOW.
23673
23674         * lib/poll.c (EOVERFLOW): Remove fallback.
23675         * modules/poll (Depends-on): Add EOVERFLOW.
23676
23677         * lib/getugroups.c (EOVERFLOW): Remove fallback.
23678         * modules/getugroups (Depends-on): Add EOVERFLOW.
23679
23680         * lib/getdelim.c (EOVERFLOW): Remove fallback.
23681         * modules/getdelim (Depends-on): Add EOVERFLOW.
23682
23683         * lib/ftell.c (EOVERFLOW): Remove fallback.
23684         * modules/ftell (Depends-on): Add EOVERFLOW.
23685
23686         * lib/fprintf.c (EOVERFLOW): Remove fallback.
23687         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
23688         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
23689
23690         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
23691
23692         * modules/EOVERFLOW-tests: New file.
23693         * tests/test-EOVERFLOW.c: New file.
23694
23695         * modules/EOVERFLOW: New file.
23696         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
23697
23698 2008-03-30  Bruno Haible  <bruno@clisp.org>
23699
23700         Fix bug introduced on 2007-06-10.
23701         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
23702         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
23703
23704 2008-03-30  Bruno Haible  <bruno@clisp.org>
23705
23706         Improve freadseek's efficiency after ungetc.
23707         * lib/freadseek.c: Include freadahead.h.
23708         (freadptrinc): New function, extracted from freadseek.
23709         (freadseek): Use it in a loop. Use freadahead to determine the number
23710         of loop iterations.
23711         * modules/freadseek (Depends-on): Add freadahead.
23712         (configure.ac): Require AC_C_INLINE.
23713
23714 2008-03-30  Bruno Haible  <bruno@clisp.org>
23715
23716         * lib/freadseek.c (freadseek): Don't ignore the return value of
23717         freadptr.
23718
23719 2008-03-29  Eric Blake  <ebb9@byu.net>
23720
23721         Add hex float support.
23722         * modules/strtod (Depends-on): Add c-ctype.
23723         (Link): Mention POW_LIB.
23724         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
23725         whitespace between 'e' and exponent.
23726         * tests/test-strtod.c (main): Enable hex float tests.
23727         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
23728         now provides.
23729
23730         Document various strtod bugs, with some fixes.
23731         * doc/posix-functions/strtod.texi (strtod): Document bugs with
23732         "-0x", "inf", "nan", and hex constants.
23733         * doc/posix-functions/atof.texi (atof): Likewise.
23734         * modules/stdlib (Makefile.am): Support strtod.
23735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23736         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
23737         detect additional strtod bugs.
23738         * lib/stdlib.in.h (rpl_strtod): Add declarations.
23739         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
23740         bool where appropriate.  Parse 'inf' and 'nan'.
23741         * tests/test-strtod.c: New file.
23742         * modules/strtod (Depends-on): Add stdbool, stdlib.
23743         (configure.ac): Turn on module indicator.
23744         * modules/strtod-tests: New module.
23745
23746 2008-03-29  Eric Blake  <ebb9@byu.net>
23747
23748         Fix ftell on mingw.
23749         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
23750         * modules/ftell-tests (Depends-on): Add binary-io.
23751         * modules/ftello-tests (Depends-on): Likewise.
23752         * tests/test-ftell.c (main): Enhance test to cover behavior after
23753         ungetc.  Enforce binary mode.
23754         * tests/test-ftello.c (main): Likewise.
23755
23756         Pass test-freadseek on cygwin.
23757         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
23758         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
23759         ungetc buffer.
23760
23761         * tests/test-fflush2.c (main): Fix typo.
23762
23763 2008-03-29  Bruno Haible  <bruno@clisp.org>
23764
23765         * tests/test-fflush2.c (main): Temporarily disable the contents of
23766         this test.
23767         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
23768         Reported by Eric Blake.
23769
23770 2008-03-28  Simon Josefsson  <simon@josefsson.org>
23771
23772         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
23773         (GC_SHA224_DIGEST_SIZE): Add.
23774
23775         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
23776         (gc_hash_digest_length): Likewise.
23777         (gc_hash_buffer): Likewise.
23778
23779 2008-03-25  Bruno Haible  <bruno@clisp.org>
23780
23781         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
23782         detail which gettext release to use.
23783         Reported by Simon Josefsson.
23784
23785 2008-03-26  Jim Meyering  <meyering@redhat.com>
23786
23787         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
23788         * modules/gnumakefile (clean-GNUmakefile): Also, use
23789         test ... && ... || : syntax rather than if-then ... fi.
23790
23791         gnumakefile: Don't double-quote-expand $(VPATH) value.
23792         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
23793
23794 2008-03-24  Eric Blake  <ebb9@byu.net>
23795
23796         Alter GNUmakefile to install into top directory.
23797         * modules/maintainer-makefile: Split, and add dependency...
23798         * modules/gnumakefile: to this new module.
23799         * build-aux/GNUmakefile: Move...
23800         * top/GNUmakefile: ...here.
23801         * build-aux/maint.mk: Move...
23802         * top/maint.mk: ...here.
23803         * MODULES.html.sh (Support for maintaining...): Document new
23804         module.
23805
23806 2008-03-23  Bruno Haible  <bruno@clisp.org>
23807
23808         * gnulib-tool: New options --vc-files, --no-vc-files.
23809         (func_usage): Document them.
23810         (vc_files): New variable.
23811         (func_import): Consider vc_files.
23812         (func_create_testdir): Set vc_files to empty.
23813         Suggested by Jim Meyering and Karl Berry.
23814
23815 2008-03-23  Bruno Haible  <bruno@clisp.org>
23816
23817         Fix regex compilation error on HP-UX 11.
23818         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
23819         * modules/regex (Files): Add m4/mbstate_t.m4.
23820         Reported by Ton Voon <ton.voon@altinity.com>.
23821
23822 2008-03-23  Bruno Haible  <bruno@clisp.org>
23823
23824         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
23825
23826 2008-03-23  Eric Blake  <ebb9@byu.net>
23827             Bruno Haible  <bruno@clisp.org>
23828
23829         Install files from top/ in the destination directory.
23830         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
23831         augmentation also for the files from top/.
23832         (func_import, func_create_testdir): Rewrite file names:
23833         top/filename -> filename.
23834
23835 2008-03-23  Bruno Haible  <bruno@clisp.org>
23836
23837         Tweak "gnulib --version" output.
23838         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
23839
23840 2008-03-23  Bruno Haible  <bruno@clisp.org>
23841
23842         Tweak "gnulib --version" output.
23843         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
23844         rather than contents of ChangeLog, when possible.
23845
23846 2008-03-21  Eric Blake  <ebb9@byu.net>
23847
23848         More --version tweaks.
23849         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
23850         date of last ChangeLog entry.
23851
23852 2008-03-21  Jim Meyering  <meyering@redhat.com>
23853
23854         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
23855
23856 2008-03-20  Eric Blake  <ebb9@byu.net>
23857
23858         VPATH fix.
23859         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
23860
23861 2008-03-20  Simon Josefsson  <simon@josefsson.org>
23862
23863         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
23864         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
23865
23866 2008-03-20  Eric Blake  <ebb9@byu.net>
23867
23868         Sync GNUmakefile with coreutils.
23869         * build-aux/GNUmakefile (have-Makefile): Rename...
23870         (_have-Makefile): ...to this, for namespace consideration.
23871         (GNUmakefile.cfg): Include, if present.
23872         (_autoreconf): Define a default.
23873         (_is-dist-target): New rule for rebuilds to pick up intra-release
23874         version.
23875         (maint-cfg.mk): Rename...
23876         (cfg.mk): ...to this.
23877
23878 2008-03-18  Jim Meyering  <meyering@redhat.com>
23879
23880         New script and module: mktempd
23881         * MODULES.html.sh (maint+release support): Add mktempd.
23882         * build-aux/mktempd: New file.
23883         * modules/mktempd: New file.
23884
23885 2008-03-15  Jim Meyering  <meyering@redhat.com>
23886
23887         Undo last change.
23888         * lib/sha1.c, lib/md5.c: 63 != ~63.
23889         Reported by Andreas Schwab.
23890
23891         sha1.c, md5.c: Hoist a redundant expression.
23892         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
23893         "ctx->buflen" only once, before calling *_process_block.
23894         * lib/md5.c (md5_process_bytes): Likewise.
23895
23896 2008-03-14  Eric Blake  <ebb9@byu.net>
23897
23898         Bump copyright year in files generated by gnulib-tool.
23899         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
23900         gnulib-tool, rather than hard-coding it.
23901
23902         Fix 'gnulib-tool --version' output to work with git.
23903         * gnulib-tool (func_gnulib_dir): New function, extracted from...
23904         (startup): ...here.
23905         (func_version): Use it to invoke git-version-gen, rather than
23906         relying on CVS keyword expansion.  Modernize wording.
23907         (cvsdatestamp, last_checkin_date, version): Kill unused
23908         variables.
23909
23910 2008-03-12  Jim Meyering  <meyering@redhat.com>
23911
23912         Recognize optional cast of the argument to free.
23913         * build-aux/useless-if-before-free: Update regexps.
23914
23915         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
23916
23917 2008-03-11  Bruno Haible  <bruno@clisp.org>
23918
23919         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
23920         by a single package.
23921         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
23922         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
23923         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
23924         Reported by Sam Steingold <sds@gnu.org>.
23925
23926 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23927
23928         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
23929         repositories.
23930
23931 2008-03-11  Bruno Haible  <bruno@clisp.org>
23932
23933         Avoid conflicts between local macro definitions.
23934         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23935         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
23936
23937 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
23938             Bruno Haible  <bruno@clisp.org>
23939
23940         Make va_copy work with some version of xlc on AIX 5.1.
23941         * lib/stdarg.in.h: New file.
23942         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
23943         On AIX, use a <stdarg.h> file substitute.
23944         * modules/stdarg (Files): Add lib/stdarg.in.h.
23945         (Depends-on): Add include_next.
23946         (Makefile.am): Build a stdarg.h substitute if requested.
23947         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
23948
23949 2008-03-10  Bruno Haible  <bruno@clisp.org>
23950
23951         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
23952         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23953         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23954
23955 2008-03-10  Bruno Haible  <bruno@clisp.org>
23956
23957         * modules/stdlib (Depends-on): Add include_next, remove
23958         absolute-header.
23959
23960 2008-03-09  Bruno Haible  <bruno@clisp.org>
23961
23962         * lib/freadahead.h (freadahead): Document more precisely.
23963         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
23964         the sum of both buffer sizes.
23965         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
23966         * NEWS: Document the change.
23967
23968 2008-03-09  Bruno Haible  <bruno@clisp.org>
23969
23970         Extend freadptr to return also the buffer size.
23971         * lib/freadptr.h (freadptr): Add sizep argument.
23972         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
23973         (freadptr): Add sizep argument. Determine buffer size like freadahead
23974         does.
23975         * tests/test-freadptr.c: Don't include freadahead.h.
23976         (main): Adapt for new calling convention of freadptr.
23977         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
23978         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
23979         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
23980         tests/test-freadptr2.sh.
23981         (Depends): Remove freadahead.
23982         (TESTS): Add test-freadptr2.sh.
23983         (check_PROGRAMS): Add test-freadptr2.
23984
23985 2008-03-09  Bruno Haible  <bruno@clisp.org>
23986
23987         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
23988         Report and solution by Simon Josefsson.
23989
23990 2008-03-06  Bruno Haible  <bruno@clisp.org>
23991
23992         Make fflush after ungetc work on BSD platforms.
23993         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
23994         * tests/test-fflush2.c: New file.
23995         * tests/test-fflush2.sh: New file.
23996         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
23997         tests/test-fflush2.c.
23998         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
23999         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
24000
24001 2008-03-06  Eric Blake  <ebb9@byu.net>
24002
24003         Likewise for ftello.
24004         * modules/ftello (Dependencies): Add extensions.
24005         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
24006
24007 2008-03-06  Bruno Haible  <bruno@clisp.org>
24008
24009         * modules/fseeko (Dependencies): Add extensions.
24010         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
24011         Needed on glibc systems.
24012
24013 2008-03-06  Bruno Haible  <bruno@clisp.org>
24014
24015         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
24016         email address.
24017         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24018
24019 2008-03-06  Bruno Haible  <bruno@clisp.org>
24020
24021         * users.txt: Add libgnupdf.
24022
24023 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24024
24025         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
24026         (Header File Substitutes, Function Substitutes,
24027         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
24028         (Build robot for gnulib): Fix typo.
24029
24030 2008-03-06  Bruno Haible  <bruno@clisp.org>
24031
24032         * doc/gnulib-tool.texi (VCS Issues): Small updates.
24033         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24034
24035 2008-03-06  Bruno Haible  <bruno@clisp.org>
24036
24037         * doc/func.texi: New file, extracted from doc/gnulib.texi.
24038         * doc/gnulib.texi: Include it.
24039
24040 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24041
24042         * modules/func (License): Change license to unlimited; there was
24043         no LGPL parts in the module anyway.
24044
24045 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24046
24047         * modules/__func__: Renamed to modules/func.
24048         * modules/__func__-tests: Renamed to modules/func-tests.
24049         * tests/test-__func__.c: Renamed to tests/test-func.c.
24050         * m4/__func__.m4: Renamed to m4/func.m4.
24051         * doc/gnulib.texi (__func__): Section renamed to func.
24052         Suggested by Eric Blake <ebb9@byu.net>.
24053
24054 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24055
24056         * doc/gnulib.texi (__func__): Use C99 terminology when talking
24057         about __func__.  Make example self-contained.  Suggested by Eric
24058         Blake <ebb9@byu.net>.
24059
24060         * tests/test-__func__.c (main): Avoid extraneous () around __func.
24061         Suggested by Eric Blake <ebb9@byu.net>.
24062
24063 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24064
24065         * modules/__func__: New file.
24066         * modules/__func__-tests: New file.
24067         * tests/test-__func__.c: New file.
24068         * m4/__func__.m4: New file.
24069         * doc/gnulib.texi (__func__): Document __func__ module.
24070
24071 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24072
24073         * modules/byteswap (License): Re-license as LGPLv2+.
24074
24075 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24076
24077         * doc/Makefile: Add pdf target.
24078
24079 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24080
24081         * modules/inline (License): Use 'unlimited', since there are only
24082         *.m4 files in this module.
24083
24084 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24085             Bruno Haible  <bruno@clisp.org>
24086
24087         Add support for HP C 7.1 on OpenVMS 8.3.
24088         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
24089
24090 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24091
24092         Update VMS specifics.
24093         * lib/getopt.c [VMS]: Remove include of unixlib.h.
24094
24095 2008-03-02  Jim Meyering  <meyering@redhat.com>
24096
24097         Remove the last dependency on the "free" module.
24098         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
24099         Reported by Bob Proulx.
24100
24101         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
24102
24103         Remove useless "if" tests before free.  Deprecate "free" module.
24104         * doc/posix-functions/free.texi: Mention that this
24105         module is no longer useful.
24106         * modules/free (Notice): Say this module is obsolete.
24107         * modules/readutmp (Depends-on): Remove free.
24108         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
24109         * lib/putenv.c (putenv): Likewise.
24110         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
24111         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
24112         * tests/test-c-strcasestr.c (main): Likewise.
24113         * tests/test-c-strstr.c (main): Likewise.
24114         * tests/test-mbscasestr1.c (main): Likewise.
24115         * tests/test-mbscasestr2.c (main): Likewise.
24116         * tests/test-mbsstr1.c (main): Likewise.
24117         * tests/test-mbsstr2.c (main): Likewise.
24118         * tests/test-memmem.c (main): Likewise.
24119         * tests/test-strcasestr.c (main): Likewise.
24120         * tests/test-striconv.c (main): Likewise.
24121         * tests/test-striconveh.c (main): Likewise.
24122         * tests/test-striconveha.c (main): Likewise.
24123         * tests/test-strstr.c (main): Likewise.
24124
24125         * build-aux/git-version-gen: Adjust a comment and the Usage string.
24126
24127         bootstrap: sync from coreutils again
24128         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
24129
24130 2008-03-01  Jim Meyering  <meyering@redhat.com>
24131
24132         bootstrap: sync from coreutils
24133         * build-aux/bootstrap (update_po_files): Copy a .po file into place
24134         also when the target doesn't exist.
24135
24136 2008-03-01  Eric Blake  <ebb9@byu.net>
24137
24138         Fix bugs in last patch.
24139         * lib/memchr2.c (memchr2): Fix typo.
24140         * tests/test-memchr2.c: Test previous bug, and don't use GNU
24141         extension.
24142         Reported by Bruce Korb.
24143
24144         New module 'memchr2'.
24145         * modules/memchr2: New file.
24146         * modules/memchr2-tests: Likewise.
24147         * lib/memchr2.h: Likewise.
24148         * lib/memchr2.c: Likewise, based on memchr.c.
24149         * tests/test-memchr2.c: New test.
24150         * MODULES.html.sh (String handling): Add memchr2.
24151
24152 2008-02-29  Bruno Haible  <bruno@clisp.org>
24153
24154         * modules/freadseek-tests: New file.
24155         * tests/test-freadseek.sh: New file.
24156         * tests/test-freadseek.c: New file.
24157
24158         New module 'freadseek'.
24159         * modules/freadseek: New file.
24160         * lib/freadseek.h: New file.
24161         * lib/freadseek.c: New file.
24162         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
24163
24164 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
24165
24166         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
24167         wydawca.
24168
24169         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
24170         program_invocation_name and program_invocation_short_name are
24171         present.
24172
24173 2008-02-28  Bruno Haible  <bruno@clisp.org>
24174
24175         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
24176         * tests/test-freadptr.sh: Also test non-seekable stdin.
24177
24178 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
24179
24180         * build-aux/bootstrap (source_base, m4_base)
24181         (doc_base, tests_base): New variables.
24182         (gnulib_tool_options): Do not hardcode base directories, use
24183         the above variables instead.
24184
24185 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
24186
24187         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
24188
24189 2008-02-28  Bruno Haible  <bruno@clisp.org>
24190
24191         * modules/freadptr-tests: New file.
24192         * tests/test-freadptr.sh: New file.
24193         * tests/test-freadptr.c: New file.
24194
24195         New module 'freadptr'.
24196         * modules/freadptr: New file.
24197         * lib/freadptr.h: New file.
24198         * lib/freadptr.c: New file.
24199         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
24200
24201 2008-02-26  Karl Berry  <karl@freefriends.org>
24202
24203         Sync from Libtool:
24204         * libltdl/argz.c (argz_add, argz_count): New functions.
24205         * libltdl/argz.in.h: Declare them.
24206         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
24207
24208 2008-02-22  Bruno Haible  <bruno@clisp.org>
24209
24210         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
24211         is a pointer type.  Needed for HP-UX 10.
24212         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
24213         * doc/posix-functions/gmtime_r.texi: Likewise.
24214         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24215
24216 2008-02-24  Bruno Haible  <bruno@clisp.org>
24217
24218         * modules/environ-tests: New file.
24219         * tests/test-environ.c: New file.
24220
24221         New module 'environ'.
24222         * modules/environ: New file.
24223         * lib/unistd.in.h (environ): New declaration.
24224         * m4/environ.m4: New file.
24225         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
24226         after use.
24227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
24228         HAVE_DECL_ENVIRON.
24229         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
24230         HAVE_DECL_ENVIRON.
24231         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
24232         wrong claim that 'environ' is missing on some systems.
24233         * modules/execute (Depends-on): Add environ.
24234         * lib/execute.c (environ): Remove fallback declaration.
24235         * modules/pipe (Depends-on): Add environ.
24236         * lib/pipe.c (environ): Remove fallback declaration.
24237         * modules/setenv (Depends-on): Add environ.
24238         * lib/setenv.c (environ): Remove fallback declaration.
24239         * modules/unsetenv (Depends-on): Add environ.
24240         * lib/unsetenv.c (environ): Remove fallback declaration.
24241         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
24242         m4/environ.m4.
24243         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
24244         (gl_PREREQ_UNSETENV): Likewise.
24245
24246 2008-02-24  Bruno Haible  <bruno@clisp.org>
24247
24248         * doc/posix-functions/environ.texi: Document the MacOS X problem.
24249
24250 2008-02-20  Bob Proulx  <bob@proulx.com>
24251
24252         Enable use of older two part flavor 'git describe'.
24253         * build-aux/git-version-gen: If using the older two part flavor of
24254         git version then recreate the third part now present in the
24255         newer three part flavor of git describe.
24256
24257 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
24258
24259         * lib/fts.c (fts_build): Typo correction to comment.
24260
24261 2008-02-17  Bruno Haible  <bruno@clisp.org>
24262
24263         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
24264         generating no-op conflicts.
24265
24266 2008-02-17  Bruno Haible  <bruno@clisp.org>
24267
24268         Speed up by 10%.
24269         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
24270         result_entries, rather than an index-based loop.
24271
24272 2008-02-17  Bruno Haible  <bruno@clisp.org>
24273
24274         Speed up by 25%.
24275         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
24276         'hashcode_cached'.
24277         (entry_create): New function.
24278         (entry_hashcode): Use the cached hashcode if possible.
24279         (read_changelog_file, try_split_merged_entry): Use entry_create.
24280
24281 2008-02-17  Bruno Haible  <bruno@clisp.org>
24282
24283         Speed up from O(n^2) to O(n) for long ChangeLog files.
24284         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
24285         (read_changelog_file): Change implementation of entries_reversed list
24286         to rbtreehash.
24287         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
24288
24289 2008-02-17  Bruno Haible  <bruno@clisp.org>
24290
24291         New option --split-merged-entry.
24292         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
24293         (find_paragraph_end, try_split_merged_entry): New functions.
24294         (long_options): Add option --split-merged-entry.
24295         (usage): Document option --split-merged-entry.
24296         (main): Implement option --split-merged-entry.
24297         Reported by Eric Blake.
24298
24299 2008-02-17  Bruno Haible  <bruno@clisp.org>
24300
24301         * lib/git-merge-changelog.c: Include c-strstr.h.
24302         (main): Support the "git pull --rebase" situation.
24303         * modules/git-merge-changelog (Depends-on): Add c-strstr.
24304         Reported by Eric Blake.
24305
24306 2008-02-16  Eric Blake  <ebb9@byu.net>
24307
24308         Avoid doubling \ in common case of "c-maybe" quoting style.
24309         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
24310         eliding outer quotes.
24311         * lib/quotearg.h: Document this.
24312         * tests/test-quotearg.c (result_strings, inputs, results_g)
24313         (flag_results, locale_results): Test it by adding a new string to
24314         each test group.
24315         (compare_strings): Test new string.
24316
24317 2008-02-13  Eric Blake  <ebb9@byu.net>
24318
24319         Avoid trigraph quoting in default output.
24320         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
24321         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
24322         unless explicitly requested.
24323         * tests/test-quotearg.c (flag_results, main): Add additional tests.
24324
24325 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
24326
24327         Don't rely on signed integer overflowing to negative value.
24328         * lib/getugroups.c (getugroups): Include <limits.h>.
24329         Instead, compare against INT_MAX, and increment only if the test passes.
24330
24331 2008-02-13  Jim Meyering  <meyering@redhat.com>
24332         and Eric Blake  <ebb9@byu.net>
24333
24334         Avoid shadowing warning and compile errors on Linux.
24335         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
24336         forwarding macros on Linux.
24337         (dcgettext): Define a stub, for Linux.
24338         (results_g, main): Avoid warnings.
24339
24340 2008-02-12  Eric Blake  <ebb9@byu.net>
24341
24342         Silence warning in last patch.
24343         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
24344
24345         Quotearg part 4: add tests, fix c-maybe colon quoting.
24346         * lib/quotearg.h: Improve documentation.
24347         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
24348         escapes when adding outer quotes.  When quoting trigraphs, use
24349         valid C notation.  When quoting NUL, omit extra characters if next
24350         character is not digit.  Alter prototype.
24351         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
24352         callers.
24353         * modules/quotearg-tests: New module.
24354         * tests/test-quotearg.c: New test.
24355
24356 2008-02-07  Eric Blake  <ebb9@byu.net>
24357
24358         Quotearg part 3: add flag to control outer quote elision.
24359         * lib/quotearg.h (c_maybe_quoting_style): New style.
24360         (enum quoting_flags): Better documentation of flags.
24361         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
24362         c-maybe style.
24363         (quotearg_buffer_restyled): Handle new flag to elide outer
24364         quotes.
24365
24366         Quotearg part 2: add flag that can control NUL elision.
24367         * lib/quotearg.h (set_quoting_flags): New prototype.
24368         * lib/quotearg.c (struct quoting_options): Add flag field.
24369         (set_quoting_flags): New function.
24370         (quotearg_buffer_restyled): Add flags parameter.
24371         (quotearg_alloc_mem): Set the flag if length cannot be returned.
24372         (quotearg_n_options): Set the flag, since length cannot be
24373         returned.
24374         (quoting_options_from_style): Default flags correctly.
24375
24376         Quotearg part 1: more wrappers, restore quotearg_char state.
24377         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
24378         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
24379         (quotearg_colon_mem): New wrappers.
24380         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
24381         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
24382         functions.
24383         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
24384         (quotearg_colon_mem): New functions.
24385
24386 2008-02-11  Bruno Haible  <bruno@clisp.org>
24387
24388         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
24389         library in the current directory: it does not work with parallel make.
24390         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24391
24392 2008-02-11  Bruno Haible  <bruno@clisp.org>
24393
24394         * .gitattributes: New file.
24395
24396 2008-02-11  Jim Meyering  <meyering@redhat.com>
24397
24398         useless-if-before-free: Fix reversed exit values.
24399         * build-aux/useless-if-before-free: Use correct values
24400         for EXIT_MATCH and EXIT_NO_MATCH.
24401
24402         * build-aux/useless-if-before-free: Close stdout carefully.
24403
24404 2008-02-10  Bruno Haible  <bruno@clisp.org>
24405
24406         New module 'git-merge-changelog'.
24407         * modules/git-merge-changelog: New file.
24408         * lib/git-merge-changelog.c: New file.
24409
24410 2008-02-10  Jim Meyering  <meyering@redhat.com>
24411
24412         useless-if-before-free: New option: --list (-l).
24413
24414         useless-if-before-free: Don't exit immediately upon open failure.
24415         * build-aux/useless-if-before-free: Exit 2 for errors.
24416         Upon failure to open a file, don't exit immediately.
24417         Rather, just warn and continue with any remaining files.
24418
24419 2008-02-10  Bruno Haible  <bruno@clisp.org>
24420
24421         New abstract list operation 'node_set_value'.
24422         * lib/gl_list.h (gl_list_node_set_value): New function.
24423         (struct gl_list_implementation): New field node_set_value.
24424         * lib/gl_list.c (gl_list_node_set_value): New function.
24425         * lib/gl_array_list.c (gl_array_node_set_value): New function.
24426         (gl_array_list_implementation): Update.
24427         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
24428         (gl_carray_list_implementation): Update.
24429         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
24430         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
24431         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
24432         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
24433         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
24434         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
24435         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
24436         Update.
24437         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
24438         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
24439         (gl_sublist_list_implementation): Update.
24440
24441 2008-02-10  Bruno Haible  <bruno@clisp.org>
24442
24443         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
24444         Needed when ELEMENT is #defined to 'some_type *'.
24445
24446 2008-02-10  Jim Meyering  <meyering@redhat.com>
24447
24448         New script and module: useless-if-before-free
24449         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
24450         * build-aux/useless-if-before-free: New file.
24451         * modules/useless-if-before-free: New file.
24452
24453         * build-aux/gitlog-to-changelog: Use committer date, not author date.
24454
24455         xstrtol_error: Fix typo.
24456         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
24457         s/exit_failure/exit_status/.
24458
24459 2008-02-09  Jim Meyering  <meyering@redhat.com>
24460
24461         New script and module: gitlog-to-changelog
24462         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
24463         * modules/gitlog-to-changelog: New file.
24464         * build-aux/gitlog-to-changelog: New file.
24465
24466 2008-02-08  Jim Meyering  <meyering@redhat.com>
24467
24468         Avoid two "parameter unused" warnings.
24469         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
24470         Mark "st" as used.
24471
24472         Use "git COMMAND", not "git-COMMAND".
24473         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
24474         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
24475         * build-aux/git-version-gen: Use "git status", not "git-status".
24476
24477 2008-02-07  Bruno Haible  <bruno@clisp.org>
24478
24479         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
24480         Avoids a crash on Windows Vista.
24481         Reported by Adam Strzelecki <ono@java.pl> via
24482         Simon Josefsson <simon@josefsson.org>.
24483
24484 2008-02-06  Bruno Haible  <bruno@clisp.org>
24485
24486         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
24487         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
24488         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
24489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
24490         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
24491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24492         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
24493         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
24494         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24495         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24496         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24497         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24498         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24499         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24500         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24501         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
24502         left-adjust flag.
24503         * tests/test-snprintf-posix.h (test_function): Likewise.
24504         * tests/test-sprintf-posix.h (test_function): Likewise.
24505         * tests/test-vasprintf-posix.c (test_function): Likewise.
24506         * doc/posix-functions/fprintf.texi: Update.
24507         * doc/posix-functions/printf.texi: Update.
24508         * doc/posix-functions/snprintf.texi: Update.
24509         * doc/posix-functions/sprintf.texi: Update.
24510         * doc/posix-functions/vfprintf.texi: Update.
24511         * doc/posix-functions/vprintf.texi: Update.
24512         * doc/posix-functions/vsnprintf.texi: Update.
24513         * doc/posix-functions/vsprintf.texi: Update.
24514         Reported by Peter Fales <psfales@alcatel-lucent.com>.
24515
24516 2008-02-06  Bruno Haible  <bruno@clisp.org>
24517
24518         Fix bug introduced on 2008-01-26.
24519         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
24520
24521 2008-02-06  Bruno Haible  <bruno@clisp.org>
24522
24523         Fix bug introduced on 2007-06-10.
24524         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
24525         !NEED_PRINTF_FLAG_ZERO.
24526
24527 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
24528
24529         getloadavg: use libperfstat on AIX5
24530         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
24531
24532 2008-02-03  Bruno Haible  <bruno@clisp.org>
24533
24534         * lib/diffseq.h: Add comments about required #includes.
24535         Reported by Michael Biggs <gnulib@doubleplum.net>.
24536
24537 2008-02-01  Bruno Haible  <bruno@clisp.org>
24538
24539         * users.txt: Add gnuit.
24540
24541 2008-01-31  Bruno Haible  <bruno@clisp.org>
24542
24543         * lib/md4.c (set_uint32): Mark as inline.
24544         * lib/md5.c (set_uint32): Likewise.
24545         * lib/sha1.c (set_uint32): Likewise.
24546         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
24547         * m4/md5.m4 (gl_MD5): Likewise.
24548         * m4/sha1.m4 (gl_SHA1): Likewise.
24549
24550 2008-01-31  Jim Meyering  <meyering@redhat.com>
24551
24552         Use "sizeof VAR", rather than a literal "4".
24553         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
24554         * lib/md4.c (md4_read_ctx): Likewise.
24555         * lib/sha1.c (sha1_read_ctx): Likewise.
24556
24557 2008-01-31  Simon Josefsson  <simon@josefsson.org>
24558
24559         * tests/test-sha1.c: New file, based on test-md5.c.
24560
24561         * modules/crypto/sha1-tests: New file.
24562
24563 2008-01-31  Simon Josefsson  <simon@josefsson.org>
24564
24565         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
24566
24567 2008-01-31  Jim Meyering  <meyering@redhat.com>
24568
24569         Prefer "sizeof v" over the equivalent "4".
24570         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
24571         * lib/md5.c (set_uint32): Likewise.
24572         * lib/sha1.c (set_uint32): Likewise.
24573
24574 2008-01-31  Simon Josefsson  <simon@josefsson.org>
24575
24576         * lib/sha1.c (set_uint32): Mark function as static.
24577
24578 2008-01-31  Simon Josefsson  <simon@josefsson.org>
24579
24580         md2: clarify comments to say that alignment is not required.
24581         * lib/md2.h: Remove warning about alignment in comment.
24582         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
24583         never been required.
24584
24585 2008-01-31  Simon Josefsson  <simon@josefsson.org>
24586
24587         md4: adapt alignment constraint fix from sha1.
24588         * lib/md4.c (set_uint32): New function, from sha1.c
24589         (md4_read_ctx): Use it.
24590         (md4_finish_ctx): Doc fix.
24591         * lib/md4.h: Doc fix.
24592
24593 2008-01-31  Simon Josefsson  <simon@josefsson.org>
24594
24595         md5: adapt alignment constraint fix from sha1.
24596         * lib/md5.c (set_uint32): New function, from sha1.c
24597         (md5_read_ctx): Use it.
24598         (md5_finish_ctx): Doc fix.
24599         * lib/md5.h: Doc fix.
24600
24601 2008-01-30  Peter Palfrader  <weasel@debian.org>
24602
24603         sha1: remove the result buffer alignment constraint
24604         * lib/sha1.c (set_uint32): New function.
24605         (sha1_read_ctx): Rewrite to remove the result buffer alignment
24606         constraint.
24607         (sha1_finish_ctx): Remove comment warning about alignment constraint.
24608         * lib/sha1.h: Likewise.
24609
24610 2008-01-30  Andreas Schwab  <schwab@suse.de>
24611             Bruno Haible  <bruno@clisp.org>
24612
24613         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
24614         correct definition of LDBL_MIN_EXP.
24615
24616 2008-01-30  Karl Berry  <karl@gnu.org>
24617
24618         * config/srclist-update: try to preserve x bit on updates.
24619         * config/srclistvars.sh: update for karl.
24620
24621 2008-01-29  Jim Meyering  <meyering@redhat.com>
24622
24623         vasnprintf.c: Avoid warning about unused label
24624         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
24625         "overflow" label definition and associated code with the
24626         same cpp condition that guards the sole use of that label.
24627
24628 2008-01-26  Bruno Haible  <bruno@clisp.org>
24629
24630         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
24631         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
24632         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
24633         * lib/isnanl-nolibm.h (isnanl): Likewise.
24634         Reported by Paul Eggert <eggert@cs.ucla.edu>.
24635
24636 2008-01-26  Bruno Haible  <bruno@clisp.org>
24637
24638         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
24639         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
24640
24641 2008-01-26  Bruno Haible  <bruno@clisp.org>
24642
24643         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
24644         GCC >= 4.0 built-in.
24645         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
24646
24647 2008-01-26  Bruno Haible  <bruno@clisp.org>
24648
24649         Rename isnan, applicable to 'double' only, to isnand.
24650         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
24651         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
24652         (configure.ac): Update.
24653         (Include): Replace "isnan.h" with "isnand.h".
24654         * m4/isnand.m4: Renamed from m4/isnan.m4.
24655         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
24656         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
24657         instead of isnan.c.
24658         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
24659         instead of HAVE_ISNAN_IN_LIBC.
24660         (isnand): Renamed from isnan.
24661         * lib/isnand.c: New file.
24662         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
24663         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
24664         (Makefile.am): Update.
24665         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
24666         Include isnand.h instead of isnan.h.
24667         (main): Test isnand instead of isnan.
24668         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
24669         isnan-nolibm.
24670         * modules/frexp (Depends-on): Likewise.
24671         * modules/frexp-tests (Depends-on): Likewise.
24672         * modules/frexp-nolibm (Depends-on): Likewise.
24673         * modules/frexp-nolibm-tests (Depends-on): Likewise.
24674         * modules/isfinite (Depends-on): Likewise.
24675         * modules/round-tests (Depends-on): Likewise.
24676         * modules/signbit (Depends-on): Likewise.
24677         * modules/signbit-tests (Depends-on): Likewise.
24678         * modules/snprintf-posix (Depends-on): Likewise.
24679         * modules/sprintf-posix (Depends-on): Likewise.
24680         * modules/trunc-tests (Depends-on): Likewise.
24681         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24682         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24683         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24684         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24685         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24686         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24687         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24688         * modules/vasnprintf-posix (Depends-on): Likewise.
24689         * modules/vasprintf-posix (Depends-on): Likewise.
24690         * modules/vfprintf-posix (Depends-on): Likewise.
24691         * modules/vsnprintf-posix (Depends-on): Likewise.
24692         * modules/vsprintf-posix (Depends-on): Likewise.
24693         * lib/frexp.c: Include isnand.h instead of isnan.h.
24694         (ISNAN): Set to isnand instead of isnan.
24695         * lib/isfinite.c: Include isnand.h instead of isnan.h.
24696         (gl_isfinited): Use isnand instead of isnan.
24697         * lib/signbitd.c: Include isnand.h instead of isnan.h.
24698         (gl_signbitd): Use isnand instead of isnan.
24699         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
24700         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
24701         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
24702         (main): Use isnand instead of isnan.
24703         * tests/test-round1.c: Include isnand.h.
24704         (main): Use isnand instead of isnan.
24705         * tests/test-round2.c: Include isnand.h instead of isnan.h.
24706         (ISNAN): Set to isnand instead of isnan.
24707         * tests/test-trunc1.c: Include isnand.h.
24708         (main): Use isnand instead of isnan.
24709         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
24710         (equal): Use isnand instead of isnan.
24711         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
24712         isnand-nolibm.
24713         * NEWS: Mention the change.
24714
24715 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24716             Bruno Haible  <bruno@clisp.org>
24717
24718         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
24719         the GCC builtins for signbits are present and set
24720         REPLACE_SIGNBIT_USING_GCC if so.
24721         * lib/math.in.h (signbit): Define using GCC builtins if
24722         REPLACE_SIGNBIT_USING_GCC is set.
24723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
24724         REPLACE_SIGNBIT_USING_GCC.
24725         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
24726
24727 2008-01-25  Jim Meyering  <meyering@redhat.com>
24728
24729         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
24730         * lib/poll.c: Include <config.h>, not "config.h".
24731         * tests/test-getaddrinfo.c: Likewise.
24732
24733 2008-01-25  Simon Josefsson  <simon@josefsson.org>
24734
24735         * modules/sockets-tests: New file.
24736
24737 2008-01-24  Simon Josefsson  <simon@josefsson.org>
24738
24739         * modules/sockets: New module, can be used to call WSA_Startup and
24740         WSA_Cleanup when needed.
24741
24742         * lib/sockets.h, lib/sockets.c: New files.
24743
24744         * m4/sockets.m4: New file.
24745
24746         * tests/test-sockets.c: New file.
24747
24748 2008-01-19  Bruno Haible  <bruno@clisp.org>
24749
24750         * doc/posix-headers: Renamed from doc/headers.
24751         * doc/posix-functions: Renamed from doc/functions.
24752         * doc/gnulib.texi: Update.
24753
24754 2008-01-19  Bruno Haible  <bruno@clisp.org>
24755
24756         * doc/glibc-functions/strcasestr.texi: Include contents of
24757         doc/functions/strcasestr.texi, fixing the list of platforms.
24758         * doc/functions/strcasestr.texi: Remove file.
24759
24760 2008-01-19  Bruno Haible  <bruno@clisp.org>
24761
24762         * doc/glibc-functions/memmem.texi: Include contents of
24763         doc/functions/memmem.texi.
24764         * doc/functions/memmem.texi: Remove file.
24765
24766 2008-01-18  Bruno Haible  <bruno@clisp.org>
24767
24768         * doc/glibc-functions/*.texi: New files.
24769         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
24770         to use the new files.
24771
24772 2008-01-17  Bruno Haible  <bruno@clisp.org>
24773
24774         * tests/test-gethostname.c (main): Fix printf statement.
24775
24776 2008-01-17  Simon Josefsson  <simon@josefsson.org>
24777
24778         * modules/gethostname-tests: New file.
24779
24780         * tests/test-gethostname.c: New file.
24781
24782 2008-01-17  Simon Josefsson  <simon@josefsson.org>
24783
24784         * lib/gethostname.c: Include string.h unconditionally, strncpy is
24785         used by the UNAME case.  Reported by Bruno Haible
24786         <bruno@clisp.org>.
24787
24788 2008-01-17  Eric Blake  <ebb9@byu.net>
24789
24790         Convert c-strcasestr to be more efficient.
24791         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
24792         (Depends-on): Add c-strcase, remove malloca, strnlen.
24793         * tests/test-c-strcasestr.c (main): Enhance test.
24794         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
24795
24796 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
24797
24798         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
24799         Use it in creating po/Makevars.
24800
24801 2008-01-15  Simon Josefsson  <simon@josefsson.org>
24802
24803         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
24804         Applications that requires it should initialize libgcrypt
24805         manually.
24806
24807 2008-01-16  Simon Josefsson  <simon@josefsson.org>
24808
24809         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
24810
24811 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24812
24813         Fix problem with getdate on mingw32 reported by Simon Josefsson
24814         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
24815         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
24816         tzname", when deciding whether to declare tzname.
24817         * lib/strftime.c (tzname): Likewise.
24818
24819 2008-01-15  Bruno Haible  <bruno@clisp.org>
24820
24821         Work around a MacOS X 10.5 bug in frexpl().
24822         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
24823         * doc/functions/frexpl.texi: Document the bug.
24824         Reported by Elias Pipping <pipping@gentoo.org>.
24825
24826 2008-01-14  Eric Blake  <ebb9@byu.net>
24827
24828         Touch up previous patch.
24829         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
24830         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
24831
24832         Convert strcasestr module to use Two-Way algorithm.
24833         * modules/strcasestr-simple: New module, based on the old
24834         strcasestr, but with Two-Way rather than KMP.
24835         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
24836         * lib/string.in.h (rpl_strcasestr): Declare.
24837         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
24838         performance.
24839         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
24840         * modules/string (Makefile.am): Support strcasestr.
24841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
24842         * modules/strcasestr-tests (Depends-on): Check for alarm.
24843         * tests/test-strcasestr.c: Augment test.
24844         * lib/str-two-way.h: Clean up stray macro.
24845         * NEWS: Document new module.
24846         * MODULES.html.sh (string handling): Likewise.
24847         * doc/functions/strcasestr.texi: New file.
24848         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
24849         here, since it is not a POSIX function.
24850
24851 2008-01-14  Colin Watson  <cjwatson@debian.org>
24852             Bruno Haible  <bruno@clisp.org>
24853
24854         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
24855         works fine; if not, set REPLACE_STRSIGNAL.
24856         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
24857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24858         REPLACE_STRSIGNAL.
24859         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
24860         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
24861         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
24862
24863 2008-01-14  Bruno Haible  <bruno@clisp.org>
24864
24865         * modules/strsignal (Include): Change to <string.h>.
24866
24867 2008-01-14  Colin Watson  <cjwatson@debian.org>
24868
24869         * modules/argp (Notice): Add a notice recommending to change
24870         XGETTEXT_OPTIONS.
24871         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
24872
24873 2008-01-13  Colin Watson  <cjwatson@debian.org>
24874
24875         * modules/strsignal-tests: New file.
24876         * tests/test-strsignal.c: New file.
24877
24878         * lib/strsignal.c: New file, from glibc with modifications.
24879         * lib/siglist.h: New file, from glibc with modifications.
24880         * lib/string.in.h (strsignal): New declaration.
24881         * m4/strsignal.m4: New file.
24882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24883         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
24884         * modules/strsignal: New file.
24885         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
24886         HAVE_DECL_STRSIGNAL.
24887
24888 2008-01-13  Bruno Haible  <bruno@clisp.org>
24889
24890         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
24891         locale encoding is not ASCII. Needed for OpenBSD 4.0.
24892         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24893         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24894
24895 2008-01-13  Bruno Haible  <bruno@clisp.org>
24896
24897         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
24898         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
24899         * lib/argp.h (__attribute__): Likewise.
24900         * lib/c-stack.c (__attribute__): Likewise.
24901         * lib/error.h (__attribute__): Likewise.
24902         * lib/fts.c (__attribute__): Likewise.
24903         * lib/openat.h (__attribute__): Likewise.
24904         * lib/stdio.in.h (__attribute__): Likewise.
24905         * lib/string.in.h (__attribute__): Likewise.
24906         * lib/utimens.c (__attribute__): Likewise.
24907         * lib/vasnprintf.h (__attribute__): Likewise.
24908         * lib/xalloc.h (__attribute__): Likewise.
24909         * lib/xprintf.h (__attribute__): Likewise.
24910         * lib/xstrtol.h (__attribute__): Likewise.
24911         * lib/xvasprintf.h (__attribute__): Likewise.
24912
24913 2008-01-12  Bruno Haible  <bruno@clisp.org>
24914
24915         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
24916         * doc/glibc-headers/a.out.texi: New file.
24917         * doc/glibc-headers/aliases.texi: New file.
24918         * doc/glibc-headers/alloca.texi: New file.
24919         * doc/glibc-headers/ar.texi: New file.
24920         * doc/glibc-headers/argp.texi: New file.
24921         * doc/glibc-headers/argz.texi: New file.
24922         * doc/glibc-headers/byteswap.texi: New file.
24923         * doc/glibc-headers/crypt.texi: New file.
24924         * doc/glibc-headers/endian.texi: New file.
24925         * doc/glibc-headers/envz.texi: New file.
24926         * doc/glibc-headers/err.texi: New file.
24927         * doc/glibc-headers/error.texi: New file.
24928         * doc/glibc-headers/execinfo.texi: New file.
24929         * doc/glibc-headers/fpu_control.texi: New file.
24930         * doc/glibc-headers/fstab.texi: New file.
24931         * doc/glibc-headers/fts.texi: New file.
24932         * doc/glibc-headers/getopt.texi: New file.
24933         * doc/glibc-headers/ieee754.texi: New file.
24934         * doc/glibc-headers/ifaddrs.texi: New file.
24935         * doc/glibc-headers/libintl.texi: New file.
24936         * doc/glibc-headers/mcheck.texi: New file.
24937         * doc/glibc-headers/mntent.texi: New file.
24938         * doc/glibc-headers/obstack.texi: New file.
24939         * doc/glibc-headers/paths.texi: New file.
24940         * doc/glibc-headers/printf.texi: New file.
24941         * doc/glibc-headers/pty.texi: New file.
24942         * doc/glibc-headers/resolv.texi: New file.
24943         * doc/glibc-headers/shadow.texi: New file.
24944         * doc/glibc-headers/sysexits.texi: New file.
24945         * doc/glibc-headers/ttyent.texi: New file.
24946
24947 2008-01-12  Jim Meyering  <meyering@redhat.com>
24948
24949         announce-gen: emit Gnulib's git-based version string.
24950         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
24951         New option --gnulib-version=V, where V is expected to be
24952         the output of running git describe in the gnulib directory.
24953         (get_tool_versions): Request feedback on xdelta.  I suspect it's
24954         not useful, and plan to stop publishing an xdelta file with each
24955         coreutils release.
24956
24957         * build-aux/announce-gen: Also check for lzma-compressed files.
24958
24959 2008-01-11  Bruno Haible  <bruno@clisp.org>
24960
24961         * tests/test-memmem.c (main): Increase maximum allowed time.
24962         * tests/test-strstr.c (main): Likewise.
24963
24964 2008-01-11  Bruno Haible  <bruno@clisp.org>
24965
24966         * doc/functions/memmem.texi: Add more precisions about platforms.
24967         * doc/functions/strstr.texi: Likewise.
24968
24969 2008-01-10  Eric Blake  <ebb9@byu.net>
24970
24971         * m4/strstr.m4: Delete cruft from copy-n-paste.
24972         Reported by Bruno Haible.
24973
24974 2008-01-10  Bruno Haible  <bruno@clisp.org>
24975
24976         Make c-strstr rely on strstr.
24977         * lib/c-strstr.c: Don't include str-kmp.h.
24978         (c_strstr): Define in terms of strstr.
24979         * modules/c-strstr (Files): Remove lib/str-kmp.h.
24980         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
24981
24982 2008-01-10  Bruno Haible  <bruno@clisp.org>
24983
24984         * doc/gnulib.texi (String Functions in C Locale): New section.
24985         * doc/c-ctype.texi: New file.
24986         * doc/c-strcase.texi: New file.
24987         * doc/c-strcaseeq.texi: New file.
24988         * doc/c-strcasestr.texi: New file.
24989         * doc/c-strstr.texi: New file.
24990         * doc/c-strtod.texi: New file.
24991         * doc/c-strtold.texi: New file.
24992
24993 2008-01-10  Eric Blake  <ebb9@byu.net>
24994
24995         * lib/relocatable.h: Fix a comment.
24996
24997 2008-01-10  Eric Blake  <ebb9@byu.net>
24998
24999         Share two-way algorithm.
25000         * lib/str-two-way.h: New file, merged from...
25001         * lib/memmem.c: ...here...
25002         * lib/strstr.c: ...and here.
25003         * modules/memmem (Files): Use it.
25004         * modules/strstr (Files): Likewise.
25005
25006         Avoid quadratic strstr implementations.
25007         * lib/strstr.c: New file.
25008         * m4/strstr.m4: Likewise.
25009         * modules/strstr: Likewise.
25010         * modules/strstr-tests: Likewise.
25011         * tests/test-strstr.c: Likewise.
25012         * lib/string.in.h (rpl_strstr): Declare.
25013         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
25014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
25015         * modules/string (Makefile.am): Likewise.
25016         * MODULES.html.sh (string handling): Mention new module.
25017         * doc/functions/strstr.texi (strstr): Document the bug.
25018
25019 2008-01-10  Bruno Haible  <bruno@clisp.org>
25020
25021         * lib/relocatable.h (relocate): State whether result is freshly
25022         allocated or not.
25023         * lib/relocatable.c (relocate): Return a freshly allocated string
25024         instead of a pointer to a privately held string.
25025         Reported by Sylvain Beucler <beuc@gnu.org>.
25026
25027 2008-01-10  Colin Watson  <cjwatson@debian.org>
25028
25029         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
25030         s/S_ISNLK/S_ISLNK/.
25031
25032 2008-01-09  Bruno Haible  <bruno@clisp.org>
25033
25034         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
25035         and other files.
25036         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
25037         if it's only a guess.
25038         * modules/memmem: Simplify by depending on memmem-simple.
25039
25040 2008-01-09  Bruno Haible  <bruno@clisp.org>
25041
25042         Work around OpenBSD 4.0 tdelete() bug.
25043         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
25044         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
25045         macros and don't redefine the enum values.
25046         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
25047         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
25048         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
25049
25050 2008-01-09  Bruno Haible  <bruno@clisp.org>
25051
25052         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
25053         (main): Don't perform the tests if setlocale did not install a UTF-8
25054         locale. Needed on OpenBSD 4.0.
25055         * modules/wcwidth-tests (Depends-on): Add localcharset.
25056
25057 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25058
25059         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
25060         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
25061         * NEWS: announce this.
25062         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
25063
25064 2008-01-09  Simon Josefsson  <simon@josefsson.org>
25065         and Eric Blake  <ebb9@byu.net>
25066
25067         Add memmem-simple module.
25068         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
25069         (gl_FUNC_MEMMEM): Separate performance from presence checks.
25070         * modules/memmem-simple: New file.
25071         * modules/memmem (Description): Tweak.
25072         * MODULES.html.sh (string handling): Mention new module.
25073         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
25074         addressed by memmem-simple.
25075         * NEWS: Document the difference.
25076
25077 2008-01-09  Eric Blake  <ebb9@byu.net>
25078
25079         Give gcc some memmem optimization hints.
25080         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
25081         (strcasestr): Declare as pure.
25082         * modules/memmem (Maintainer): Claim my implementation.
25083
25084 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25085
25086         Support AIX 6.1 and higher.
25087         * build-aux/config.libpath: Likewise.
25088         * build-aux/config.rpath: Likewise.
25089
25090 2008-01-08  Jim Meyering  <meyering@redhat.com>
25091             Bruno Haible  <bruno@clisp.org>
25092
25093         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
25094         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
25095         Reported by Peter Fales in
25096         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
25097
25098 2008-01-08  Bruno Haible  <bruno@clisp.org>
25099
25100         * modules/unictype/category-of (Depends-on): Add
25101         unictype/category-none.
25102         * modules/unictype/category-and-tests (Depends-on): Add
25103         unictype/category-{L,N,Lu,Nd}.
25104         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
25105         * modules/unictype/category-or-tests (Depends-on): Add
25106         unictype/category-{L,N}.
25107         * modules/unictype/category-name-tests (Depends-on): Add
25108         unictype/category-{Z,Nl}.
25109         Reported by Simon Josefsson.
25110
25111 2008-01-08  Bruno Haible  <bruno@clisp.org>
25112
25113         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
25114         convention better.
25115         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
25116         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
25117         Reported by Peter Miller <millerp@canb.auug.org.au>.
25118
25119 2008-01-08  Eric Blake  <ebb9@byu.net>
25120
25121         Rewrite memmem to guarantee linear complexity without malloc.
25122         * lib/memmem.c (memmem): Use Two-Way rather than
25123         Knuth-Morris-Pratt, to allow O(1) space usage.
25124         (critical_factorization, two_way_short_needle)
25125         (two_way_long_needle): New functions.
25126         (knuth_morris_pratt): Delete.
25127         * modules/memmem (Depends-on): No longer need malloca or stdbool.
25128         Add stdint.
25129         * tests/test-memmem.c (main): Add tests for periodic needle and
25130         sublinear performance.
25131         * doc/functions/memmem.texi (memmem): Document other deficiencies
25132         in cygwin and older glibc.
25133
25134 2008-01-08  Bruno Haible  <bruno@clisp.org>
25135
25136         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
25137         augmentation.
25138
25139 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
25140
25141         Add a configure time option: --disable-acl.
25142         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
25143         AC_ARG_ENABLE(acl).
25144
25145 2008-01-06  Simon Josefsson  <simon@josefsson.org>
25146
25147         * tests/test-localename.c: Don't include obsolete "setenv.h".
25148
25149         * modules/localename-tests (Depends-on): Need unsetenv.
25150
25151 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25152
25153         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
25154
25155 2008-01-06  Colin Watson  <cjwatson@debian.org>
25156
25157         * users.txt: Add man-db.
25158
25159 2008-01-07  Bruno Haible  <bruno@clisp.org>
25160
25161         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
25162         previous section name.
25163
25164 2008-01-07  Bruno Haible  <bruno@clisp.org>
25165
25166         * lib/progname.c (set_program_name): Don't strip off a leading
25167         "lt-" prefix outside a .libs directory.
25168         Suggested by Paul Eggert.
25169
25170 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
25171             Bruno Haible  <bruno@clisp.org>
25172
25173         Improve memory cleanup in 'relocatable' module.
25174         * lib/relocatable.h (compute_curr_prefix): Change return type to
25175         'char *'.
25176         * lib/relocatable.c (compute_curr_prefix): Change return type to
25177         'char *'. Free curr_installdir after use.
25178         (relocate): Free curr_prefix_better after use.
25179         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
25180
25181 2008-01-01  Bruno Haible  <bruno@clisp.org>
25182
25183         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
25184         failure on older glibc systems.
25185         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25186
25187 2008-01-05  Eric Blake  <ebb9@byu.net>
25188
25189         Avoid quadratic system memmem.
25190         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
25191         Reported by Ralf Wildenhues.
25192
25193         Fix memmem test for mingw.
25194         * modules/memmem-tests (configure.ac): Check for alarm.
25195         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
25196         it.
25197         * doc/functions/memmem.texi: New file.
25198         * doc/gnulib.texi (Function Substitutes): Add memmem.
25199         Reported by Bruno Haible.
25200
25201 2008-01-04  Bruno Haible  <bruno@clisp.org>
25202
25203         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
25204         Require gl_HEADER_STRINGS_H_DEFAULTS, not
25205         gl_HEADER_STRING_H_DEFAULTS.
25206
25207 2008-01-04  Eric Blake  <ebb9@byu.net>
25208
25209         Shorten duration of memmem test.
25210         * tests/test-memmem.c (main): Use alarm to declare failure if test
25211         is taking too long.
25212         Reported by Ralf Wildenhues.
25213
25214 2007-12-21  Simon Josefsson  <simon@josefsson.org>
25215
25216         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
25217         string, needed by strerror.
25218
25219 2008-01-03  Colin Watson  <cjwatson@debian.org>
25220             Bruno Haible  <bruno@clisp.org>
25221
25222         * doc/gnulib-tool.texi (Localization): New section.
25223
25224 2008-01-02  Bruno Haible  <bruno@clisp.org>
25225
25226         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
25227         variables to 'unsigned char *' type.
25228         Reported by Paul Eggert.
25229
25230 2008-01-02  Jim Meyering  <jim@meyering.net>
25231
25232         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
25233
25234 2007-12-31  Jim Meyering  <jim@meyering.net>
25235
25236         Avoid use of private FTS type name.
25237         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
25238
25239 2007-12-30  Karl Berry  <karl@gnu.org>
25240
25241         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
25242         work around defect in Texinfo and/or the standalone Info browser.
25243
25244 2007-12-30  Bruno Haible  <bruno@clisp.org>
25245
25246         Unify 5 copies of the KMP code.
25247         * lib/str-kmp.h: New file.
25248         * lib/c-strcasestr.c: Include str-kmp.h.
25249         (knuth_morris_pratt): Remove function.
25250         (c_strcasestr): Update.
25251         * lib/c-strstr.c: Include str-kmp.h.
25252         (knuth_morris_pratt): Remove function.
25253         (c_strcasestr): Update.
25254         * lib/mbscasestr.c: Include str-kmp.h.
25255         (knuth_morris_pratt_unibyte): Remove function.
25256         * lib/mbsstr.c: Include str-kmp.h.
25257         (knuth_morris_pratt_unibyte): Remove function.
25258         * lib/strcasestr.c: Include str-kmp.h.
25259         (knuth_morris_pratt): Remove function.
25260         (strcasestr): Update.
25261         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
25262         * modules/c-strstr (Files): Likewise.
25263         * modules/mbscasestr (Files): Likewise.
25264         * modules/mbsstr (Files): Likewise.
25265         * modules/strcasestr (Files): Likewise.
25266         Suggested by Paul Eggert.
25267
25268 2007-12-30  Bruno Haible  <bruno@clisp.org>
25269
25270         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
25271         defined.
25272
25273 2007-12-30  Bruno Haible  <bruno@clisp.org>
25274
25275         * lib/xmalloca.h: Include xalloc.h.
25276         (xnmalloca): New macro.
25277
25278 2007-12-30  Bruno Haible  <bruno@clisp.org>
25279
25280         * lib/malloca.h (nmalloca): New macro.
25281         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
25282         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
25283         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
25284         knuth_morris_pratt_multibyte): Likewise.
25285         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
25286         knuth_morris_pratt_multibyte): Likewise.
25287         * lib/memmem.c (knuth_morris_pratt): Likewise.
25288         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
25289
25290 2007-12-25  Bruno Haible  <bruno@clisp.org>
25291
25292         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
25293         * lib/glob.c: Don't include openat.h.
25294         (link_exists2_p): Add back the code that deals with the
25295         !GLOB_ALTDIRFUNC case.
25296         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
25297         let it do the filename concatenation.
25298         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
25299         * modules/glob (Depends-on): Remove openat.
25300
25301 2007-12-31  Bruno Haible  <bruno@clisp.org>
25302
25303         * modules/dirfd (License): Change to LGPLv2+.
25304         Approved by Jim Meyering.
25305
25306 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25307
25308         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
25309         when multiplying M by sizeof (size_t).
25310
25311 2007-12-10  Martin Lambers  <marlam@marlam.de>
25312
25313         Override getpagesize on mingw.
25314         * lib/getpagesize.c: New file.
25315         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
25316         * modules/getpagesize (Files): Add lib/getpagesize.c.
25317         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
25318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25319         REPLACE_GETPAGESIZE.
25320         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
25321
25322 2007-12-25  Bruno Haible  <bruno@clisp.org>
25323
25324         * modules/localcharset (Notice): New field.
25325         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
25326         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
25327
25328 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25329             Bruno Haible  <bruno@clisp.org>
25330
25331         Avoid using the syntax symbol() in formatted documentation.
25332         * MODULES.html.sh (func_module): When replacing symbol() with a
25333         hyperlink, remove the parentheses. Show an error if some remain.
25334         Recognize and render the '...' syntax.
25335         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
25336         Rework. Add paragraph about GCC's inlining.
25337         * doc/alloca.texi: Likewise.
25338         * doc/error.texi: Remove parentheses from symbol reference.
25339         * doc/gnulib-intro.texi: Likewise.
25340         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
25341         * modules/fnmatch (Description): Reword to say "the ... function".
25342         * modules/full-read (Description): Likewise.
25343         * modules/full-write (Description): Likewise.
25344         * modules/safe-read (Description): Likewise.
25345         * modules/safe-write (Description): Likewise.
25346         * modules/strchrnul (Description): Likewise.
25347         * modules/trim (Description): Likewise.
25348         * modules/error (Description): Remove parentheses from symbol
25349         references.
25350         * modules/verror (Description): Likewise.
25351         Reported by Karl Berry.
25352
25353 2007-12-25  Bruno Haible  <bruno@clisp.org>
25354
25355         Fixup after 2007-10-16 commit.
25356         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
25357
25358 2007-12-24  Bruno Haible  <bruno@clisp.org>
25359
25360         Make --enable-relocatable work with DESTDIR.
25361         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
25362         to compute installdir from destprog.
25363         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
25364         also set the RELOC_DESTDIR variable.
25365         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
25366
25367 2007-12-24  Bruno Haible  <bruno@clisp.org>
25368
25369         Fix link error due to xalloc_die().
25370         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
25371         of xreadlink.
25372         * lib/relocwrapper.c: Update comments.
25373         * build-aux/install-reloc: Remove xreadlink.c from file list.
25374         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
25375         xreadlink.c.
25376         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
25377
25378 2007-12-24  Bruno Haible  <bruno@clisp.org>
25379
25380         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
25381         * lib/setenv.h: Remove file.
25382         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
25383         lib/setenv.h.
25384         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
25385         (Depends-on): Add stdlib.
25386         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
25387         gl_FUNC_UNSETENV.
25388         (Include): Replace setenv.h with <stdlib.h>.
25389         * modules/unsetenv: New file.
25390         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
25391         * lib/unsetenv.c: Include <stdlib.h> first.
25392         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
25393         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
25394         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
25395         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
25396         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
25397         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
25398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
25399         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
25400         * doc/functions/unsetenv.texi: Update.
25401         * modules/xsetenv (Depends-on): Add unsetenv.
25402         * modules/getdate (Depends-on): Likewise.
25403         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
25404         * lib/xsetenv.c: Don't include setenv.h.
25405         * lib/getdate.y: Likewise.
25406         * lib/relocwrapper.c: Likewise.
25407         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
25408         (Depends-on): Add stdlib.
25409         * NEWS: Mention the changes.
25410         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
25411
25412 2007-12-23  Bruno Haible  <bruno@clisp.org>
25413
25414         * lib/memmem.c (memmem): Use lowercase variable names. Tab
25415         indentation.
25416
25417 2007-12-23  Bruno Haible  <bruno@clisp.org>
25418
25419         * lib/c-strcasestr.c: Add more comments.
25420         * lib/c-strstr.c: Likewise.
25421         * lib/mbscasestr.c: Likewise.
25422         * lib/mbsstr.c: Likewise.
25423         * lib/strcasestr.c: Likewise.
25424         * lib/memmem.c: Likewise.
25425
25426 2007-12-23  Bruno Haible  <bruno@clisp.org>
25427
25428         * tests/test-memmem.c: Include <string.h> first.
25429
25430 2007-12-22  Bruno Haible  <bruno@clisp.org>
25431
25432         * gnulib-tool (func_create_testdir): Change $auxdir while generating
25433         the contents of $testsbase.
25434         Reported by Ralf Wildenhues.
25435
25436 2007-12-22  Bruno Haible  <bruno@clisp.org>
25437
25438         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
25439         two variables local_ldadd_before, local_ldadd_last.
25440
25441 2007-12-20  Eric Blake  <ebb9@byu.net>
25442
25443         Work around circular library issue when cross-compiling.
25444         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
25445         that progname.o does not need to pull in rpl_memcmp.
25446
25447 2007-12-19  Eric Blake  <ebb9@byu.net>
25448
25449         Fix memmem to avoid O(n^2) worst-case complexity.
25450         * lib/memmem.c (knuth_morris_pratt): New function.
25451         (memmem): Use it if first few naive iterations fail.
25452         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
25453         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
25454         * modules/memchr (License): Likewise.
25455         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
25456         malloca.
25457         * tests/test-memmem.c: Rewrite, borrowing ideas from
25458         test-mbsstr1.c; the old version wouldn't even compile!
25459         * modules/memmem-tests: New file.
25460         * lib/string.in.h (rpl_memmem): Add declaration.
25461         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
25462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
25463         REPLACE_MEMMEM.
25464
25465 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25466
25467         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
25468         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
25469         before any system include files, and undef after them all.  This
25470         should fix a problem on VMS reported by John E. Malmberg in
25471         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
25472
25473 2007-12-17  Eric Blake  <ebb9@byu.net>
25474
25475         Revert addition of verify, for BSD/OS.
25476         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
25477         can't handle large files, for the sake of obsolete platforms.
25478         * modules/fseeko (Depends-on): Remove verify.
25479         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
25480         * doc/functions/ftello.texi (ftello): Likewise.
25481         * doc/functions/fgetpos.texi (fgetpos): Likewise.
25482         Reported by Larry Jones.
25483
25484 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
25485
25486         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
25487         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
25488
25489 2007-12-17  Jim Meyering  <meyering@redhat.com>
25490
25491         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
25492         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
25493         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
25494         * modules/getcwd (Depends-on): Add openat.
25495         Reported by Petr Salinger.
25496
25497 2007-12-17  Bruno Haible  <bruno@clisp.org>
25498
25499         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
25500         avoid a segmentation fault of the configure test on x86_64 systems.
25501
25502 2007-12-15  Jim Meyering  <meyering@redhat.com>
25503
25504         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
25505
25506 2007-12-13  Eric Blake  <ebb9@byu.net>
25507
25508         Another fseek test.
25509         * tests/test-fseek.c (main): Also test ungetc handling.
25510         * tests/test-fseeko.c (main): Likewise.
25511         * modules/fseeko (Depends-on): Add verify.
25512         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
25513         large.
25514         Reported by Larry Jones.
25515
25516         Fix fseeko on mingw.
25517         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
25518         seek.
25519
25520         Beef up fseek tests.
25521         * tests/test-fseek.c (main): Also test eof handling.
25522         * tests/test-fseeko.c (main): Likewise.
25523         Reported by Larry Jones.
25524
25525 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
25526
25527         Fix fseeko on BSD-based platforms.
25528         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
25529         successful seek.
25530
25531 2007-12-12  Eric Blake  <ebb9@byu.net>
25532
25533         Allow circular dependency of separate libtests.a
25534         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
25535         when use_libtests.
25536
25537 2007-12-11  Eric Blake  <ebb9@byu.net>
25538
25539         Fix bug with -0.0L in previous patch.
25540         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
25541         * tests/test-isnan.c (main): Also test on zeroes.
25542         * tests/test-isnanf.c (main): Likewise.
25543         * tests/test-isnanl.h (main): Likewise.
25544
25545         Detect pseudo-denormals on x86 even when cross-compiling.
25546         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
25547         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
25548         invalid bit patterns that happen to satisfy ==.
25549
25550         Avoid link failures with separate libtests.a.
25551         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
25552         last, to satisfy circular dependencies.
25553
25554 2007-12-11  Eric Blake  <ebb9@byu.net>
25555         and Bruno Haible  <bruno@clisp.org>
25556
25557         Fix OpenBSD 4.0 <float.h> handling of long double.
25558         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
25559         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
25560         * doc/headers/float.texi (float.h): Document OpenBSD bug.
25561
25562 2007-12-11  Jim Meyering  <meyering@redhat.com>
25563
25564         * users.txt: Add libvirt.
25565
25566         Support versions of autoconf prior to 2.59c.
25567         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
25568         if it is not already defined.
25569
25570 2007-12-09  Bruno Haible  <bruno@clisp.org>
25571
25572         Let 'gnulib-tool --import' collect sources needed for the tests in
25573         tests/ rather than in lib/.
25574         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
25575         argument. If true, add rules to generate libtests.a, and put libtests.a
25576         into $(LDADD). Consider source files in subdirectories and set
25577         uses_subdirs.
25578         (func_emit_initmacro_start, func_emit_initmacro_end,
25579         func_emit_initmacro_done): Pass all arguments explicitly.
25580         (func_import): Determine two module lists main_modules,
25581         testsrelated_modules. Determine use_libtests. Determine two variables
25582         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
25583         instead of just sed_transform_lib_file. Determine two variables
25584         main_files and testsrelated_files. Compute 'files' as the union of
25585         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
25586         func_add_or_update. In the generated gnulib-comp.m4, collect the
25587         object files for tests/ in different variables than those for lib/.
25588         Substitute LIBTESTS_LIBDEPS.
25589         (func_create_testdir): Combine the uses_subdirs results from
25590         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
25591
25592 2007-12-09  Bruno Haible  <bruno@clisp.org>
25593
25594         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
25595         the build-aux directory.
25596
25597 2007-12-09  Bruno Haible  <bruno@clisp.org>
25598
25599         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
25600         introduced on 2006-09-09.
25601
25602 2007-12-07  Jim Meyering  <meyering@redhat.com>
25603
25604         Let these macros work also with autoconf-2.59.
25605         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
25606         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
25607         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25608
25609 2007-12-06  Jim Meyering  <meyering@redhat.com>
25610
25611         Avoid a configure-time syntax error in gl_FUNC_ACL.
25612         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
25613         function in each branch, before testing the cache variable.
25614
25615 2007-12-04  Eric Blake  <ebb9@byu.net>
25616
25617         Make scripts executable.
25618         * build-aux/config.guess: Add execute permissions.
25619         * build-aux/config.sub: Likewise.
25620         * build-aux/gendocs.sh: Likewise.
25621
25622         Fix frexp on mingw.
25623         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
25624         cross-compiling.
25625         * doc/functions/frexp.texi (frexp): Document the bug.
25626
25627         Make cygwin fseeko check more reliable.
25628         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
25629         version numbers, rather than unrelated feature check.
25630         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
25631         * doc/functions/ftello.texi (ftello): Likewise.
25632         Reported by Bruno Haible.
25633
25634         * m4/strerror.m4: Bump version number.
25635
25636 2007-12-03  Bruno Haible  <bruno@clisp.org>
25637
25638         * doc/functions/mprotect.texi: Mention the mingw problem.
25639
25640 2007-12-03  Eric Blake  <ebb9@byu.net>
25641
25642         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
25643         REPLACE_STRERROR is initialized before this macro.
25644
25645 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
25646
25647         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
25648         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
25649         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
25650         put -lsec in even for programs other than 'ls'.  This fixes a problem
25651         for gettext reported by Bruno Haible in
25652         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
25653         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
25654         Add support for Solaris 10.  This isn't efficient, but should get the
25655         job done for now.
25656
25657 2007-12-03  James Youngman  <jay@gnu.org>
25658
25659         * doc/regexprops-generic.texi: change "an close-group" to "a
25660         close-group" and "illegal" to "not allowed".
25661
25662 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25663
25664         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
25665         pr_byname.h. Needed for the rare case when the maintainer has done
25666         "make maintainer-clean" in the source directory and then attempts a
25667         build outside the source directory.
25668         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
25669         scripts_byname.h.
25670
25671 2007-12-02  Martin Lambers <marlam@marlam.de>
25672             Bruno Haible  <bruno@clisp.org>
25673
25674         * lib/getpagesize.h: Remove file.
25675         * lib/unistd.in.h: Include declaration of getpagesize here.
25676         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
25677         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
25678         HAVE_SYS_PARAM_H.
25679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
25680         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
25681         * modules/getpagesize (Files): Remove lib/getpagesize.h.
25682         (Depends-on): Add unistd.
25683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25684         (Include): Use <unistd.h> instead of getpagesize.h.
25685         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
25686         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
25687         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
25688         gl_GETPAGESIZE invocation, already handled by module dependency.
25689         * lib/pagealign_alloc.c: Don't include getpagesize.h.
25690
25691 2007-12-02  Bruno Haible  <bruno@clisp.org>
25692
25693         * modules/strings-tests: New file.
25694         * tests/test-strings.c: New file.
25695
25696         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
25697         * lib/strings.in.h: New file.
25698         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
25699         * m4/strings_h.m4: New file.
25700         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
25701         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
25702         * modules/strings: New file.
25703         * modules/string (Makefile.am): Update.
25704         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
25705         Reported by Karl Berry.
25706
25707 2007-12-01  Eric Blake  <ebb9@byu.net>
25708
25709         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
25710         accomodate fix in cygwin 1.5.25.
25711
25712 2007-12-01  Jim Meyering  <meyering@redhat.com>
25713
25714         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
25715         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
25716         that would inhibit utf8-optimization of a regexp containing line-
25717         or buffer-anchors, e.g., `^', `$'.
25718
25719 2007-11-30  Bruno Haible  <bruno@clisp.org>
25720
25721         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
25722         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
25723         glthread_recursive_lock_init.
25724         * lib/lock.c (glthread_recursive_lock_init)
25725         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
25726         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25727
25728 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
25729
25730         New function qset_acl, like set_acl but with syscall semantics.
25731         * lib/acl.h (qset_acl): New decl.
25732         * lib/acl.c (qset_acl): New function.
25733         (set_acl): Use new function.  Use more-consistent diagnostics.
25734
25735 2007-11-28  Jim Meyering  <meyering@redhat.com>
25736
25737         * modules/physmem (License): Change from GPL to LGPLv2+.
25738
25739 2007-11-26  Bruno Haible  <bruno@clisp.org>
25740
25741         * lib/vasnprintf.c (decode_long_double): Don't abort if the
25742         'long double' type has excess precision.
25743         Reported by Jim Meyering in
25744         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
25745
25746 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25747
25748         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
25749         Sync from <http://gnu.org/licenses>.
25750         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
25751         with license text from same location.
25752         * doc/maintain.texi, doc/standards.texi:  Sync from
25753         <http://savannah.gnu.org/projects/gnustandards>.
25754
25755 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
25756         and Jim Meyering  <meyering@redhat.com>
25757
25758         Adjust getdate' grammar to accept a slightly more regular language.
25759         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
25760         Before, the former was rejected.
25761         * lib/getdate.y (digits_to_date_time): New function, factored
25762         out of ...
25763         (number): ...here.  Just call digits_to_date_time.
25764         (hybrid): New non-terminal to handle an <unsigned number,
25765         signed relative offset> sequence consistently.
25766
25767 2007-11-18  Jim Meyering  <meyering@redhat.com>
25768
25769         Pull my changes from coreutils:
25770         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
25771         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
25772         use of $gnulib_tool_option_extras, so that it's separated from the
25773         preceding argument.
25774
25775         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
25776         * build-aux/bootstrap (cp_mark_as_generated): Create any required
25777         parent destination directories before copying a file into place.
25778
25779 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
25780
25781         bootstrap: work also with 4-argument variant of AC_INIT
25782         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
25783
25784 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
25785
25786         Port test-getaddrinfo to Solaris.
25787         Problem reported by Bruno Haible in
25788         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
25789         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
25790         explanation of setting 'hints'.
25791         Don't reject an implementation merely because it returns EAI_SERVICE.
25792         (EAI_SERVICE): Define to 0 if not defined.
25793
25794 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25795
25796         The license of gnu-make and posix-shell is now "GPLed build tool".
25797         * modules/gnu-make (License): Likewise.
25798         * modules/posix-shell (License): Likewise.
25799
25800         New module posix-shell, for determining a POSIX shell
25801         or perhaps something that is close enough to a POSIX shell.
25802         * m4/posix-shell.m4: New file.
25803         * modules/posix-shell: New file.
25804
25805         * MODULES.html.sh: Mention new module.
25806
25807         New module gnu-make, for determining whether we're using GNU Make.
25808         * m4/gnu-make.m4: New file.
25809         * modules/gnu-make: New file.
25810         * MODULES.html.sh: Mention new module.
25811
25812 2007-11-14  Jim Meyering  <meyering@redhat.com>
25813
25814         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
25815         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
25816         use this macro to create a function _definition_.
25817         Remove useless "#undef ARGMATCH_DIE".
25818
25819 2007-11-14  Bruno Haible  <bruno@clisp.org>
25820
25821         * lib/config.charset: Update for OpenBSD 4.1.
25822         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
25823
25824 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25825
25826         Document 64-bit #if problems in stdint.texi.
25827         * doc/headers/stdint.texi (stdint.h): Mention problems with
25828         64-bit-#if, and how to work around them.
25829
25830         Don't insist on 'long long int' support in the preprocessor.  It
25831         breaks too many things.  For example, PRIdMAX still uses a 'long
25832         long int' format with the latest Sun compiler, even though
25833         HAVE_LONG_LONG_INT isn't defined due to that compiler's
25834         preprocessor problem.  This causes the latest coreutils to dump
25835         core on Solaris 10 sparc with the Sun C compiler.
25836         Instead, fix the 2007-10-16 problem in a different way, by evaluating
25837         the troublesome expressions at configure-time, not at #if-time.
25838         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
25839         preprocessor.
25840         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
25841         compile-time C checks, done at 'configure'-time.
25842         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
25843         * modules/inttypes (Makefile): Substitute the new symbols that
25844         gl_INTTYPES_H now generates.
25845         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
25846
25847 2007-11-12  Bruno Haible  <bruno@clisp.org>
25848
25849         Tests for Unicode character classification functions.
25850
25851         * modules/unictype/bidicategory-byname-tests: New file.
25852         * modules/unictype/bidicategory-name-tests: New file.
25853         * modules/unictype/bidicategory-of-tests: New file.
25854         * modules/unictype/bidicategory-test-tests: New file.
25855         * modules/unictype/block-list-tests: New file.
25856         * modules/unictype/block-of-tests: New file.
25857         * modules/unictype/block-test-tests: New file.
25858         * modules/unictype/category-C-tests: New file.
25859         * modules/unictype/category-Cc-tests: New file.
25860         * modules/unictype/category-Cf-tests: New file.
25861         * modules/unictype/category-Cn-tests: New file.
25862         * modules/unictype/category-Co-tests: New file.
25863         * modules/unictype/category-Cs-tests: New file.
25864         * modules/unictype/category-L-tests: New file.
25865         * modules/unictype/category-Ll-tests: New file.
25866         * modules/unictype/category-Lm-tests: New file.
25867         * modules/unictype/category-Lo-tests: New file.
25868         * modules/unictype/category-Lt-tests: New file.
25869         * modules/unictype/category-Lu-tests: New file.
25870         * modules/unictype/category-M-tests: New file.
25871         * modules/unictype/category-Mc-tests: New file.
25872         * modules/unictype/category-Me-tests: New file.
25873         * modules/unictype/category-Mn-tests: New file.
25874         * modules/unictype/category-N-tests: New file.
25875         * modules/unictype/category-Nd-tests: New file.
25876         * modules/unictype/category-Nl-tests: New file.
25877         * modules/unictype/category-No-tests: New file.
25878         * modules/unictype/category-P-tests: New file.
25879         * modules/unictype/category-Pc-tests: New file.
25880         * modules/unictype/category-Pd-tests: New file.
25881         * modules/unictype/category-Pe-tests: New file.
25882         * modules/unictype/category-Pf-tests: New file.
25883         * modules/unictype/category-Pi-tests: New file.
25884         * modules/unictype/category-Po-tests: New file.
25885         * modules/unictype/category-Ps-tests: New file.
25886         * modules/unictype/category-S-tests: New file.
25887         * modules/unictype/category-Sc-tests: New file.
25888         * modules/unictype/category-Sk-tests: New file.
25889         * modules/unictype/category-Sm-tests: New file.
25890         * modules/unictype/category-So-tests: New file.
25891         * modules/unictype/category-Z-tests: New file.
25892         * modules/unictype/category-Zl-tests: New file.
25893         * modules/unictype/category-Zp-tests: New file.
25894         * modules/unictype/category-Zs-tests: New file.
25895         * modules/unictype/category-and-not-tests: New file.
25896         * modules/unictype/category-and-tests: New file.
25897         * modules/unictype/category-byname-tests: New file.
25898         * modules/unictype/category-name-tests: New file.
25899         * modules/unictype/category-none-tests: New file.
25900         * modules/unictype/category-of-tests: New file.
25901         * modules/unictype/category-or-tests: New file.
25902         * modules/unictype/category-test-withtable-tests: New file.
25903         * modules/unictype/combining-class-tests: New file.
25904         * modules/unictype/ctype-alnum-tests: New file.
25905         * modules/unictype/ctype-alpha-tests: New file.
25906         * modules/unictype/ctype-blank-tests: New file.
25907         * modules/unictype/ctype-cntrl-tests: New file.
25908         * modules/unictype/ctype-digit-tests: New file.
25909         * modules/unictype/ctype-graph-tests: New file.
25910         * modules/unictype/ctype-lower-tests: New file.
25911         * modules/unictype/ctype-print-tests: New file.
25912         * modules/unictype/ctype-punct-tests: New file.
25913         * modules/unictype/ctype-space-tests: New file.
25914         * modules/unictype/ctype-upper-tests: New file.
25915         * modules/unictype/ctype-xdigit-tests: New file.
25916         * modules/unictype/decimal-digit-tests: New file.
25917         * modules/unictype/digit-tests: New file.
25918         * modules/unictype/mirror-tests: New file.
25919         * modules/unictype/numeric-tests: New file.
25920         * modules/unictype/property-alphabetic-tests: New file.
25921         * modules/unictype/property-ascii-hex-digit-tests: New file.
25922         * modules/unictype/property-bidi-arabic-digit-tests: New file.
25923         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
25924         * modules/unictype/property-bidi-block-separator-tests: New file.
25925         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
25926         * modules/unictype/property-bidi-common-separator-tests: New file.
25927         * modules/unictype/property-bidi-control-tests: New file.
25928         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
25929         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
25930         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
25931         * modules/unictype/property-bidi-european-digit-tests: New file.
25932         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
25933         * modules/unictype/property-bidi-left-to-right-tests: New file.
25934         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
25935         * modules/unictype/property-bidi-other-neutral-tests: New file.
25936         * modules/unictype/property-bidi-pdf-tests: New file.
25937         * modules/unictype/property-bidi-segment-separator-tests: New file.
25938         * modules/unictype/property-bidi-whitespace-tests: New file.
25939         * modules/unictype/property-byname-tests: New file.
25940         * modules/unictype/property-combining-tests: New file.
25941         * modules/unictype/property-composite-tests: New file.
25942         * modules/unictype/property-currency-symbol-tests: New file.
25943         * modules/unictype/property-dash-tests: New file.
25944         * modules/unictype/property-decimal-digit-tests: New file.
25945         * modules/unictype/property-default-ignorable-code-point-tests: New file.
25946         * modules/unictype/property-deprecated-tests: New file.
25947         * modules/unictype/property-diacritic-tests: New file.
25948         * modules/unictype/property-extender-tests: New file.
25949         * modules/unictype/property-format-control-tests: New file.
25950         * modules/unictype/property-grapheme-base-tests: New file.
25951         * modules/unictype/property-grapheme-extend-tests: New file.
25952         * modules/unictype/property-grapheme-link-tests: New file.
25953         * modules/unictype/property-hex-digit-tests: New file.
25954         * modules/unictype/property-hyphen-tests: New file.
25955         * modules/unictype/property-id-continue-tests: New file.
25956         * modules/unictype/property-id-start-tests: New file.
25957         * modules/unictype/property-ideographic-tests: New file.
25958         * modules/unictype/property-ids-binary-operator-tests: New file.
25959         * modules/unictype/property-ids-trinary-operator-tests: New file.
25960         * modules/unictype/property-ignorable-control-tests: New file.
25961         * modules/unictype/property-iso-control-tests: New file.
25962         * modules/unictype/property-join-control-tests: New file.
25963         * modules/unictype/property-left-of-pair-tests: New file.
25964         * modules/unictype/property-line-separator-tests: New file.
25965         * modules/unictype/property-logical-order-exception-tests: New file.
25966         * modules/unictype/property-lowercase-tests: New file.
25967         * modules/unictype/property-math-tests: New file.
25968         * modules/unictype/property-non-break-tests: New file.
25969         * modules/unictype/property-not-a-character-tests: New file.
25970         * modules/unictype/property-numeric-tests: New file.
25971         * modules/unictype/property-other-alphabetic-tests: New file.
25972         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
25973         * modules/unictype/property-other-grapheme-extend-tests: New file.
25974         * modules/unictype/property-other-id-continue-tests: New file.
25975         * modules/unictype/property-other-id-start-tests: New file.
25976         * modules/unictype/property-other-lowercase-tests: New file.
25977         * modules/unictype/property-other-math-tests: New file.
25978         * modules/unictype/property-other-uppercase-tests: New file.
25979         * modules/unictype/property-paired-punctuation-tests: New file.
25980         * modules/unictype/property-paragraph-separator-tests: New file.
25981         * modules/unictype/property-pattern-syntax-tests: New file.
25982         * modules/unictype/property-pattern-white-space-tests: New file.
25983         * modules/unictype/property-private-use-tests: New file.
25984         * modules/unictype/property-punctuation-tests: New file.
25985         * modules/unictype/property-quotation-mark-tests: New file.
25986         * modules/unictype/property-radical-tests: New file.
25987         * modules/unictype/property-sentence-terminal-tests: New file.
25988         * modules/unictype/property-soft-dotted-tests: New file.
25989         * modules/unictype/property-space-tests: New file.
25990         * modules/unictype/property-terminal-punctuation-tests: New file.
25991         * modules/unictype/property-test-tests: New file.
25992         * modules/unictype/property-titlecase-tests: New file.
25993         * modules/unictype/property-unassigned-code-value-tests: New file.
25994         * modules/unictype/property-unified-ideograph-tests: New file.
25995         * modules/unictype/property-uppercase-tests: New file.
25996         * modules/unictype/property-variation-selector-tests: New file.
25997         * modules/unictype/property-white-space-tests: New file.
25998         * modules/unictype/property-xid-continue-tests: New file.
25999         * modules/unictype/property-xid-start-tests: New file.
26000         * modules/unictype/property-zero-width-tests: New file.
26001         * modules/unictype/scripts-tests: New file.
26002         * modules/unictype/syntax-c-ident-tests: New file.
26003         * modules/unictype/syntax-c-whitespace-tests: New file.
26004         * modules/unictype/syntax-java-ident-tests: New file.
26005         * modules/unictype/syntax-java-whitespace-tests: New file.
26006         * tests/unictype/test-bidi_byname.c: New file.
26007         * tests/unictype/test-bidi_name.c: New file.
26008         * tests/unictype/test-bidi_of.c: New file.
26009         * tests/unictype/test-bidi_test.c: New file.
26010         * tests/unictype/test-block_list.c: New file.
26011         * tests/unictype/test-block_of.c: New file.
26012         * tests/unictype/test-block_test.c: New file.
26013         * tests/unictype/test-categ_and.c: New file.
26014         * tests/unictype/test-categ_and_not.c: New file.
26015         * tests/unictype/test-categ_byname.c: New file.
26016         * tests/unictype/test-categ_name.c: New file.
26017         * tests/unictype/test-categ_none.c: New file.
26018         * tests/unictype/test-categ_of.c: New file.
26019         * tests/unictype/test-categ_or.c: New file.
26020         * tests/unictype/test-categ_test_withtable.c: New file.
26021         * tests/unictype/test-combining.c: New file.
26022         * tests/unictype/test-decdigit.c: New file.
26023         * tests/unictype/test-digit.c: New file.
26024         * tests/unictype/test-mirror.c: New file.
26025         * tests/unictype/test-numeric.c: New file.
26026         * tests/unictype/test-pr_byname.c: New file.
26027         * tests/unictype/test-pr_test.c: New file.
26028         * tests/unictype/test-predicate-part1.h: New file.
26029         * tests/unictype/test-predicate-part2.h: New file.
26030         * tests/unictype/test-scripts.c: New file.
26031         * tests/unictype/test-sy_c_ident.c: New file.
26032         * tests/unictype/test-sy_java_ident.c: New file.
26033
26034         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
26035         for Unicode 5.0.0.
26036         * tests/unictype/test-categ_Cc.c: Likewise.
26037         * tests/unictype/test-categ_Cf.c: Likewise.
26038         * tests/unictype/test-categ_Cn.c: Likewise.
26039         * tests/unictype/test-categ_Co.c: Likewise.
26040         * tests/unictype/test-categ_Cs.c: Likewise.
26041         * tests/unictype/test-categ_L.c: Likewise.
26042         * tests/unictype/test-categ_Ll.c: Likewise.
26043         * tests/unictype/test-categ_Lm.c: Likewise.
26044         * tests/unictype/test-categ_Lo.c: Likewise.
26045         * tests/unictype/test-categ_Lt.c: Likewise.
26046         * tests/unictype/test-categ_Lu.c: Likewise.
26047         * tests/unictype/test-categ_M.c: Likewise.
26048         * tests/unictype/test-categ_Mc.c: Likewise.
26049         * tests/unictype/test-categ_Me.c: Likewise.
26050         * tests/unictype/test-categ_Mn.c: Likewise.
26051         * tests/unictype/test-categ_N.c: Likewise.
26052         * tests/unictype/test-categ_Nd.c: Likewise.
26053         * tests/unictype/test-categ_Nl.c: Likewise.
26054         * tests/unictype/test-categ_No.c: Likewise.
26055         * tests/unictype/test-categ_P.c: Likewise.
26056         * tests/unictype/test-categ_Pc.c: Likewise.
26057         * tests/unictype/test-categ_Pd.c: Likewise.
26058         * tests/unictype/test-categ_Pe.c: Likewise.
26059         * tests/unictype/test-categ_Pf.c: Likewise.
26060         * tests/unictype/test-categ_Pi.c: Likewise.
26061         * tests/unictype/test-categ_Po.c: Likewise.
26062         * tests/unictype/test-categ_Ps.c: Likewise.
26063         * tests/unictype/test-categ_S.c: Likewise.
26064         * tests/unictype/test-categ_Sc.c: Likewise.
26065         * tests/unictype/test-categ_Sk.c: Likewise.
26066         * tests/unictype/test-categ_Sm.c: Likewise.
26067         * tests/unictype/test-categ_So.c: Likewise.
26068         * tests/unictype/test-categ_Z.c: Likewise.
26069         * tests/unictype/test-categ_Zl.c: Likewise.
26070         * tests/unictype/test-categ_Zp.c: Likewise.
26071         * tests/unictype/test-categ_Zs.c: Likewise.
26072         * tests/unictype/test-ctype_alnum.c: Likewise.
26073         * tests/unictype/test-ctype_alpha.c: Likewise.
26074         * tests/unictype/test-ctype_blank.c: Likewise.
26075         * tests/unictype/test-ctype_cntrl.c: Likewise.
26076         * tests/unictype/test-ctype_digit.c: Likewise.
26077         * tests/unictype/test-ctype_graph.c: Likewise.
26078         * tests/unictype/test-ctype_lower.c: Likewise.
26079         * tests/unictype/test-ctype_print.c: Likewise.
26080         * tests/unictype/test-ctype_punct.c: Likewise.
26081         * tests/unictype/test-ctype_space.c: Likewise.
26082         * tests/unictype/test-ctype_upper.c: Likewise.
26083         * tests/unictype/test-ctype_xdigit.c: Likewise.
26084         * tests/unictype/test-decdigit.h: Likewise.
26085         * tests/unictype/test-digit.h: Likewise.
26086         * tests/unictype/test-numeric.h: Likewise.
26087         * tests/unictype/test-pr_alphabetic.c: Likewise.
26088         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
26089         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26090         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26091         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
26092         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26093         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
26094         * tests/unictype/test-pr_bidi_control.c: Likewise.
26095         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
26096         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
26097         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26098         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26099         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26100         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26101         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26102         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26103         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
26104         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
26105         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
26106         * tests/unictype/test-pr_combining.c: Likewise.
26107         * tests/unictype/test-pr_composite.c: Likewise.
26108         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26109         * tests/unictype/test-pr_dash.c: Likewise.
26110         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26111         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
26112         * tests/unictype/test-pr_deprecated.c: Likewise.
26113         * tests/unictype/test-pr_diacritic.c: Likewise.
26114         * tests/unictype/test-pr_extender.c: Likewise.
26115         * tests/unictype/test-pr_format_control.c: Likewise.
26116         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26117         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26118         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26119         * tests/unictype/test-pr_hex_digit.c: Likewise.
26120         * tests/unictype/test-pr_hyphen.c: Likewise.
26121         * tests/unictype/test-pr_id_continue.c: Likewise.
26122         * tests/unictype/test-pr_id_start.c: Likewise.
26123         * tests/unictype/test-pr_ideographic.c: Likewise.
26124         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
26125         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
26126         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26127         * tests/unictype/test-pr_iso_control.c: Likewise.
26128         * tests/unictype/test-pr_join_control.c: Likewise.
26129         * tests/unictype/test-pr_left_of_pair.c: Likewise.
26130         * tests/unictype/test-pr_line_separator.c: Likewise.
26131         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26132         * tests/unictype/test-pr_lowercase.c: Likewise.
26133         * tests/unictype/test-pr_math.c: Likewise.
26134         * tests/unictype/test-pr_non_break.c: Likewise.
26135         * tests/unictype/test-pr_not_a_character.c: Likewise.
26136         * tests/unictype/test-pr_numeric.c: Likewise.
26137         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26138         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
26139         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
26140         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26141         * tests/unictype/test-pr_other_id_start.c: Likewise.
26142         * tests/unictype/test-pr_other_lowercase.c: Likewise.
26143         * tests/unictype/test-pr_other_math.c: Likewise.
26144         * tests/unictype/test-pr_other_uppercase.c: Likewise.
26145         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
26146         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
26147         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
26148         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
26149         * tests/unictype/test-pr_private_use.c: Likewise.
26150         * tests/unictype/test-pr_punctuation.c: Likewise.
26151         * tests/unictype/test-pr_quotation_mark.c: Likewise.
26152         * tests/unictype/test-pr_radical.c: Likewise.
26153         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26154         * tests/unictype/test-pr_soft_dotted.c: Likewise.
26155         * tests/unictype/test-pr_space.c: Likewise.
26156         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26157         * tests/unictype/test-pr_titlecase.c: Likewise.
26158         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26159         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26160         * tests/unictype/test-pr_uppercase.c: Likewise.
26161         * tests/unictype/test-pr_variation_selector.c: Likewise.
26162         * tests/unictype/test-pr_white_space.c: Likewise.
26163         * tests/unictype/test-pr_xid_continue.c: Likewise.
26164         * tests/unictype/test-pr_xid_start.c: Likewise.
26165         * tests/unictype/test-pr_zero_width.c: Likewise.
26166         * tests/unictype/test-sy_c_whitespace.c: Likewise.
26167         * tests/unictype/test-sy_java_whitespace.c: Likewise.
26168
26169 2007-11-12  Bruno Haible  <bruno@clisp.org>
26170
26171         Unicode character classification functions.
26172         * lib/unictype.h: New file.
26173         * modules/unictype/base: New file.
26174         * modules/unictype/category-L: New file.
26175         * modules/unictype/category-Lu: New file.
26176         * modules/unictype/category-Ll: New file.
26177         * modules/unictype/category-Lt: New file.
26178         * modules/unictype/category-Lm: New file.
26179         * modules/unictype/category-Lo: New file.
26180         * modules/unictype/category-M: New file.
26181         * modules/unictype/category-Mn: New file.
26182         * modules/unictype/category-Mc: New file.
26183         * modules/unictype/category-Me: New file.
26184         * modules/unictype/category-N: New file.
26185         * modules/unictype/category-Nd: New file.
26186         * modules/unictype/category-Nl: New file.
26187         * modules/unictype/category-No: New file.
26188         * modules/unictype/category-P: New file.
26189         * modules/unictype/category-Pc: New file.
26190         * modules/unictype/category-Pd: New file.
26191         * modules/unictype/category-Ps: New file.
26192         * modules/unictype/category-Pe: New file.
26193         * modules/unictype/category-Pi: New file.
26194         * modules/unictype/category-Pf: New file.
26195         * modules/unictype/category-Po: New file.
26196         * modules/unictype/category-S: New file.
26197         * modules/unictype/category-Sm: New file.
26198         * modules/unictype/category-Sc: New file.
26199         * modules/unictype/category-Sk: New file.
26200         * modules/unictype/category-So: New file.
26201         * modules/unictype/category-Z: New file.
26202         * modules/unictype/category-Zs: New file.
26203         * modules/unictype/category-Zl: New file.
26204         * modules/unictype/category-Zp: New file.
26205         * modules/unictype/category-C: New file.
26206         * modules/unictype/category-Cc: New file.
26207         * modules/unictype/category-Cf: New file.
26208         * modules/unictype/category-Cs: New file.
26209         * modules/unictype/category-Co: New file.
26210         * modules/unictype/category-Cn: New file.
26211         * modules/unictype/category-or: New file.
26212         * modules/unictype/category-of: New file.
26213         * modules/unictype/category-test: New file.
26214         * modules/unictype/category-test-withtable: New file.
26215         * modules/unictype/category-byname: New file.
26216         * modules/unictype/category-none: New file.
26217         * modules/unictype/category-and: New file.
26218         * modules/unictype/category-and-not: New file.
26219         * modules/unictype/category-name: New file.
26220         * modules/unictype/combining-class: New file.
26221         * modules/unictype/category-all: New file.
26222         * modules/unictype/bidicategory-all: New file.
26223         * modules/unictype/bidicategory-byname: New file.
26224         * modules/unictype/bidicategory-name: New file.
26225         * modules/unictype/bidicategory-of: New file.
26226         * modules/unictype/bidicategory-test: New file.
26227         * modules/unictype/decimal-digit: New file.
26228         * modules/unictype/digit: New file.
26229         * modules/unictype/numeric: New file.
26230         * modules/unictype/mirror: New file.
26231         * modules/unictype/property-white-space: New file.
26232         * modules/unictype/property-alphabetic: New file.
26233         * modules/unictype/property-other-alphabetic: New file.
26234         * modules/unictype/property-not-a-character: New file.
26235         * modules/unictype/property-default-ignorable-code-point: New file.
26236         * modules/unictype/property-other-default-ignorable-code-point: New
26237         file.
26238         * modules/unictype/property-deprecated: New file.
26239         * modules/unictype/property-logical-order-exception: New file.
26240         * modules/unictype/property-variation-selector: New file.
26241         * modules/unictype/property-private-use: New file.
26242         * modules/unictype/property-unassigned-code-value: New file.
26243         * modules/unictype/property-uppercase: New file.
26244         * modules/unictype/property-other-uppercase: New file.
26245         * modules/unictype/property-lowercase: New file.
26246         * modules/unictype/property-other-lowercase: New file.
26247         * modules/unictype/property-titlecase: New file.
26248         * modules/unictype/property-soft-dotted: New file.
26249         * modules/unictype/property-id-start: New file.
26250         * modules/unictype/property-other-id-start: New file.
26251         * modules/unictype/property-id-continue: New file.
26252         * modules/unictype/property-other-id-continue: New file.
26253         * modules/unictype/property-xid-start: New file.
26254         * modules/unictype/property-xid-continue: New file.
26255         * modules/unictype/property-pattern-white-space: New file.
26256         * modules/unictype/property-pattern-syntax: New file.
26257         * modules/unictype/property-join-control: New file.
26258         * modules/unictype/property-grapheme-base: New file.
26259         * modules/unictype/property-grapheme-extend: New file.
26260         * modules/unictype/property-other-grapheme-extend: New file.
26261         * modules/unictype/property-grapheme-link: New file.
26262         * modules/unictype/property-bidi-control: New file.
26263         * modules/unictype/property-bidi-left-to-right: New file.
26264         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
26265         * modules/unictype/property-bidi-arabic-right-to-left: New file.
26266         * modules/unictype/property-bidi-european-digit: New file.
26267         * modules/unictype/property-bidi-eur-num-separator: New file.
26268         * modules/unictype/property-bidi-eur-num-terminator: New file.
26269         * modules/unictype/property-bidi-arabic-digit: New file.
26270         * modules/unictype/property-bidi-common-separator: New file.
26271         * modules/unictype/property-bidi-block-separator: New file.
26272         * modules/unictype/property-bidi-segment-separator: New file.
26273         * modules/unictype/property-bidi-whitespace: New file.
26274         * modules/unictype/property-bidi-non-spacing-mark: New file.
26275         * modules/unictype/property-bidi-boundary-neutral: New file.
26276         * modules/unictype/property-bidi-pdf: New file.
26277         * modules/unictype/property-bidi-embedding-or-override: New file.
26278         * modules/unictype/property-bidi-other-neutral: New file.
26279         * modules/unictype/property-hex-digit: New file.
26280         * modules/unictype/property-ascii-hex-digit: New file.
26281         * modules/unictype/property-ideographic: New file.
26282         * modules/unictype/property-unified-ideograph: New file.
26283         * modules/unictype/property-radical: New file.
26284         * modules/unictype/property-ids-binary-operator: New file.
26285         * modules/unictype/property-ids-trinary-operator: New file.
26286         * modules/unictype/property-zero-width: New file.
26287         * modules/unictype/property-space: New file.
26288         * modules/unictype/property-non-break: New file.
26289         * modules/unictype/property-iso-control: New file.
26290         * modules/unictype/property-format-control: New file.
26291         * modules/unictype/property-dash: New file.
26292         * modules/unictype/property-hyphen: New file.
26293         * modules/unictype/property-punctuation: New file.
26294         * modules/unictype/property-line-separator: New file.
26295         * modules/unictype/property-paragraph-separator: New file.
26296         * modules/unictype/property-quotation-mark: New file.
26297         * modules/unictype/property-sentence-terminal: New file.
26298         * modules/unictype/property-terminal-punctuation: New file.
26299         * modules/unictype/property-currency-symbol: New file.
26300         * modules/unictype/property-math: New file.
26301         * modules/unictype/property-other-math: New file.
26302         * modules/unictype/property-paired-punctuation: New file.
26303         * modules/unictype/property-left-of-pair: New file.
26304         * modules/unictype/property-combining: New file.
26305         * modules/unictype/property-composite: New file.
26306         * modules/unictype/property-decimal-digit: New file.
26307         * modules/unictype/property-numeric: New file.
26308         * modules/unictype/property-diacritic: New file.
26309         * modules/unictype/property-extender: New file.
26310         * modules/unictype/property-ignorable-control: New file.
26311         * modules/unictype/property-test: New file.
26312         * modules/unictype/property-byname: New file.
26313         * modules/unictype/property-all: New file.
26314         * modules/unictype/scripts: New file.
26315         * modules/unictype/scripts-all: New file.
26316         * modules/unictype/block-of: New file.
26317         * modules/unictype/block-test: New file.
26318         * modules/unictype/block-list: New file.
26319         * modules/unictype/block-all: New file.
26320         * modules/unictype/syntax-c-whitespace: New file.
26321         * modules/unictype/syntax-java-whitespace: New file.
26322         * modules/unictype/syntax-c-ident: New file.
26323         * modules/unictype/syntax-java-ident: New file.
26324         * modules/unictype/ctype-alnum: New file.
26325         * modules/unictype/ctype-alpha: New file.
26326         * modules/unictype/ctype-cntrl: New file.
26327         * modules/unictype/ctype-digit: New file.
26328         * modules/unictype/ctype-graph: New file.
26329         * modules/unictype/ctype-lower: New file.
26330         * modules/unictype/ctype-print: New file.
26331         * modules/unictype/ctype-punct: New file.
26332         * modules/unictype/ctype-space: New file.
26333         * modules/unictype/ctype-upper: New file.
26334         * modules/unictype/ctype-xdigit: New file.
26335         * modules/unictype/ctype-blank: New file.
26336         * lib/unictype/bidi_byname.c: New file.
26337         * lib/unictype/bidi_name.c: New file.
26338         * lib/unictype/bidi_of.c: New file.
26339         * lib/unictype/bidi_test.c: New file.
26340         * lib/unictype/bitmap.h: New file.
26341         * lib/unictype/block_test.c: New file.
26342         * lib/unictype/blocks.c: New file.
26343         * lib/unictype/categ_C.c: New file.
26344         * lib/unictype/categ_Cc.c: New file.
26345         * lib/unictype/categ_Cf.c: New file.
26346         * lib/unictype/categ_Cn.c: New file.
26347         * lib/unictype/categ_Co.c: New file.
26348         * lib/unictype/categ_Cs.c: New file.
26349         * lib/unictype/categ_L.c: New file.
26350         * lib/unictype/categ_Ll.c: New file.
26351         * lib/unictype/categ_Lm.c: New file.
26352         * lib/unictype/categ_Lo.c: New file.
26353         * lib/unictype/categ_Lt.c: New file.
26354         * lib/unictype/categ_Lu.c: New file.
26355         * lib/unictype/categ_M.c: New file.
26356         * lib/unictype/categ_Mc.c: New file.
26357         * lib/unictype/categ_Me.c: New file.
26358         * lib/unictype/categ_Mn.c: New file.
26359         * lib/unictype/categ_N.c: New file.
26360         * lib/unictype/categ_Nd.c: New file.
26361         * lib/unictype/categ_Nl.c: New file.
26362         * lib/unictype/categ_No.c: New file.
26363         * lib/unictype/categ_P.c: New file.
26364         * lib/unictype/categ_Pc.c: New file.
26365         * lib/unictype/categ_Pd.c: New file.
26366         * lib/unictype/categ_Pe.c: New file.
26367         * lib/unictype/categ_Pf.c: New file.
26368         * lib/unictype/categ_Pi.c: New file.
26369         * lib/unictype/categ_Po.c: New file.
26370         * lib/unictype/categ_Ps.c: New file.
26371         * lib/unictype/categ_S.c: New file.
26372         * lib/unictype/categ_Sc.c: New file.
26373         * lib/unictype/categ_Sk.c: New file.
26374         * lib/unictype/categ_Sm.c: New file.
26375         * lib/unictype/categ_So.c: New file.
26376         * lib/unictype/categ_Z.c: New file.
26377         * lib/unictype/categ_Zl.c: New file.
26378         * lib/unictype/categ_Zp.c: New file.
26379         * lib/unictype/categ_Zs.c: New file.
26380         * lib/unictype/categ_and.c: New file.
26381         * lib/unictype/categ_and_not.c: New file.
26382         * lib/unictype/categ_byname.c: New file.
26383         * lib/unictype/categ_name.c: New file.
26384         * lib/unictype/categ_none.c: New file.
26385         * lib/unictype/categ_of.c: New file.
26386         * lib/unictype/categ_or.c: New file.
26387         * lib/unictype/categ_test.c: New file.
26388         * lib/unictype/combining.c: New file.
26389         * lib/unictype/ctype_alnum.c: New file.
26390         * lib/unictype/ctype_alpha.c: New file.
26391         * lib/unictype/ctype_blank.c: New file.
26392         * lib/unictype/ctype_cntrl.c: New file.
26393         * lib/unictype/ctype_digit.c: New file.
26394         * lib/unictype/ctype_graph.c: New file.
26395         * lib/unictype/ctype_lower.c: New file.
26396         * lib/unictype/ctype_print.c: New file.
26397         * lib/unictype/ctype_punct.c: New file.
26398         * lib/unictype/ctype_space.c: New file.
26399         * lib/unictype/ctype_upper.c: New file.
26400         * lib/unictype/ctype_xdigit.c: New file.
26401         * lib/unictype/decdigit.c: New file.
26402         * lib/unictype/digit.c: New file.
26403         * lib/unictype/identsyntaxmap.h: New file.
26404         * lib/unictype/mirror.c: New file.
26405         * lib/unictype/numeric.c: New file.
26406         * lib/unictype/pr_alphabetic.c: New file.
26407         * lib/unictype/pr_ascii_hex_digit.c: New file.
26408         * lib/unictype/pr_bidi_arabic_digit.c: New file.
26409         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
26410         * lib/unictype/pr_bidi_block_separator.c: New file.
26411         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
26412         * lib/unictype/pr_bidi_common_separator.c: New file.
26413         * lib/unictype/pr_bidi_control.c: New file.
26414         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
26415         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
26416         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
26417         * lib/unictype/pr_bidi_european_digit.c: New file.
26418         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
26419         * lib/unictype/pr_bidi_left_to_right.c: New file.
26420         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
26421         * lib/unictype/pr_bidi_other_neutral.c: New file.
26422         * lib/unictype/pr_bidi_pdf.c: New file.
26423         * lib/unictype/pr_bidi_segment_separator.c: New file.
26424         * lib/unictype/pr_bidi_whitespace.c: New file.
26425         * lib/unictype/pr_byname.c: New file.
26426         * lib/unictype/pr_byname.gperf: New file.
26427         * lib/unictype/pr_combining.c: New file.
26428         * lib/unictype/pr_composite.c: New file.
26429         * lib/unictype/pr_currency_symbol.c: New file.
26430         * lib/unictype/pr_dash.c: New file.
26431         * lib/unictype/pr_decimal_digit.c: New file.
26432         * lib/unictype/pr_default_ignorable_code_point.c: New file.
26433         * lib/unictype/pr_deprecated.c: New file.
26434         * lib/unictype/pr_diacritic.c: New file.
26435         * lib/unictype/pr_extender.c: New file.
26436         * lib/unictype/pr_format_control.c: New file.
26437         * lib/unictype/pr_grapheme_base.c: New file.
26438         * lib/unictype/pr_grapheme_extend.c: New file.
26439         * lib/unictype/pr_grapheme_link.c: New file.
26440         * lib/unictype/pr_hex_digit.c: New file.
26441         * lib/unictype/pr_hyphen.c: New file.
26442         * lib/unictype/pr_id_continue.c: New file.
26443         * lib/unictype/pr_id_start.c: New file.
26444         * lib/unictype/pr_ideographic.c: New file.
26445         * lib/unictype/pr_ids_binary_operator.c: New file.
26446         * lib/unictype/pr_ids_trinary_operator.c: New file.
26447         * lib/unictype/pr_ignorable_control.c: New file.
26448         * lib/unictype/pr_iso_control.c: New file.
26449         * lib/unictype/pr_join_control.c: New file.
26450         * lib/unictype/pr_left_of_pair.c: New file.
26451         * lib/unictype/pr_line_separator.c: New file.
26452         * lib/unictype/pr_logical_order_exception.c: New file.
26453         * lib/unictype/pr_lowercase.c: New file.
26454         * lib/unictype/pr_math.c: New file.
26455         * lib/unictype/pr_non_break.c: New file.
26456         * lib/unictype/pr_not_a_character.c: New file.
26457         * lib/unictype/pr_numeric.c: New file.
26458         * lib/unictype/pr_other_alphabetic.c: New file.
26459         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
26460         * lib/unictype/pr_other_grapheme_extend.c: New file.
26461         * lib/unictype/pr_other_id_continue.c: New file.
26462         * lib/unictype/pr_other_id_start.c: New file.
26463         * lib/unictype/pr_other_lowercase.c: New file.
26464         * lib/unictype/pr_other_math.c: New file.
26465         * lib/unictype/pr_other_uppercase.c: New file.
26466         * lib/unictype/pr_paired_punctuation.c: New file.
26467         * lib/unictype/pr_paragraph_separator.c: New file.
26468         * lib/unictype/pr_pattern_syntax.c: New file.
26469         * lib/unictype/pr_pattern_white_space.c: New file.
26470         * lib/unictype/pr_private_use.c: New file.
26471         * lib/unictype/pr_punctuation.c: New file.
26472         * lib/unictype/pr_quotation_mark.c: New file.
26473         * lib/unictype/pr_radical.c: New file.
26474         * lib/unictype/pr_sentence_terminal.c: New file.
26475         * lib/unictype/pr_soft_dotted.c: New file.
26476         * lib/unictype/pr_space.c: New file.
26477         * lib/unictype/pr_terminal_punctuation.c: New file.
26478         * lib/unictype/pr_test.c: New file.
26479         * lib/unictype/pr_titlecase.c: New file.
26480         * lib/unictype/pr_unassigned_code_value.c: New file.
26481         * lib/unictype/pr_unified_ideograph.c: New file.
26482         * lib/unictype/pr_uppercase.c: New file.
26483         * lib/unictype/pr_variation_selector.c: New file.
26484         * lib/unictype/pr_white_space.c: New file.
26485         * lib/unictype/pr_xid_continue.c: New file.
26486         * lib/unictype/pr_xid_start.c: New file.
26487         * lib/unictype/pr_zero_width.c: New file.
26488         * lib/unictype/scripts.c: New file.
26489         * lib/unictype/sy_c_ident.c: New file.
26490         * lib/unictype/sy_c_whitespace.c: New file.
26491         * lib/unictype/sy_java_ident.c: New file.
26492         * lib/unictype/sy_java_whitespace.c: New file.
26493
26494         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
26495         Unicode 5.0.0.
26496         * lib/unictype/blocks.h: Likewise.
26497         * lib/unictype/categ_C.h: Likewise.
26498         * lib/unictype/categ_Cc.h: Likewise.
26499         * lib/unictype/categ_Cf.h: Likewise.
26500         * lib/unictype/categ_Cn.h: Likewise.
26501         * lib/unictype/categ_Co.h: Likewise.
26502         * lib/unictype/categ_Cs.h: Likewise.
26503         * lib/unictype/categ_L.h: Likewise.
26504         * lib/unictype/categ_Ll.h: Likewise.
26505         * lib/unictype/categ_Lm.h: Likewise.
26506         * lib/unictype/categ_Lo.h: Likewise.
26507         * lib/unictype/categ_Lt.h: Likewise.
26508         * lib/unictype/categ_Lu.h: Likewise.
26509         * lib/unictype/categ_M.h: Likewise.
26510         * lib/unictype/categ_Mc.h: Likewise.
26511         * lib/unictype/categ_Me.h: Likewise.
26512         * lib/unictype/categ_Mn.h: Likewise.
26513         * lib/unictype/categ_N.h: Likewise.
26514         * lib/unictype/categ_Nd.h: Likewise.
26515         * lib/unictype/categ_Nl.h: Likewise.
26516         * lib/unictype/categ_No.h: Likewise.
26517         * lib/unictype/categ_P.h: Likewise.
26518         * lib/unictype/categ_Pc.h: Likewise.
26519         * lib/unictype/categ_Pd.h: Likewise.
26520         * lib/unictype/categ_Pe.h: Likewise.
26521         * lib/unictype/categ_Pf.h: Likewise.
26522         * lib/unictype/categ_Pi.h: Likewise.
26523         * lib/unictype/categ_Po.h: Likewise.
26524         * lib/unictype/categ_Ps.h: Likewise.
26525         * lib/unictype/categ_S.h: Likewise.
26526         * lib/unictype/categ_Sc.h: Likewise.
26527         * lib/unictype/categ_Sk.h: Likewise.
26528         * lib/unictype/categ_Sm.h: Likewise.
26529         * lib/unictype/categ_So.h: Likewise.
26530         * lib/unictype/categ_Z.h: Likewise.
26531         * lib/unictype/categ_Zl.h: Likewise.
26532         * lib/unictype/categ_Zp.h: Likewise.
26533         * lib/unictype/categ_Zs.h: Likewise.
26534         * lib/unictype/categ_of.h: Likewise.
26535         * lib/unictype/combining.h: Likewise.
26536         * lib/unictype/ctype_alnum.h: Likewise.
26537         * lib/unictype/ctype_alpha.h: Likewise.
26538         * lib/unictype/ctype_blank.h: Likewise.
26539         * lib/unictype/ctype_cntrl.h: Likewise.
26540         * lib/unictype/ctype_digit.h: Likewise.
26541         * lib/unictype/ctype_graph.h: Likewise.
26542         * lib/unictype/ctype_lower.h: Likewise.
26543         * lib/unictype/ctype_print.h: Likewise.
26544         * lib/unictype/ctype_punct.h: Likewise.
26545         * lib/unictype/ctype_space.h: Likewise.
26546         * lib/unictype/ctype_upper.h: Likewise.
26547         * lib/unictype/ctype_xdigit.h: Likewise.
26548         * lib/unictype/decdigit.h: Likewise.
26549         * lib/unictype/digit.h: Likewise.
26550         * lib/unictype/mirror.h: Likewise.
26551         * lib/unictype/numeric.h: Likewise.
26552         * lib/unictype/pr_alphabetic.h: Likewise.
26553         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26554         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26555         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26556         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26557         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26558         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26559         * lib/unictype/pr_bidi_control.h: Likewise.
26560         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26561         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26562         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26563         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26564         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26565         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26566         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26567         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26568         * lib/unictype/pr_bidi_pdf.h: Likewise.
26569         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26570         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26571         * lib/unictype/pr_combining.h: Likewise.
26572         * lib/unictype/pr_composite.h: Likewise.
26573         * lib/unictype/pr_currency_symbol.h: Likewise.
26574         * lib/unictype/pr_dash.h: Likewise.
26575         * lib/unictype/pr_decimal_digit.h: Likewise.
26576         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26577         * lib/unictype/pr_deprecated.h: Likewise.
26578         * lib/unictype/pr_diacritic.h: Likewise.
26579         * lib/unictype/pr_extender.h: Likewise.
26580         * lib/unictype/pr_format_control.h: Likewise.
26581         * lib/unictype/pr_grapheme_base.h: Likewise.
26582         * lib/unictype/pr_grapheme_extend.h: Likewise.
26583         * lib/unictype/pr_grapheme_link.h: Likewise.
26584         * lib/unictype/pr_hex_digit.h: Likewise.
26585         * lib/unictype/pr_hyphen.h: Likewise.
26586         * lib/unictype/pr_id_continue.h: Likewise.
26587         * lib/unictype/pr_id_start.h: Likewise.
26588         * lib/unictype/pr_ideographic.h: Likewise.
26589         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26590         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26591         * lib/unictype/pr_ignorable_control.h: Likewise.
26592         * lib/unictype/pr_iso_control.h: Likewise.
26593         * lib/unictype/pr_join_control.h: Likewise.
26594         * lib/unictype/pr_left_of_pair.h: Likewise.
26595         * lib/unictype/pr_line_separator.h: Likewise.
26596         * lib/unictype/pr_logical_order_exception.h: Likewise.
26597         * lib/unictype/pr_lowercase.h: Likewise.
26598         * lib/unictype/pr_math.h: Likewise.
26599         * lib/unictype/pr_non_break.h: Likewise.
26600         * lib/unictype/pr_not_a_character.h: Likewise.
26601         * lib/unictype/pr_numeric.h: Likewise.
26602         * lib/unictype/pr_other_alphabetic.h: Likewise.
26603         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26604         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26605         * lib/unictype/pr_other_id_continue.h: Likewise.
26606         * lib/unictype/pr_other_id_start.h: Likewise.
26607         * lib/unictype/pr_other_lowercase.h: Likewise.
26608         * lib/unictype/pr_other_math.h: Likewise.
26609         * lib/unictype/pr_other_uppercase.h: Likewise.
26610         * lib/unictype/pr_paired_punctuation.h: Likewise.
26611         * lib/unictype/pr_paragraph_separator.h: Likewise.
26612         * lib/unictype/pr_pattern_syntax.h: Likewise.
26613         * lib/unictype/pr_pattern_white_space.h: Likewise.
26614         * lib/unictype/pr_private_use.h: Likewise.
26615         * lib/unictype/pr_punctuation.h: Likewise.
26616         * lib/unictype/pr_quotation_mark.h: Likewise.
26617         * lib/unictype/pr_radical.h: Likewise.
26618         * lib/unictype/pr_sentence_terminal.h: Likewise.
26619         * lib/unictype/pr_soft_dotted.h: Likewise.
26620         * lib/unictype/pr_space.h: Likewise.
26621         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26622         * lib/unictype/pr_titlecase.h: Likewise.
26623         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26624         * lib/unictype/pr_unified_ideograph.h: Likewise.
26625         * lib/unictype/pr_uppercase.h: Likewise.
26626         * lib/unictype/pr_variation_selector.h: Likewise.
26627         * lib/unictype/pr_white_space.h: Likewise.
26628         * lib/unictype/pr_xid_continue.h: Likewise.
26629         * lib/unictype/pr_xid_start.h: Likewise.
26630         * lib/unictype/pr_zero_width.h: Likewise.
26631         * lib/unictype/scripts.h: Likewise.
26632         * lib/unictype/scripts_byname.gperf: Likewise.
26633         * lib/unictype/sy_c_ident.h: Likewise.
26634         * lib/unictype/sy_c_whitespace.h: Likewise.
26635         * lib/unictype/sy_java_ident.h: Likewise.
26636         * lib/unictype/sy_java_whitespace.h: Likewise.
26637
26638         * lib/unictype/Makefile: New file.
26639         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
26640         glibc.
26641         * lib/unictype/3level.h: New file, copied from glibc.
26642         * lib/unictype/3levelbit.h: New file.
26643
26644 2007-11-11  Bruno Haible  <bruno@clisp.org>
26645
26646         * modules/gperf: New file.
26647         * modules/iconv_open (Depends-on): Add it.
26648         (Makefile.am): Remove the GPERF definition.
26649
26650 2007-11-11  Bruno Haible  <bruno@clisp.org>
26651
26652         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
26653         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
26654
26655 2007-11-11  Bruno Haible  <bruno@clisp.org>
26656
26657         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
26658         (usage): Remove function.
26659
26660 2007-11-11  Bruno Haible  <bruno@clisp.org>
26661
26662         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
26663         gl_FUNC_CEILF_LIBS.
26664         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
26665         gl_FUNC_CEIL_LIBS.
26666         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
26667         gl_FUNC_CEILL_LIBS.
26668         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
26669         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
26670         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
26671
26672 2007-11-11  Bruno Haible  <bruno@clisp.org>
26673
26674         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
26675         roundf were declared but do not exist on functions.
26676         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
26677         roundl were declared but do not exist on functions.
26678         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
26679         HAVE_FLOORL_AND_CEILL, respectively.
26680         Needed for Sun C on Solaris 10.
26681
26682 2007-11-11  Bruno Haible  <bruno@clisp.org>
26683
26684         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
26685         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
26686         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
26687         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
26688         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
26689         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
26690         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
26691         HAVE_DECL_ROUNDF.
26692         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
26693         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
26694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
26695         of HAVE_DECL_ROUND*.
26696         * modules/math (Makefile.am): Update.
26697
26698 2007-11-10  Bruno Haible  <bruno@clisp.org>
26699
26700         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
26701         ptrdiff_t as m4/intl.m4.
26702
26703 2007-11-10  Jim Meyering  <meyering@redhat.com>
26704
26705         Avoid link failure for the argmatch test.
26706         * tests/test-argmatch.c (usage): Define function to avoid a link
26707         failure: argmatch_die requires a usage function.
26708
26709 2007-11-09  Bruno Haible  <bruno@clisp.org>
26710
26711         * doc/functions/snprintf.texi: Mention BeOS deficiency.
26712         * doc/functions/vsnprintf.texi: Likewise.
26713         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
26714         with a size argument < 2.
26715
26716 2007-11-09  Bruno Haible  <bruno@clisp.org>
26717
26718         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
26719         buffer. Fixes an inefficiency introduced on 2007-11-03.
26720
26721 2007-11-09  Bruno Haible  <bruno@clisp.org>
26722
26723         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
26724         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
26725
26726 2007-11-08  Jim Meyering  <meyering@redhat.com>
26727
26728         Change cache variable name prefix "jm_" to "gl_" everywhere.
26729         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
26730         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
26731         * m4/uptime.m4: s/gl_/jm_/
26732
26733 2007-11-07  Bruno Haible  <bruno@clisp.org>
26734
26735         Update to GNU gettext 0.17.
26736         * m4/intl.m4: Update to GNU gettext 0.17.
26737         * m4/po.m4: Likewise.
26738         * modules/gettext (Files): Remove m4/ulonglong.m4.
26739         (configure.ac): Require gettext infrastructure from version 0.17.
26740
26741 2007-11-06  Bruno Haible  <bruno@clisp.org>
26742
26743         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
26744         symbolic values are not defined in a public header.
26745         * lib/freadable.c (freadable) [QNX]: Likewise.
26746         * lib/freadahead.c (freadahead) [QNX]: Likewise.
26747         * lib/freading.c (freading) [QNX]: Likewise.
26748         * lib/fseterr.c (fseterr) [QNX]: Likewise.
26749         * lib/fwritable.c (fwritable) [QNX]: Likewise.
26750         * lib/fwriting.c (fwriting) [QNX]: Likewise.
26751         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
26752         Reported by Alain Magloire.
26753
26754         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
26755
26756 2007-11-05  Bruno Haible  <bruno@clisp.org>
26757
26758         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
26759         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
26760         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
26761         Reported by Eric Blake.
26762
26763 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26764             Bruno Haible  <bruno@clisp.org>
26765
26766         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
26767         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
26768         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
26769         (malloc): Undefine also before including <stdlib.h>.
26770         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
26771         Needed on OSF/1 4.0.
26772
26773 2007-11-05  Jim Meyering  <meyering@redhat.com>
26774
26775         git-version-gen: sync from coreutils.
26776         * build-aux/git-version-gen: Add comments.
26777         Change the first '-' to '.' in the snapshot version string,
26778         e.g., 6.9-377-08144 -> 6.9.377-08144
26779         Remove first parameter.
26780         Don't declare a version "-dirty" merely because a time
26781         stamp has changed.
26782
26783 2007-11-04  Bruno Haible  <bruno@clisp.org>
26784
26785         * lib/lock.h: Protect all macro definitions containing an 'if'
26786         statement through a "do { ... } while (0)".
26787         * lib/tls.h: Likewise.
26788
26789 2007-11-04  Bruno Haible  <bruno@clisp.org>
26790
26791         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
26792
26793 2007-11-04  Bruno Haible  <bruno@clisp.org>
26794
26795         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
26796         * modules/fprintf-posix (Depends-on): Add nocrash.
26797         * modules/snprintf-posix (Depends-on): Likewise.
26798         * modules/sprintf-posix (Depends-on): Likewise.
26799         * modules/vasnprintf-posix (Depends-on): Likewise.
26800         * modules/vasprintf-posix (Depends-on): Likewise.
26801         * modules/vfprintf-posix (Depends-on): Likewise.
26802         * modules/vsnprintf-posix (Depends-on): Likewise.
26803         * modules/vsprintf-posix (Depends-on): Likewise.
26804         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26805         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26806         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26807         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26808         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26809         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26810         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26811
26812 2007-11-04  Bruno Haible  <bruno@clisp.org>
26813
26814         * modules/nocrash: New file.
26815         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
26816         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
26817
26818 2007-11-04  Bruno Haible  <bruno@clisp.org>
26819
26820         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
26821         precision handling.
26822         * tests/test-vasprintf-posix.c (test_function): Likewise.
26823         * tests/test-snprintf-posix.h (test_function): Likewise.
26824         * tests/test-sprintf-posix.h (test_function): Likewise.
26825
26826         Fix *printf behaviour for large precisions on mingw and BeOS.
26827         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
26828         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
26829         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
26830         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26831         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26832         gl_PRINTF_PRECISION and test its result. Invoke
26833         gl_PREREQ_VASNPRINTF_PRECISION.
26834         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26835         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26836         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26837         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26838         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26839         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26840         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26841         * doc/functions/fprintf.texi: Update.
26842         * doc/functions/printf.texi: Update.
26843         * doc/functions/snprintf.texi: Update.
26844         * doc/functions/sprintf.texi: Update.
26845         * doc/functions/vfprintf.texi: Update.
26846         * doc/functions/vprintf.texi: Update.
26847         * doc/functions/vsnprintf.texi: Update.
26848         * doc/functions/vsprintf.texi: Update.
26849
26850 2007-11-04  Bruno Haible  <bruno@clisp.org>
26851
26852         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
26853
26854 2007-11-04  Bruno Haible  <bruno@clisp.org>
26855
26856         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
26857         Reported by Sylvain Beucler <beuc@gnu.org>.
26858
26859 2007-11-03  Bruno Haible  <bruno@clisp.org>
26860
26861         * tests/test-fprintf-posix2.sh: New file.
26862         * tests/test-fprintf-posix2.c: New file.
26863         * modules/fprintf-posix-tests (Files): Add them.
26864         (TESTS): Add test-fprintf-posix2.sh.
26865         (configure.ac): Check for getrlimit and setrlimit.
26866         (check_PROGRAMS): Add test-fprintf-posix2.
26867
26868         * tests/test-printf-posix2.sh: New file.
26869         * tests/test-printf-posix2.c: New file.
26870         * modules/printf-posix-tests (Files): Add them.
26871         (TESTS): Add test-printf-posix2.sh.
26872         (configure.ac): Check for getrlimit and setrlimit.
26873         (check_PROGRAMS): Add test-printf-posix2.
26874
26875         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
26876         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
26877         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
26878         (decode_double): New function, copied from decode_long_double.
26879         (scale10_round_decimal_decoded): New function, extracted from
26880         scale10_round_decimal_long_double.
26881         (scale10_round_decimal_long_double): Use it.
26882         (scale10_round_decimal_double): New function.
26883         (floorlog10): New function.
26884         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
26885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
26886         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26887         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26888         gl_PRINTF_ENOMEM and test its result. Invoke
26889         gl_PREREQ_VASNPRINTF_ENOMEM.
26890         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26891         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26892         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26893         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26894         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26896         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26897         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
26898         * modules/snprintf-posix (Depends-on): Likewise.
26899         * modules/sprintf-posix (Depends-on): Likewise.
26900         * modules/vasnprintf-posix (Depends-on): Likewise.
26901         * modules/vasprintf-posix (Depends-on): Likewise.
26902         * modules/vfprintf-posix (Depends-on): Likewise.
26903         * modules/vsnprintf-posix (Depends-on): Likewise.
26904         * modules/vsprintf-posix (Depends-on): Likewise.
26905         * doc/functions/fprintf.texi: Update.
26906         * doc/functions/printf.texi: Update.
26907         * doc/functions/snprintf.texi: Update.
26908         * doc/functions/sprintf.texi: Update.
26909         * doc/functions/vfprintf.texi: Update.
26910         * doc/functions/vprintf.texi: Update.
26911         * doc/functions/vsnprintf.texi: Update.
26912         * doc/functions/vsprintf.texi: Update.
26913
26914 2007-11-03  Bruno Haible  <bruno@clisp.org>
26915
26916         * modules/frexp-nolibm-tests: New file.
26917
26918         * modules/frexp-nolibm: New file.
26919         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
26920
26921 2007-11-03  Bruno Haible  <bruno@clisp.org>
26922
26923         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
26924         value is C99 compliant.
26925         Needed for OSF/1 5.1.
26926
26927 2007-11-03  Bruno Haible  <bruno@clisp.org>
26928
26929         Fix out-of-memory handling of vasnprintf.
26930         * lib/printf-parse.c: Include <errno.h>.
26931         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
26932         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
26933         is already set.
26934
26935 2007-11-02  Eric Blake  <ebb9@byu.net>
26936
26937         Fix tests on cygwin.
26938         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
26939
26940 2007-11-01  Bruno Haible  <bruno@clisp.org>
26941
26942         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
26943         warning.
26944         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
26945         needed for POSIX compatibility.
26946
26947 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26948
26949         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
26950         for compatibility with GNU.
26951
26952 2007-11-01  Bruno Haible  <bruno@clisp.org>
26953
26954         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
26955         (putenv): Renamed from rpl_putenv. Change argument type from
26956         'const char *' to 'char *'.
26957         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
26958         of defining putenv in config.h, just set REPLACE_PUTENV.
26959         * modules/putenv (Depends-on): Add stdlib.
26960         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26961         (Include): Use <stdlib.h>.
26962         * lib/stdlib.in.h (putenv): New declaration.
26963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
26964         REPLACE_PUTENV.
26965         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
26966         REPLACE_PUTENV.
26967         Needed for MacOS X 10.5.0.
26968         Reported by Peter O'Gorman <peter@pogma.com>.
26969
26970 2007-11-01  Jim Meyering  <meyering@redhat.com>
26971
26972         Treat an empty date string exactly like "0".
26973         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
26974         if the remaining date string (to be parsed) is empty, use "0".
26975         Reported by Mischa Molhoek and discussed in this thread:
26976         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
26977
26978 2007-10-31  Bruno Haible  <bruno@clisp.org>
26979
26980         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
26981         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
26982         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
26983         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
26984         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
26985         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
26986
26987 2007-10-31  Bruno Haible  <bruno@clisp.org>
26988
26989         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
26990         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
26991         (AC_TYPE_LONG_LONG_INT): Use it.
26992         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
26993         it as well.
26994         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
26995         to m4/longlong.m4.
26996         * modules/stdint (Files): Remove m4/ulonglong.m4.
26997         * modules/strtoull (Files): Use m4/longlong.m4 instead of
26998         m4/ulonglong.m4.
26999         * modules/strtoumax (Files): Likewise.
27000
27001 2007-10-30  Bruno Haible  <bruno@clisp.org>
27002
27003         * modules/xvasprintf-posix: New file.
27004         Suggested by Eric Blake.
27005
27006 2007-10-30  Bruno Haible  <bruno@clisp.org>
27007
27008         * modules/xprintf-posix-tests: New file.
27009         * tests/test-xprintf-posix.sh: New file.
27010         * tests/test-xprintf-posix.c: New file.
27011         * tests/test-xfprintf-posix.c: New file.
27012
27013         * modules/xprintf-posix: New file.
27014
27015 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27016
27017         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
27018         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
27019         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
27020
27021 2007-10-29  Bruno Haible  <bruno@clisp.org>
27022
27023         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
27024         contain the special marker '_cv_'.
27025         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27026         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27027         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27028         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27029         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27030         Reported by Ralf Wildenhues.
27031
27032 2007-10-29  Bruno Haible  <bruno@clisp.org>
27033
27034         * gnulib-tool (func_import): When --lgpl is not specified, set
27035         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
27036         GPLv3.
27037         Reported by Simon Josefsson.
27038
27039 2007-10-28  Bruno Haible  <bruno@clisp.org>
27040
27041         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
27042         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
27043         HAVE_DECL_ISFINITE.
27044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27045         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
27046         HAVE_DECL_ISFINITE.
27047
27048 2007-10-28  Bruno Haible  <bruno@clisp.org>
27049
27050         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
27051         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
27052
27053 2007-10-28  Bruno Haible  <bruno@clisp.org>
27054
27055         Fix link errors with Sun C 5.0 on Solaris 10.
27056         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
27057         function is declared but not present in the compiler's libm.
27058         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27059         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27060         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
27061         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
27062         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
27063         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
27064         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
27065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27066         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
27067         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
27068         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
27069         HAVE_DECL_FLOORL.
27070
27071 2007-10-28  Bruno Haible  <bruno@clisp.org>
27072
27073         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
27074         gl_FUNC_FLOORL. Cache the result.
27075         (gl_FUNC_FLOORL): Use it.
27076         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
27077         gl_FUNC_CEILL. Cache the result.
27078         (gl_FUNC_CEILL): Use it.
27079
27080         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
27081         gl_FUNC_FLOOR. Cache the result.
27082         (gl_FUNC_FLOOR): Use it.
27083         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
27084         gl_FUNC_CEIL. Cache the result.
27085         (gl_FUNC_CEIL): Use it.
27086
27087         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
27088         gl_FUNC_FLOORF. Cache the result.
27089         (gl_FUNC_FLOORF): Use it.
27090         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
27091         gl_FUNC_CEILF. Cache the result.
27092         (gl_FUNC_CEILF): Use it.
27093
27094 2007-10-28  Bruno Haible  <bruno@clisp.org>
27095
27096         * gnulib-tool: Allow specifying the LGPL version number through
27097         --lgpl=2 or --lgpl=3.
27098         (func_usage): Document --lgpl with argument.
27099         Handle --lgpl=... arguments.
27100         (func_import): Recognize also gl_LGPL calls with an argument. When
27101         --lgpl=2 is used and the module's license is just LGPL, report an
27102         error. Set sed_transform_lib_file according to the lgpl variable. In
27103         the generated files, use --lgpl or gl_LGPL invocations with argument,
27104         if necessary.
27105         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
27106         an LGPv2+ license.
27107         * doc/gnulib-tool.texi (Modified imports): Update explanation of
27108         gl_LGPL macro.
27109
27110 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27111             Bruno Haible  <bruno@clisp.org>
27112
27113         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
27114         (u16_uctomb_aux): Likewise.
27115         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
27116         !HAVE_INLINE.
27117         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
27118
27119 2007-10-28  Bruno Haible  <bruno@clisp.org>
27120
27121         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
27122         Invoke AM_GETTEXT_OPTION if it exists.
27123         * modules/vasprintf: Likewise.
27124         * modules/verror: Likewise.
27125         * modules/xprintf: Likewise.
27126         * modules/xvasprintf: Likewise.
27127
27128 2007-10-27  Ben Pfaff  <blp@gnu.org>
27129
27130         * lib/math.in.h: Define isfinite macro and prototypes for
27131         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
27132         implementations.
27133         * m4/math_h.m4: New substitutions for isfinite module.
27134         * lib/isfinite.c: New file.
27135         * m4/isfinite.m4: New file.
27136         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
27137         * modules/isfinite: New file.
27138         * modules/isfinite-tests: New file.
27139         * tests/tests-isfinite.c: New file.
27140         * doc/functions/isfinite.texi: Mention isfinite module.
27141         * MODULES.html.sh: Mention new module.
27142
27143 2007-10-27  Ben Pfaff  <blp@gnu.org>
27144
27145         Ralf Wildenhues reported that Tru64 4.0D declares the round
27146         functions but does not have definitions.
27147         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
27148         cannot be found in any library, set the output variable to
27149         "missing" instead of "".
27150         * m4/round.m4: Also use our substitute if we cannot find round in
27151         any library, even if it is declared.
27152         * m4/roundf.m4: Likewise for roundf.
27153         * m4/roundl.m4: Likewise for roundl.
27154         * lib/math.in.h: Undefine roundf, round, roundl before defining
27155         their replacements, to allow for hypothetical systems where these
27156         may be defined as macros but not available in libraries.
27157
27158 2007-10-27  Bruno Haible  <bruno@clisp.org>
27159
27160         * doc/gnulib.texi: Invoke @firstparagraphindent.
27161         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
27162         changes in gnulib.
27163         (Source changes): New section.
27164
27165 2007-10-26  Bruno Haible  <bruno@clisp.org>
27166
27167         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
27168         borrowed from autoconf.
27169
27170 2007-10-26  Bruno Haible  <bruno@clisp.org>
27171
27172         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
27173         strerror returned the empty string. Needed on HP-UX 11.00.
27174
27175 2007-10-24  Micah Cowan  <micah@cowan.name>
27176
27177         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
27178         * build-aux/bootstrap: Remove support for now-unnecessary option,
27179         --cvs-user, and envvars CVS_USER, CVS_RSH.
27180
27181 2007-10-24  Jim Meyering  <meyering@redhat.com>
27182
27183         Avoid diagnostics from sha1sum when there is no cached checksum.
27184         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
27185         if the po.s1 file hasn't been created yet.
27186
27187         * build-aux/bootstrap: Sync from coreutils:
27188         2007-10-24  Jim Meyering  <meyering@redhat.com>
27189         Get gnulib from the git repository, not from an obsolete cvs one.
27190         * build-aux/bootstrap: Suggestion from Micah Cowan.
27191         2007-10-04  Jim Meyering  <jim@meyering.net>
27192         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
27193         (update_po_files): Work also when there are no .po files in po/.
27194
27195 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27196
27197         * README: Append ".git" to git and cg examples.
27198         Problem reported by Benoit Sigoure.
27199
27200 2007-10-23  Micah Cowan  <micah@cowan.name>
27201
27202         * users.txt: Add wget.
27203
27204 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27205
27206         Fix linking of some unistdio tests on FreeBSD.
27207         * modules/unistdio/u16-vsnprintf-tests
27208         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
27209         * modules/unistdio/u16-vsprintf-tests
27210         (test_u16_vsnprintf1_LDADD): Likewise.
27211         * modules/unistdio/u32-vsnprintf-tests
27212         (test_u32_vsnprintf1_LDADD): Likewise.
27213         * modules/unistdio/u32-vsprintf-tests
27214         (test_u32_vsprintf1_LDADD): Likewise.
27215         * modules/unistdio/u8-vsnprintf-tests
27216         (test_u8_vsnprintf1_LDADD): Likewise.
27217         * modules/unistdio/u8-vsprintf-tests
27218         (test_u8_vsprintf1_LDADD): Likewise.
27219         * modules/unistdio/ulc-vsnprintf-tests
27220         (test_ulc_vsnprintf1_LDADD): Likewise.
27221         * modules/unistdio/ulc-vsprintf-tests
27222         (test_ulc_vsprintf1_LDADD): Likewise.
27223
27224         Fix linking of some uniconv tests on FreeBSD.
27225         * modules/uniconv/u16-conv-from-enc-tests
27226         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
27227         * modules/uniconv/u16-conv-to-enc-tests
27228         (test_u16_conv_to_enc_LDADD): Likewise.
27229         * modules/uniconv/u16-strconv-from-enc-tests
27230         (test_u16_strconv_from_enc_LDADD): Likewise.
27231         * modules/uniconv/u16-strconv-to-enc-tests
27232         (test_u16_strconv_to_enc_LDADD): Likewise.
27233         * modules/uniconv/u32-conv-from-enc-tests
27234         (test_u32_conv_from_enc_LDADD): Likewise.
27235         * modules/uniconv/u32-conv-to-enc-tests
27236         (test_u32_conv_to_enc_LDADD): Likewise.
27237         * modules/uniconv/u32-strconv-from-enc-tests
27238         (test_u32_strconv_from_enc_LDADD): Likewise.
27239         * modules/uniconv/u32-strconv-to-enc-tests
27240         (test_u32_strconv_to_enc_LDADD): Likewise.
27241         * modules/uniconv/u8-conv-from-enc-tests
27242         (test_u8_conv_from_enc_LDADD): Likewise.
27243         * modules/uniconv/u8-conv-to-enc-tests
27244         (test_u8_conv_to_enc_LDADD): Likewise.
27245         * modules/uniconv/u8-strconv-from-enc-tests
27246         (test_u8_strconv_from_enc_LDADD): Likewise.
27247         * modules/uniconv/u8-strconv-to-enc-tests
27248         (test_u8_strconv_to_enc_LDADD): Likewise.
27249
27250 2007-10-22  Bruno Haible  <bruno@clisp.org>
27251
27252         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
27253         size.
27254
27255 2007-10-22  Eric Blake  <ebb9@byu.net>
27256
27257         Tweak x*printf documentation.
27258         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
27259         variable name and comments.
27260         Suggested by Bruno Haible.
27261
27262 2007-10-22  Bruno Haible  <bruno@clisp.org>
27263
27264         * lib/acl.c (copy_acl): Fix file name in comment.
27265
27266 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27267
27268         Fix Tru64 problem with stdbool.h.
27269         * lib/stdbool.in.h (false, true):
27270         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
27271         Don't declare as an enum in this situation; it runs afoul of Tru64.
27272         Problem reported by Steven M. Schweda in
27273         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
27274
27275 2007-10-22  Eric Blake  <ebb9@byu.net>
27276
27277         Also wrap vf?printf.
27278         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
27279         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
27280         (xvprintf, xvfprintf): New functions.
27281
27282 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27283
27284         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
27285         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
27286
27287         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
27288         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
27289
27290 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27291
27292         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
27293         by Bruno Haible.
27294
27295 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27296
27297         * lib/getloadavg.c
27298         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
27299         Undef `sys' after including sys/table.h, for Tru64 4.0D.
27300
27301         * tests/test-i-ring.c: Work for C89.
27302
27303 2007-10-22  Bruno Haible  <bruno@clisp.org>
27304
27305         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
27306         -1u, in preprocessor expression, so that we don't test for the bug
27307         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
27308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
27309
27310 2007-10-22  Eric Blake  <ebb9@byu.net>
27311
27312         * tests/test-yesno.sh: Silence stderr during test.
27313
27314 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27315
27316         * modules/crypto/gc-camellia: New file.
27317
27318         * m4/gc-camellia.m4: New file.
27319
27320         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
27321
27322         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
27323
27324 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27325
27326         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
27327         --help to stdout.  Reported by sms@antinode.org (Steven
27328         M. Schweda).
27329
27330 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27331
27332         * users.txt: Fix link to libksba.
27333
27334 2007-10-21  Ben Pfaff  <blp@gnu.org>
27335
27336         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
27337         round.c roundf implementation that depends on floorf and ceilf to
27338         be tested unconditionally.
27339
27340 2007-10-21  Ben Pfaff  <blp@gnu.org>
27341
27342         * m4/check-libm-func.m4: Removed.
27343         * m4/check-math-lib.m4: New file.
27344         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
27345         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
27346         definition and lack of AC_LIBOBJ([roundf]).
27347         * m4/roundl.m4: Ditto, and similarly for roundl.
27348         * modules/round: Reference new m4 file.
27349         * modules/roundf: Ditto.
27350         * modules/roundl: Ditto.
27351         * tests/test-round2.c (main): Use ROUND instead of round.
27352         Bug report from Bruno Haible.
27353
27354 2007-10-21  Bruno Haible  <bruno@clisp.org>
27355
27356         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
27357         context.
27358
27359 2007-10-21  Bruno Haible  <bruno@clisp.org>
27360
27361         * tests/test-wcwidth.c (main): Allow negative result for some control
27362         characters.
27363
27364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
27365         Needed on OSF/1 5.1.
27366
27367 2007-10-21  Bruno Haible  <bruno@clisp.org>
27368
27369         * tests/test-floorf1.c: Include isnanf.h.
27370         (main): Use isnanf() instead of isnan().
27371         * tests/test-ceilf1.c: Include isnanf.h.
27372         (main): Use isnanf() instead of isnan().
27373         * tests/test-truncf1.c: Include isnanf.h.
27374         (main): Use isnanf() instead of isnan().
27375         * tests/test-roundf1.c: Include isnanf.h.
27376         (main): Use isnanf() instead of isnan().
27377
27378 2007-10-21  Eric Blake  <ebb9@byu.net>
27379
27380         * users.txt: Update URL for m4.
27381
27382 2007-10-21  Bruno Haible  <bruno@clisp.org>
27383
27384         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
27385
27386 2007-10-21  Bruno Haible  <bruno@clisp.org>
27387
27388         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
27389         Git's management files if the CVS files are not present.
27390
27391 2007-10-20  Bruno Haible  <bruno@clisp.org>
27392
27393         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
27394         gcc-3.4.x.
27395
27396 2007-10-20  Ben Pfaff  <blp@gnu.org>
27397
27398         * lib/math.in.h: Declare round, roundf, roundl if we are providing
27399         implementations.
27400         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
27401         * lib/round.c: New file.
27402         * lib/roundf.c: New file.
27403         * lib/roundl.c: New file.
27404         * m4/round.m4: New file.
27405         * m4/roundf.m4: New file.
27406         * m4/roundl.m4: New file.
27407         * m4/check-libm-func-m4: New file.
27408         * modules/math: Replace round, roundf, roundl related @VARS@ in
27409         math.in.h.
27410         * modules/round: New file.
27411         * modules/round-tests: New file.
27412         * modules/roundf: New file.
27413         * modules/roundf-tests: New file.
27414         * modules/roundl: New file.
27415         * modules/roundl-tests: New file.
27416         * tests/test-round1.c: New file.
27417         * tests/test-round2.c: New file.
27418         * tests/test-roundf1.c: New file.
27419         * tests/test-roundf2.c: New file.
27420         * tests/test-roundl.c: New file.
27421         * doc/functions/round.texi: Mention round module.
27422         * doc/functions/roundf.texi: Mention roundf module.
27423         * doc/functions/roundl.texi: Mention roundl module.
27424         * MODULES.html.sh: Mention new modules.
27425         Thanks to Bruno Haible for suggestions.
27426
27427 2007-10-20  Jim Meyering  <meyering@redhat.com>
27428
27429         * lib/xprintf.c: Include <config.h> unconditionally.
27430
27431         Change xprintf's license to GPL.
27432         * modules/xprintf (License): s/LGPL/GPL/, since this module
27433         depends on modules (exit and exitfail) which are GPL.
27434         Suggestion from Bruno Haible.
27435
27436         xprintf fixes.
27437         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
27438         Use a clearer diagnostic.
27439         Patch from Bruno Haible.
27440
27441 2007-10-20  Bruno Haible  <bruno@clisp.org>
27442
27443         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
27444         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
27445         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27446
27447 2007-10-20  Bruno Haible  <bruno@clisp.org>
27448
27449         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
27450         precision in the comparison result > x - 1 or similar.
27451         * tests/test-ceilf2.c (correct_result_p): Likewise.
27452         * tests/test-truncf2.c (correct_result_p): Likewise.
27453         * tests/test-trunc2.c (correct_result_p): Likewise.
27454         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27455
27456 2007-10-20  Bruno Haible  <bruno@clisp.org>
27457
27458         * modules/ceil: New file.
27459         * m4/ceil.m4: New file.
27460         * doc/functions/ceil.texi: Mention the 'ceil' module.
27461
27462 2007-10-20  Bruno Haible  <bruno@clisp.org>
27463
27464         * modules/floor: New file.
27465         * m4/floor.m4: New file.
27466         * doc/functions/floor.texi: Mention the 'floor' module.
27467
27468 2007-10-20  Bruno Haible  <bruno@clisp.org>
27469
27470         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
27471         of %a.
27472         * modules/floorf-tests (Depends-on): Likewise.
27473         * modules/truncf-tests (Depends-on): Likewise.
27474         * modules/trunc-tests (Depends-on): Likewise.
27475         Reported by Ben Pfaff.
27476
27477 2007-10-19  Jim Meyering  <meyering@redhat.com>
27478
27479         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
27480         Don't bother testing specific errno values.  Just test ferror.
27481
27482         New module: xprintf
27483         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
27484
27485 2007-10-19  Bruno Haible  <bruno@clisp.org>
27486
27487         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
27488         syntax.
27489         * modules/javaexec (Makefile.am): Likewise.
27490         * modules/relocatable-prog (Makefile.am): Likewise.
27491         Suggested by Jim Meyering.
27492
27493 2007-10-18  Bruno Haible  <bruno@clisp.org>
27494
27495         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
27496         Reported by Jim Meyering.
27497
27498 2007-10-18  Eric Blake  <ebb9@byu.net>
27499
27500         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
27501
27502 2007-10-18  Bruno Haible  <bruno@clisp.org>
27503
27504         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
27505         the format string into writable memory. Needed in Fortify conditions.
27506
27507 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
27508             Bruno Haible  <bruno@clisp.org>
27509
27510         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
27511         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
27512         * modules/trim (Depends-on): Add mbchar.
27513         (configure.ac): Add gl_FUNC_MBRTOWC.
27514         (Makefile.am): Augment lib_SOURCES.
27515
27516 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
27517
27518         Modify glob.c to use fstatat and dirfd, to simplify it.
27519         Suggested by Eric Blake.
27520         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
27521         Don't include <stdbool.h>; not used.
27522         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
27523         (link_exists_p): Simplify implementation, since we can now assume
27524         dirfd and fstatat.
27525         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
27526
27527 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27528
27529         * gnulib-tool (func_get_dependencies): Fix sed script to
27530         match only tests.
27531
27532 2007-10-17  Bruno Haible  <bruno@clisp.org>
27533
27534         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
27535         allow locale names without encoding suffix.
27536         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27537         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27538
27539 2007-10-16  Bruno Haible  <bruno@clisp.org>
27540
27541         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
27542         * lib/getgroups.c (getgroups): Likewise.
27543         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
27544
27545 2007-10-16  Bruno Haible  <bruno@clisp.org>
27546
27547         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
27548         * modules/malloc-posix (License): Likewise.
27549         * modules/realloc-posix (License): Likewise.
27550         * modules/calloc-posix (License): Likewise.
27551         * modules/intprops (License): Change from GPL to LGPL, with
27552         Paul Eggert's approval.
27553
27554 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27555
27556         Merge glibc changes into lib/glob.c.
27557
27558         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
27559         2007-10-15 04:59:03 UTC.  Here are the changes:
27560
27561         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
27562
27563         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
27564
27565         * lib/glob.c: Add some branch prediction throughout.
27566
27567         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
27568
27569         [BZ #5103]
27570         * lib/glob.c (glob): Recognize patterns starting \/.
27571
27572         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
27573
27574         [BZ #3996]
27575         * lib/glob.c (attribute_hidden): Define if not defined.
27576         (glob): Unescape dirname, filename or username when needed and not
27577         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
27578         is NULL.  Handle unescaped [ in pattern without closing ].
27579         Don't pass GLOB_CHECK down to recursive glob for directories.
27580         (__glob_pattern_type): New function.
27581         (__glob_pattern_p): Implement using __glob_pattern_type.
27582         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
27583         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
27584         Remove unreachable code.
27585
27586         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
27587
27588         * lib/glob.c (glob_in_dir): Add some comments and asserts to
27589         explain why there are no leaks.
27590
27591         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
27592
27593         [BZ #3253]
27594         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
27595         time, rather allocate increasingly bigger arrays of pointers, if
27596         possible with alloca, if too large with malloc.
27597
27598 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27599
27600         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
27601         Problem reported by H.Merijn Brand in
27602         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
27603         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
27604         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
27605
27606 2007-10-15  Bruno Haible  <bruno@clisp.org>
27607
27608         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
27609         with explicit rpl_ prefix.
27610         * lib/fopen.c (fopen): Likewise.
27611         * lib/freopen.c (freopen): Likewise.
27612         * lib/iconv.c (iconv): Likewise.
27613         * lib/iconv_close.c (iconv_close): Likewise.
27614
27615 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27616
27617         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
27618
27619 2007-10-15  Bruno Haible  <bruno@clisp.org>
27620
27621         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
27622         <stddef.h> instead of <stdlib.h> since we only need NULL.
27623         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27624
27625 2007-10-15  Bruno Haible  <bruno@clisp.org>
27626
27627         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
27628         Replace paragraph talking about LIBOBJS.
27629         Reported by Colin Watson <cjwatson@debian.org>.
27630
27631 2007-10-15  Bruno Haible  <bruno@clisp.org>
27632
27633         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
27634         <stdlib.h> before using NULL.
27635
27636 2007-10-15  Simon Josefsson  <simon@josefsson.org>
27637
27638         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
27639         Reported by Albert Chin <china@thewrittenword.com>.
27640
27641 2007-10-14  Bruno Haible  <bruno@clisp.org>
27642
27643         * modules/iconv_open-utf-tests: New file.
27644         * tests/test-iconv-utf.c: New file.
27645
27646         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
27647         * modules/iconv_open-utf: New file.
27648         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
27649         (iconv, iconv_close): New declarations.
27650         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
27651         be defined.
27652         (iconv_open): Add special handling of conversion between UTF-8 and
27653         UTF-{16,32}{BE,LE}.
27654         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
27655         * lib/iconv_close.c: New file.
27656         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
27657         gl_FUNC_ICONV_OPEN.
27658         (gl_FUNC_ICONV_OPEN): Use it.
27659         (gl_FUNC_ICONV_OPEN_UTF): New macro.
27660         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
27661         and REPLACE_ICONV_UTF.
27662         * modules/iconv_open (Depends-on): Add c-strcase.
27663         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
27664         ICONV_CONST.
27665         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
27666
27667 2007-10-13  Albert Chin  <china@thewrittenword.com>
27668             Bruno Haible  <bruno@clisp.org>
27669
27670         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
27671         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
27672
27673 2007-10-13  Bruno Haible  <bruno@clisp.org>
27674
27675         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
27676         defined, use the ISO C99 inline semantics.
27677         * lib/argp.h (ARGP_EI): Likewise.
27678
27679 2007-10-13  Bruno Haible  <bruno@clisp.org>
27680
27681         Handle 'inline' change in gcc 4.3.0.
27682         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
27683         argp_fmtstream_write, argp_fmtstream_set_lmargin,
27684         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
27685         argp_fmtstream_point): Disable 'extern' declaration if the function
27686         definition is going to be provided inline.
27687         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
27688         semantics, not the ISO C99 inline semantics.
27689         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
27690         'extern' declaration if the function definition is going to be provided
27691         inline.
27692         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
27693         the GNU C inline semantics, not the ISO C99 inline semantics. With
27694         GCC 4.2, avoid a warning.
27695
27696 2007-10-13  Bruno Haible  <bruno@clisp.org>
27697
27698         * lib/freading.h (freading): Enable the use of __freading for
27699         glibc >= 2.7.
27700         * lib/freading.c (freading): Likewise.
27701
27702 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27703
27704         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
27705         "warning: C99 inline functions are not supported; using GNU89".
27706
27707 2007-10-12  Bruno Haible  <bruno@clisp.org>
27708
27709         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
27710         of 2.
27711         * tests/test-ceilf2.c: New file.
27712         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
27713
27714         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
27715         * modules/ceilf-tests: Update.
27716
27717 2007-10-12  Bruno Haible  <bruno@clisp.org>
27718
27719         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
27720         of 2.
27721         * tests/test-floorf2.c: New file.
27722         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
27723
27724         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
27725         * modules/floorf-tests: Update.
27726
27727 2007-10-12  Bruno Haible  <bruno@clisp.org>
27728
27729         * tests/test-trunc2.c: New file.
27730         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
27731
27732         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
27733         * modules/trunc-tests: Update.
27734
27735 2007-10-12  Bruno Haible  <bruno@clisp.org>
27736
27737         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
27738         of 2.
27739         * tests/test-truncf2.c: New file.
27740         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
27741
27742         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
27743         * modules/truncf-tests: Update.
27744
27745 2007-10-11  Eric Blake  <ebb9@byu.net>
27746
27747         Don't claim strerror is broken on Interix.
27748         * doc/functions/strerror.texi (strerror): Known broken systems are
27749         now Solaris 8, and not Interix.
27750         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
27751         Interix on cross-compile.
27752         Reported by Martin Koeppe in
27753         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
27754
27755 2007-10-11  Bruno Haible  <bruno@clisp.org>
27756
27757         * modules/i-ring-tests: New file.
27758         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
27759         instead of assert.
27760
27761 2007-10-11  Bruno Haible  <bruno@clisp.org>
27762
27763         * modules/filenamecat-tests: New file.
27764         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
27765         * lib/filenamecat.c: Remove test code.
27766
27767 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27768
27769         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
27770
27771         * lib/strerror.c: Include <string.h> always, to test interface,
27772         and to remove the need for the dummy.
27773         Include intprops.h to compute width instead of doing it ourselves
27774         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
27775         (strerror): Define it to return NULL if there's no system strerror.
27776         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
27777         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
27778         ancient pre-strerror Unix systems well any more.  Saying "unknown
27779         system error" is enough.
27780         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
27781         simpler strerror.c implementation.
27782         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
27783         Simplify the tests to reflect the simpler strerror implementation.
27784         * modules/strerror (Depends-on): Add intprops.
27785
27786 2007-10-09  Eric Blake  <ebb9@byu.net>
27787
27788         Silence test-fpending.
27789         * modules/fpending-tests (Files): Add wrapper script.
27790         * tests/test-fpending.sh: New file.
27791
27792 2007-10-09  Bruno Haible  <bruno@clisp.org>
27793
27794         * MODULES.html.sh (func_module): Don't create a hyperlink for
27795         function names like 'printf_frexp'.
27796         (Misc): Add crc, memxor.
27797         (Characteristics of floating types): New section.
27798         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
27799         isnanf-nolibm, signbit, trunc, truncf, truncl.
27800         (Enhancements for ISO C 99 functions): New subsection Input/output.
27801         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
27802         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
27803         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
27804         (Compatibility checks for POSIX:2001 functions): Add clock-time.
27805         (Enhancements for POSIX:2001 functions): Add chdir-long.
27806         (File system functions): Add areadlink, chdir-safer, read-file.
27807         Remove cycle-check.
27808         (File system as inode set): New section.
27809         (Date and time): Add gethrxtime.
27810         (Multithreading): Add openmp.
27811         (Internationalization functions): Add localename.
27812         (Unicode string functions): Add unistr/u*-mbsnlen.
27813         (Support for maintaining and releasing projects): Add git-version-gen.
27814         (Lone files): Remove directories.
27815
27816 2007-10-08  Ben Pfaff  <blp@gnu.org>
27817
27818         * lib/xmalloca.h: Fix typo in comment.
27819
27820 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27821
27822         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
27823         when avoiding problems with integer overflow.  Use a portable test
27824         instead.
27825
27826 2007-10-08  Simon Josefsson  <simon@josefsson.org>
27827
27828         * modules/dummy (License): Change to LGPLv2+.
27829         * modules/float (License): Likewise
27830         * modules/realloc (License): Likewise
27831         * modules/stdlib (License): Likewise
27832
27833 2007-10-07  Bruno Haible  <bruno@clisp.org>
27834
27835         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
27836         * floor.c (TWO_MANT_DIG): Likewise.
27837         * ceil.c (TWO_MANT_DIG): Likewise.
27838         Reported by Ben Pfaff.
27839
27840 2007-10-07  Bruno Haible  <bruno@clisp.org>
27841
27842         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
27843         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
27844         * lib/frexp.c (FUNC): Likewise.
27845         * lib/printf-frexp.h (printf_frexp): Likewise.
27846         * lib/printf-frexpl.h (printf_frexpl): Likewise.
27847         * lib/printf-frexp.c (FUNC): Likewise.
27848         Suggested by Jim Meyering.
27849
27850 2007-10-07  Jim Meyering  <meyering@redhat.com>
27851
27852         Make xnanosleep's integer overflow test more robust.
27853         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
27854         so that gcc-4.3.0 doesn't optimize away this test for overflow.
27855
27856 2007-10-07  Bruno Haible  <bruno@clisp.org>
27857
27858         * NEWS: Mention the license change.
27859
27860         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
27861         abbreviations in the modules files.
27862
27863         Change copyright notice from GPLv2+ to GPLv3+.
27864         * README: Change copyright notice.
27865         * MODULES.html.sh: Likewise.
27866         * build-aux/bootstrap.conf: Likewise.
27867         * build-aux/config.libpath: Likewise.
27868         * build-aux/csharpcomp.sh.in: Likewise.
27869         * build-aux/csharpexec.sh.in: Likewise.
27870         * build-aux/install-reloc: Likewise.
27871         * build-aux/javacomp.sh.in: Likewise.
27872         * build-aux/javaexec.sh.in: Likewise.
27873         * build-aux/ldd.sh.in: Likewise.
27874         * build-aux/reloc-ldflags: Likewise.
27875         * build-aux/relocatable.sh.in: Likewise.
27876         * build-aux/x-to-1.in: Likewise.
27877         * check-module: Likewise.
27878         * config/srclistvars.sh: Likewise.
27879         * gnulib-tool: Likewise.
27880         * lib/acl-internal.h: Likewise.
27881         * lib/acl.c: Likewise.
27882         * lib/acl.h: Likewise.
27883         * lib/acl_entries.c: Likewise.
27884         * lib/areadlink-with-size.c: Likewise.
27885         * lib/areadlink.c: Likewise.
27886         * lib/areadlink.h: Likewise.
27887         * lib/argmatch.c: Likewise.
27888         * lib/argmatch.h: Likewise.
27889         * lib/argp-ba.c: Likewise.
27890         * lib/argp-eexst.c: Likewise.
27891         * lib/argp-fmtstream.c: Likewise.
27892         * lib/argp-fmtstream.h: Likewise.
27893         * lib/argp-fs-xinl.c: Likewise.
27894         * lib/argp-help.c: Likewise.
27895         * lib/argp-namefrob.h: Likewise.
27896         * lib/argp-parse.c: Likewise.
27897         * lib/argp-pin.c: Likewise.
27898         * lib/argp-pv.c: Likewise.
27899         * lib/argp-pvh.c: Likewise.
27900         * lib/argp-xinl.c: Likewise.
27901         * lib/argp.h: Likewise.
27902         * lib/at-func.c: Likewise.
27903         * lib/atanl.c: Likewise.
27904         * lib/backupfile.c: Likewise.
27905         * lib/backupfile.h: Likewise.
27906         * lib/basename.c: Likewise.
27907         * lib/binary-io.h: Likewise.
27908         * lib/byteswap.in.h: Likewise.
27909         * lib/c-stack.c: Likewise.
27910         * lib/c-stack.h: Likewise.
27911         * lib/c-strcasestr.c: Likewise.
27912         * lib/c-strcasestr.h: Likewise.
27913         * lib/c-strstr.c: Likewise.
27914         * lib/c-strstr.h: Likewise.
27915         * lib/c-strtod.c: Likewise.
27916         * lib/calloc.c: Likewise.
27917         * lib/canon-host.c: Likewise.
27918         * lib/canon-host.h: Likewise.
27919         * lib/canonicalize-lgpl.c: Likewise.
27920         * lib/canonicalize.c: Likewise.
27921         * lib/canonicalize.h: Likewise.
27922         * lib/ceil.c: Likewise.
27923         * lib/ceilf.c: Likewise.
27924         * lib/ceill.c: Likewise.
27925         * lib/chdir-long.c: Likewise.
27926         * lib/chdir-long.h: Likewise.
27927         * lib/chdir-safer.c: Likewise.
27928         * lib/chdir-safer.h: Likewise.
27929         * lib/chown.c: Likewise.
27930         * lib/classpath.c: Likewise.
27931         * lib/classpath.h: Likewise.
27932         * lib/clean-temp.c: Likewise.
27933         * lib/clean-temp.h: Likewise.
27934         * lib/cloexec.c: Likewise.
27935         * lib/close-stream.c: Likewise.
27936         * lib/closein.c: Likewise.
27937         * lib/closein.h: Likewise.
27938         * lib/closeout.c: Likewise.
27939         * lib/closeout.h: Likewise.
27940         * lib/concat-filename.c: Likewise.
27941         * lib/copy-file.c: Likewise.
27942         * lib/copy-file.h: Likewise.
27943         * lib/count-one-bits.h: Likewise.
27944         * lib/crc.c: Likewise.
27945         * lib/crc.h: Likewise.
27946         * lib/creat-safer.c: Likewise.
27947         * lib/csharpcomp.c: Likewise.
27948         * lib/csharpcomp.h: Likewise.
27949         * lib/csharpexec.c: Likewise.
27950         * lib/csharpexec.h: Likewise.
27951         * lib/cycle-check.c: Likewise.
27952         * lib/cycle-check.h: Likewise.
27953         * lib/diacrit.c: Likewise.
27954         * lib/diacrit.h: Likewise.
27955         * lib/diffseq.h: Likewise.
27956         * lib/dirchownmod.c: Likewise.
27957         * lib/dirent.in.h: Likewise.
27958         * lib/dirfd.c: Likewise.
27959         * lib/dirfd.h: Likewise.
27960         * lib/dirname.c: Likewise.
27961         * lib/dirname.h: Likewise.
27962         * lib/dummy.c: Likewise.
27963         * lib/dup-safer.c: Likewise.
27964         * lib/dup2.c: Likewise.
27965         * lib/eealloc.h: Likewise.
27966         * lib/error.c: Likewise.
27967         * lib/error.h: Likewise.
27968         * lib/euidaccess.c: Likewise.
27969         * lib/exclude.c: Likewise.
27970         * lib/exclude.h: Likewise.
27971         * lib/execute.c: Likewise.
27972         * lib/execute.h: Likewise.
27973         * lib/exitfail.c: Likewise.
27974         * lib/exitfail.h: Likewise.
27975         * lib/expl.c: Likewise.
27976         * lib/fatal-signal.c: Likewise.
27977         * lib/fatal-signal.h: Likewise.
27978         * lib/fbufmode.c: Likewise.
27979         * lib/fbufmode.h: Likewise.
27980         * lib/fchdir.c: Likewise.
27981         * lib/fchmodat.c: Likewise.
27982         * lib/fchownat.c: Likewise.
27983         * lib/fcntl--.h: Likewise.
27984         * lib/fcntl-safer.h: Likewise.
27985         * lib/fcntl.in.h: Likewise.
27986         * lib/fd-safer.c: Likewise.
27987         * lib/fflush.c: Likewise.
27988         * lib/file-has-acl.c: Likewise.
27989         * lib/file-set.c: Likewise.
27990         * lib/file-type.c: Likewise.
27991         * lib/file-type.h: Likewise.
27992         * lib/fileblocks.c: Likewise.
27993         * lib/filemode.c: Likewise.
27994         * lib/filemode.h: Likewise.
27995         * lib/filename.h: Likewise.
27996         * lib/filenamecat.c: Likewise.
27997         * lib/filenamecat.h: Likewise.
27998         * lib/findprog.c: Likewise.
27999         * lib/findprog.h: Likewise.
28000         * lib/float.in.h: Likewise.
28001         * lib/floor.c: Likewise.
28002         * lib/floorf.c: Likewise.
28003         * lib/floorl.c: Likewise.
28004         * lib/fopen-safer.c: Likewise.
28005         * lib/fopen.c: Likewise.
28006         * lib/fpending.c: Likewise.
28007         * lib/fpending.h: Likewise.
28008         * lib/fprintf.c: Likewise.
28009         * lib/fprintftime.h: Likewise.
28010         * lib/fpucw.h: Likewise.
28011         * lib/fpurge.c: Likewise.
28012         * lib/fpurge.h: Likewise.
28013         * lib/freadable.c: Likewise.
28014         * lib/freadable.h: Likewise.
28015         * lib/freadahead.c: Likewise.
28016         * lib/freadahead.h: Likewise.
28017         * lib/freading.c: Likewise.
28018         * lib/freading.h: Likewise.
28019         * lib/free.c: Likewise.
28020         * lib/freopen.c: Likewise.
28021         * lib/frexp.c: Likewise.
28022         * lib/frexpl.c: Likewise.
28023         * lib/fseek.c: Likewise.
28024         * lib/fseterr.c: Likewise.
28025         * lib/fseterr.h: Likewise.
28026         * lib/fstatat.c: Likewise.
28027         * lib/fstrcmp.c: Likewise.
28028         * lib/fstrcmp.h: Likewise.
28029         * lib/fsusage.c: Likewise.
28030         * lib/fsusage.h: Likewise.
28031         * lib/ftell.c: Likewise.
28032         * lib/ftello.c: Likewise.
28033         * lib/fts-cycle.c: Likewise.
28034         * lib/fts.c: Likewise.
28035         * lib/fts_.h: Likewise.
28036         * lib/full-read.c: Likewise.
28037         * lib/full-read.h: Likewise.
28038         * lib/full-write.c: Likewise.
28039         * lib/full-write.h: Likewise.
28040         * lib/fwritable.c: Likewise.
28041         * lib/fwritable.h: Likewise.
28042         * lib/fwriteerror.c: Likewise.
28043         * lib/fwriteerror.h: Likewise.
28044         * lib/fwriting.c: Likewise.
28045         * lib/fwriting.h: Likewise.
28046         * lib/gcd.c: Likewise.
28047         * lib/gcd.h: Likewise.
28048         * lib/getcwd.c: Likewise.
28049         * lib/getdate.h: Likewise.
28050         * lib/getdate.y: Likewise.
28051         * lib/getdomainname.c: Likewise.
28052         * lib/getdomainname.h: Likewise.
28053         * lib/getgroups.c: Likewise.
28054         * lib/gethostname.c: Likewise.
28055         * lib/gethrxtime.c: Likewise.
28056         * lib/gethrxtime.h: Likewise.
28057         * lib/getloadavg.c: Likewise.
28058         * lib/getndelim2.c: Likewise.
28059         * lib/getndelim2.h: Likewise.
28060         * lib/getnline.c: Likewise.
28061         * lib/getnline.h: Likewise.
28062         * lib/getopt.c: Likewise.
28063         * lib/getopt.in.h: Likewise.
28064         * lib/getopt1.c: Likewise.
28065         * lib/getopt_int.h: Likewise.
28066         * lib/getpagesize.h: Likewise.
28067         * lib/getsubopt.c: Likewise.
28068         * lib/gettime.c: Likewise.
28069         * lib/getugroups.c: Likewise.
28070         * lib/getugroups.h: Likewise.
28071         * lib/getusershell.c: Likewise.
28072         * lib/gl_anyavltree_list1.h: Likewise.
28073         * lib/gl_anyavltree_list2.h: Likewise.
28074         * lib/gl_anyhash_list1.h: Likewise.
28075         * lib/gl_anyhash_list2.h: Likewise.
28076         * lib/gl_anylinked_list1.h: Likewise.
28077         * lib/gl_anylinked_list2.h: Likewise.
28078         * lib/gl_anyrbtree_list1.h: Likewise.
28079         * lib/gl_anyrbtree_list2.h: Likewise.
28080         * lib/gl_anytree_list1.h: Likewise.
28081         * lib/gl_anytree_list2.h: Likewise.
28082         * lib/gl_anytree_oset.h: Likewise.
28083         * lib/gl_anytreehash_list1.h: Likewise.
28084         * lib/gl_anytreehash_list2.h: Likewise.
28085         * lib/gl_array_list.c: Likewise.
28086         * lib/gl_array_list.h: Likewise.
28087         * lib/gl_array_oset.c: Likewise.
28088         * lib/gl_array_oset.h: Likewise.
28089         * lib/gl_avltree_list.c: Likewise.
28090         * lib/gl_avltree_list.h: Likewise.
28091         * lib/gl_avltree_oset.c: Likewise.
28092         * lib/gl_avltree_oset.h: Likewise.
28093         * lib/gl_avltreehash_list.c: Likewise.
28094         * lib/gl_avltreehash_list.h: Likewise.
28095         * lib/gl_carray_list.c: Likewise.
28096         * lib/gl_carray_list.h: Likewise.
28097         * lib/gl_linked_list.c: Likewise.
28098         * lib/gl_linked_list.h: Likewise.
28099         * lib/gl_linkedhash_list.c: Likewise.
28100         * lib/gl_linkedhash_list.h: Likewise.
28101         * lib/gl_list.c: Likewise.
28102         * lib/gl_list.h: Likewise.
28103         * lib/gl_oset.c: Likewise.
28104         * lib/gl_oset.h: Likewise.
28105         * lib/gl_rbtree_list.c: Likewise.
28106         * lib/gl_rbtree_list.h: Likewise.
28107         * lib/gl_rbtree_oset.c: Likewise.
28108         * lib/gl_rbtree_oset.h: Likewise.
28109         * lib/gl_rbtreehash_list.c: Likewise.
28110         * lib/gl_rbtreehash_list.h: Likewise.
28111         * lib/gl_sublist.c: Likewise.
28112         * lib/gl_sublist.h: Likewise.
28113         * lib/group-member.c: Likewise.
28114         * lib/group-member.h: Likewise.
28115         * lib/hard-locale.c: Likewise.
28116         * lib/hard-locale.h: Likewise.
28117         * lib/hash-pjw.c: Likewise.
28118         * lib/hash-pjw.h: Likewise.
28119         * lib/hash-triple.c: Likewise.
28120         * lib/hash.c: Likewise.
28121         * lib/hash.h: Likewise.
28122         * lib/human.c: Likewise.
28123         * lib/human.h: Likewise.
28124         * lib/i-ring.c: Likewise.
28125         * lib/i-ring.h: Likewise.
28126         * lib/idcache.c: Likewise.
28127         * lib/imaxabs.c: Likewise.
28128         * lib/imaxdiv.c: Likewise.
28129         * lib/inet_pton.c: Likewise.
28130         * lib/inet_pton.h: Likewise.
28131         * lib/intprops.h: Likewise.
28132         * lib/inttostr.c: Likewise.
28133         * lib/inttostr.h: Likewise.
28134         * lib/inttypes.in.h: Likewise.
28135         * lib/isapipe.c: Likewise.
28136         * lib/isdir.c: Likewise.
28137         * lib/isnan.c: Likewise.
28138         * lib/isnan.h: Likewise.
28139         * lib/isnanf.c: Likewise.
28140         * lib/isnanf.h: Likewise.
28141         * lib/isnanl-nolibm.h: Likewise.
28142         * lib/isnanl.c: Likewise.
28143         * lib/isnanl.h: Likewise.
28144         * lib/javacomp.c: Likewise.
28145         * lib/javacomp.h: Likewise.
28146         * lib/javaexec.c: Likewise.
28147         * lib/javaexec.h: Likewise.
28148         * lib/javaversion.c: Likewise.
28149         * lib/javaversion.h: Likewise.
28150         * lib/javaversion.java: Likewise.
28151         * lib/lbrkprop.h: Likewise.
28152         * lib/lchmod.h: Likewise.
28153         * lib/lchown.c: Likewise.
28154         * lib/ldexpl.c: Likewise.
28155         * lib/linebreak.c: Likewise.
28156         * lib/linebreak.h: Likewise.
28157         * lib/linebuffer.c: Likewise.
28158         * lib/linebuffer.h: Likewise.
28159         * lib/locale.in.h: Likewise.
28160         * lib/logl.c: Likewise.
28161         * lib/long-options.c: Likewise.
28162         * lib/long-options.h: Likewise.
28163         * lib/lstat.c: Likewise.
28164         * lib/lstat.h: Likewise.
28165         * lib/math.in.h: Likewise.
28166         * lib/mbchar.c: Likewise.
28167         * lib/mbchar.h: Likewise.
28168         * lib/mbfile.h: Likewise.
28169         * lib/mbiter.h: Likewise.
28170         * lib/mbscasecmp.c: Likewise.
28171         * lib/mbscasestr.c: Likewise.
28172         * lib/mbschr.c: Likewise.
28173         * lib/mbscspn.c: Likewise.
28174         * lib/mbslen.c: Likewise.
28175         * lib/mbsncasecmp.c: Likewise.
28176         * lib/mbsnlen.c: Likewise.
28177         * lib/mbspbrk.c: Likewise.
28178         * lib/mbspcasecmp.c: Likewise.
28179         * lib/mbsrchr.c: Likewise.
28180         * lib/mbssep.c: Likewise.
28181         * lib/mbsspn.c: Likewise.
28182         * lib/mbsstr.c: Likewise.
28183         * lib/mbstok_r.c: Likewise.
28184         * lib/mbswidth.c: Likewise.
28185         * lib/mbswidth.h: Likewise.
28186         * lib/mbuiter.h: Likewise.
28187         * lib/memcasecmp.c: Likewise.
28188         * lib/memcasecmp.h: Likewise.
28189         * lib/memchr.c: Likewise.
28190         * lib/memcmp.c: Likewise.
28191         * lib/memcoll.c: Likewise.
28192         * lib/memcoll.h: Likewise.
28193         * lib/memcpy.c: Likewise.
28194         * lib/memrchr.c: Likewise.
28195         * lib/mkancesdirs.c: Likewise.
28196         * lib/mkdir-p.c: Likewise.
28197         * lib/mkdir-p.h: Likewise.
28198         * lib/mkdir.c: Likewise.
28199         * lib/mkdirat.c: Likewise.
28200         * lib/mkdtemp.c: Likewise.
28201         * lib/mkstemp-safer.c: Likewise.
28202         * lib/mkstemp.c: Likewise.
28203         * lib/modechange.c: Likewise.
28204         * lib/modechange.h: Likewise.
28205         * lib/mountlist.c: Likewise.
28206         * lib/mountlist.h: Likewise.
28207         * lib/mpsort.c: Likewise.
28208         * lib/nanosleep.c: Likewise.
28209         * lib/obstack.c: Likewise.
28210         * lib/obstack.h: Likewise.
28211         * lib/open-safer.c: Likewise.
28212         * lib/open.c: Likewise.
28213         * lib/openat-die.c: Likewise.
28214         * lib/openat-priv.h: Likewise.
28215         * lib/openat-proc.c: Likewise.
28216         * lib/openat.c: Likewise.
28217         * lib/openat.h: Likewise.
28218         * lib/pagealign_alloc.c: Likewise.
28219         * lib/pagealign_alloc.h: Likewise.
28220         * lib/physmem.c: Likewise.
28221         * lib/physmem.h: Likewise.
28222         * lib/pipe-safer.c: Likewise.
28223         * lib/pipe.c: Likewise.
28224         * lib/pipe.h: Likewise.
28225         * lib/posixtm.c: Likewise.
28226         * lib/posixtm.h: Likewise.
28227         * lib/posixver.c: Likewise.
28228         * lib/printf-frexp.c: Likewise.
28229         * lib/printf-frexp.h: Likewise.
28230         * lib/printf-frexpl.c: Likewise.
28231         * lib/printf-frexpl.h: Likewise.
28232         * lib/printf.c: Likewise.
28233         * lib/progname.c: Likewise.
28234         * lib/progname.h: Likewise.
28235         * lib/progreloc.c: Likewise.
28236         * lib/putenv.c: Likewise.
28237         * lib/quote.c: Likewise.
28238         * lib/quote.h: Likewise.
28239         * lib/quotearg.c: Likewise.
28240         * lib/quotearg.h: Likewise.
28241         * lib/raise.c: Likewise.
28242         * lib/readline.c: Likewise.
28243         * lib/readline.h: Likewise.
28244         * lib/readlink.c: Likewise.
28245         * lib/readtokens.c: Likewise.
28246         * lib/readtokens.h: Likewise.
28247         * lib/readtokens0.c: Likewise.
28248         * lib/readtokens0.h: Likewise.
28249         * lib/readutmp.c: Likewise.
28250         * lib/readutmp.h: Likewise.
28251         * lib/realloc.c: Likewise.
28252         * lib/relocwrapper.c: Likewise.
28253         * lib/rename-dest-slash.c: Likewise.
28254         * lib/rename.c: Likewise.
28255         * lib/rmdir.c: Likewise.
28256         * lib/rpmatch.c: Likewise.
28257         * lib/safe-read.c: Likewise.
28258         * lib/safe-read.h: Likewise.
28259         * lib/safe-write.c: Likewise.
28260         * lib/safe-write.h: Likewise.
28261         * lib/same-inode.h: Likewise.
28262         * lib/same.c: Likewise.
28263         * lib/same.h: Likewise.
28264         * lib/save-cwd.c: Likewise.
28265         * lib/save-cwd.h: Likewise.
28266         * lib/savedir.c: Likewise.
28267         * lib/savedir.h: Likewise.
28268         * lib/savewd.c: Likewise.
28269         * lib/savewd.h: Likewise.
28270         * lib/search.in.h: Likewise.
28271         * lib/setenv.c: Likewise.
28272         * lib/setenv.h: Likewise.
28273         * lib/settime.c: Likewise.
28274         * lib/sh-quote.c: Likewise.
28275         * lib/sh-quote.h: Likewise.
28276         * lib/sig2str.c: Likewise.
28277         * lib/sig2str.h: Likewise.
28278         * lib/signal.in.h: Likewise.
28279         * lib/signbitd.c: Likewise.
28280         * lib/signbitf.c: Likewise.
28281         * lib/signbitl.c: Likewise.
28282         * lib/sigprocmask.c: Likewise.
28283         * lib/sincosl.c: Likewise.
28284         * lib/sleep.c: Likewise.
28285         * lib/sprintf.c: Likewise.
28286         * lib/sqrtl.c: Likewise.
28287         * lib/stat-time.h: Likewise.
28288         * lib/stdio--.h: Likewise.
28289         * lib/stdio-safer.h: Likewise.
28290         * lib/stdlib--.h: Likewise.
28291         * lib/stdlib-safer.h: Likewise.
28292         * lib/stdlib.in.h: Likewise.
28293         * lib/stpcpy.c: Likewise.
28294         * lib/stpncpy.c: Likewise.
28295         * lib/strchrnul.c: Likewise.
28296         * lib/strcspn.c: Likewise.
28297         * lib/strerror.c: Likewise.
28298         * lib/strftime.c: Likewise.
28299         * lib/strftime.h: Likewise.
28300         * lib/striconveh.c: Likewise.
28301         * lib/striconveh.h: Likewise.
28302         * lib/striconveha.c: Likewise.
28303         * lib/striconveha.h: Likewise.
28304         * lib/stripslash.c: Likewise.
28305         * lib/strnlen1.c: Likewise.
28306         * lib/strnlen1.h: Likewise.
28307         * lib/strtod.c: Likewise.
28308         * lib/strtoimax.c: Likewise.
28309         * lib/strtok_r.c: Likewise.
28310         * lib/strtol.c: Likewise.
28311         * lib/strtoll.c: Likewise.
28312         * lib/strtoul.c: Likewise.
28313         * lib/strtoull.c: Likewise.
28314         * lib/sysexits.in.h: Likewise.
28315         * lib/tempname.c: Likewise.
28316         * lib/tempname.h: Likewise.
28317         * lib/timespec.h: Likewise.
28318         * lib/tls.c: Likewise.
28319         * lib/tls.h: Likewise.
28320         * lib/tmpdir.c: Likewise.
28321         * lib/tmpdir.h: Likewise.
28322         * lib/tmpfile-safer.c: Likewise.
28323         * lib/tmpfile.c: Likewise.
28324         * lib/trigl.c: Likewise.
28325         * lib/trigl.h: Likewise.
28326         * lib/trim.c: Likewise.
28327         * lib/trim.h: Likewise.
28328         * lib/trunc.c: Likewise.
28329         * lib/truncf.c: Likewise.
28330         * lib/truncl.c: Likewise.
28331         * lib/tsearch.c: Likewise.
28332         * lib/unicodeio.c: Likewise.
28333         * lib/unicodeio.h: Likewise.
28334         * lib/unistd--.h: Likewise.
28335         * lib/unistd-safer.h: Likewise.
28336         * lib/unistdio/ulc-fprintf.c: Likewise.
28337         * lib/unistdio/ulc-vfprintf.c: Likewise.
28338         * lib/unlinkdir.c: Likewise.
28339         * lib/unlinkdir.h: Likewise.
28340         * lib/unlocked-io.h: Likewise.
28341         * lib/unsetenv.c: Likewise.
28342         * lib/userspec.c: Likewise.
28343         * lib/utime.c: Likewise.
28344         * lib/utimecmp.c: Likewise.
28345         * lib/utimecmp.h: Likewise.
28346         * lib/utimens.c: Likewise.
28347         * lib/verify.h: Likewise.
28348         * lib/verror.c: Likewise.
28349         * lib/verror.h: Likewise.
28350         * lib/version-etc-fsf.c: Likewise.
28351         * lib/version-etc.c: Likewise.
28352         * lib/version-etc.h: Likewise.
28353         * lib/vfprintf.c: Likewise.
28354         * lib/vprintf.c: Likewise.
28355         * lib/vsprintf.c: Likewise.
28356         * lib/w32spawn.h: Likewise.
28357         * lib/wait-process.c: Likewise.
28358         * lib/wait-process.h: Likewise.
28359         * lib/wcwidth.c: Likewise.
28360         * lib/write-any-file.c: Likewise.
28361         * lib/xalloc-die.c: Likewise.
28362         * lib/xalloc.h: Likewise.
28363         * lib/xasprintf.c: Likewise.
28364         * lib/xgetcwd.c: Likewise.
28365         * lib/xgetcwd.h: Likewise.
28366         * lib/xgetdomainname.c: Likewise.
28367         * lib/xgetdomainname.h: Likewise.
28368         * lib/xgethostname.c: Likewise.
28369         * lib/xmalloc.c: Likewise.
28370         * lib/xmalloca.c: Likewise.
28371         * lib/xmalloca.h: Likewise.
28372         * lib/xmemcoll.c: Likewise.
28373         * lib/xnanosleep.c: Likewise.
28374         * lib/xreadlink.c: Likewise.
28375         * lib/xreadlink.h: Likewise.
28376         * lib/xsetenv.c: Likewise.
28377         * lib/xsetenv.h: Likewise.
28378         * lib/xstriconv.c: Likewise.
28379         * lib/xstriconv.h: Likewise.
28380         * lib/xstrndup.c: Likewise.
28381         * lib/xstrndup.h: Likewise.
28382         * lib/xstrtod.c: Likewise.
28383         * lib/xstrtod.h: Likewise.
28384         * lib/xstrtol-error.c: Likewise.
28385         * lib/xstrtol.c: Likewise.
28386         * lib/xstrtol.h: Likewise.
28387         * lib/xtime.h: Likewise.
28388         * lib/xvasprintf.c: Likewise.
28389         * lib/xvasprintf.h: Likewise.
28390         * lib/yesno.c: Likewise.
28391         * lib/yesno.h: Likewise.
28392         * posix-modules: Likewise.
28393         * tests/test-alloca-opt.c: Likewise.
28394         * tests/test-arcfour.c: Likewise.
28395         * tests/test-arctwo.c: Likewise.
28396         * tests/test-argmatch.c: Likewise.
28397         * tests/test-argp-2.sh: Likewise.
28398         * tests/test-argp.c: Likewise.
28399         * tests/test-arpa_inet.c: Likewise.
28400         * tests/test-array_list.c: Likewise.
28401         * tests/test-array_oset.c: Likewise.
28402         * tests/test-atexit.c: Likewise.
28403         * tests/test-avltree_list.c: Likewise.
28404         * tests/test-avltree_oset.c: Likewise.
28405         * tests/test-avltreehash_list.c: Likewise.
28406         * tests/test-base64.c: Likewise.
28407         * tests/test-binary-io.c: Likewise.
28408         * tests/test-byteswap.c: Likewise.
28409         * tests/test-c-ctype.c: Likewise.
28410         * tests/test-c-strcasecmp.c: Likewise.
28411         * tests/test-c-strcasestr.c: Likewise.
28412         * tests/test-c-strncasecmp.c: Likewise.
28413         * tests/test-c-strstr.c: Likewise.
28414         * tests/test-canonicalize-lgpl.c: Likewise.
28415         * tests/test-canonicalize.c: Likewise.
28416         * tests/test-carray_list.c: Likewise.
28417         * tests/test-ceilf.c: Likewise.
28418         * tests/test-ceill.c: Likewise.
28419         * tests/test-count-one-bits.c: Likewise.
28420         * tests/test-crc.c: Likewise.
28421         * tests/test-dirname.c: Likewise.
28422         * tests/test-fbufmode.c: Likewise.
28423         * tests/test-fcntl.c: Likewise.
28424         * tests/test-fflush.c: Likewise.
28425         * tests/test-floorf.c: Likewise.
28426         * tests/test-floorl.c: Likewise.
28427         * tests/test-fopen.c: Likewise.
28428         * tests/test-fprintf-posix.c: Likewise.
28429         * tests/test-fprintf-posix.h: Likewise.
28430         * tests/test-fpurge.c: Likewise.
28431         * tests/test-freadable.c: Likewise.
28432         * tests/test-freadahead.c: Likewise.
28433         * tests/test-freading.c: Likewise.
28434         * tests/test-freopen.c: Likewise.
28435         * tests/test-frexp.c: Likewise.
28436         * tests/test-frexpl.c: Likewise.
28437         * tests/test-fseek.c: Likewise.
28438         * tests/test-fseeko.c: Likewise.
28439         * tests/test-fseterr.c: Likewise.
28440         * tests/test-fstrcmp.c: Likewise.
28441         * tests/test-ftell.c: Likewise.
28442         * tests/test-ftello.c: Likewise.
28443         * tests/test-fwritable.c: Likewise.
28444         * tests/test-fwriting.c: Likewise.
28445         * tests/test-getaddrinfo.c: Likewise.
28446         * tests/test-getpass.c: Likewise.
28447         * tests/test-gettimeofday.c: Likewise.
28448         * tests/test-hmac-md5.c: Likewise.
28449         * tests/test-hmac-sha1.c: Likewise.
28450         * tests/test-iconv.c: Likewise.
28451         * tests/test-iconvme.c: Likewise.
28452         * tests/test-inttypes.c: Likewise.
28453         * tests/test-isnan.c: Likewise.
28454         * tests/test-isnanf.c: Likewise.
28455         * tests/test-isnanl-nolibm.c: Likewise.
28456         * tests/test-isnanl.c: Likewise.
28457         * tests/test-isnanl.h: Likewise.
28458         * tests/test-ldexpl.c: Likewise.
28459         * tests/test-linked_list.c: Likewise.
28460         * tests/test-linkedhash_list.c: Likewise.
28461         * tests/test-locale.c: Likewise.
28462         * tests/test-localename.c: Likewise.
28463         * tests/test-lock.c: Likewise.
28464         * tests/test-lseek.c: Likewise.
28465         * tests/test-malloca.c: Likewise.
28466         * tests/test-math.c: Likewise.
28467         * tests/test-mbscasecmp.c: Likewise.
28468         * tests/test-mbscasestr1.c: Likewise.
28469         * tests/test-mbscasestr2.c: Likewise.
28470         * tests/test-mbscasestr3.c: Likewise.
28471         * tests/test-mbscasestr4.c: Likewise.
28472         * tests/test-mbschr.c: Likewise.
28473         * tests/test-mbscspn.c: Likewise.
28474         * tests/test-mbsncasecmp.c: Likewise.
28475         * tests/test-mbspbrk.c: Likewise.
28476         * tests/test-mbspcasecmp.c: Likewise.
28477         * tests/test-mbsrchr.c: Likewise.
28478         * tests/test-mbsspn.c: Likewise.
28479         * tests/test-mbsstr1.c: Likewise.
28480         * tests/test-mbsstr2.c: Likewise.
28481         * tests/test-mbsstr3.c: Likewise.
28482         * tests/test-md5.c: Likewise.
28483         * tests/test-memmem.c: Likewise.
28484         * tests/test-netinet_in.c: Likewise.
28485         * tests/test-open.c: Likewise.
28486         * tests/test-printf-frexp.c: Likewise.
28487         * tests/test-printf-frexpl.c: Likewise.
28488         * tests/test-printf-posix.c: Likewise.
28489         * tests/test-printf-posix.h: Likewise.
28490         * tests/test-rbtree_list.c: Likewise.
28491         * tests/test-rbtree_oset.c: Likewise.
28492         * tests/test-rbtreehash_list.c: Likewise.
28493         * tests/test-read-file.c: Likewise.
28494         * tests/test-rijndael.c: Likewise.
28495         * tests/test-search.c: Likewise.
28496         * tests/test-signbit.c: Likewise.
28497         * tests/test-sleep.c: Likewise.
28498         * tests/test-snprintf-posix.c: Likewise.
28499         * tests/test-snprintf-posix.h: Likewise.
28500         * tests/test-snprintf.c: Likewise.
28501         * tests/test-sprintf-posix.c: Likewise.
28502         * tests/test-sprintf-posix.h: Likewise.
28503         * tests/test-stat-time.c: Likewise.
28504         * tests/test-stdbool.c: Likewise.
28505         * tests/test-stdint.c: Likewise.
28506         * tests/test-stdio.c: Likewise.
28507         * tests/test-stdlib.c: Likewise.
28508         * tests/test-stpncpy.c: Likewise.
28509         * tests/test-strcasestr.c: Likewise.
28510         * tests/test-striconv.c: Likewise.
28511         * tests/test-striconveh.c: Likewise.
28512         * tests/test-striconveha.c: Likewise.
28513         * tests/test-string.c: Likewise.
28514         * tests/test-sys_select.c: Likewise.
28515         * tests/test-sys_socket.c: Likewise.
28516         * tests/test-sys_stat.c: Likewise.
28517         * tests/test-sys_time.c: Likewise.
28518         * tests/test-sysexits.c: Likewise.
28519         * tests/test-time.c: Likewise.
28520         * tests/test-tls.c: Likewise.
28521         * tests/test-trunc.c: Likewise.
28522         * tests/test-truncf.c: Likewise.
28523         * tests/test-truncl.c: Likewise.
28524         * tests/test-unistd.c: Likewise.
28525         * tests/test-vasnprintf-posix.c: Likewise.
28526         * tests/test-vasnprintf-posix2.c: Likewise.
28527         * tests/test-vasnprintf.c: Likewise.
28528         * tests/test-vasprintf-posix.c: Likewise.
28529         * tests/test-vasprintf.c: Likewise.
28530         * tests/test-verify.c: Likewise.
28531         * tests/test-vfprintf-posix.c: Likewise.
28532         * tests/test-vprintf-posix.c: Likewise.
28533         * tests/test-vsnprintf-posix.c: Likewise.
28534         * tests/test-vsnprintf.c: Likewise.
28535         * tests/test-vsprintf-posix.c: Likewise.
28536         * tests/test-wchar.c: Likewise.
28537         * tests/test-wctype.c: Likewise.
28538         * tests/test-wcwidth.c: Likewise.
28539         * tests/test-xstrtol.c: Likewise.
28540         * tests/test-xvasprintf.c: Likewise.
28541         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28542         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28543         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28544         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28545         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28546         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28547         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28548         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28549         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28550         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28551         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28552         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28553         * tests/uniname/test-uninames.c: Likewise.
28554         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
28555         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
28556         * tests/unistdio/test-u16-printf1.h: Likewise.
28557         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
28558         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
28559         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
28560         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
28561         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28562         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28563         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
28564         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
28565         * tests/unistdio/test-u32-printf1.h: Likewise.
28566         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
28567         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
28568         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
28569         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
28570         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28571         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28572         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
28573         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
28574         * tests/unistdio/test-u8-printf1.h: Likewise.
28575         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
28576         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
28577         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
28578         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
28579         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28580         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28581         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
28582         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
28583         * tests/unistdio/test-ulc-printf1.h: Likewise.
28584         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
28585         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
28586         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
28587         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
28588         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28589         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28590         * tests/uniwidth/test-u16-strwidth.c: Likewise.
28591         * tests/uniwidth/test-u16-width.c: Likewise.
28592         * tests/uniwidth/test-u32-strwidth.c: Likewise.
28593         * tests/uniwidth/test-u32-width.c: Likewise.
28594         * tests/uniwidth/test-u8-strwidth.c: Likewise.
28595         * tests/uniwidth/test-u8-width.c: Likewise.
28596         * tests/uniwidth/test-uc_width.c: Likewise.
28597         * config/srclist-update: Likewise.
28598         (fixlicense): Update to GPLv3+.
28599
28600         Change copyright notice from LGPLv2.1+ to LGPLv3+.
28601         * tests/test-tsearch.c: Change copyright notice.
28602
28603         Change copyright notice from LGPLv2.0+ to LGPLv3+.
28604         * lib/c-strcaseeq.h: Change copyright notice.
28605         * lib/streq.h: Likewise.
28606         * lib/uniconv.h: Likewise.
28607         * lib/uniconv/u-conv-from-enc.h: Likewise.
28608         * lib/uniconv/u-conv-to-enc.h: Likewise.
28609         * lib/uniconv/u-strconv-from-enc.h: Likewise.
28610         * lib/uniconv/u-strconv-to-enc.h: Likewise.
28611         * lib/uniconv/u16-conv-from-enc.c: Likewise.
28612         * lib/uniconv/u16-conv-to-enc.c: Likewise.
28613         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
28614         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
28615         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
28616         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
28617         * lib/uniconv/u32-conv-from-enc.c: Likewise.
28618         * lib/uniconv/u32-conv-to-enc.c: Likewise.
28619         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
28620         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
28621         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
28622         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
28623         * lib/uniconv/u8-conv-from-enc.c: Likewise.
28624         * lib/uniconv/u8-conv-to-enc.c: Likewise.
28625         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
28626         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
28627         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
28628         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
28629         * lib/uniname.h: Likewise.
28630         * lib/uniname/uniname.c: Likewise.
28631         * lib/unistdio.h: Likewise.
28632         * lib/unistdio/u-asnprintf.h: Likewise.
28633         * lib/unistdio/u-asprintf.h: Likewise.
28634         * lib/unistdio/u-printf-args.c: Likewise.
28635         * lib/unistdio/u-printf-args.h: Likewise.
28636         * lib/unistdio/u-printf-parse.h: Likewise.
28637         * lib/unistdio/u-snprintf.h: Likewise.
28638         * lib/unistdio/u-sprintf.h: Likewise.
28639         * lib/unistdio/u-vasprintf.h: Likewise.
28640         * lib/unistdio/u-vsnprintf.h: Likewise.
28641         * lib/unistdio/u-vsprintf.h: Likewise.
28642         * lib/unistdio/u16-asnprintf.c: Likewise.
28643         * lib/unistdio/u16-asprintf.c: Likewise.
28644         * lib/unistdio/u16-printf-parse.c: Likewise.
28645         * lib/unistdio/u16-snprintf.c: Likewise.
28646         * lib/unistdio/u16-sprintf.c: Likewise.
28647         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
28648         * lib/unistdio/u16-u16-asprintf.c: Likewise.
28649         * lib/unistdio/u16-u16-snprintf.c: Likewise.
28650         * lib/unistdio/u16-u16-sprintf.c: Likewise.
28651         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
28652         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
28653         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
28654         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
28655         * lib/unistdio/u16-vasnprintf.c: Likewise.
28656         * lib/unistdio/u16-vasprintf.c: Likewise.
28657         * lib/unistdio/u16-vsnprintf.c: Likewise.
28658         * lib/unistdio/u16-vsprintf.c: Likewise.
28659         * lib/unistdio/u32-asnprintf.c: Likewise.
28660         * lib/unistdio/u32-asprintf.c: Likewise.
28661         * lib/unistdio/u32-printf-parse.c: Likewise.
28662         * lib/unistdio/u32-snprintf.c: Likewise.
28663         * lib/unistdio/u32-sprintf.c: Likewise.
28664         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
28665         * lib/unistdio/u32-u32-asprintf.c: Likewise.
28666         * lib/unistdio/u32-u32-snprintf.c: Likewise.
28667         * lib/unistdio/u32-u32-sprintf.c: Likewise.
28668         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
28669         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
28670         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
28671         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
28672         * lib/unistdio/u32-vasnprintf.c: Likewise.
28673         * lib/unistdio/u32-vasprintf.c: Likewise.
28674         * lib/unistdio/u32-vsnprintf.c: Likewise.
28675         * lib/unistdio/u32-vsprintf.c: Likewise.
28676         * lib/unistdio/u8-asnprintf.c: Likewise.
28677         * lib/unistdio/u8-asprintf.c: Likewise.
28678         * lib/unistdio/u8-printf-parse.c: Likewise.
28679         * lib/unistdio/u8-snprintf.c: Likewise.
28680         * lib/unistdio/u8-sprintf.c: Likewise.
28681         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
28682         * lib/unistdio/u8-u8-asprintf.c: Likewise.
28683         * lib/unistdio/u8-u8-snprintf.c: Likewise.
28684         * lib/unistdio/u8-u8-sprintf.c: Likewise.
28685         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
28686         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
28687         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
28688         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
28689         * lib/unistdio/u8-vasnprintf.c: Likewise.
28690         * lib/unistdio/u8-vasprintf.c: Likewise.
28691         * lib/unistdio/u8-vsnprintf.c: Likewise.
28692         * lib/unistdio/u8-vsprintf.c: Likewise.
28693         * lib/unistdio/ulc-asnprintf.c: Likewise.
28694         * lib/unistdio/ulc-asprintf.c: Likewise.
28695         * lib/unistdio/ulc-printf-parse.c: Likewise.
28696         * lib/unistdio/ulc-snprintf.c: Likewise.
28697         * lib/unistdio/ulc-sprintf.c: Likewise.
28698         * lib/unistdio/ulc-vasnprintf.c: Likewise.
28699         * lib/unistdio/ulc-vasprintf.c: Likewise.
28700         * lib/unistdio/ulc-vsnprintf.c: Likewise.
28701         * lib/unistdio/ulc-vsprintf.c: Likewise.
28702         * lib/unistr.h: Likewise.
28703         * lib/unistr/u-cpy-alloc.h: Likewise.
28704         * lib/unistr/u-cpy.h: Likewise.
28705         * lib/unistr/u-endswith.h: Likewise.
28706         * lib/unistr/u-move.h: Likewise.
28707         * lib/unistr/u-set.h: Likewise.
28708         * lib/unistr/u-startswith.h: Likewise.
28709         * lib/unistr/u-stpcpy.h: Likewise.
28710         * lib/unistr/u-stpncpy.h: Likewise.
28711         * lib/unistr/u-strcat.h: Likewise.
28712         * lib/unistr/u-strcpy.h: Likewise.
28713         * lib/unistr/u-strcspn.h: Likewise.
28714         * lib/unistr/u-strdup.h: Likewise.
28715         * lib/unistr/u-strlen.h: Likewise.
28716         * lib/unistr/u-strncat.h: Likewise.
28717         * lib/unistr/u-strncpy.h: Likewise.
28718         * lib/unistr/u-strnlen.h: Likewise.
28719         * lib/unistr/u-strpbrk.h: Likewise.
28720         * lib/unistr/u-strspn.h: Likewise.
28721         * lib/unistr/u-strstr.h: Likewise.
28722         * lib/unistr/u-strtok.h: Likewise.
28723         * lib/unistr/u16-check.c: Likewise.
28724         * lib/unistr/u16-chr.c: Likewise.
28725         * lib/unistr/u16-cmp.c: Likewise.
28726         * lib/unistr/u16-cpy-alloc.c: Likewise.
28727         * lib/unistr/u16-cpy.c: Likewise.
28728         * lib/unistr/u16-endswith.c: Likewise.
28729         * lib/unistr/u16-mblen.c: Likewise.
28730         * lib/unistr/u16-mbsnlen.c: Likewise.
28731         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28732         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28733         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28734         * lib/unistr/u16-mbtouc.c: Likewise.
28735         * lib/unistr/u16-mbtoucr.c: Likewise.
28736         * lib/unistr/u16-move.c: Likewise.
28737         * lib/unistr/u16-next.c: Likewise.
28738         * lib/unistr/u16-prev.c: Likewise.
28739         * lib/unistr/u16-set.c: Likewise.
28740         * lib/unistr/u16-startswith.c: Likewise.
28741         * lib/unistr/u16-stpcpy.c: Likewise.
28742         * lib/unistr/u16-stpncpy.c: Likewise.
28743         * lib/unistr/u16-strcat.c: Likewise.
28744         * lib/unistr/u16-strchr.c: Likewise.
28745         * lib/unistr/u16-strcmp.c: Likewise.
28746         * lib/unistr/u16-strcpy.c: Likewise.
28747         * lib/unistr/u16-strcspn.c: Likewise.
28748         * lib/unistr/u16-strdup.c: Likewise.
28749         * lib/unistr/u16-strlen.c: Likewise.
28750         * lib/unistr/u16-strmblen.c: Likewise.
28751         * lib/unistr/u16-strmbtouc.c: Likewise.
28752         * lib/unistr/u16-strncat.c: Likewise.
28753         * lib/unistr/u16-strncmp.c: Likewise.
28754         * lib/unistr/u16-strncpy.c: Likewise.
28755         * lib/unistr/u16-strnlen.c: Likewise.
28756         * lib/unistr/u16-strpbrk.c: Likewise.
28757         * lib/unistr/u16-strrchr.c: Likewise.
28758         * lib/unistr/u16-strspn.c: Likewise.
28759         * lib/unistr/u16-strstr.c: Likewise.
28760         * lib/unistr/u16-strtok.c: Likewise.
28761         * lib/unistr/u16-to-u32.c: Likewise.
28762         * lib/unistr/u16-to-u8.c: Likewise.
28763         * lib/unistr/u16-uctomb-aux.c: Likewise.
28764         * lib/unistr/u16-uctomb.c: Likewise.
28765         * lib/unistr/u32-check.c: Likewise.
28766         * lib/unistr/u32-chr.c: Likewise.
28767         * lib/unistr/u32-cmp.c: Likewise.
28768         * lib/unistr/u32-cpy-alloc.c: Likewise.
28769         * lib/unistr/u32-cpy.c: Likewise.
28770         * lib/unistr/u32-endswith.c: Likewise.
28771         * lib/unistr/u32-mblen.c: Likewise.
28772         * lib/unistr/u32-mbsnlen.c: Likewise.
28773         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28774         * lib/unistr/u32-mbtouc.c: Likewise.
28775         * lib/unistr/u32-mbtoucr.c: Likewise.
28776         * lib/unistr/u32-move.c: Likewise.
28777         * lib/unistr/u32-next.c: Likewise.
28778         * lib/unistr/u32-prev.c: Likewise.
28779         * lib/unistr/u32-set.c: Likewise.
28780         * lib/unistr/u32-startswith.c: Likewise.
28781         * lib/unistr/u32-stpcpy.c: Likewise.
28782         * lib/unistr/u32-stpncpy.c: Likewise.
28783         * lib/unistr/u32-strcat.c: Likewise.
28784         * lib/unistr/u32-strchr.c: Likewise.
28785         * lib/unistr/u32-strcmp.c: Likewise.
28786         * lib/unistr/u32-strcpy.c: Likewise.
28787         * lib/unistr/u32-strcspn.c: Likewise.
28788         * lib/unistr/u32-strdup.c: Likewise.
28789         * lib/unistr/u32-strlen.c: Likewise.
28790         * lib/unistr/u32-strmblen.c: Likewise.
28791         * lib/unistr/u32-strmbtouc.c: Likewise.
28792         * lib/unistr/u32-strncat.c: Likewise.
28793         * lib/unistr/u32-strncmp.c: Likewise.
28794         * lib/unistr/u32-strncpy.c: Likewise.
28795         * lib/unistr/u32-strnlen.c: Likewise.
28796         * lib/unistr/u32-strpbrk.c: Likewise.
28797         * lib/unistr/u32-strrchr.c: Likewise.
28798         * lib/unistr/u32-strspn.c: Likewise.
28799         * lib/unistr/u32-strstr.c: Likewise.
28800         * lib/unistr/u32-strtok.c: Likewise.
28801         * lib/unistr/u32-to-u16.c: Likewise.
28802         * lib/unistr/u32-to-u8.c: Likewise.
28803         * lib/unistr/u32-uctomb.c: Likewise.
28804         * lib/unistr/u8-check.c: Likewise.
28805         * lib/unistr/u8-chr.c: Likewise.
28806         * lib/unistr/u8-cmp.c: Likewise.
28807         * lib/unistr/u8-cpy-alloc.c: Likewise.
28808         * lib/unistr/u8-cpy.c: Likewise.
28809         * lib/unistr/u8-endswith.c: Likewise.
28810         * lib/unistr/u8-mblen.c: Likewise.
28811         * lib/unistr/u8-mbsnlen.c: Likewise.
28812         * lib/unistr/u8-mbtouc-aux.c: Likewise.
28813         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28814         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28815         * lib/unistr/u8-mbtouc.c: Likewise.
28816         * lib/unistr/u8-mbtoucr.c: Likewise.
28817         * lib/unistr/u8-move.c: Likewise.
28818         * lib/unistr/u8-next.c: Likewise.
28819         * lib/unistr/u8-prev.c: Likewise.
28820         * lib/unistr/u8-set.c: Likewise.
28821         * lib/unistr/u8-startswith.c: Likewise.
28822         * lib/unistr/u8-stpcpy.c: Likewise.
28823         * lib/unistr/u8-stpncpy.c: Likewise.
28824         * lib/unistr/u8-strcat.c: Likewise.
28825         * lib/unistr/u8-strchr.c: Likewise.
28826         * lib/unistr/u8-strcmp.c: Likewise.
28827         * lib/unistr/u8-strcpy.c: Likewise.
28828         * lib/unistr/u8-strcspn.c: Likewise.
28829         * lib/unistr/u8-strdup.c: Likewise.
28830         * lib/unistr/u8-strlen.c: Likewise.
28831         * lib/unistr/u8-strmblen.c: Likewise.
28832         * lib/unistr/u8-strmbtouc.c: Likewise.
28833         * lib/unistr/u8-strncat.c: Likewise.
28834         * lib/unistr/u8-strncmp.c: Likewise.
28835         * lib/unistr/u8-strncpy.c: Likewise.
28836         * lib/unistr/u8-strnlen.c: Likewise.
28837         * lib/unistr/u8-strpbrk.c: Likewise.
28838         * lib/unistr/u8-strrchr.c: Likewise.
28839         * lib/unistr/u8-strspn.c: Likewise.
28840         * lib/unistr/u8-strstr.c: Likewise.
28841         * lib/unistr/u8-strtok.c: Likewise.
28842         * lib/unistr/u8-to-u16.c: Likewise.
28843         * lib/unistr/u8-to-u32.c: Likewise.
28844         * lib/unistr/u8-uctomb-aux.c: Likewise.
28845         * lib/unistr/u8-uctomb.c: Likewise.
28846         * lib/unitypes.h: Likewise.
28847         * lib/uniwidth.h: Likewise.
28848         * lib/uniwidth/cjk.h: Likewise.
28849         * lib/uniwidth/u16-strwidth.c: Likewise.
28850         * lib/uniwidth/u16-width.c: Likewise.
28851         * lib/uniwidth/u32-strwidth.c: Likewise.
28852         * lib/uniwidth/u32-width.c: Likewise.
28853         * lib/uniwidth/u8-strwidth.c: Likewise.
28854         * lib/uniwidth/u8-width.c: Likewise.
28855         * lib/uniwidth/width.c: Likewise.
28856
28857 2007-10-07  Bruno Haible  <bruno@clisp.org>
28858
28859         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
28860         The file is still under LGPL (see modules/inttypes).
28861
28862 2007-10-06  Bruno Haible  <bruno@clisp.org>
28863
28864         * modules/trunc (Dependencies): Add 'extensions'.
28865         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
28866         Reported by Ben Pfaff <blp@gnu.org>.
28867
28868 2007-10-06  Bruno Haible  <bruno@clisp.org>
28869
28870         * modules/freopen-tests: New file.
28871         * tests/test-freopen.c: New file.
28872
28873         * modules/fopen-tests: New file.
28874         * tests/test-fopen.c: New file.
28875
28876         * modules/fopen: New file.
28877         * lib/fopen.c: New file.
28878         * m4/fopen.m4: New file.
28879         * modules/freopen: New file.
28880         * lib/freopen.c: New file.
28881         * m4/freopen.m4: New file.
28882         * lib/stdio.in.h (fopen, freopen): New declarations.
28883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
28884         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
28885         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
28886         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
28887         * doc/functions/fopen.texi: Mention the 'fopen' module.
28888         * doc/functions/freopen.texi: Mention the 'freopen' module.
28889
28890 2007-10-06  Bruno Haible  <bruno@clisp.org>
28891
28892         * modules/open-tests: New file.
28893         * tests/test-open.c: New file.
28894
28895         * modules/open: New file.
28896         * lib/open.c: New file.
28897         * m4/open.m4: New file.
28898         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
28899         lib/open.c does.
28900         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
28901         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
28902         macros.
28903         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
28904         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
28905         REPLACE_OPEN.
28906         * doc/functions/open.texi: Mention the 'open' module.
28907
28908 2007-10-04  Bruno Haible  <bruno@clisp.org>
28909
28910         * modules/ceill-tests: New file.
28911         * tests/test-ceill.c: New file.
28912
28913         * modules/ceill: New file.
28914         * lib/ceill.c: Replace entire file.
28915         * m4/ceill.m4: New file.
28916         * lib/math.in.h (ceill): Replace declaration.
28917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
28918         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
28919         * doc/functions/ceill.texi: Mention the 'ceill' module.
28920         * modules/mathl (Files): Remove lib/ceill.c.
28921         (Depends-on): Add ceill.
28922
28923 2007-10-04  Bruno Haible  <bruno@clisp.org>
28924
28925         * modules/ceilf-tests: New file.
28926         * tests/test-ceilf.c: New file.
28927
28928         * modules/ceilf: New file.
28929         * lib/ceil.c: New file.
28930         * lib/ceilf.c: New file.
28931         * m4/ceilf.m4: New file.
28932         * lib/math.in.h (ceilf): New declaration.
28933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
28934         HAVE_DECL_CEILF.
28935         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
28936         HAVE_DECL_CEILF.
28937         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
28938
28939 2007-10-04  Bruno Haible  <bruno@clisp.org>
28940
28941         * modules/floorl-tests: New file.
28942         * tests/test-floorl.c: New file.
28943
28944         * modules/floorl: New file.
28945         * lib/floorl.c: Replace entire file.
28946         * m4/floorl.m4: New file.
28947         * lib/math.in.h (floorl): Replace declaration.
28948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
28949         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
28950         * doc/functions/floorl.texi: Mention the 'floorl' module.
28951         * modules/mathl (Files): Remove lib/floorl.c.
28952         (Depends-on): Add floorl.
28953
28954 2007-10-04  Bruno Haible  <bruno@clisp.org>
28955
28956         * modules/floorf-tests: New file.
28957         * tests/test-floorf.c: New file.
28958
28959         * modules/floorf: New file.
28960         * lib/floor.c: New file.
28961         * lib/floorf.c: New file.
28962         * m4/floorf.m4: New file.
28963         * lib/math.in.h (floorf): New declaration.
28964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
28965         HAVE_DECL_FLOORF.
28966         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
28967         HAVE_DECL_FLOORF.
28968         * doc/functions/floorf.texi: Mention the 'floorf' module.
28969
28970 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
28971             Bruno Haible  <bruno@clisp.org>
28972
28973         Advertise for the Git server instead of the CVS server.
28974         * doc/gnulib-intro.texi (Steady Development): Mention the Git
28975         repository instead of the CVS one.
28976         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
28977         about all VCS systems generically.
28978         * doc/gnulib.texi (Introduction): Capitalize `Git'.
28979
28980 2007-10-04  Bruno Haible  <bruno@clisp.org>
28981
28982         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
28983         means.
28984         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
28985
28986 2007-10-04  Bruno Haible  <bruno@clisp.org>
28987
28988         * modules/truncl-tests: New file.
28989         * tests/test-truncl.c: New file.
28990
28991         * modules/truncl: New file.
28992         * lib/truncl.c: New file.
28993         * m4/truncl.m4: New file.
28994         * lib/math.in.h (truncl): New declaration.
28995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
28996         HAVE_DECL_TRUNCL.
28997         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
28998         HAVE_DECL_TRUNCL.
28999         * doc/functions/truncl.texi: Mention the 'truncl' module.
29000
29001 2007-10-04  Bruno Haible  <bruno@clisp.org>
29002
29003         * modules/truncf-tests: New file.
29004         * tests/test-truncf.c: New file.
29005
29006         * modules/truncf: New file.
29007         * lib/trunc.c: Make paramerizable through USE_* macros.
29008         * lib/truncf.c: New file.
29009         * m4/truncf.m4: New file.
29010         * lib/math.in.h (truncf): New declaration.
29011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
29012         HAVE_DECL_TRUNCF.
29013         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
29014         HAVE_DECL_TRUNCF.
29015         * doc/functions/truncf.texi: Mention the 'truncf' module.
29016
29017 2007-10-03  Bruno Haible  <bruno@clisp.org>
29018
29019         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29020         augmentation also for tests modules.
29021         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
29022         * modules/atexit-tests (Makefile.am): Likewise.
29023         * modules/binary-io-tests (Makefile.am): Likewise.
29024         * modules/c-strcase-tests (Makefile.am): Likewise.
29025         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
29026         * modules/canonicalize-tests (Makefile.am): Likewise.
29027         * modules/closein-tests (Makefile.am): Likewise.
29028         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29029         * modules/freadahead-tests (Makefile.am): Likewise.
29030         * modules/fseek-tests (Makefile.am): Likewise.
29031         * modules/fseeko-tests (Makefile.am): Likewise.
29032         * modules/ftell-tests (Makefile.am): Likewise.
29033         * modules/ftello-tests (Makefile.am): Likewise.
29034         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
29035         * modules/isnanl-tests (Makefile.am): Likewise.
29036         * modules/lseek-tests (Makefile.am): Likewise.
29037         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29038         * modules/mbscasestr-tests (Makefile.am): Likewise.
29039         * modules/mbschr-tests (Makefile.am): Likewise.
29040         * modules/mbscspn-tests (Makefile.am): Likewise.
29041         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29042         * modules/mbspbrk-tests (Makefile.am): Likewise.
29043         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29044         * modules/mbsrchr-tests (Makefile.am): Likewise.
29045         * modules/mbsspn-tests (Makefile.am): Likewise.
29046         * modules/mbsstr-tests (Makefile.am): Likewise.
29047         * modules/printf-posix-tests (Makefile.am): Likewise.
29048         * modules/snprintf-posix-tests (Makefile.am): Likewise.
29049         * modules/sprintf-posix-tests (Makefile.am): Likewise.
29050         * modules/tsearch-tests (Makefile.am): Likewise.
29051         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29052         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29053         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29054         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29055         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29056         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29057         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29058         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29059         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
29060         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
29061         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29062         * modules/xstrtol-tests (Makefile.am): Likewise.
29063         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29064         * modules/yesno-tests (Makefile.am): Likewise.
29065
29066 2007-10-03  Bruno Haible  <bruno@clisp.org>
29067
29068         * modules/trunc-tests: New file.
29069         * tests/test-trunc.c: New file.
29070
29071         * modules/trunc: New file.
29072         * lib/trunc.c: New file.
29073         * m4/trunc.m4: New file.
29074         * lib/math.in.h (trunc): New declaration.
29075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
29076         HAVE_DECL_TRUNC.
29077         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
29078         HAVE_DECL_TRUNC.
29079         * doc/functions/trunc.texi: Mention the 'trunc' module.
29080
29081 2007-10-03  Bruno Haible  <bruno@clisp.org>
29082
29083         * tests/test-fpending.c: New file, mostly copied
29084         from coreutils/lib/t-fpending.c.
29085         * modules/fpending-tests: New file.
29086
29087 2007-10-03  Bruno Haible  <bruno@clisp.org>
29088
29089         Port the stdio extensions to QNX (untested).
29090         * lib/fseterr.c (fseterr): Add support for QNX.
29091         * lib/fbufmode.c (fbufmode): Likewise.
29092         * lib/freadable.c (freadable): Likewise.
29093         * lib/fwritable.c (fwritable): Likewise.
29094         * lib/freading.c (freading): Likewise.
29095         * lib/fwriting.c (fwriting): Likewise.
29096         * lib/freadahead.c (freadahed): Likewise.
29097         * lib/fpurge.c (fpurge): Likewise.
29098         * lib/fseeko.c (rpl_fseeko): Likewise.
29099
29100 2007-10-03  Bruno Haible  <bruno@clisp.org>
29101             Jim Meyering  <jim@meyering.net>
29102             Eric Blake  <ebb9@byu.net>
29103
29104         * doc/relocatable.texi: Use @command instead of @program.
29105
29106 2007-10-02  Jim Meyering  <jim@meyering.net>
29107
29108         Perform one more "_.h" -> ".in.h" substitution.
29109         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
29110         instead of unistd_.h here, too.
29111
29112 2007-10-01  Bruno Haible  <bruno@clisp.org>
29113
29114         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
29115         Needed for the alloca-opt module.
29116
29117 2007-09-30  Bruno Haible  <bruno@clisp.org>
29118
29119         * lib/alloca.in.h: Renamed from lib/alloca_.h.
29120         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
29121         alloca_.h.
29122         * lib/argz.in.h: Renamed from lib/argz_.h.
29123         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
29124         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
29125         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
29126         byteswap_.h.
29127         * lib/dirent.in.h: Renamed from lib/dirent_.h.
29128         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
29129         dirent_.h.
29130         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
29131         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
29132         fcntl_.h.
29133         * lib/float.in.h: Renamed from lib/float_.h.
29134         * modules/float (Files, Makefile.am): Use float.in.h instead of
29135         float_.h.
29136         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
29137         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
29138         fnmatch_.h.
29139         * lib/getopt.in.h: Renamed from lib/getopt_.h.
29140         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
29141         getopt_.h.
29142         * lib/glob.in.h: Renamed from lib/glob_.h.
29143         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
29144         * lib/iconv.in.h: Renamed from lib/iconv_.h.
29145         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
29146         iconv_.h.
29147         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
29148         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
29149         inttypes_.h.
29150         * lib/locale.in.h: Renamed from lib/locale_.h.
29151         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
29152         locale_.h.
29153         * lib/math.in.h: Renamed from lib/math_.h.
29154         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
29155         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
29156         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
29157         of netinet_in_.h. Add dependency.
29158         * lib/poll.in.h: Renamed from lib/poll_.h.
29159         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
29160         * lib/search.in.h: Renamed from lib/search_.h.
29161         * modules/search (Files, Makefile.am): Use search.in.h instead of
29162         search_.h.
29163         * lib/signal.in.h: Renamed from lib/signal_.h.
29164         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
29165         _signal.h.
29166         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
29167         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
29168         stdbool_.h.
29169         * lib/stdint.in.h: Renamed from lib/stdint_.h.
29170         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
29171         stdint_.h.
29172         * lib/stdio.in.h: Renamed from lib/stdio_.h.
29173         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
29174         stdio_.h.
29175         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
29176         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
29177         stdlib_.h.
29178         * lib/string.in.h: Renamed from lib/string_.h.
29179         * modules/string (Files, Makefile.am): Use string.in.h instead of
29180         string_.h.
29181         * doc/gnulib-tool.texi (Initial import): Update.
29182         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
29183         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
29184         of sys_select_.h. Add dependency.
29185         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
29186         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
29187         of sys_socket_.h.
29188         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
29189         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
29190         sys_stat_.h.
29191         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
29192         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
29193         sys_time_.h.
29194         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
29195         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
29196         sysexits_.h.
29197         * lib/time.in.h: Renamed from lib/time_.h.
29198         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
29199         * lib/unistd.in.h: Renamed from lib/unistd_.h.
29200         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
29201         unistd_.h.
29202         * lib/wchar.in.h: Renamed from lib/wchar_.h.
29203         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
29204         wchar_.h.
29205         * lib/wctype.in.h: Renamed from lib/wctype_.h.
29206         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
29207         wctype_.h.
29208         * build-aux/bootstrap (slurp): Update.
29209         * lib/.cppi-disable: Update.
29210
29211 2007-09-30  Bruno Haible  <bruno@clisp.org>
29212
29213         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
29214         Needed on BeOS.
29215
29216 2007-09-30  Bruno Haible  <bruno@clisp.org>
29217
29218         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
29219
29220 2007-09-29  Bruno Haible  <bruno@clisp.org>
29221
29222         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
29223
29224 2007-09-29  Bruno Haible  <bruno@clisp.org>
29225
29226         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
29227         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
29228         * build-aux/install-reloc: Compile also areadlink.c.
29229         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
29230
29231 2007-09-29  Bruno Haible  <bruno@clisp.org>
29232
29233         * gnulib-tool (func_emit_initmacro_done): Indentation.
29234
29235 2007-09-29  Bruno Haible  <bruno@clisp.org>
29236
29237         * README: Add CVS checkout update instructions.
29238         Info from Bob Proulx <bob@proulx.com>.
29239
29240 2007-09-28  Eric Blake  <ebb9@byu.net>
29241
29242         Provide move-if-change.
29243         * build-aux/move-if-change: New file, based on best practice
29244         rather than any canonical upstream location.
29245
29246 2007-09-28  Jim Meyering  <jim@meyering.net>
29247
29248         Fix canonicalize loop-detection corner case.
29249         Do not attempt to stat the symlink values stored via seen_triple.
29250         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
29251         on linux-2.6.18, (but not 2.6.22).
29252         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
29253         triple_compare.  The former compares dev,ino,filename, while the latter
29254         would actually stat dirname(filename) when dev and ino were equal.
29255         * lib/hash-triple.c: Install <string.h>.
29256         (STREQ): Define.
29257         (triple_compare_ino_str): New function.
29258         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
29259
29260 2007-09-28  Eric Blake  <ebb9@byu.net>
29261
29262         Enforce that AC_REPLACE_FUNCS files exist.
29263         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
29264         override check for typos.
29265
29266         Fix test-closein on Solaris 10.
29267         * tests/test-closein.c (main): Don't assume stdin can be inherited
29268         closed on all systems.
29269         * tests/test-closein.sh: Likewise.
29270         Reported by Piotr Tarnowski.
29271
29272 2007-09-28  Jim Meyering  <jim@meyering.net>
29273
29274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
29275
29276 2007-09-27  Jim Meyering  <jim@meyering.net>
29277
29278         canonicalize: Avoid a false-positive cycle failure.
29279         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
29280         Sort.  Remove cycle-check.
29281         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
29282         not cycle-check.h.
29283         (seen_triple): New function.
29284         (canonicalize_filename_mode): Use it instead of cycle-check.
29285         * tests/test-canonicalize.c: Add a test for this bug.
29286         * tests/test-canonicalize.sh: Set up and run the test.
29287
29288         New module, file-set, from coreutils.
29289         * modules/file-set: Define it.
29290         * lib/file-set.c, lib/file-set.h: Implement.
29291
29292         New module, hash-triple, from coreutils.
29293         * modules/hash-triple: Define it.
29294         * lib/hash-triple.c, lib/hash-triple.h: Implement.
29295
29296 2007-09-25  Eric Blake  <ebb9@byu.net>
29297
29298         Fix strerror on Interix.
29299         * lib/string_.h (strerror): Declare replacement.
29300         * doc/functions/strerror.texi (strerror): Document the Interix
29301         shortcoming.
29302         * modules/string (Makefile.am): Support new hooks.
29303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
29304         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
29305         gl_FUNC_STRERROR_SEPARATE.
29306         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
29307         * lib/strerror.c (rpl_strerror): Provide replacement.
29308         * modules/strerror (Depends-on): Add string.
29309         (configure.ac): Detect use of module.
29310         * tests/test-strerror.c: New file.
29311         * modules/strerror-tests: New test module.
29312         * modules/argp (Depends-on): Add strerror.
29313         * modules/error (Depends-on): Likewise.
29314         Reported by Martin Koeppe.
29315
29316 2007-09-24  Bruno Haible  <bruno@clisp.org>
29317
29318         * README: Update git instructions.
29319
29320 2007-09-24  Eric Blake  <ebb9@byu.net>
29321
29322         Revert fpending breakage from 2007-09-08.
29323         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
29324         __fpending.c.
29325
29326 2007-09-24  Jim Meyering  <jim@meyering.net>
29327
29328         filenamecat.c: Add a test.
29329         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
29330         showing how the function works when DIR is the empty string.
29331
29332 2007-09-21  Simon Josefsson  <simon@josefsson.org>
29333
29334         * tests/test-canonicalize.sh: Turn on executable bit.
29335
29336 2007-09-19  Eric Blake  <ebb9@byu.net>
29337
29338         * README: Update CVS instructions.
29339
29340 2007-09-18  Bruno Haible  <bruno@clisp.org>
29341
29342         * modules/areadlink: New file.
29343         * lib/areadlink.h (areadlink): New declaration.
29344         * lib/areadlink.c: New file, based on lib/xreadlink.c.
29345
29346 2007-09-17  Jim Meyering  <jim@meyering.net>
29347
29348         * lib/savewd.c (ESTALE) [!defined]: Define.
29349         Reported to be required on Interix by Martin Koeppe.
29350
29351 2007-09-17  Bruno Haible  <bruno@clisp.org>
29352
29353         * gnulib-tool (func_version): Use $version.
29354
29355 2007-09-16  Bruno Haible  <bruno@clisp.org>
29356
29357         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
29358         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
29359         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
29360         Reported by Greg Schafer <gschafer@zip.com.au>.
29361
29362 2007-09-15  Bruno Haible  <bruno@clisp.org>
29363
29364         * gnulib-tool (sed): Try a little harder to make bash understand the
29365         alias.
29366         Reported by Bruce Korb <bruce.korb@gmail.com>.
29367
29368 2007-09-13  Eric Blake  <ebb9@byu.net>
29369
29370         * ChangeLog: Remove conflict markers.
29371
29372 2007-09-13  Simon Josefsson  <simon@josefsson.org>
29373
29374         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
29375         Reported by Bruno Haible <bruno@clisp.org>.
29376
29377 2007-09-12  Bruno Haible  <bruno@clisp.org>
29378
29379         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
29380         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
29381         is not defined.
29382
29383 2007-09-12  Eric Blake  <ebb9@byu.net>
29384
29385         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
29386         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
29387         Autoconf definition.
29388         * modules/euidaccess (Depends-on): Add extensions, for
29389         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
29390         * modules/fnmatch (Depends-on): Likewise.
29391         * modules/getaddrinfo (Depends-on): Likewise.
29392         * modules/getdelim (Depends-on): Likewise.
29393         * modules/getline (Depends-on): Likewise.
29394         * modules/getsubopt (Depends-on): Likewise.
29395         * modules/gettext (Depends-on): Likewise.
29396         * modules/group-member (Depends-on): Likewise.
29397         * modules/mbchar (Depends-on): Likewise.
29398         * modules/memmem (Depends-on): Likewise.
29399         * modules/mempcpy (Depends-on): Likewise.
29400         * modules/memrchr (Depends-on): Likewise.
29401         * modules/pagealign_alloc (Depends-on): Likewise.
29402         * modules/readutmp (Depends-on): Likewise.
29403         * modules/stpcpy (Depends-on): Likewise.
29404         * modules/stpncpy (Depends-on): Likewise.
29405         * modules/strchrnul (Depends-on): Likewise.
29406         * modules/strndup (Depends-on): Likewise.
29407         * modules/strsep (Depends-on): Likewise.
29408         * modules/strverscmp (Depends-on): Likewise.
29409         * modules/vasprintf (Depends-on): Likewise.
29410         * modules/wcwidth (Depends-on): Likewise.
29411         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
29412         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
29413         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
29414         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
29415         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29416         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29417         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
29418         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
29419         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
29420         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29421         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29422         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
29423         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
29424         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29425         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
29426         * m4/readutmp.m4 (gl_READUTMP): Likewise.
29427         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29428         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
29429         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29430         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
29431         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29432         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
29433         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
29434         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
29435         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
29436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29437         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
29438         so that lock.m4 can be used in gettext without extensions module.
29439
29440 2007-09-11  Bruno Haible  <bruno@clisp.org>
29441
29442         * m4/isc-posix.m4: Remove file.
29443         Suggested by Eric Blake.
29444
29445 2007-09-11  Eric Blake  <ebb9@byu.net>
29446
29447         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
29448
29449 2007-09-10  Bruno Haible  <bruno@clisp.org>
29450
29451         * posix-modules: Fix typo in error message.
29452         Reported by Matt <mkraai@beckman.com>.
29453
29454 2007-09-09  Bruno Haible  <bruno@clisp.org>
29455
29456         * doc/functions/getdelim.texi: Update list of platforms lacking the
29457         function.
29458         * doc/functions/getline.texi: Likewise.
29459
29460 2007-09-09  Jim Meyering  <jim@meyering.net>
29461
29462         * lib/hash.c (hash_initialize): Detect calloc failure.
29463         Reported by Bruno Haible.
29464
29465 2007-09-09  Bruno Haible  <bruno@clisp.org>
29466
29467         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
29468         malloc or realloc fails.
29469
29470 2007-09-09  Bruno Haible  <bruno@clisp.org>
29471
29472         * modules/getcwd (Depends-on): Add malloc-posix.
29473         * modules/glob (Depends-on): Likewise.
29474         * modules/putenv (Depends-on): Likewise.
29475         * modules/strdup (Depends-on): Likewise.
29476         * modules/getdelim (Depends-on): Add realloc-posix.
29477         * modules/read-file (Depends-on): Likewise.
29478
29479 2007-09-09  Bruno Haible  <bruno@clisp.org>
29480
29481         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
29482         (gl_FUNC_MALLOC_POSIX): Require it.
29483         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
29484         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
29485         * modules/realloc (Files): Add m4/malloc.m4.
29486         * modules/calloc (Files): Likewise.
29487
29488 2007-09-09  Bruno Haible  <bruno@clisp.org>
29489
29490         * modules/malloc-posix: New file.
29491         * modules/malloc (Depends-on): Add malloc-posix.
29492         * lib/malloc.c: Include errno.h.
29493         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
29494         and a POSIX-compatible malloc into a single function. Set ENOMEM
29495         when returning NULL.
29496         * m4/malloc.m4: New file.
29497         * doc/functions/malloc.texi: Mention the malloc-posix module.
29498         * lib/stdlib_.h (malloc): New declaration.
29499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29500         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
29501         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
29502         and HAVE_MALLOC_POSIX.
29503
29504 2007-09-09  Bruno Haible  <bruno@clisp.org>
29505
29506         * modules/realloc-posix: New file.
29507         * modules/realloc (Depends-on): Add realloc-posix.
29508         * lib/realloc.c: Include errno.h.
29509         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
29510         and a POSIX-compatible realloc into a single function. Set ENOMEM
29511         when returning NULL.
29512         * m4/realloc.m4: New file.
29513         * doc/functions/realloc.texi: Mention the realloc-posix module.
29514         * lib/stdlib_.h (realloc): New declaration.
29515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29516         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
29517         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
29518         and HAVE_REALLOC_POSIX.
29519
29520 2007-09-09  Bruno Haible  <bruno@clisp.org>
29521
29522         * modules/calloc-posix: New file.
29523         * modules/calloc (Depends-on): Add calloc-posix.
29524         * lib/calloc.c: Include errno.h.
29525         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
29526         and a POSIX-compatible calloc into a single function. Set ENOMEM
29527         when returning NULL.
29528         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
29529         * doc/functions/calloc.texi: Mention the calloc-posix module.
29530         * lib/stdlib_.h (calloc): New declaration.
29531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29532         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
29533         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
29534         and HAVE_CALLOC_POSIX.
29535
29536 2007-09-09  Bruno Haible  <bruno@clisp.org>
29537
29538         Allow for modules to show an arbitrary notice.
29539         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
29540         * gnulib-tool: New option --extract-notice.
29541         (func_usage): Document it.
29542         (sed_extract_prog): Update.
29543         (func_get_notice): New function.
29544         (func_modules_notice): New function.
29545         (func_import, func_create_testdir): Invoke it.
29546         Suggested by Jim Meyering.
29547
29548 2007-09-09  Bruno Haible  <bruno@clisp.org>
29549
29550         * gnulib-tool: New options --verbose, --quiet.
29551         (func_usage): Document them.
29552         (verbose): New variable.
29553         (func_execute_command): New function.
29554         (func_import): Don't show the module list and the file list if
29555         $verbose < 0.
29556         (func_create_testdir): Likewise. Use func_execute_command.
29557         (func_create_megatestdir): Use func_execute_command.
29558
29559 2007-09-08  Bruno Haible  <bruno@clisp.org>
29560
29561         * gnulib-tool (func_import): Prefer rsync over wget when available,
29562         for fetching the PO files.
29563
29564 2007-09-08  Bruno Haible  <bruno@clisp.org>
29565
29566         * posix-modules: New file. Portions copied from gnulib-tool.
29567         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
29568
29569 2007-09-08  Jim Meyering  <jim@meyering.net>
29570
29571         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
29572         * lib/fpending.h: Rename from __fpending.h.
29573         * lib/fpending.c: Rename from __fpending.c.
29574         Include "fpending.h", not "__fpending.h".
29575         * lib/__fpending.h, lib/__fpending.c: Remove files.
29576         * modules/fpending (Files): Reflect new file names.
29577         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
29578
29579 2007-09-08  Bruno Haible  <bruno@clisp.org>
29580
29581         * m4/inttypes-h.m4: Remove stub file.
29582
29583 2007-09-07  Simon Josefsson  <simon@josefsson.org>
29584
29585         * doc/headers/stdint.texi: Discuss #include_next issue.
29586
29587 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
29588
29589         * build-aux/bootstrap: Remove obsolete comment about wget --help.
29590
29591 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29592
29593         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
29594         in variable name.
29595
29596 2007-09-03  Jim Meyering  <jim@meyering.net>
29597
29598         New module: git-version-gen.
29599         * modules/git-version-gen: New file.
29600
29601         Import changes from coreutils for bootstrap script.
29602
29603         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
29604
29605         bootstrap: uses rsync to download the .po files
29606         * build-aux/bootstrap (po_download_command_format): New global.
29607         (download_po_files): Use rsync.
29608         (update_po_files): Don't remove .po files after download,
29609         so future rsync runs can take advantage of the copies.
29610
29611         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
29612
29613         Solve the unnecessary-.po-file-regeneration problem once and for all.
29614         * build-aux/bootstrap (download_po_files): New function, renamed from
29615         get_translations.  Now, downloads, but doesn't update LINGUAS.
29616         (update_po_files): New function.
29617
29618         bootstrap: Ignore more.
29619         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
29620         uniwidth to e.g., lib/.gitignore.
29621         (slurp): Handle the sys_stat_.h -> sys mapping, too.
29622
29623         * build-aux/bootstrap: New setting: vc_ignore.
29624         (insert_sorted_if_absent): Create $file if absent.
29625         Adapt to new, possibly empty, list: $vc_ignore.
29626
29627         bootstrap: generate more ignorable names
29628         * build-aux/bootstrap (slurp): When generating ignorable names,
29629         also map .sin to .sed, .gperf to .c, and .y to .c.
29630
29631 2007-09-03  Jim Meyering  <jim@meyering.net>
29632
29633         * build-aux/git-version-gen: New file, from coreutils.  For details, see
29634         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
29635
29636 2007-09-02  Bruno Haible  <bruno@clisp.org>
29637
29638         Fix mis-recognition of 'mcs' on QNX 6.
29639         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
29640         output contains the string "Mono".
29641         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
29642         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
29643
29644 2007-09-01  Bruno Haible  <bruno@clisp.org>
29645
29646         Fix collision between uniwidth/* and linebreak modules.
29647         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
29648         u32_width): Remove declarations.
29649         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
29650         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
29651         streq3, streq2, streq1, streq0): Remove functions.
29652         (STREQ): Remove macro.
29653         (is_cjk_encoding): Remove function.
29654         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
29655         (uc_width, u8_width, u16_width, u32_width): Remove functions.
29656         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
29657         * NEWS: Document the change.
29658
29659 2007-09-01  Bruno Haible  <bruno@clisp.org>
29660
29661         * lib/streq.h: Add double-inclusion guard.
29662
29663 2007-09-01  Karl Berry  <karl@gnu.org>
29664
29665         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
29666
29667 2007-08-28  Jim Meyering  <jim@meyering.net>
29668
29669         Rename mreadlink_with_size to areadlink_with_size.
29670         * NEWS: Document the change.
29671         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
29672         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
29673         * lib/mreadlink.h: Rename this to...
29674         * lib/areadlink.h: ...this.
29675         * modules/mreadlink-with-size: Rename this to...
29676         * modules/areadlink-with-size: ...this.
29677         * lib/canonicalize.c: Reflect the renaming.
29678         * modules/canonicalize: Likewise.
29679
29680 2007-08-26  Bruno Haible  <bruno@clisp.org>
29681
29682         * gnulib-tool (func_import): When deciding which files to remove,
29683         consider also dangling symbolic links.
29684         Reported by Eric Blake.
29685
29686 2007-08-26  Bruno Haible  <bruno@clisp.org>
29687
29688         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
29689
29690 2007-08-23  Simon Josefsson  <simon@josefsson.org>
29691
29692         * lib/readline.c: Don't include getline.h, the prototype is now
29693         found in stdio.h.
29694
29695 2007-08-23  Jim Meyering  <jim@meyering.net>
29696
29697         Getdelim touchup.
29698         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
29699         around the funlockfile call, since funlockfile never sets errno.
29700         Don't set errno upon failed realloc.
29701
29702 2007-08-22  Eric Blake  <ebb9@byu.net>
29703
29704         Getline touchups.
29705         * lib/getdelim.c (getdelim): Revert regression that required *n to
29706         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
29707         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
29708         getdelim, rather than whether implementation is missing.
29709         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
29710         * lib/stdio_.h (getline): Also declare if replacement is
29711         required.
29712         * doc/functions/getdelim.texi: New file.
29713         * doc/functions/getline.texi: Likewise.
29714         * doc/gnulib.texi (Function Substitutes): Add new files.
29715         Reported by Bruno Haible.
29716
29717 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
29718
29719         * users.txt: Add Guile.
29720
29721 2007-08-22  Eric Blake  <ebb9@byu.net>
29722
29723         * tests/test-getdelim.c (main): Use remove, not unlink.
29724         * tests/test-getline.c (main): Likewise.
29725
29726         Move getline and getdelim into stdio.h, per POSIX 200x.
29727         * modules/getline (Files): Remove getline.h.
29728         (Depends-on): Add stdio.
29729         (configure.ac): Add module indicator.
29730         * modules/getdelim (Files): Remove getdelim.h.
29731         (Depends-on): Add stdio.
29732         (configure.ac): Add module indicator.
29733         * modules/stdio (Makefile.am): Work with new indicators.
29734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29735         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
29736         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29737         * lib/getdelim.h: Delete.
29738         * lib/getline.h: Delete.
29739         * lib/stdio_.h (getdelim, getline): Declare.
29740         * modules/getdelim-tests: New module.
29741         * modules/getline-tests: Likewise.
29742         * tests/test-getdelim.c: New file.
29743         * tests/test-getline.c: Likewise.
29744         * NEWS: Document the change.
29745         * lib/getline.c: Update choice of header.
29746         * lib/csharpcomp.c: Likewise.
29747         * lib/getpass.c: Likewise.
29748         * lib/javacomp.c: Likewise.
29749         * lib/javaversion.c: Likewise.
29750         * lib/yesno.c: Likewise.
29751         * lib/getdelim.c: Likewise.
29752         (getdelim): Set errno on failure, and avoid memory leak.
29753
29754 2007-08-19  Bruno Haible  <bruno@clisp.org>
29755
29756         * modules/closein (Depends-on): Add freadahead.
29757         * lib/closein.c: Include freadahead.h.
29758         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
29759         is zero.
29760
29761 2007-08-19  Bruno Haible  <bruno@clisp.org>
29762
29763         * modules/freadahead-tests: New file.
29764         * tests/test-freadahead.sh: New file.
29765         * tests/test-freadahead.c: New file.
29766
29767         * modules/freadahead: New file.
29768         * lib/freadahead.h: New file.
29769         * lib/freadahead.c: New file.
29770         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
29771         fbufmode, fpurge, freadable, fwritable.
29772
29773 2007-08-19  Eric Blake  <ebb9@byu.net>
29774
29775         Test yesno in combination with closein.
29776         * lib/yesno.c (yesno): Document use of stdin.
29777         * modules/yesno-tests (Files): New module.
29778         * tests/test-yesno.c (main): New file.
29779         * tests/test-yesno.sh: Likewise.
29780
29781 2007-08-19  Bruno Haible  <bruno@clisp.org>
29782
29783         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
29784         * lib/fseeko.c (rpl_fseeko): Likewise.
29785         * lib/fseterr.c (fseterr): Likewise.
29786
29787 2007-08-19  Bruno Haible  <bruno@clisp.org>
29788
29789         * tests/test-lseek.c (main): Disable a test for BeOS.
29790         * doc/functions/lseek.texi: Document the BeOS bug.
29791
29792 2007-08-19  Bruno Haible  <bruno@clisp.org>
29793             Eric Blake  <ebb9@byu.net>
29794
29795         * lib/lseek.c: Include <sys/stat.h>.
29796         (rpl_lseek): Add workaround code also for Unix platforms.
29797         Needed for BeOS.
29798         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
29799         * doc/functions/lseek.texi: Document BeOS definiency.
29800
29801 2007-08-18  Bruno Haible  <bruno@clisp.org>
29802
29803         * modules/fstrcmp-tests: New file.
29804         * tests/test-fstrcmp.c: New file.
29805
29806 2007-08-18  Bruno Haible  <bruno@clisp.org>
29807
29808         * modules/fstrcmp: New file, from GNU gettext with modifications.
29809         * lib/fstrcmp.h: New file, from GNU gettext.
29810         * lib/fstrcmp.c: New file, from GNU gettext.
29811         * MODULES.html.sh (String handling): Add fstrcmp.
29812
29813 2007-08-18  Bruno Haible  <bruno@clisp.org>
29814
29815         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
29816         'bool'.
29817         (diag, compareseq): Remove const from the ctxt argument.
29818         (USE_HEURISTIC): Undefine at the end.
29819
29820 2007-08-18  Jim Meyering  <jim@meyering.net>
29821
29822         New file: lib/idcache.h
29823         * NEWS: Mention the addition.
29824         * modules/idcache (Files): Add lib/idcache.h
29825         * lib/idcache.c: Include "idcache.h".
29826         Don't include <sys/types.h>.
29827         Add a FIXME comment.
29828         Move file-scoped "static" declarations to the top.
29829         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
29830
29831 2007-08-17  Bruno Haible  <bruno@clisp.org>
29832         and Paul Eggert  <eggert@cs.ucla.edu>
29833
29834         * MODULES.html.sh: Add diffseq.
29835         * modules/diffseq: New file.
29836         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
29837         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
29838
29839 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29840
29841         Import changes from coreutils for bootstrap script.
29842
29843         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
29844
29845         * build-aux/bootstrap (slurp): Work even in environments where
29846         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
29847         current code does not slurp files whose names start with ".", and
29848         this looks like it might be a troublesome area.
29849
29850         2007-07-11  Jim Meyering  <jim@meyering.net>
29851
29852         If there's a GPL vN copyright comment, require that N == 3.
29853
29854         2007-07-08  Jim Meyering  <jim@meyering.net>
29855
29856         Run the coreutils-specific code only if tests/Makefile.am.in exists.
29857         * build-aux/bootstrap (mam_template): Move definition out of loop.
29858
29859         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
29860
29861         * build-aux/bootstrap (symlink_to_dir): Rename function from
29862         symlink_to_gnulib.  Add a directory parameter.  Update all
29863         callers.
29864         (cp_mark_as_generated): Also check for -- and link to -- files in
29865         gl/.
29866
29867         2007-07-08  Jim Meyering  <jim@meyering.net>
29868
29869         Adapt to deeper hierarchy in gnulib.
29870         * build-aux/bootstrap (symlink_to_dir): If the destination
29871         directory doesn't exist, create it. This is required at least for
29872         "lib/uniwidth/cjk.h".
29873
29874         2007-05-15  Jim Meyering  <jim@meyering.net>
29875
29876         * build-aux/bootstrap: Now that generated Makefile.am files
29877         are no longer under version control, they must be created at
29878         bootstrap time.
29879
29880 2007-08-14  Ben Pfaff  <blp@gnu.org>
29881
29882         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
29883
29884 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
29885
29886         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
29887         given the changes below.
29888         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
29889         even on hosts that have padding bits beyond the supported 64.
29890
29891 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29892
29893         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
29894         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
29895         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
29896         depends on it.
29897         (xstrtol_error): Remove.
29898         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
29899         but with a different signature.
29900         (ATTRIBUTE_NORETURN, __attribute__): New macros.
29901         * lib/xstrtol-error.c: Include exitfail.h.
29902         (xstrtol_fatal): New function, with a different signature from the
29903         old xstrtol_error, so that the caller need not worry about passing
29904         in an exit status, or about storage management of the option argument.
29905         (xstrtol_error): Now a static function.  Redo signature to
29906         implement xstrtol_fatal.  Output the correct number of hyphens in
29907         front of the option so that the caller need not worry about
29908         storage management.
29909         (N_): New macro.
29910         (_): Remove; not used now.
29911         * modules/xstrtol: Depend on getopt.
29912         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
29913         of old STRTOL_FATAL_ERROR macro.
29914         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
29915         of test program.
29916         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
29917         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
29918
29919 2007-08-08  Eric Blake  <ebb9@byu.net>
29920
29921         * lib/xstrtol-error.c: Add missing include.
29922
29923         Move xstrtol messages into gnulib domain, when --pobase is used.
29924         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
29925         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
29926         * modules/xstrtol (Files): Distribute new file.
29927         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
29928         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
29929         * tests/test-xstrtol.c: ...into new file.
29930         * tests/test-xstrtoul.c: Also test xstrtoul.
29931         * tests/test-xstrtoimax.c: Also test xstrtoimax.
29932         * tests/test-xstrtoumax.c: Also test xstrtoumax.
29933         * tests/test-xstrtol.sh: Drive the tests.
29934         * tests/test-xstrtoimax.sh: Likewise.
29935         * tests/test-xstrtoumax.sh: Likewise.
29936         * modules/xstrtol-tests: New module.
29937         * modules/xstrtoimax-tests: Likewise.
29938         * modules/xstrtoumax-tests: Likewise.
29939
29940 2007-08-08  Jim Meyering  <jim@meyering.net>
29941
29942         New function: mfile_name_concat.
29943         * lib/filenamecat.c (mfile_name_concat): New function, just like
29944         file_name_concat, but return NULL upon failure rather than exiting
29945         with a diagnostic.
29946         * lib/filenamecat.h: Declare it.
29947
29948 2007-08-07  Bruno Haible  <bruno@clisp.org>
29949
29950         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
29951         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
29952         warning from gcc.
29953         Reported by Eric Blake.
29954
29955 2007-08-07  Simon Josefsson  <simon@josefsson.org>
29956
29957         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
29958         * modules/crypto/arcfour (License): Likewise.
29959         * modules/crypto/des-tests (License): Likewise.
29960         * modules/crypto/gc-arctwo-tests (License): Likewise.
29961         * modules/crypto/gc-des-tests (License): Likewise.
29962         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
29963         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
29964         * modules/crypto/gc-md2-tests (License): Likewise.
29965         * modules/crypto/gc-md4-tests (License): Likewise.
29966         * modules/crypto/gc-md5-tests (License): Likewise.
29967         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
29968         * modules/crypto/gc-rijndael-tests (License): Likewise.
29969         * modules/crypto/gc-sha1-tests (License): Likewise.
29970         * modules/crypto/gc-tests (License): Likewise.
29971         * modules/crypto/hmac-md5 (License): Likewise.
29972         * modules/crypto/hmac-sha1 (License): Likewise.
29973         * modules/crypto/md2-tests (License): Likewise.
29974         * modules/crypto/md4-tests (License): Likewise.
29975         * modules/crypto/md5 (License): Likewise.
29976         * modules/crypto/rijndael (License): Likewise.
29977         * modules/crypto/sha1 (License): Likewise.
29978         * modules/memxor (License): Likewise.
29979
29980 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29981         and Bruno Haible  <bruno@clisp.org>
29982
29983         * NEWS: Describe interface changes to human, xstrtol.
29984         * lib/human.h: Include <xstrtol.h>.
29985         (human_options): Return enum strtol_error, not int.  Remove
29986         bool arg; take int * instead.
29987         * lib/human.c: Don't include "gettext.h".
29988         (_): Remove; no longer used.
29989         Don't include <xstrtol.h>, since human.h does it.
29990         (human_options): Adjust to abovementioned interface changes.
29991         Do not report error to stderr; that's now the caller's
29992         responsibility.
29993         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
29994         interface change.
29995         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
29996         Str, Argument_type_string.  All uses changed.  Put " argument"
29997         in diagnostics to make them clearer.  Change wording of suffix
29998         message for clarity.
29999         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
30000         Argument_type_string.
30001         (STRTOL_FATAL_WARN): Remove; no longer used.
30002         * modules/human (Depends-on): Remove gettext-h.
30003
30004 2007-08-06  Simon Josefsson  <simon@josefsson.org>
30005
30006         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
30007
30008 2007-07-31  Bruno Haible  <bruno@clisp.org>
30009
30010         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
30011         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
30012         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
30013
30014 2007-07-31  Bruno Haible  <bruno@clisp.org>
30015
30016         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
30017         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
30018
30019 2007-07-30  Bruno Haible  <bruno@clisp.org>
30020
30021         * modules/base64 (License): Use the synonymous term "LGPLv2+".
30022         * modules/c-ctype (License): Likewise.
30023         * modules/c-strcase (License): Likewise.
30024         * modules/check-version (License): Likewise.
30025         * modules/iconv (License): Likewise.
30026         * modules/iconv_open (License): Likewise.
30027         * modules/read-file (License): Likewise.
30028         * modules/striconv (License): Likewise.
30029         * modules/strverscmp (License): Likewise.
30030         * modules/vasprintf (License): Likewise.
30031         * modules/crypto/des (License): Likewise.
30032         * modules/crypto/gc (License): Likewise.
30033         * modules/crypto/gc-arcfour (License): Likewise.
30034         * modules/crypto/gc-arctwo (License): Likewise.
30035         * modules/crypto/gc-des (License): Likewise.
30036         * modules/crypto/gc-hmac-md5 (License): Likewise.
30037         * modules/crypto/gc-hmac-sha1 (License): Likewise.
30038         * modules/crypto/gc-md2 (License): Likewise.
30039         * modules/crypto/gc-md4 (License): Likewise.
30040         * modules/crypto/gc-md5 (License): Likewise.
30041         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
30042         * modules/crypto/gc-random (License): Likewise.
30043         * modules/crypto/gc-rijndael (License): Likewise.
30044         * modules/crypto/gc-sha1 (License): Likewise.
30045         * modules/crypto/md2 (License): Likewise.
30046         * modules/crypto/md4 (License): Likewise.
30047
30048 2007-07-30  Jim Meyering  <jim@meyering.net>
30049
30050         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
30051         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
30052         it has valid stat data.  This bug would cause du not to count the
30053         sizes of inaccessible directories.
30054         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
30055         in <http://bugzilla.redhat.com/250077>.
30056
30057 2007-07-25  Peter O'Gorman  <peter@pogma.com>
30058             Bruno Haible  <bruno@clisp.org>
30059
30060         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
30061         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
30062         #include_next, gives a diagnostic about it, but reports no error in
30063         the exit code.
30064         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30065
30066 2007-07-24  Ben Pfaff  <blp@gnu.org>
30067
30068         Improve name: "count-one-bits" is better than "popcount".
30069         * MODULES.html.sh: Update name.
30070         * lib/popcount.h: Renamed lib/count-one-bits.h.
30071         (popcount): Renamed count_one_bits.
30072         (popcountl): Renamed count_one_bits_l.
30073         (popcountll): Renamed count_one_bits_ll.
30074         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
30075         * modules/popcount: Renamed module/count-one-bits.
30076         * modules/popcount-tests: Renamed module/count-one-bits-tests.
30077         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
30078
30079 2007-07-23  Ben Pfaff  <blp@gnu.org>
30080
30081         * lib/popcount.h (popcount32): Reduce size of constants, to allow
30082         better code generation, and add U to large constants to avoid
30083         warnings, in non-GCC case.
30084         Suggested by Bruno Haible.
30085
30086 2007-07-23  Ben Pfaff  <blp@gnu.org>
30087
30088         * lib/popcount.h: Use verify_true instead of if...abort.
30089         * modules/popcount: Depend on verify module.
30090         Suggested by Jim Meyering.
30091
30092 2007-07-23  Bruno Haible  <bruno@clisp.org>
30093
30094         * gnulib-tool (func_import): Create a .cvsignore file also when the
30095         directory is not yet in CVS but the toplevel directory is. When
30096         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
30097         Reported by Karl Berry.
30098
30099 2007-07-22  Ben Pfaff  <blp@gnu.org>
30100
30101         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
30102         case.
30103         Suggested by Eric Blake.
30104
30105 2007-07-22  Ben Pfaff  <blp@gnu.org>
30106
30107         New module: popcount.
30108         * MODULES.html.sh: Add popcount.
30109         * modules/popcount: New file.
30110         * modules/popcount-tests: New file.
30111         * tests/test-popcount.c: New file.
30112         * lib/popcount.h: New file.
30113         * m4/popcount.m4: New file.
30114
30115 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30116
30117         * build-aux/announce-gen: Update to GPLv3.
30118
30119         * build-aux/config.guess: Update from config.
30120
30121 2007-07-21  Bruno Haible  <bruno@clisp.org>
30122
30123         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
30124         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
30125
30126 2007-07-20  Jim Meyering  <jim@meyering.net>
30127
30128         * check-module: Diagnose a self-dependency.
30129
30130 2007-07-19  Bruno Haible  <bruno@clisp.org>
30131
30132         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
30133         empty.
30134         Reported by Eric Blake.
30135
30136 2007-07-18  Bruno Haible  <bruno@clisp.org>
30137
30138         * gnulib-tool: New options --po-base, --po-domain.
30139         (func_usage): Document them.
30140         (pobase, po_domain): New variables.
30141         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
30142         DEFAULT_TEXT_DOMAIN.
30143         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
30144         (func_import): Consider pobase and po_domain. Create a po/ directory.
30145         (func_create_testdir): Set pobase and po_domain to empty.
30146         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
30147         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
30148
30149 2007-07-18  Bruno Haible  <bruno@clisp.org>
30150
30151         * gnulib-tool (func_get_automake_snippet): Synthesize also an
30152         EXTRA_DIST augmentation for files in build-aux/.
30153
30154 2007-07-16  Bruno Haible  <bruno@clisp.org>
30155
30156         * modules/lseek (License): Use the synonymous term "LGPLv2+".
30157         * modules/getdelim (License): Likewise.
30158
30159 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30160
30161         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
30162         * modules/d-type (License): Likewise.
30163         * modules/extensions (License): Likewise.
30164         * modules/fnmatch (License): Likewise.
30165         * modules/fseeko (License): Likewise.
30166         * modules/getaddrinfo (License): Likewise.
30167         * modules/getline (License): Likewise.
30168         * modules/getlogin_r (License): Likewise.
30169         * modules/getpass (License): Likewise.
30170         * modules/gettimeofday (License): Likewise.
30171         * modules/glob (License): Likewise.
30172         * modules/inet_ntop (License): Likewise.
30173         * modules/malloc (License): Likewise.
30174         * modules/malloca (License): Likewise.
30175         * modules/memmem (License): Likewise.
30176         * modules/mempcpy (License): Likewise.
30177         * modules/memset (License): Likewise.
30178         * modules/minmax (License): Likewise.
30179         * modules/mktime (License): Likewise.
30180         * modules/netinet_in (License): Likewise.
30181         * modules/pathmax (License): Likewise.
30182         * modules/poll (License): Likewise.
30183         * modules/regex (License): Likewise.
30184         * modules/snprintf (License): Likewise.
30185         * modules/stdbool (License): Likewise.
30186         * modules/stdint (License): Likewise.
30187         * modules/stdio (License): Likewise.
30188         * modules/strcase (License): Likewise.
30189         * modules/strcasestr (License): Likewise.
30190         * modules/strdup (License): Likewise.
30191         * modules/string (License): Likewise.
30192         * modules/strndup (License): Likewise.
30193         * modules/strnlen (License): Likewise.
30194         * modules/strpbrk (License): Likewise.
30195         * modules/strptime (License): Likewise.
30196         * modules/strsep (License): Likewise.
30197         * modules/sys_select (License): Likewise.
30198         * modules/sys_socket (License): Likewise.
30199         * modules/sys_stat (License): Likewise.
30200         * modules/sys_time (License): Likewise.
30201         * modules/time (License): Likewise.
30202         * modules/time_r (License): Likewise.
30203         * modules/timegm (License): Likewise.
30204         * modules/unistd (License): Likewise.
30205         * modules/vsnprintf (License): Likewise.
30206         * modules/wctype (License): Likewise.
30207
30208 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30209
30210         * modules/argz (License): LGPLv2+.
30211
30212 2007-07-15  Karl Berry  <karl@gnu.org>
30213
30214         * doc/gnulib.texi: revise node structure per new fdl.texi.
30215
30216 2007-07-14  Bruno Haible  <bruno@clisp.org>
30217
30218         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
30219         the output file.
30220         * lib/uniname/uninames.h: Regenerated.
30221
30222 2007-07-14  Karl Berry  <karl@gnu.org>
30223
30224         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
30225         omitting sectioning and index commands.
30226
30227 2007-07-13  Bruno Haible  <bruno@clisp.org>
30228
30229         New gnulib-tool option --more-symlinks.
30230         * gnulib-tool (func_usage): Document --more-symlinks.
30231         (do_copyrights): New variable.
30232         Recognize option --more-symlinks.
30233         (func_import): Don't add a copyright notice transform to
30234         sed_transform_lib_file if do_copyrights is empty.
30235
30236 2007-07-13  Bruno Haible  <bruno@clisp.org>
30237
30238         * lib/vasnprintf.c (decimal_point_char): Define also if
30239         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
30240         && !NEED_PRINTF_DIRECTIVE_A.
30241         Reported by Clemens Koller <clemens.koller@anagramm.de> via
30242         Gary V. Vaughan <gary@gnu.org>.
30243
30244 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
30245
30246         * lib/inttypes_.h: Undo previous change, since it was fixed
30247         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
30248
30249 2007-07-13  Bruno Haible  <bruno@clisp.org>
30250
30251         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
30252         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
30253
30254 2007-07-13  Jim Meyering  <jim@meyering.net>
30255
30256         df: Don't fail for Tru64's "file-on-file mount".
30257         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
30258         so we fall through and use statfs instead.  Details here:
30259         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
30260         Reported by Albert Chin.
30261
30262 2007-07-13  Bruno Haible  <bruno@clisp.org>
30263
30264         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
30265         * modules/configmake (License): Likewise.
30266         * modules/gettext (License): Likewise.
30267         * modules/gettext-h (License): Likewise.
30268         * modules/include_next (License): Likewise.
30269         * modules/link-warning (License): Likewise.
30270         * modules/localcharset (License): Likewise.
30271         * modules/localename (License): Likewise.
30272         * modules/lock (License): Likewise.
30273         * modules/relocatable-lib-lgpl (License): Likewise.
30274         * modules/size_max (License): Likewise.
30275         * modules/vasnprintf (License): Likewise.
30276         * modules/wchar (License): Likewise.
30277         * modules/xsize (License): Likewise.
30278
30279 2007-07-13  Bruno Haible  <bruno@clisp.org>
30280
30281         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
30282         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
30283
30284 2007-07-12  Bruno Haible  <bruno@clisp.org>
30285
30286         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
30287         in the modules files.
30288
30289 2007-07-11  Karl Berry  <karl@gnu.org>
30290
30291         * MODULES.html.sh (func_module): use
30292          sed -e '\|^'"${includefile}"'$|d'
30293          instead of /.../d, to avoid errors on $includefile's containing /.
30294
30295 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
30296
30297         * gnulib-tool (func_import): Avoid duplication of --avoid
30298         statements
30299         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
30300         names to `_' in variable names.
30301
30302 2007-07-10  Eric Blake  <ebb9@byu.net>
30303
30304         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
30305         * NEWS: Document this change.
30306
30307 2007-07-08  Bruno Haible  <bruno@clisp.org>
30308
30309         Update to Unicode 5.0.
30310         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
30311         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
30312         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
30313         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
30314         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
30315         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
30316         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
30317         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
30318         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
30319         U+10A3F, U+1D242..U+1D244.
30320         (nonspacing_table_ind): Update.
30321         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
30322         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
30323
30324 2007-07-08  Bruno Haible  <bruno@clisp.org>
30325
30326         Update to Unicode 5.0.
30327         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
30328         code transform. Extend the name index field of unicode_name_to_code and
30329         unicode_code_to_name from 16 to 24 bits.
30330         * lib/uniname/uniname.c (unicode_character_name,
30331         unicode_name_character): Add the range 0x12xxx to the code transform.
30332         * lib/uniname/uninames.h: Regenerated.
30333         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
30334
30335 2007-07-07  Bruno Haible  <bruno@clisp.org>
30336
30337         * modules/wcwidth-tests: New file.
30338         * tests/test-wcwidth.c: New file.
30339
30340         Work around MacOS X wcwidth() bug.
30341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
30342         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
30343         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
30344         original wcwidth in non-UTF-8 locales.
30345         * modules/wcwidth (Depends-on): Add localcharset, streq,
30346         uniwidth/width.
30347         * doc/functions/wcwidth.texi: Update.
30348
30349 2007-07-07  Bruno Haible  <bruno@clisp.org>
30350
30351         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
30352         (wcwidth): New declaration.
30353         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
30354         macros.
30355         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
30356         here. Prepare for creating <wchar.h> unconditionally.
30357         * modules/wchar (Depends-on): Add link-warning.
30358         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
30359         REPLACE_WCWIDTH, and GL_LINK_WARNING.
30360         * lib/wcwidth.h: Remove file.
30361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
30362         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
30363         * modules/wcwidth (Files): Remove lib/wcwidth.h.
30364         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
30365         (Include): Replace wcwidth.h with <wchar.h>.
30366         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
30367         * lib/mbchar.h: Don't include wcwidth.h.
30368         * lib/mbswidth.c: Likewise.
30369         * NEWS: Mention the change.
30370
30371 2007-07-07  Bruno Haible  <bruno@clisp.org>
30372
30373         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
30374         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
30375         definition with an external declaration.
30376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
30377         defined as a function. Remove AC_C_INLINE requirement.
30378         * modules/wcwidth (Files): Add lib/wcwidth.c.
30379         (Makefile.am): Remove redundant statement.
30380
30381 2007-07-07  Bruno Haible  <bruno@clisp.org>
30382
30383         * MODULES.html.sh (Unicode string functions): Add the new modules.
30384
30385         * tests/uniwidth/test-u32-strwidth.c: New file.
30386         * modules/uniwidth/u32-strwidth-tests: New file.
30387
30388         * lib/uniwidth/u32-strwidth.c: New file.
30389         * modules/uniwidth/u32-strwidth: New file.
30390
30391         * tests/uniwidth/test-u16-strwidth.c: New file.
30392         * modules/uniwidth/u16-strwidth-tests: New file.
30393
30394         * lib/uniwidth/u16-strwidth.c: New file.
30395         * modules/uniwidth/u16-strwidth: New file.
30396
30397         * tests/uniwidth/test-u8-strwidth.c: New file.
30398         * modules/uniwidth/u8-strwidth-tests: New file.
30399
30400         * lib/uniwidth/u8-strwidth.c: New file.
30401         * modules/uniwidth/u8-strwidth: New file.
30402
30403         * tests/uniwidth/test-u32-width.c: New file.
30404         * modules/uniwidth/u32-width-tests: New file.
30405
30406         * lib/uniwidth/u32-width.c: New file.
30407         * modules/uniwidth/u32-width: New file.
30408
30409         * tests/uniwidth/test-u16-width.c: New file.
30410         * modules/uniwidth/u16-width-tests: New file.
30411
30412         * lib/uniwidth/u16-width.c: New file.
30413         * modules/uniwidth/u16-width: New file.
30414
30415         * tests/uniwidth/test-u8-width.c: New file.
30416         * modules/uniwidth/u8-width-tests: New file.
30417
30418         * lib/uniwidth/u8-width.c: New file.
30419         * modules/uniwidth/u8-width: New file.
30420
30421         * tests/uniwidth/test-uc_width.c: New file.
30422         * modules/uniwidth/width-tests: New file.
30423
30424         * lib/uniwidth/width.c: New file, from GNU libiconv.
30425         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
30426         * modules/uniwidth/width: New file.
30427
30428         * lib/uniwidth.h: New file, from GNU libiconv.
30429         * modules/uniwidth/base: New file.
30430
30431 2007-07-07  Bruno Haible  <bruno@clisp.org>
30432
30433         * lib/uniname.h: New file, from GNU gettext.
30434         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
30435         * lib/uniname/uninames.h: New file, from GNU gettext.
30436         * lib/uniname/uniname.c: New file, from GNU gettext.
30437         * tests/uniname/test-uninames.sh: New file.
30438         * tests/uniname/test-uninames.c: New file, from GNU gettext.
30439         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
30440         * modules/uniname/base: New file.
30441         * modules/uniname/uniname: New file.
30442         * modules/uniname/uniname-tests: New file.
30443         * MODULES.html.sh (Unicode string functions): Add the new modules.
30444
30445 2007-07-06  Bruno Haible  <bruno@clisp.org>
30446
30447         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
30448
30449 2007-07-06  Bruno Haible  <bruno@clisp.org>
30450
30451         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
30452         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
30453         includes <cygwin/sys_time.h> which includes <sys/select.h> which
30454         include <sys/time.h>.
30455         Reported by Eric Blake.
30456
30457 2007-07-06  Eric Blake  <ebb9@byu.net>
30458
30459         Fix testing canonicalize on cygwin.
30460         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
30461         Revert patch from 2007-06-19.
30462         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
30463         canonicalize module is also in use.
30464         * tests/test-canonicalize.c: New file.
30465         * tests/test-canonicalize.sh: Likewise.
30466         * modules/canonicalize-tests: Likewise.
30467
30468 2007-07-06  Jim Meyering  <jim@meyering.net>
30469
30470         * lib/getugroups.c (getugroups): Detect getgrent failure.
30471         Adjust comment to reflect reality: this function may return -1.
30472
30473 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30474
30475         * build-aux/bootstrap (TP_URL,get_translations): Update to use
30476         the new TP address.
30477         (usage): Fix typo
30478         (gnulib_mk): New variable.
30479
30480 2007-07-05  Jim Meyering  <jim@meyering.net>
30481
30482         Don't let endgrent clobber errno, no matter how improbable.
30483         * lib/getugroups.c (getugroups): Save and restore errno around
30484         endgrent call.
30485
30486         Close the group DB even when failing with 2^31 or more members.
30487         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
30488
30489 2007-07-04  Jim Meyering  <jim@meyering.net>
30490
30491         * lib/getugroups.h: New file.
30492         * lib/getugroups.c: Include "getugroups.h".
30493         Remove uses of "register" keyword.
30494         Move local variable, "cp", down into scope where used.
30495         Give "username" parameter the "const" attribute.
30496         * modules/getugroups (Files): Add lib/getugroups.h
30497
30498 2007-07-04  Karl Berry  <karl@gnu.org>
30499
30500         * MODULES.html.sh (func_all_modules): Complete rename of
30501         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
30502
30503 2007-07-02  Bruno Haible  <bruno@clisp.org>
30504
30505         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
30506         mode, when inttypes.h comes from gnulib.
30507         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30508
30509 2007-07-02  Simon Josefsson  <simon@josefsson.org>
30510
30511         * NEWS: Mention lgpl module name change.
30512
30513         * modules/lgpl-2.1: Renamed from lgpl.
30514
30515         * NEWS: Mention gpl module name change.
30516
30517         * modules/gpl-3.0: New file, based on gpl-2.0.
30518
30519         * modules/gpl-2.0: Renamed from gpl.
30520
30521         * modules/gpl: Fix filename, doc/gpl.texi is now found at
30522         doc/gpl-2.0.texi.
30523
30524 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
30525
30526         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
30527         #define __STDC_LIMIT_MACROS temporarily while including
30528         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
30529         Problem reported by Joel E. Denny in
30530         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
30531
30532 2007-07-01  Bruno Haible  <bruno@clisp.org>
30533
30534         * lib/unistdio.h: New file.
30535         * lib/unistdio/u-asnprintf.h: New file.
30536         * lib/unistdio/u-asprintf.h: New file.
30537         * lib/unistdio/u-printf-args.c: New file.
30538         * lib/unistdio/u-printf-args.h: New file.
30539         * lib/unistdio/u-printf-parse.h: New file.
30540         * lib/unistdio/u-snprintf.h: New file.
30541         * lib/unistdio/u-sprintf.h: New file.
30542         * lib/unistdio/u-vasprintf.h: New file.
30543         * lib/unistdio/u-vsnprintf.h: New file.
30544         * lib/unistdio/u-vsprintf.h: New file.
30545         * lib/unistdio/ulc-asnprintf.c: New file.
30546         * lib/unistdio/ulc-asprintf.c: New file.
30547         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
30548         * lib/unistdio/ulc-printf-parse.c: New file.
30549         * lib/unistdio/ulc-snprintf.c: New file.
30550         * lib/unistdio/ulc-sprintf.c: New file.
30551         * lib/unistdio/ulc-vasnprintf.c: New file.
30552         * lib/unistdio/ulc-vasprintf.c: New file.
30553         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
30554         * lib/unistdio/ulc-vsnprintf.c: New file.
30555         * lib/unistdio/ulc-vsprintf.c: New file.
30556         * lib/unistdio/u8-asnprintf.c: New file.
30557         * lib/unistdio/u8-asprintf.c: New file.
30558         * lib/unistdio/u8-printf-parse.c: New file.
30559         * lib/unistdio/u8-snprintf.c: New file.
30560         * lib/unistdio/u8-sprintf.c: New file.
30561         * lib/unistdio/u8-vasnprintf.c: New file.
30562         * lib/unistdio/u8-vasprintf.c: New file.
30563         * lib/unistdio/u8-vsnprintf.c: New file.
30564         * lib/unistdio/u8-vsprintf.c: New file.
30565         * lib/unistdio/u8-u8-asnprintf.c: New file.
30566         * lib/unistdio/u8-u8-asprintf.c: New file.
30567         * lib/unistdio/u8-u8-snprintf.c: New file.
30568         * lib/unistdio/u8-u8-sprintf.c: New file.
30569         * lib/unistdio/u8-u8-vasnprintf.c: New file.
30570         * lib/unistdio/u8-u8-vasprintf.c: New file.
30571         * lib/unistdio/u8-u8-vsnprintf.c: New file.
30572         * lib/unistdio/u8-u8-vsprintf.c: New file.
30573         * lib/unistdio/u16-asnprintf.c: New file.
30574         * lib/unistdio/u16-asprintf.c: New file.
30575         * lib/unistdio/u16-printf-parse.c: New file.
30576         * lib/unistdio/u16-snprintf.c: New file.
30577         * lib/unistdio/u16-sprintf.c: New file.
30578         * lib/unistdio/u16-vasnprintf.c: New file.
30579         * lib/unistdio/u16-vasprintf.c: New file.
30580         * lib/unistdio/u16-vsnprintf.c: New file.
30581         * lib/unistdio/u16-vsprintf.c: New file.
30582         * lib/unistdio/u16-u16-asnprintf.c: New file.
30583         * lib/unistdio/u16-u16-asprintf.c: New file.
30584         * lib/unistdio/u16-u16-snprintf.c: New file.
30585         * lib/unistdio/u16-u16-sprintf.c: New file.
30586         * lib/unistdio/u16-u16-vasnprintf.c: New file.
30587         * lib/unistdio/u16-u16-vasprintf.c: New file.
30588         * lib/unistdio/u16-u16-vsnprintf.c: New file.
30589         * lib/unistdio/u16-u16-vsprintf.c: New file.
30590         * lib/unistdio/u32-asnprintf.c: New file.
30591         * lib/unistdio/u32-asprintf.c: New file.
30592         * lib/unistdio/u32-printf-parse.c: New file.
30593         * lib/unistdio/u32-snprintf.c: New file.
30594         * lib/unistdio/u32-sprintf.c: New file.
30595         * lib/unistdio/u32-vasnprintf.c: New file.
30596         * lib/unistdio/u32-vasprintf.c: New file.
30597         * lib/unistdio/u32-vsnprintf.c: New file.
30598         * lib/unistdio/u32-vsprintf.c: New file.
30599         * lib/unistdio/u32-u32-asnprintf.c: New file.
30600         * lib/unistdio/u32-u32-asprintf.c: New file.
30601         * lib/unistdio/u32-u32-snprintf.c: New file.
30602         * lib/unistdio/u32-u32-sprintf.c: New file.
30603         * lib/unistdio/u32-u32-vasnprintf.c: New file.
30604         * lib/unistdio/u32-u32-vasprintf.c: New file.
30605         * lib/unistdio/u32-u32-vsnprintf.c: New file.
30606         * lib/unistdio/u32-u32-vsprintf.c: New file.
30607         * tests/unistdio/test-ulc-asnprintf1.c: New file.
30608         * tests/unistdio/test-ulc-asnprintf1.h: New file.
30609         * tests/unistdio/test-ulc-printf1.h: New file.
30610         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
30611         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
30612         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
30613         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
30614         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
30615         * tests/unistdio/test-ulc-vasprintf1.c: New file.
30616         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
30617         * tests/unistdio/test-ulc-vsprintf1.c: New file.
30618         * tests/unistdio/test-u8-asnprintf1.c: New file.
30619         * tests/unistdio/test-u8-asnprintf1.h: New file.
30620         * tests/unistdio/test-u8-printf1.h: New file.
30621         * tests/unistdio/test-u8-vasnprintf1.c: New file.
30622         * tests/unistdio/test-u8-vasnprintf2.c: New file.
30623         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
30624         * tests/unistdio/test-u8-vasnprintf3.c: New file.
30625         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
30626         * tests/unistdio/test-u8-vasprintf1.c: New file.
30627         * tests/unistdio/test-u8-vsnprintf1.c: New file.
30628         * tests/unistdio/test-u8-vsprintf1.c: New file.
30629         * tests/unistdio/test-u16-asnprintf1.c: New file.
30630         * tests/unistdio/test-u16-asnprintf1.h: New file.
30631         * tests/unistdio/test-u16-printf1.h: New file.
30632         * tests/unistdio/test-u16-vasnprintf1.c: New file.
30633         * tests/unistdio/test-u16-vasnprintf2.c: New file.
30634         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
30635         * tests/unistdio/test-u16-vasnprintf3.c: New file.
30636         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
30637         * tests/unistdio/test-u16-vasprintf1.c: New file.
30638         * tests/unistdio/test-u16-vsnprintf1.c: New file.
30639         * tests/unistdio/test-u16-vsprintf1.c: New file.
30640         * tests/unistdio/test-u32-asnprintf1.c: New file.
30641         * tests/unistdio/test-u32-asnprintf1.h: New file.
30642         * tests/unistdio/test-u32-printf1.h: New file.
30643         * tests/unistdio/test-u32-vasnprintf1.c: New file.
30644         * tests/unistdio/test-u32-vasnprintf2.c: New file.
30645         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
30646         * tests/unistdio/test-u32-vasnprintf3.c: New file.
30647         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
30648         * tests/unistdio/test-u32-vasprintf1.c: New file.
30649         * tests/unistdio/test-u32-vsnprintf1.c: New file.
30650         * tests/unistdio/test-u32-vsprintf1.c: New file.
30651         * modules/unistdio/base: New file.
30652         * modules/unistdio/u-printf-args: New file.
30653         * modules/unistdio/ulc-asnprintf: New file.
30654         * modules/unistdio/ulc-asprintf: New file.
30655         * modules/unistdio/ulc-fprintf: New file.
30656         * modules/unistdio/ulc-printf-parse: New file.
30657         * modules/unistdio/ulc-snprintf: New file.
30658         * modules/unistdio/ulc-sprintf: New file.
30659         * modules/unistdio/ulc-vasnprintf: New file.
30660         * modules/unistdio/ulc-vasprintf: New file.
30661         * modules/unistdio/ulc-vfprintf: New file.
30662         * modules/unistdio/ulc-vsnprintf: New file.
30663         * modules/unistdio/ulc-vsprintf: New file.
30664         * modules/unistdio/u8-asnprintf: New file.
30665         * modules/unistdio/u8-asprintf: New file.
30666         * modules/unistdio/u8-printf-parse: New file.
30667         * modules/unistdio/u8-snprintf: New file.
30668         * modules/unistdio/u8-sprintf: New file.
30669         * modules/unistdio/u8-vasnprintf: New file.
30670         * modules/unistdio/u8-vasprintf: New file.
30671         * modules/unistdio/u8-vsnprintf: New file.
30672         * modules/unistdio/u8-vsprintf: New file.
30673         * modules/unistdio/u8-u8-asnprintf: New file.
30674         * modules/unistdio/u8-u8-asprintf: New file.
30675         * modules/unistdio/u8-u8-snprintf: New file.
30676         * modules/unistdio/u8-u8-sprintf: New file.
30677         * modules/unistdio/u8-u8-vasnprintf: New file.
30678         * modules/unistdio/u8-u8-vasprintf: New file.
30679         * modules/unistdio/u8-u8-vsnprintf: New file.
30680         * modules/unistdio/u8-u8-vsprintf: New file.
30681         * modules/unistdio/u16-asnprintf: New file.
30682         * modules/unistdio/u16-asprintf: New file.
30683         * modules/unistdio/u16-printf-parse: New file.
30684         * modules/unistdio/u16-snprintf: New file.
30685         * modules/unistdio/u16-sprintf: New file.
30686         * modules/unistdio/u16-vasnprintf: New file.
30687         * modules/unistdio/u16-vasprintf: New file.
30688         * modules/unistdio/u16-vsnprintf: New file.
30689         * modules/unistdio/u16-vsprintf: New file.
30690         * modules/unistdio/u16-u16-asnprintf: New file.
30691         * modules/unistdio/u16-u16-asprintf: New file.
30692         * modules/unistdio/u16-u16-snprintf: New file.
30693         * modules/unistdio/u16-u16-sprintf: New file.
30694         * modules/unistdio/u16-u16-vasnprintf: New file.
30695         * modules/unistdio/u16-u16-vasprintf: New file.
30696         * modules/unistdio/u16-u16-vsnprintf: New file.
30697         * modules/unistdio/u16-u16-vsprintf: New file.
30698         * modules/unistdio/u32-asnprintf: New file.
30699         * modules/unistdio/u32-asprintf: New file.
30700         * modules/unistdio/u32-printf-parse: New file.
30701         * modules/unistdio/u32-snprintf: New file.
30702         * modules/unistdio/u32-sprintf: New file.
30703         * modules/unistdio/u32-vasnprintf: New file.
30704         * modules/unistdio/u32-vasprintf: New file.
30705         * modules/unistdio/u32-vsnprintf: New file.
30706         * modules/unistdio/u32-vsprintf: New file.
30707         * modules/unistdio/u32-u32-asnprintf: New file.
30708         * modules/unistdio/u32-u32-asprintf: New file.
30709         * modules/unistdio/u32-u32-snprintf: New file.
30710         * modules/unistdio/u32-u32-sprintf: New file.
30711         * modules/unistdio/u32-u32-vasnprintf: New file.
30712         * modules/unistdio/u32-u32-vasprintf: New file.
30713         * modules/unistdio/u32-u32-vsnprintf: New file.
30714         * modules/unistdio/u32-u32-vsprintf: New file.
30715         * modules/unistdio/ulc-asnprintf-tests: New file.
30716         * modules/unistdio/ulc-vasnprintf-tests: New file.
30717         * modules/unistdio/ulc-vasprintf-tests: New file.
30718         * modules/unistdio/ulc-vsnprintf-tests: New file.
30719         * modules/unistdio/ulc-vsprintf-tests: New file.
30720         * modules/unistdio/u8-asnprintf-tests: New file.
30721         * modules/unistdio/u8-vasnprintf-tests: New file.
30722         * modules/unistdio/u8-vasprintf-tests: New file.
30723         * modules/unistdio/u8-vsnprintf-tests: New file.
30724         * modules/unistdio/u8-vsprintf-tests: New file.
30725         * modules/unistdio/u16-asnprintf-tests: New file.
30726         * modules/unistdio/u16-vasnprintf-tests: New file.
30727         * modules/unistdio/u16-vasprintf-tests: New file.
30728         * modules/unistdio/u16-vsnprintf-tests: New file.
30729         * modules/unistdio/u16-vsprintf-tests: New file.
30730         * modules/unistdio/u32-asnprintf-tests: New file.
30731         * modules/unistdio/u32-vasnprintf-tests: New file.
30732         * modules/unistdio/u32-vasprintf-tests: New file.
30733         * modules/unistdio/u32-vsnprintf-tests: New file.
30734         * modules/unistdio/u32-vsprintf-tests: New file.
30735         * MODULES.html.sh (Unicode string functions): Add the new modules.
30736
30737 2007-07-01  Bruno Haible  <bruno@clisp.org>
30738
30739         * lib/sprintf.c (sprintf): Limit the available length estimation,
30740         to avoid address wraparound.
30741         * lib/vsprintf.c (vsprintf): Likewise.
30742         * modules/sprintf-posix (Dependencies): Add stdint.
30743         * modules/vsprintf-posix (Dependencies): Likewise.
30744
30745 2007-07-01  Bruno Haible  <bruno@clisp.org>
30746
30747         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
30748         Windows PATH as well. Conservative double-quoting. Comments.
30749
30750 2007-07-01  Bruno Haible  <bruno@clisp.org>
30751             Eric Blake  <ebb9@byu.net>
30752             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30753
30754         * gnulib-tool (self_abspathname): Fix algorithm to cope with
30755         empty components in $PATH, denoting '.'.
30756
30757 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30758
30759         * gnulib-tool: Fix indentation.
30760         (func_create_megatestdir): Likewise.
30761         Report by Bruno Haible.
30762
30763 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30764
30765         Sync from Automake.
30766         * build-aux/gnupload: Fix shell portability issues with for loops.
30767         Report by Karl Berry.
30768
30769 2007-06-29  Simon Josefsson  <simon@josefsson.org>
30770
30771         * build-aux/maint.mk (POURL): Use translationproject.org.
30772
30773 2007-06-27  Simon Josefsson  <simon@josefsson.org>
30774             Bruno Haible  <bruno@clisp.org>
30775
30776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
30777         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
30778         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
30779         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
30780         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
30781
30782 2007-06-27  Bruno Haible  <bruno@clisp.org>
30783
30784         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
30785         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
30786
30787 2007-06-26  Karl Berry  <karl@gnu.org>
30788
30789         * MODULES.html.sh: remove xreadlink-with-size.
30790
30791 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30792
30793         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
30794         method that I hope also handles the double-include problem noted
30795         by Bruno Haible in
30796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
30797
30798 2007-06-23  Bruno Haible  <bruno@clisp.org>
30799
30800         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30801         Don't let the 'mostlyclean' target fail if the last subdirectory could
30802         not be removed.
30803         Reported by Karl Berry.
30804
30805 2007-06-23  Bruno Haible  <bruno@clisp.org>
30806
30807         * gnulib-tool (echo): Add a speedier workaround for ksh.
30808         * tests/test-echo.sh: Likewise.
30809
30810 2007-06-23  Bruno Haible  <bruno@clisp.org>
30811
30812         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
30813         * tests/test-echo.sh: Likewise.
30814
30815 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30816
30817         * gnulib-tool (IFS): Initialize early, so we don't set it to
30818         empty later.
30819         (self_abspathname): Rewrite algorithm to set it, reindent.
30820         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
30821         (func_create_megatestdir): Merge some sed scripts.
30822
30823 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30824
30825         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
30826         exposed by Sun Studio 11 cc on Solaris 8.
30827
30828 2007-06-22  Bruno Haible  <bruno@clisp.org>
30829
30830         * gnulib-tool (echo): Ensure the echo primitive does not interpret
30831         backslashes.
30832         * tests/test-echo.sh: New file.
30833
30834 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30835
30836         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
30837         simplify `sed_replace_build_aux' scripts, they are portable but
30838         echoing them with `echo' is not.
30839         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
30840
30841 2007-06-21  Karl Berry  <karl@gnu.org>
30842
30843         * config/srclist.txt: guess we can't handle the licenses via
30844         srclist at the moment.
30845
30846 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30847
30848         * MODULES.html.sh: Add include_next.
30849         * modules/include_next: New file.
30850
30851 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30852
30853         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
30854         INCLUDE_NEXT.
30855         (gl_CHECK_NEXT_HEADERS): New macro.
30856         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
30857         the obsolescent gl_ABSOLUTE_HEADER.
30858         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
30859         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
30860         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30861         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30862         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30863         * m4/math_h.m4 (gl_MATH_H): Likewise.
30864         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30865         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30866         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30867         * m4/stdint.m4 (gl_STDINT_H): Likewise.
30868         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30869         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30870         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30871         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30872         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30873         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30874         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30875         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30876         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
30877         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30878         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30879         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30880         * m4/inttypes.m4 (gl_INTTYPES_H): Define
30881         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
30882         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
30883         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
30884         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
30885         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
30886         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
30887         * lib/float_.h: Likewise.
30888         * lib/inttypes_.h: Likewise.
30889         * lib/math_.h: Likewise.
30890         * lib/search_.h: Likewise.
30891         * lib/signal_.h: Likewise.
30892         * lib/stdint_.h: Likewise.
30893         * lib/stdio_.h: Likewise.
30894         * lib/stdlib_.h: Likewise.
30895         * lib/string_.h: Likewise.
30896         * lib/sys_stat_.h: Likewise.
30897         * lib/sys_time_.h: Likewise.
30898         * lib/time_.h: Likewise.
30899         * lib/unistd_.h: Likewise.
30900         * lib/wchar_.h: Likewise.
30901         * lib/wctype_.h: Likewise.
30902         * lib/dirent_.h: Likewise.
30903         * lib/iconv_.h: Likewise.
30904         * lib/locale_.h: Likewise.
30905         * lib/netinet_in_.h: Likewise.
30906         * lib/sys_select_.h: Likewise.
30907         * lib/sys_socket_.h: Likewise.
30908         * lib/sysexits_.h: Likewise.
30909         * modules/fcntl (Depends-on): Depend on include_next, not
30910         absolute_header.
30911         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
30912         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
30913         * modules/fchdir: Likewise.
30914         * modules/float: Likewise.
30915         * modules/iconv_open: Likewise.
30916         * modules/inttypes: Likewise.
30917         * modules/locale: Likewise.
30918         * modules/math: Likewise.
30919         * modules/netinet_in: Likewise.
30920         * modules/search: Likewise.
30921         * modules/signal: Likewise.
30922         * modules/stdint: Likewise.
30923         * modules/stdio: Likewise.
30924         * modules/stdlib: Likewise.
30925         * modules/string: Likewise.
30926         * modules/sys_select: Likewise.
30927         * modules/sys_socket: Likewise.
30928         * modules/sys_stat: Likewise.
30929         * modules/sys_time: Likewise.
30930         * modules/sysexits: Likewise.
30931         * modules/time: Likewise.
30932         * modules/unistd: Likewise.
30933         * modules/wchar: Likewise.
30934         * modules/wctype: Likewise.
30935         * modules/sys_stat: Change maintainer to "all".
30936         * modules/unistd: Likewise.
30937
30938 2007-06-20  Karl Berry  <karl@gnu.org>
30939
30940         * config/srclist.txt: track www changes in license files.
30941
30942 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
30943
30944         * build-aux/bootstrap: Remove stray dot.
30945         Make sure build_aux settings are honored when linking
30946         gnulib_extra_files.
30947
30948 2007-06-19  Eric Blake  <ebb9@byu.net>
30949
30950         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
30951         Allow compilation on cygwin.
30952
30953 2007-06-19  Jim Meyering  <jim@meyering.net>
30954
30955         xreadlink-with-size: Remove module.  No longer used.
30956         Ex-callers now use xreadlink or mreadlink-with-size.
30957         * modules/xreadlink-with-size: Remove module.
30958         * lib/xreadlink-with-size.c: Remove file.
30959         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
30960         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
30961         just before the function definition *is* accurate.
30962
30963         Eliminate one way canonicalize_filename_mode could exit.
30964         * lib/canonicalize.c (canonicalize_filename_mode):
30965         Use mreadlink_with_size, not xreadlink_with_size.
30966
30967 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
30968
30969         Detect porting problems to FreeBSD/arm, which has time_t wider than
30970         long int.  Original problem reported for GNU diff by Xin Li in
30971         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
30972         * modules/getdate (Depends-on): Add intprops, verify.
30973         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
30974         is an integer type no wider than long int.
30975
30976 2007-06-18  Jim Meyering  <jim@meyering.net>
30977
30978         New module: mreadlink-with-size.
30979         * MODULES.html.sh: Add mreadlink-with-size.
30980         * modules/mreadlink-with-size: New module
30981         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
30982         not xreadlink-with-size.
30983         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
30984
30985 2007-06-16  Bruno Haible  <bruno@clisp.org>
30986
30987         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
30988         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
30989         Reported by Gary V. Vaughan <gary@gnu.org>.
30990
30991 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30992
30993         Revamp lchown so that it lives in unistd.h where it belongs.
30994         * lib/lchown.h: Remove.
30995         * lib/dirchownmod.c: Don't include lib/lchown.h.
30996         * lib/fchownat.c: Likewise.
30997         * lib/openat.c: Likewise.
30998         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
30999         does not follow symlinks.
31000         (EOPNOTSUPP): Define if not defined.
31001         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
31002         is defined to 0.
31003         (lchown): New decl.
31004         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
31005         Do not check for lchown decl.
31006         Set REPLACE_LCHOWN.
31007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
31008         REPLACE_LCHOWN.
31009         * modules/chown: Make it clear it follows symlinks.
31010         * modules/lchown: Make it clear it doesn't follow symlinks.
31011         (Files): Remove lib/lchown.h
31012         (Depends-on): Add unistd.
31013         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
31014         (Include): Include <unistd.h>, not "lchown.h".
31015         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
31016         REPLACE_LCHOWN.
31017
31018 2007-06-15  Jim Meyering  <jim@meyering.net>
31019
31020         Change license (GPL to LGPL) of fsusage and dependents.
31021         * modules/fsusage (License): Change to LGPL.
31022         * modules/full-read (License): Likewise.
31023         * modules/full-write (License): Likewise.
31024         * modules/safe-read (License): Likewise.
31025         * modules/safe-write (License): Likewise.
31026
31027 2007-06-14  Ben Pfaff  <blp@gnu.org>
31028
31029         Missing part of allocsa -> malloca transition.
31030         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
31031         gl_MALLOCA.
31032
31033 2007-06-12  Bruno Haible  <bruno@clisp.org>
31034
31035         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
31036         to ia64, x86_64, i386.
31037         Reported by Eric Blake.
31038
31039 2007-06-12  Bruno Haible  <bruno@clisp.org>
31040
31041         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
31042         cross-compiling to x86_64.
31043
31044 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
31045
31046         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
31047         glitch reported by Ralf Wildenhues in
31048         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
31049
31050         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
31051         Vin Shelton.
31052
31053 2007-06-11  Bruno Haible  <bruno@clisp.org>
31054
31055         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
31056         replacement string.
31057         Reported by Eric Blake.
31058
31059 2007-06-10  Bruno Haible  <bruno@clisp.org>
31060
31061         Prepare vasnprintf code for use with Unicode strings.
31062         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
31063         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
31064         TYPE_U32_STRING.
31065         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
31066         a_u32_string variants.
31067         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31068         * lib/printf-args.c: Don't include config.h and the specification
31069         header if PRINTF_FETCHARGS is already defined.
31070         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31071         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
31072         TYPE_U16_STRING, TYPE_U32_STRING.
31073         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
31074         u16_directive, u16_directives, u32_directive, u32_directives): New
31075         types.
31076         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
31077         New declarations.
31078         * lib/printf-parse.c: Don't include config.h and the specification
31079         header if PRINTF_PARSE is already defined. Eliminate the set of
31080         parameters for WIDE_CHAR_VERSION; the user of this file must provide
31081         them now. Include c-ctype.h.
31082         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
31083         directive and CHAR_T_ONLY_ASCII.
31084         * lib/vasnprintf.c: Don't include config.h and the specification header
31085         if VASNPRINTF is already defined.
31086         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
31087         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
31088         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
31089         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
31090         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
31091         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
31092         code accordingly.
31093         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
31094         pad_ourselves also in this case, with the 'c' and 's' directives, and
31095         with a different notion of "width".
31096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
31097
31098 2007-06-10  Bruno Haible  <bruno@clisp.org>
31099
31100         * modules/unistr/u32-mbsnlen: New file.
31101         * lib/unistr/u32-mbsnlen.c: New file.
31102
31103         * modules/unistr/u16-mbsnlen: New file.
31104         * lib/unistr/u16-mbsnlen.c: New file.
31105
31106         * modules/unistr/u8-mbsnlen: New file.
31107         * lib/unistr/u8-mbsnlen.c: New file.
31108
31109         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
31110         declarations.
31111
31112 2007-06-10  Bruno Haible  <bruno@clisp.org>
31113
31114         * lib/string_.h (mbsnlen): New declaration.
31115         * lib/mbsnlen.c: New file.
31116         * m4/mbsnlen.m4: New file.
31117         * modules/mbsnlen: New file.
31118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
31119         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
31120         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
31121
31122 2007-06-10  Bruno Haible  <bruno@clisp.org>
31123
31124         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
31125
31126 2007-06-10  Bruno Haible  <bruno@clisp.org>
31127
31128         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
31129         * lib/mbuiter.h: Likewise.
31130
31131 2007-06-10  Bruno Haible  <bruno@clisp.org>
31132
31133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
31134         declaration.
31135
31136 2007-06-10  Karl Berry  <karl@gnu.org>
31137
31138         * config/srclist.txt: remove gettext entries, Bruno prefers
31139         to update individually.
31140
31141 2007-06-10  Bruno Haible  <bruno@clisp.org>
31142
31143         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
31144         'maxlen'. Ensure only length + width bytes are allocated, not
31145         length + 1 + width.
31146
31147 2007-06-09  Bruno Haible  <bruno@clisp.org>
31148
31149         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
31150         (CHAR_T): Remove macro.
31151         (VASNPRINTF): Update.
31152
31153 2007-06-09  Bruno Haible  <bruno@clisp.org>
31154
31155         * MODULES.html.sh (Unicode string functions): Add the new modules.
31156
31157         * modules/uniconv/u32-conv-to-enc: New file.
31158         * lib/uniconv/u32-conv-to-enc.c: New file.
31159         * modules/uniconv/u32-conv-to-enc-tests: New file.
31160         * tests/uniconv/test-u32-conv-to-enc.c: New file.
31161
31162         * modules/uniconv/u16-conv-to-enc: New file.
31163         * lib/uniconv/u16-conv-to-enc.c: New file.
31164         * lib/uniconv/u-conv-to-enc.h: New file.
31165         * modules/uniconv/u16-conv-to-enc-tests: New file.
31166         * tests/uniconv/test-u16-conv-to-enc.c: New file.
31167
31168         * modules/uniconv/u8-conv-to-enc: New file.
31169         * lib/uniconv/u8-conv-to-enc.c: New file.
31170         * modules/uniconv/u8-conv-to-enc-tests: New file.
31171         * tests/uniconv/test-u8-conv-to-enc.c: New file.
31172
31173         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31174         u32_conv_to_encoding): New declarations.
31175
31176 2007-06-09  Bruno Haible  <bruno@clisp.org>
31177
31178         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
31179
31180 2007-06-09  Bruno Haible  <bruno@clisp.org>
31181
31182         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
31183         * modules/malloca: Renamed from modules/allocsa, updated.
31184         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
31185         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
31186         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
31187         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
31188         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
31189         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
31190         * modules/xmalloca: Renamed from modules/xallocsa, updated.
31191         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
31192         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
31193         * modules/c-strcasestr (Depends-on): Update.
31194         * lib/c-strcasestr.c: Update.
31195         * modules/c-strstr (Depends-on): Update.
31196         * lib/c-strstr.c: Update.
31197         * modules/canonicalize-lgpl (Depends-on): Update.
31198         * lib/canonicalize-lgpl.c: Update.
31199         * modules/clean-temp (Depends-on): Update.
31200         * lib/clean-temp.c: Update.
31201         * modules/csharpcomp (Depends-on): Update.
31202         * lib/csharpcomp.c: Update.
31203         * modules/csharpexec (Depends-on): Update.
31204         * lib/csharpexec.c: Update.
31205         * modules/javacomp (Depends-on): Update.
31206         * lib/javacomp.c: Update.
31207         * modules/javaexec (Depends-on): Update.
31208         * lib/javaexec.c: Update.
31209         * modules/mbscasestr (Depends-on): Update.
31210         * lib/mbscasestr.c: Update.
31211         * modules/mbsstr (Depends-on): Update.
31212         * lib/mbsstr.c: Update.
31213         * modules/setenv (Depends-on): Update.
31214         * lib/setenv.c: Update.
31215         * modules/strcasestr (Depends-on): Update.
31216         * lib/strcasestr.c: Update.
31217         * modules/striconveha (Depends-on): Update.
31218         * lib/striconveha.c: Update.
31219         * modules/relocatable-prog-wrapper (Files): Update.
31220         * lib/relocwrapper.c: Update.
31221         * build-aux/install-reloc: Update.
31222         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
31223
31224 2007-06-08  Bruno Haible  <bruno@clisp.org>
31225
31226         Port to uClibc.
31227         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
31228         * lib/fpurge.c (fpurge): Likewise.
31229         * lib/freading.c (freading): Likewise.
31230         * lib/fseeko.c (rpl_fseeko): Likewise.
31231         * lib/fseterr.c (fseterr): Likewise.
31232         * lib/fwriting.c (fwriting): Likewise.
31233         * tests/test-fflush.c (main): Avoid a failure on uClibc.
31234
31235 2007-06-08  Bruno Haible  <bruno@clisp.org>
31236
31237         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
31238         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
31239         * modules/gettext (Files): Add m4/intlmacosx.m4.
31240
31241 2007-06-07  Bruno Haible  <bruno@clisp.org>
31242
31243         * modules/localename-tests: New file.
31244         * tests/test-localename.c: New file.
31245
31246         New module 'localename'.
31247         * lib/localename.h: New file.
31248         * lib/localename.c: New file, from GNU gettext.
31249         * m4/localename.m4: New file.
31250         * modules/localename: New file.
31251
31252 2007-06-07  Bruno Haible  <bruno@clisp.org>
31253
31254         Work around the lack of <wchar.h> on some builds of uClibc.
31255         * doc/headers/wchar.texi: Update.
31256         * lib/wchar_.h: Include <wchar.h> only if it exists.
31257         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
31258         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
31259         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
31260         doesn't exist.
31261         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
31262         * modules/mbfile (Depends-on): Add wchar.
31263         * modules/mbiter (Depends-on): Likewise.
31264         * modules/mbuiter (Depends-on): Likewise.
31265         Reported by Simon Josefsson.
31266
31267 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
31268
31269         Work around problem reported by Steven M. Schweda in
31270         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
31271         Tru64 5.1B with the Compaq compiler environment installed declares
31272         an 'isblank' function but does not define it in the C library.
31273         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
31274         * lib/regex_internal.h (isblank): Likewise.
31275         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
31276         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31277
31278 2007-06-05  Bruno Haible  <bruno@clisp.org>
31279
31280         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
31281         ia64.
31282         * modules/printf-safe: New file.
31283         * modules/fprintf-posix (Depends-on): Add printf-safe.
31284         * modules/printf-posix (Depends-on): Likewise.
31285         * modules/snprintf-posix (Depends-on): Likewise.
31286         * modules/sprintf-posix (Depends-on): Likewise.
31287         * modules/vasnprintf-posix (Depends-on): Likewise.
31288         * modules/vasprintf-posix (Depends-on): Likewise.
31289         * modules/vfprintf-posix (Depends-on): Likewise.
31290         * modules/vprintf-posix (Depends-on): Likewise.
31291         * modules/vsnprintf-posix (Depends-on): Likewise.
31292         * modules/vsprintf-posix (Depends-on): Likewise.
31293         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
31294         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
31295         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
31296         "no" on i386, x86_64, ia64.
31297         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
31298         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31299         on i386, x86_64, ia64.
31300         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
31301         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31302         on i386, x86_64, ia64.
31303         * tests/test-vasnprintf-posix.c: Include float.h.
31304         (LDBL80_WORDS): New macro.
31305         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31306         on i386, x86_64, ia64.
31307         * tests/test-vasprintf-posix.c: Include float.h.
31308         (LDBL80_WORDS): New macro.
31309         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31310         on i386, x86_64, ia64.
31311         * tests/test-snprintf-posix.c: Include float.h.
31312         * tests/test-sprintf-posix.c: Likewise.
31313         * tests/test-vsnprintf-posix.c: Likewise.
31314         * tests/test-vsprintf-posix.c: Likewise.
31315
31316 2007-06-05  Bruno Haible  <bruno@clisp.org>
31317
31318         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
31319         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
31320         non-IEEE numbers on i386, x86_64, ia64.
31321         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
31322         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
31323         * tests/test-isnanl.h: Include float.h.
31324         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
31325
31326 2007-06-05  Bruno Haible  <bruno@clisp.org>
31327
31328         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
31329         also the %a / %A. Handle the %a / %A code before this extra handling.
31330
31331 2007-06-05  Bruno Haible  <bruno@clisp.org>
31332
31333         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
31334         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
31335
31336 2007-06-05  Bruno Haible  <bruno@clisp.org>
31337
31338         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
31339         typo in variable name.
31340
31341 2007-06-05  Eric Blake  <ebb9@byu.net>
31342
31343         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
31344         Reported by Simon Josefsson.
31345
31346 2007-06-04  Bruno Haible  <bruno@clisp.org>
31347
31348         Avoid test failures on some PowerPC platforms.
31349         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
31350         Define differently for PowerPC.
31351         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
31352         Reported by Gary V. Vaughan <gary@gnu.org>.
31353
31354 2007-06-02  Bruno Haible  <bruno@clisp.org>
31355
31356         Fix test-stdint failure on FreeBSD/ia64.
31357         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
31358         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
31359         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
31360         * doc/headers/stdint.texi: Update.
31361
31362 2007-06-01  Bruno Haible  <bruno@clisp.org>
31363
31364         * tests/test-binary-io.c (main): Pass a third argument to open().
31365         Reported by Gary V. Vaughan <gary@gnu.org>.
31366
31367 2007-06-01  Bruno Haible  <bruno@clisp.org>
31368
31369         * doc/functions/frexpl.texi: Update for mingw.
31370
31371 2007-06-01  Bruno Haible  <bruno@clisp.org>
31372
31373         * tests/test-lseek.c (main): Disable test of errno for invalid third
31374         argument.
31375         * doc/functions/lseek.texi: Update.
31376         Reported by Gary V. Vaughan <gary@gnu.org>.
31377
31378 2007-05-28  Bruno Haible  <bruno@clisp.org>
31379
31380         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
31381
31382 2007-05-31  Eric Blake  <ebb9@byu.net>
31383
31384         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
31385         cross compiling.
31386
31387 2007-05-30  Eric Blake  <ebb9@byu.net>
31388         and Bruno Haible  <bruno@clisp.org>
31389
31390         Work around mingw test failures exposed by m4-1.4.9b.
31391         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
31392         * tests/test-unistd.c: Disable uid_t and git_t tests for the
31393         moment.
31394
31395 2007-05-30  Bruno Haible  <bruno@clisp.org>
31396
31397         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
31398         assuming that they are closed. Needed on HP-UX 11.
31399
31400 2007-05-29  Bruno Haible  <bruno@clisp.org>
31401
31402         Fix a problem with #include_next.
31403         * lib/dirent_.h: Split the double-inclusion guard.
31404         * lib/fcntl_.h: Likewise.
31405         * lib/float_.h: Likewise.
31406         * lib/iconv_.h: Likewise.
31407         * lib/inttypes_.h: Likewise.
31408         * lib/locale_.h: Likewise.
31409         * lib/math_.h: Likewise.
31410         * lib/netinet_in_.h: Likewise.
31411         * lib/search_.h: Likewise.
31412         * lib/signal_.h: Likewise.
31413         * lib/stdint_.h: Likewise.
31414         * lib/stdio_.h: Likewise.
31415         * lib/stdlib_.h: Likewise.
31416         * lib/string_.h: Likewise.
31417         * lib/sys_select_.h: Likewise.
31418         * lib/sys_socket_.h: Likewise.
31419         * lib/sys_stat_.h: Likewise.
31420         * lib/sys_time_.h: Likewise.
31421         * lib/sysexits_.h: Likewise.
31422         * lib/time_.h: Likewise.
31423         * lib/unistd_.h: Likewise.
31424         * lib/wchar_.h: Likewise.
31425         * lib/wctype_.h: Likewise.
31426
31427 2007-05-29  Bruno Haible  <bruno@clisp.org>
31428
31429         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
31430         for the moment.
31431
31432 2007-05-29  Bruno Haible  <bruno@clisp.org>
31433
31434         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
31435         invocation.
31436         Reported by Eric Blake.
31437
31438 2007-05-29  Bruno Haible  <bruno@clisp.org>
31439
31440         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
31441         compiling case.
31442
31443 2007-05-29  Eric Blake  <ebb9@byu.net>
31444             Bruno Haible  <bruno@clisp.org>
31445
31446         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
31447         cross compiles.
31448
31449 2007-05-28  Eric Blake  <ebb9@byu.net>
31450
31451         * modules/closein-tests (test_closein_LDADD): Support test on
31452         cygwin with libtool.
31453
31454 2007-05-28  Bruno Haible  <bruno@clisp.org>
31455
31456         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
31457         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31458         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31459         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31460         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31461         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31462         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31463         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31464         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31465
31466 2007-05-28  Eric Blake  <ebb9@byu.net>
31467
31468         Unconditionally include <config.h> in unit tests.
31469         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
31470         * tests/test-allocsa.c, tests/test-arcfour.c,
31471         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
31472         tests/test-array_list.c, tests/test-array_oset.c,
31473         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
31474         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
31475         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
31476         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
31477         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
31478         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
31479         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
31480         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
31481         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
31482         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
31483         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
31484         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
31485         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
31486         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
31487         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
31488         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
31489         test-md5.c, test-memmem.c, test-printf-posix.c,
31490         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
31491         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
31492         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
31493         test-strcasestr.c, test-striconv.c, test-striconveh.c,
31494         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
31495         test-vasnprintf-posix2.c, test-vasnprintf.c,
31496         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
31497         test-vfprintf-posix.c, test-vprintf-posix.c,
31498         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
31499         test-xvasprintf.c: Likewise.
31500
31501 2007-05-28  Bruno Haible  <bruno@clisp.org>
31502
31503         * gnulib-tool (func_import): Remember the --with-tests command-line
31504         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
31505         Reported by Eric Blake.
31506
31507 2007-05-28  Bruno Haible  <bruno@clisp.org>
31508
31509         * modules/ftell-tests: New file.
31510         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
31511         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
31512
31513         * lib/ftell.c: New file.
31514         * modules/ftell: New file.
31515         * m4/ftell.m4: New file.
31516         * doc/functions/ftell.texi: Update.
31517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
31518         REPLACE_FTELL.
31519         * lib/stdio_.h (rpl_ftell): New declaration.
31520         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
31521         REPLACE_FTELL.
31522
31523 2007-05-28  Eric Blake  <ebb9@byu.net>
31524
31525         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
31526
31527 2007-05-28  Bruno Haible  <bruno@clisp.org>
31528
31529         * modules/fseek-tests: New file.
31530         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
31531         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
31532
31533         * lib/fseek.c: New file.
31534         * modules/fseek: New file.
31535         * m4/fseek.m4: New file.
31536         * doc/functions/fseek.texi: Update.
31537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
31538         REPLACE_FSEEK.
31539         * lib/stdio_.h (rpl_fseek): New declaration.
31540         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
31541         REPLACE_FSEEK.
31542
31543 2007-05-28  Bruno Haible  <bruno@clisp.org>
31544
31545         * lib/stdio_.h (fflush): More comments.
31546
31547 2007-05-28  Bruno Haible  <bruno@clisp.org>
31548
31549         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
31550         runtime test.
31551
31552 2007-05-28  Eric Blake  <ebb9@byu.net>
31553
31554         Improve lseek module.
31555         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
31556         * lib/unistd_.h (lseek): Scale back link warning message.
31557         * tests/test-lseek.c: Beef up test.
31558         * tests/test-lseek.sh: Exercise more facets of lseek.
31559         Reported by Bruno Haible.
31560
31561 2007-05-28  Bruno Haible  <bruno@clisp.org>
31562
31563         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
31564         to define.
31565
31566 2007-05-27  Bruno Haible  <bruno@clisp.org>
31567
31568         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
31569
31570 2007-05-27  Bruno Haible  <bruno@clisp.org>
31571
31572         * modules/openmp: New file.
31573         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
31574         Noah Misch.
31575
31576 2007-05-26  Bruno Haible  <bruno@clisp.org>
31577
31578         * modules/chdir-long (Depends-on): Add fchdir.
31579         * modules/chdir-safer (Depends-on): Likewise.
31580         * modules/fts (Depends-on): Likewise.
31581         * modules/fts-lgpl (Depends-on): Likewise.
31582         * modules/openat (Depends-on): Likewise.
31583         * modules/savewd (Depends-on): Likewise.
31584
31585 2007-05-24  Eric Blake  <ebb9@byu.net>
31586
31587         Fix lseek on mingw.
31588         * modules/lseek: New module.
31589         * m4/lseek.m4: New file.
31590         * lib/lseek.c: New file.
31591         * modules/lseek-tests: New file.
31592         * tests/test-lseek.c: New file.
31593         * tests/test-lseek.sh: New file.
31594         * MODULES.html.sh: Document lseek module.
31595         * modules/fflush (Depends-on): Add lseek, fseeko.
31596         * modules/fseeko (Depends-on): Likewise.
31597         * modules/ftello (Depends-on): Likewise.
31598         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
31599         broken.
31600         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
31601         broken.
31602         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
31603         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
31604         * lib/ftello.c (rpl_ftello): Likewise.
31605         * tests/test-fseeko.c (main): Test this.
31606         * tests/test-fseeko.sh: Likewise.
31607         * tests/test-ftello.c (main): Likewise.
31608         * tests/test-ftello.sh: Likewise.
31609         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
31610         implies replacing fseek.
31611         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
31612         HAVE_FTELLO.
31613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
31614         * modules/unistd (Makefile.am): Likewise.
31615         * lib/unistd_.h (lseek): Declare a replacement.
31616         * doc/functions/lseek.texi (lseek): Document this fix.
31617         * doc/functions/fseek.texi (fseek): Likewise.
31618         * doc/functions/ftell.texi (ftell): Likewise.
31619
31620 2007-05-24  Bruno Haible  <bruno@clisp.org>
31621
31622         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
31623         in the printed representation of a NaN.
31624         * tests/test-vasprintf-posix.c (test_function): Likewise.
31625         * tests/test-snprintf-posix.h (test_function): Likewise.
31626         * tests/test-sprintf-posix.h (test_function): Likewise.
31627         Reported by Eric Blake.
31628
31629 2007-05-23  Eric Blake  <ebb9@byu.net>
31630
31631         Fix fseeko/ftello on cygwin 1.5.24.
31632         * doc/functions/fseeko.texi (fseeko): Document the fix.
31633         * doc/functions/ftello.texi (ftello): Document the fix.
31634         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
31635         * doc/functions/stdout.text (stdout): New file.
31636         * doc/functions/stderr.text (stderr): New file.
31637         * doc/gnulib.texi (Function Substitutes): Use new files.
31638         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
31639         prior to 1.7.0.
31640         * tests/test-ftello.c (main): Likewise for ftello.
31641         * tests/test-fseeko.sh: New file.
31642         * tests/test-ftello.sh: New file.
31643         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
31644         with seekable stdin.
31645         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
31646         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
31647         (gl_REPLACE_FSEEKO): New macro.
31648         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
31649         * modules/fseeko (Files): Distribute fseeko.c.
31650         * modules/ftello (Files): Distribute ftello.c.
31651         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
31652         mode.
31653         * lib/ftello.c (rpl_ftello): New file.
31654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
31655         fseeko, ftello.
31656         (gl_STDIN_LARGE_OFFSET): New macro.
31657         * modules/stdio (Makefile.am): Perform the replacement.
31658         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
31659
31660 2007-05-23  Bruno Haible  <bruno@clisp.org>
31661
31662         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
31663         GNULIB_POSIXCHECK is defined.
31664
31665 2007-05-21  Bruno Haible  <bruno@clisp.org>
31666
31667         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
31668         Check also the output for NaN arguments. When cross-compiling, guess
31669         no on IRIX.
31670         * lib/vasnprintf.c: Update comments.
31671         * tests/test-vasnprintf-posix.c (strisnan): New function.
31672         (test_function): Use it.
31673         * tests/test-vasprintf-posix.c (strisnan): New function.
31674         (test_function): Use it.
31675         * tests/test-snprintf-posix.h (strisnan): New function.
31676         (test_function): Use it.
31677         * tests/test-sprintf-posix.h (strisnan): New function.
31678         (test_function): Use it.
31679         Reported by Eric Blake.
31680
31681 2007-05-20  Bruno Haible  <bruno@clisp.org>
31682
31683         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
31684         numbers that fails on BeOS.
31685         * doc/functions/frexpl.texi: Update.
31686
31687 2007-05-20  Jim Meyering  <jim@meyering.net>
31688
31689         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
31690         forced upon us by glibc-2.6.
31691
31692 2007-05-20  Bruno Haible  <bruno@clisp.org>
31693
31694         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
31695         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
31696         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
31697         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
31698         NEED_PRINTF_INFINITE.
31699         (is_infinitel): New function.
31700         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
31701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
31702         gl_PREREQ_VASNPRINTF_INFINITE.
31703         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
31704         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31705         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
31706         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
31707         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
31708         gl_PREREQ_VASNPRINTF_INFINITE.
31709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31710         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31711         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31712         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31713         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31715         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31716         * doc/functions/fprintf.texi: Update.
31717         * doc/functions/printf.texi: Update.
31718         * doc/functions/snprintf.texi: Update.
31719         * doc/functions/sprintf.texi: Update.
31720         * doc/functions/vfprintf.texi: Update.
31721         * doc/functions/vprintf.texi: Update.
31722         * doc/functions/vsnprintf.texi: Update.
31723         * doc/functions/vsprintf.texi: Update.
31724
31725 2007-05-20  Bruno Haible  <bruno@clisp.org>
31726
31727         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
31728         was not found in libc.
31729         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31730
31731 2007-05-20  Bruno Haible  <bruno@clisp.org>
31732
31733         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
31734         printed as "-nan" instead of "nan".
31735         * tests/test-vasprintf-posix.c (test_function): Likewise.
31736         * tests/test-snprintf-posix.h (test_function): Likewise.
31737         * tests/test-sprintf-posix.h (test_function): Likewise.
31738         Needed for HP-UX 11.
31739
31740 2007-05-20  Jim Meyering  <jim@meyering.net>
31741
31742         Fix buggy test for the fchownat-deref bug.
31743         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
31744         symlink required for the run-test.  Without it, this test would
31745         always declare that fchownat doesn't work, and client code would
31746         unnecessarily use the replacement function with fixed libc.
31747         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
31748         Reported by Greg Schafer.
31749
31750 2007-05-19  Bruno Haible  <bruno@clisp.org>
31751
31752         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
31753         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
31754         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
31755         Needed for IRIX 6.5 and Solaris 2.5.1.
31756
31757 2007-05-19  Bruno Haible  <bruno@clisp.org>
31758
31759         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
31760         (test_function): Skip tests involving -0.0 on platforms where
31761         -0.0 = 0.0.
31762         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
31763         (test_function): Skip tests involving -0.0 on platforms where
31764         -0.0 = 0.0.
31765         * tests/test-snprintf-posix.h (have_minus_zero): New function.
31766         (test_function): Skip tests involving -0.0 on platforms where
31767         -0.0 = 0.0.
31768         * tests/test-sprintf-posix.h (have_minus_zero): New function.
31769         (test_function): Skip tests involving -0.0 on platforms where
31770         -0.0 = 0.0.
31771         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
31772         tests.
31773         * tests/test-printf-posix.h (test_function): Likewise.
31774         * tests/test-printf-posix.output: Remove all -0.0 related results.
31775         Needed for IRIX 6.5.
31776
31777 2007-05-19  Bruno Haible  <bruno@clisp.org>
31778
31779         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
31780         printed as "nan0x7fffffff" instead of "nan".
31781         * tests/test-vasprintf-posix.c (test_function): Likewise.
31782         * tests/test-snprintf-posix.h (test_function): Likewise.
31783         * tests/test-sprintf-posix.h (test_function): Likewise.
31784         * tests/test-fprintf-posix.h (NaN): Remove macro.
31785         (test_function): Remove all NaN related tests.
31786         * tests/test-printf-posix.h (NaN): Remove macro.
31787         (test_function): Remove all NaN related tests.
31788         * tests/test-printf-posix.output: Remove all NaN related results.
31789         Needed for IRIX 6.5.
31790
31791 2007-05-19  Bruno Haible  <bruno@clisp.org>
31792
31793         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
31794         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31795
31796 2007-05-19  Bruno Haible  <bruno@clisp.org>
31797
31798         * lib/float_.h: New file.
31799         * m4/float_h.m4: New file.
31800         * modules/float: New file.
31801         * modules/isnanl (Dependencies): Add float.
31802         * modules/isnanl-nolibm (Dependencies): Likewise.
31803         * modules/mathl (Dependencies): Likewise.
31804         * modules/printf-frexpl (Dependencies): Likewise.
31805         * modules/signbit (Dependencies): Likewise.
31806         * modules/vasnprintf (Dependencies): Likewise.
31807         * doc/headers/float.texi: Update.
31808
31809 2007-05-19  Jim Meyering  <jim@meyering.net>
31810
31811         * lib/utimens.c (gl_futimens): Rename from futimens,
31812         now that glibc-2.6 declares futimens.
31813         * lib/utimens.h: Likewise.
31814
31815 2007-05-19  Bruno Haible  <bruno@clisp.org>
31816
31817         Avoid test failures on mingw.
31818         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
31819         * tests/test-printf-posix.sh: Likewise.
31820         * tests/test-vfprintf-posix.sh: Likewise.
31821         * tests/test-vprintf-posix.sh: Likewise.
31822
31823 2007-05-19  Bruno Haible  <bruno@clisp.org>
31824
31825         Fix *printf result for NaN, Inf, -0.0 on mingw.
31826         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
31827         * lib/vasnprintf.c: Include math.h and isnan.h.
31828         (is_infinite_or_zero): New function.
31829         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
31830         values in the %f, %F, %e, %E, %g, %G directives.
31831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
31832         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31833         gl_PRINTF_INFINITE and test its result. Invoke
31834         gl_PREREQ_VASNPRINTF_INFINITE.
31835         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31836         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31837         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31838         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31839         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31840         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31841         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31842         * doc/functions/fprintf.texi: Update.
31843         * doc/functions/printf.texi: Update.
31844         * doc/functions/snprintf.texi: Update.
31845         * doc/functions/sprintf.texi: Update.
31846         * doc/functions/vfprintf.texi: Update.
31847         * doc/functions/vprintf.texi: Update.
31848         * doc/functions/vsnprintf.texi: Update.
31849         * doc/functions/vsprintf.texi: Update.
31850
31851 2007-05-19  Bruno Haible  <bruno@clisp.org>
31852
31853         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
31854         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
31855         Instead of multiplying with 10^k, set extra_zeroes to k.
31856         (scale10_round_long_double): Remove function.
31857
31858 2007-05-18  Bruno Haible  <bruno@clisp.org>
31859
31860         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
31861         introduced on 2007-05-06.
31862
31863 2007-05-18  Bruno Haible  <bruno@clisp.org>
31864
31865         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
31866         %g directives.
31867         * tests/test-vasprintf-posix.c (test_function): Likewise.
31868         * tests/test-snprintf-posix.h (test_function): Likewise.
31869         * tests/test-sprintf-posix.h (test_function): Likewise.
31870
31871 2007-05-18  Bruno Haible  <bruno@clisp.org>
31872
31873         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
31874         (strmatch): New function.
31875         (test_function): Test the %f directive on numbers of various exponents.
31876         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
31877         (strmatch): New function.
31878         (test_function): Test the %f directive on numbers of various exponents.
31879         * tests/test-snprintf-posix.h (strmatch): New function.
31880         (test_function): Test the %f directive on numbers of various exponents.
31881         * tests/test-sprintf-posix.h (strmatch): New function.
31882         (test_function): Test the %f directive on numbers of various exponents.
31883         * tests/test-snprintf-posix.c (SIZEOF): New macro.
31884         * tests/test-sprintf-posix.c (SIZEOF): New macro.
31885         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
31886         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
31887
31888 2007-05-18  Bruno Haible  <bruno@clisp.org>
31889
31890         Add support for 'long double' number output.
31891         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
31892         * lib/vasnprintf.c: Include math.h and float+.h.
31893         (mp_limb_t): New type.
31894         (GMP_LIMB_BITS): New macro.
31895         (mp_twolimb_t): New type.
31896         (GMP_TWOLIMB_BITS): New macro.
31897         (mpn_t): New type.
31898         (multiply, divide, convert_to_decimal, decode_long_double,
31899         scale10_round_long_double, scale10_round_decimal_long_double,
31900         floorlog10l): New functions.
31901         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
31902         for the %f, %F, %e, %E, %g, %G directives.
31903         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
31904         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31905         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
31906         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
31907         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31908         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31911         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31914         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
31915         * modules/snprintf-posix (Depends-on): Likewise.
31916         * modules/sprintf-posix (Depends-on): Likewise.
31917         * modules/vasnprintf-posix (Depends-on): Likewise.
31918         * modules/vasprintf-posix (Depends-on): Likewise.
31919         * modules/vfprintf-posix (Depends-on): Likewise.
31920         * modules/vsnprintf-posix (Depends-on): Likewise.
31921         * modules/vsprintf-posix (Depends-on): Likewise.
31922         * modules/vasnprintf (Files): Add lib/float+.h.
31923         * doc/functions/fprintf.texi: Update.
31924         * doc/functions/printf.texi: Update.
31925         * doc/functions/snprintf.texi: Update.
31926         * doc/functions/sprintf.texi: Update.
31927         * doc/functions/vfprintf.texi: Update.
31928         * doc/functions/vprintf.texi: Update.
31929         * doc/functions/vsnprintf.texi: Update.
31930         * doc/functions/vsprintf.texi: Update.
31931
31932 2007-05-18  Bruno Haible  <bruno@clisp.org>
31933
31934         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
31935
31936 2007-05-18  Bruno Haible  <bruno@clisp.org>
31937
31938         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
31939         for printing 64-bit integers. Needed for mingw.
31940
31941 2007-05-18  Bruno Haible  <bruno@clisp.org>
31942
31943         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
31944         gl_FUNC_FREXPL_WORKS.
31945         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
31946
31947 2007-05-18  Bruno Haible  <bruno@clisp.org>
31948
31949         * modules/frexpl-nolibm-tests: New file.
31950
31951         * modules/frexpl-nolibm: New file.
31952         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
31953
31954 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31955
31956         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
31957         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
31958         GCC 4.2, which otherwise issues a lot of warnings.
31959         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
31960         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
31961         Likewise.
31962         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
31963         * modules/iconv_open (iconv.h): Likewise.
31964         * modules/locale (locale.h): Likewise.
31965         * modules/netinet_in (netinet/in.h): Likewise.
31966         * modules/sys_select (sys_select.h): Likewise.
31967         * modules/sys_socket (sys/socket.h): Likewise.
31968         * modules/sys_stat (sys/stat.h): Likewise.
31969         * modules/sysexits (sysexits.h): Likewise.
31970         * modules/unistd (unistd.h): Likewise.
31971
31972 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31973
31974         * modules/closein-tests (Makefile.am): Distribute
31975         `test-closein.sh'.
31976
31977 2007-05-17  Bruno Haible  <bruno@clisp.org>
31978
31979         * tests/test-printf-posix.output: Renamed from
31980         tests/test-fprintf-posix.out.
31981         * modules/fprintf-posix-tests: Update.
31982         * modules/printf-posix-tests: Update.
31983         * modules/vfprintf-posix-tests: Update.
31984         * modules/vprintf-posix-tests: Update.
31985         * tests/test-fprintf-posix.sh: Update.
31986         * tests/test-printf-posix.sh: Update.
31987         * tests/test-vfprintf-posix.sh: Update.
31988         * tests/test-vprintf-posix.sh: Update.
31989         Reported by Ralf Wildenhues.
31990
31991 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31992
31993         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
31994         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
31995         GCC 4.2, which otherwise issues a lot of warnings.
31996         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
31997         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
31998         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
31999         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
32000         it should no longer be needed.
32001         * lib/string_.h: Likewise.
32002         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
32003         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
32004         * modules/inttypes (inttypes.h): Likewise.
32005         * modules/math (math.h): Likewise.
32006         * modules/search (search.h): Likewise.
32007         * modules/signal (signal.h): Likewise.
32008         * modules/stdint (stdint.h): Likewise.
32009         * modules/stdio (stdio.h): Likewise.
32010         * modules/stdlib (stdlib.h): Likewise.
32011         * modules/string (string.h): Likewise.
32012         * modules/sys_time (sys/time.h): Likewise.
32013         * modules/time (time.h): Likewise.
32014         * modules/wchar (wchar.h): Likewise.
32015         * modules/wctype (wtype.h): Likewise.
32016
32017 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32018
32019         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
32020
32021 2007-05-13  Bruno Haible  <bruno@clisp.org>
32022
32023         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
32024         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32025         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
32026         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32027         (gl_PREREQ_STRTOK_R): Don't require it here.
32028
32029 2007-05-13  Bruno Haible  <bruno@clisp.org>
32030
32031         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
32032         when used in C++ mode.
32033
32034 2007-05-12  Bruno Haible  <bruno@clisp.org>
32035
32036         * lib/linebuffer.h: Tweak doc.
32037         * lib/linebuffer.c: Likewise.
32038
32039 2007-05-12  James Youngman  <jay@gnu.org>
32040
32041         * lib/linebuffer.c (readlinebuffer_delim): New function,
32042         like readlinebuffer, but use a caller-specified delimiter.
32043         (readlinebuffer): Just call readlinebuffer_delim with '\n'
32044         as the delimiter.
32045         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
32046
32047 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32048
32049         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
32050         * modules/openat (Files): Remove openat-die.c.
32051         (Depends-on): Add openat-die.
32052         * modules/openat-die: New module.
32053
32054 2007-05-06  Bruno Haible  <bruno@clisp.org>
32055
32056         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
32057         Update with info about Cygwin.
32058         * doc/functions/fprintf.texi: Update.
32059         * doc/functions/printf.texi: Update.
32060         * doc/functions/snprintf.texi: Update.
32061         * doc/functions/sprintf.texi: Update.
32062         * doc/functions/vfprintf.texi: Update.
32063         * doc/functions/vprintf.texi: Update.
32064         * doc/functions/vsnprintf.texi: Update.
32065         * doc/functions/vsprintf.texi: Update.
32066         Reported by Eric Blake.
32067
32068 2007-05-06  Bruno Haible  <bruno@clisp.org>
32069
32070         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
32071         padding ourselves for the floating-point directives.
32072         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
32073         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
32074         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32075         gl_PRINTF_FLAG_ZERO and test its result. Invoke
32076         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
32077         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32078         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32079         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32080         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32081         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32082         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32083         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32084         * tests/test-snprintf-posix.h (test_function): Also check the width
32085         and some flags in the %f directive.
32086         * tests/test-sprintf-posix.h (test_function): Likewise.
32087         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32088         * tests/test-vasprintf-posix.c (test_function): Likewise.
32089         * doc/functions/fprintf.texi: Update.
32090         * doc/functions/printf.texi: Update.
32091         * doc/functions/snprintf.texi: Update.
32092         * doc/functions/sprintf.texi: Update.
32093         * doc/functions/vfprintf.texi: Update.
32094         * doc/functions/vprintf.texi: Update.
32095         * doc/functions/vsnprintf.texi: Update.
32096         * doc/functions/vsprintf.texi: Update.
32097
32098 2007-05-06  Bruno Haible  <bruno@clisp.org>
32099
32100         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
32101         pass the ' flag character to sprintf or snprintf.
32102         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
32103         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
32104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32105         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
32106         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
32107         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32108         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32109         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32110         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32111         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32112         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32113         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32114         * tests/test-snprintf-posix.h (test_function): Also check the grouping
32115         flag.
32116         * tests/test-sprintf-posix.h (test_function): Likewise.
32117         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32118         * tests/test-vasprintf-posix.c (test_function): Likewise.
32119         * doc/functions/fprintf.texi: Update.
32120         * doc/functions/printf.texi: Update.
32121         * doc/functions/snprintf.texi: Update.
32122         * doc/functions/sprintf.texi: Update.
32123         * doc/functions/vfprintf.texi: Update.
32124         * doc/functions/vprintf.texi: Update.
32125         * doc/functions/vsnprintf.texi: Update.
32126         * doc/functions/vsprintf.texi: Update.
32127
32128 2007-05-01  Bruno Haible  <bruno@clisp.org>
32129
32130         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
32131
32132 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
32133
32134         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
32135         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
32136
32137 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32138
32139         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
32140         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
32141         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
32142
32143 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
32144
32145         * lib/argp-help.c (struct hol_entry): New member `ord'.
32146         (HOL_ENTRY_PTRCMP): Use ord for comparison
32147         (hol_sort): Initialize ord.
32148
32149 2007-05-01  Bruno Haible  <bruno@clisp.org>
32150
32151         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
32152         Reported by Eric Blake.
32153         * doc/gnulib.texi (Function Substitutes): Update.
32154
32155 2007-05-01  Bruno Haible  <bruno@clisp.org>
32156
32157         * doc/functions.texi: Remove file, now redundant through
32158         doc/functions/*.texi.
32159
32160 2007-05-01  Bruno Haible  <bruno@clisp.org>
32161
32162         * modules/argp (Depends-on): Add sleep.
32163
32164 2007-05-01  Bruno Haible  <bruno@clisp.org>
32165
32166         * modules/sleep-tests: New file.
32167         * tests/test-sleep.c: New file.
32168
32169         * modules/sleep: New file.
32170         * lib/sleep.c: New file.
32171         * m4/sleep.m4: New file.
32172         * lib/unistd_.h (sleep): New declaration.
32173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
32174         HAVE_SLEEP.
32175         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
32176         * doc/functions/sleep.texi: Document the sleep module.
32177
32178 2007-05-01  Bruno Haible  <bruno@clisp.org>
32179
32180         * lib/sigprocmask.h: Remove file.
32181         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
32182         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
32183         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
32184         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
32185         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
32186         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
32187         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
32188         HAVE_SIGSET_T as a shell variable.
32189         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
32190         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
32191         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
32192         (Depends-on): Add signal. Remove verify.
32193         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
32194         (Include): Mention <signal.h> instead of sigprocmask.h.
32195         * NEWS: Mention the change.
32196         * lib/fatal-signal.c: Don't include sigprocmask.h.
32197
32198 2007-05-01  Bruno Haible  <bruno@clisp.org>
32199
32200         * modules/signal: New file.
32201         * lib/signal_.h: New file.
32202         * m4/signal_h.m4: New file.
32203
32204 2007-05-01  Bruno Haible  <bruno@clisp.org>
32205
32206         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
32207         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
32208         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
32209         HAVE_WCTYPE_CTMP_BUG into wctype.h.
32210
32211 2007-05-01  Bruno Haible  <bruno@clisp.org>
32212
32213         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
32214         configure time.
32215         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
32216         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
32217         * modules/sys_stat (Makefile.am): Substitute their values into
32218         sys/stat.h.
32219
32220 2007-05-01  Bruno Haible  <bruno@clisp.org>
32221
32222         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
32223         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
32224         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
32225
32226 2007-05-01  Bruno Haible  <bruno@clisp.org>
32227
32228         * doc/header/assert.texi: Undo last change: don't mention the gnulib
32229         'assert' module here.
32230
32231 2007-05-01  Bruno Haible  <bruno@clisp.org>
32232
32233         * doc/functions/*.texi: New files.
32234         * doc/functions/google-ranking.txt: New file.
32235         * doc/gnulib.texi (Function Substitutes): New chapter.
32236         (ctime, inet_ntoa): Remove sections.
32237         * doc/ctime.texi: Remove file.
32238         * doc/inet_ntoa.texi: Remove file.
32239         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
32240         dependencies.
32241         (%.info): New rule, specifying a --reference-limit.
32242
32243 2007-05-01  Bruno Haible  <bruno@clisp.org>
32244
32245         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
32246
32247 2007-05-01  Bruno Haible  <bruno@clisp.org>
32248
32249         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
32250         the portability of 'mkdir' to mingw systems.
32251
32252 2007-05-01  Bruno Haible  <bruno@clisp.org>
32253
32254         * doc/headers/google-ranking.txt: New file.
32255
32256 2007-04-30  Eric Blake  <ebb9@byu.net>
32257
32258         Prefer fseeko to fseek.
32259         * modules/getpass (Depends-on): Add fseeko.
32260         * lib/getpass.c (getpass): Use fseeko, not fseek.
32261
32262 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
32263
32264         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
32265         assumes the sorting is stable, while most qsort implementations
32266         are not.  Use argument addresses to ensure they never compare as
32267         equal.
32268
32269         * tests/test-argp-2.sh (usage-indent test): Fix output
32270         (func_compare): Restore diff options
32271         * tests/test-argp.c: Restore #include "progname.h"
32272
32273 2007-04-29  Bruno Haible  <bruno@clisp.org>
32274
32275         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
32276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32277         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
32278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32279         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
32280         (configure.ac): Define CHECK_SNPRINTF_POSIX.
32281         (TESTS, check_PROGRAMS): Add test-snprintf.
32282         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
32283         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
32284         (TESTS, check_PROGRAMS): Add test-vsnprintf.
32285         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
32286         assertions that fail on HP-UX, OSF/1, or IRIX.
32287         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
32288
32289 2007-04-29  Bruno Haible  <bruno@clisp.org>
32290
32291         * MODULES.html.sh (posix_functions): Remove 'contents'.
32292
32293 2007-04-29  Karl Berry  <karl@gnu.org>
32294
32295         * config/srclist.txt (gendocs_template_min): new entry.
32296
32297 2007-04-29  Bruno Haible  <bruno@clisp.org>
32298
32299         Work around fpurge bug on BSD systems.
32300         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
32301         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
32302         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
32303         fpurge to rpl_fpurge if the system already has this function.
32304         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
32305         the case where the system already has this function. Correct invariants
32306         on BSD systems.
32307         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
32308         BSD systems.
32309
32310 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
32311
32312         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
32313         proposed by Sven Verdoolaege.
32314
32315         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
32316         options.
32317         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
32318         (usage and help tests): Update
32319
32320 2007-04-29  Bruno Haible  <bruno@clisp.org>
32321
32322         * tests/test-fflush.c (main): Use a file of size 17, not 10.
32323         Print more information in case of failure. Disable a test on BeOS.
32324
32325 2007-04-29  Bruno Haible  <bruno@clisp.org>
32326
32327         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
32328         This helps debugging on systems on which no gdb is available.
32329
32330 2007-04-29  Bruno Haible  <bruno@clisp.org>
32331
32332         * lib/freading.h: Improve comments.
32333         * lib/fwriting.h: Likewise.
32334         * tests/test-freading.c (main): Don't check freading immediately after
32335         repositioning. Needed for glibc.
32336
32337 2007-04-29  Bruno Haible  <bruno@clisp.org>
32338
32339         * lib/freading.c (freading): Trivial simplification.
32340
32341 2007-04-28  Bruno Haible  <bruno@clisp.org>
32342
32343         * tests/test-fwriting.c (main): Also test the interaction between
32344         fflush and fwriting.
32345         * modules/fwriting-tests (Depends-on): Add fflush.
32346
32347         * tests/test-freading.c (main): Also test the interaction between
32348         fflush and freading.
32349         * modules/freading-tests (Depends-on): Add fflush.
32350
32351 2007-04-28  Bruno Haible  <bruno@clisp.org>
32352
32353         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
32354         fseeko and ftello.
32355         Suggested by Eric Blake.
32356
32357 2007-04-28  Jim Meyering  <jim@meyering.net>
32358
32359         Avoid false-negative in gl_STDINT_H's C99 conformance test.
32360         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
32361         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
32362
32363 2007-04-27  Eric Blake  <ebb9@byu.net>
32364
32365         * doc/headers/assert.texi (assert.h): Document assert module use.
32366
32367 2007-04-27  Bruno Haible  <bruno@clisp.org>
32368
32369         * doc/headers/*.texi: New files.
32370         * doc/gnulib.texi (Header File Substitutes): New chapter.
32371         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
32372         dependencies.
32373         (standards.info ,standards.html, standards.dvi): Update dependencies.
32374         (mostlyclean, clean): New targets.
32375
32376 2007-04-27  Bruno Haible  <bruno@clisp.org>
32377
32378         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
32379         * modules/sysexits (Files, Makefile.am): Update.
32380
32381         * lib/sys_socket_.h: Renamed from lib/socket_.h.
32382         * modules/sys_socket (Files, Makefile.am): Update.
32383
32384         * lib/sys_stat_.h: Renamed from lib/stat_.h.
32385         * modules/sys_stat (Files, Makefile.am): Update.
32386
32387 2007-04-27  Eric Blake  <ebb9@byu.net>
32388
32389         * lib/freading.h: Improve comments.
32390         * lib/fwriting.h: Likewise.
32391         * lib/fflush.c: Likewise.
32392
32393         Fix closein for mingw.
32394         * modules/closein-tests: Add tests for closein.
32395         * tests/test-closein.c: New file.
32396         * tests/test-closein.sh: Likewise.
32397         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
32398         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
32399
32400 2007-04-27  Bruno Haible  <bruno@clisp.org>
32401
32402         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
32403         version is < 6.
32404         * lib/math_.h [__DECC]: Likewise.
32405         * lib/stdio_.h [__DECC]: Likewise.
32406         * lib/stdlib_.h [__DECC]: Likewise.
32407         * lib/string_.h [__DECC]: Likewise.
32408         * lib/time_.h [__DECC]: Likewise.
32409         * lib/wchar_.h [__DECC]: Likewise.
32410         * lib/wctype_.h [__DECC]: Likewise.
32411
32412 2007-04-27  Bruno Haible  <bruno@clisp.org>
32413
32414         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
32415
32416 2007-04-27  Bruno Haible  <bruno@clisp.org>
32417
32418         * lib/fflush.c: Add comments.
32419         * modules/fpurge-tests (Depends-on): Add fflush.
32420         * modules/freadable-tests (Depends-on): Likewise.
32421         * modules/fwritable-tests (Depends-on): Likewise.
32422
32423 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
32424
32425         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
32426         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
32427         Report by Bruno Haible <bruno@clisp.org>.
32428
32429 2007-04-26  Eric Blake  <ebb9@byu.net>
32430
32431         Fix fflush on mingw.
32432         * modules/fflush (Depends-on): Add freading.
32433         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
32434         but unread data.
32435
32436 2007-04-26  Eric Blake  <ebb9@byu.net>
32437         and Bruno Haible  <bruno@clisp.org>
32438
32439         Implement freading and fwriting.
32440         * lib/freading.c: New file.
32441         * lib/freading.h: Likewise.
32442         * m4/freading.m4: Likewise.
32443         * modules/freading: Likewise.
32444         * modules/freading-tests: Likewise.
32445         * tests/test-freading.c: Likewise.
32446         * lib/fwriting.c: New file.
32447         * lib/fwriting.h: Likewise.
32448         * m4/fwriting.m4: Likewise.
32449         * modules/fwriting: Likewise.
32450         * modules/fwriting-tests: Likewise.
32451         * tests/test-fwriting.c: Likewise.
32452         * MODULES.html.sh (File stream based Input/Output): Mention them.
32453
32454 2007-04-26  Bruno Haible  <bruno@clisp.org>
32455
32456         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
32457         'long' when we assume it.
32458         Suggested by Eric Blake.
32459
32460 2007-04-26  Bruno Haible  <bruno@clisp.org>
32461
32462         Ensure fseeko, ftello are declared on glibc systems.
32463         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
32464         * modules/fseeko (configure.ac-early): Likewise.
32465         * modules/ftello (configure.ac-early): Likewise.
32466         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
32467         AC_FUNC_FSEEKO for this.
32468         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
32469         (gl_CHECK_FSEEKO): Remove macro.
32470
32471 2007-04-26  Bruno Haible  <bruno@clisp.org>
32472
32473         * tests/test-fflush.c (main): Also check the ftell result after
32474         fflush and fseek/fseeko.
32475         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
32476         file descriptor position cache in the stream.
32477         * lib/fseeko.c (rpl_fseeko): Likewise.
32478
32479 2007-04-26  Bruno Haible  <bruno@clisp.org>
32480
32481         * modules/fflush-tests (Depends-on): Add fseeko.
32482
32483 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
32484             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32485
32486         * lib/argz_.h: ensure error_t definition is obtained in same
32487         mechanism system argz.h would have.
32488         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
32489         argz facilities are known bad.  Err on the side of caution if
32490         cross-compiling.
32491
32492 2007-04-25  Eric Blake  <ebb9@byu.net>
32493
32494         * lib/fpurge.c (includes): Use stdlib.h for free.
32495         * tests/test-fflush.c (main): Also test fflush-fseeko.
32496
32497 2007-04-25  Bruno Haible  <bruno@clisp.org>
32498
32499         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
32500         * lib/fseeko.c: New file.
32501         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
32502         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
32503         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
32504         gl_FUNC_FSEEKO.
32505         (gl_FUNC_FSEEKO): Invoke it.
32506         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
32507         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
32508         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
32509
32510 2007-04-25  Bruno Haible  <bruno@clisp.org>
32511
32512         * modules/fflush (Depends-on): Add ftello.
32513
32514 2007-04-25  Bruno Haible  <bruno@clisp.org>
32515
32516         * modules/ftello-tests: New file.
32517         * tests/test-ftello.c: New file.
32518
32519         * modules/ftello: New file.
32520         * m4/ftello.m4: New file.
32521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
32522         HAVE_FTELLO.
32523         * lib/stdio_.h (ftello): New declaration.
32524         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
32525         HAVE_FTELLO.
32526
32527 2007-04-25  Bruno Haible  <bruno@clisp.org>
32528
32529         * modules/fseeko-tests: New file.
32530         * tests/test-fseeko.c: New file.
32531
32532         * modules/fseeko: New file.
32533         * m4/fseeko.m4: New file.
32534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
32535         HAVE_FSEEKO.
32536         * lib/stdio_.h (fseeko): New declaration.
32537         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
32538         HAVE_FSEEKO.
32539
32540 2007-04-25  Bruno Haible  <bruno@clisp.org>
32541
32542         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
32543
32544 2007-04-25  Bruno Haible  <bruno@clisp.org>
32545
32546         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
32547         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
32548         * tests/test-unistd.c: Likewise.
32549         * tests/test-fcntl.c: Likewise.
32550
32551 2007-04-23  Eric Blake  <ebb9@byu.net>
32552
32553         * lib/fflush.c: Fix missing include.
32554         Reported by Bruno Haible.
32555
32556 2007-04-23  Bruno Haible  <bruno@clisp.org>
32557
32558         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
32559         Reported by Eric Blake.
32560
32561 2007-04-23  Bruno Haible  <bruno@clisp.org>
32562
32563         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
32564
32565 2007-04-23  Bruno Haible  <bruno@clisp.org>
32566
32567         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
32568
32569 2007-04-23  Bruno Haible  <bruno@clisp.org>
32570
32571         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
32572         Needed on HP-UX 11.
32573
32574 2007-04-16  Eric Blake  <ebb9@byu.net>
32575
32576         Make fflush rely on fpurge.
32577         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
32578         open coding all variants.
32579         * modules/fflush (Depends-on): Add fpurge and unistd.
32580         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
32581         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
32582
32583         Fix --with-tests compilation on cygwin.
32584         * modules/argmatch-tests (Makefile.am): List gnulib library first
32585         in LDADD.
32586         * modules/argp-tests (Makefile.am): Likewise.
32587         * modules/array-list-tests (Makefile.am): Likewise.
32588         * modules/array-oset-tests (Makefile.am): Likewise.
32589         * modules/avltree-list-tests (Makefile.am): Likewise.
32590         * modules/avltree-oset-tests (Makefile.am): Likewise.
32591         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32592         * modules/carray-list-tests (Makefile.am): Likewise.
32593         * modules/dirname-tests (Makefile.am): Likewise.
32594         * modules/frexp-tests (Makefile.am): Likewise.
32595         * modules/isnanl-tests (Makefile.am): Likewise.
32596         * modules/linked-list-tests (Makefile.am): Likewise.
32597         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32598         * modules/lock-tests (Makefile.am): Likewise.
32599         * modules/rbtree-list-tests (Makefile.am): Likewise.
32600         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32601         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32602         * modules/tls-tests (Makefile.am): Likewise.
32603         * modules/tsearch-tests (Makefile.am): Likewise.
32604         * modules/xvasprintf-tests (Makefile.am): Likewise.
32605
32606         Fix fpurge for cygwin.
32607         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
32608         value.
32609         * modules/fpurge-tests (Depends-on): Clean up trash.
32610
32611 2007-04-16  Simon Josefsson  <simon@josefsson.org>
32612
32613         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
32614
32615         * m4/autobuild.m4: Re-indent.
32616
32617 2007-04-13  Bruno Haible  <bruno@clisp.org>
32618
32619         * modules/fpurge-tests: New file.
32620         * tests/test-fpurge.c: New file.
32621
32622         * modules/fpurge: New file.
32623         * lib/fpurge.h: New file.
32624         * lib/fpurge.c: New file.
32625         * m4/fpurge.m4: New file.
32626
32627 2007-04-13  Bruno Haible  <bruno@clisp.org>
32628
32629         * modules/fbufmode-tests: New file.
32630         * tests/test-fbufmode.c: New file.
32631
32632         * modules/fbufmode: New file.
32633         * lib/fbufmode.h: New file.
32634         * lib/fbufmode.c: New file.
32635         * m4/fbufmode.m4: New file.
32636
32637 2007-04-13  Bruno Haible  <bruno@clisp.org>
32638
32639         * modules/fwritable-tests: New file.
32640         * tests/test-fwritable.c: New file.
32641
32642         * modules/fwritable: New file.
32643         * lib/fwritable.h: New file.
32644         * lib/fwritable.c: New file.
32645         * m4/fwritable.m4: New file.
32646
32647 2007-04-13  Bruno Haible  <bruno@clisp.org>
32648
32649         * modules/freadable-tests: New file.
32650         * tests/test-freadable.c: New file.
32651
32652         * modules/freadable: New file.
32653         * lib/freadable.h: New file.
32654         * lib/freadable.c: New file.
32655         * m4/freadable.m4: New file.
32656
32657 2007-04-13  Bruno Haible  <bruno@clisp.org>
32658
32659         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
32660         MOSTLYCLEANFILES.
32661
32662 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
32663
32664         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
32665         gzip bootstrap.conf to avoid dragging in i18n machinery.
32666         (gnulib_tool_option): Use it.
32667
32668 2007-04-13  Bruno Haible  <bruno@clisp.org>
32669
32670         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
32671         %F directives.
32672         * tests/test-vasprintf-posix.c (test_function): Likewise.
32673         * tests/test-snprintf-posix.h (test_function): Likewise.
32674         * tests/test-sprintf-posix.h (test_function): Likewise.
32675         * tests/test-fprintf-posix.h (test_function): Likewise.
32676         * tests/test-printf-posix.h (test_function): Likewise.
32677         * tests/test-fprintf-posix.out: Likewise.
32678
32679 2007-04-13  Bruno Haible  <bruno@clisp.org>
32680
32681         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
32682         * modules/tls-tests (configure.ac): Likewise.
32683         Reported by Arto C. Nirkko <anirkko@insel.ch>.
32684
32685 2007-04-13  Bruno Haible  <bruno@clisp.org>
32686
32687         * lib/tls.c (glthread_tls_get): Fix return type.
32688         Patch by Arto C. Nirkko <anirkko@insel.ch>.
32689
32690 2007-04-12  Eric Blake  <ebb9@byu.net>
32691
32692         * modules/gettime (Depends-on): Remove gettime.
32693         Reported by Dmitry V. Levin.
32694
32695 2007-04-12  Bruno Haible  <bruno@clisp.org>
32696
32697         * modules/fflush (Include): Mention <stdio.h>.
32698         * modules/strtoimax (Include): Mention <inttypes.h>.
32699         * modules/strtoumax (Include): Likewise.
32700
32701 2007-04-12  Eric Blake  <ebb9@byu.net>
32702
32703         * .cvsignore: New file.
32704         * .gitignore: Likewise.
32705
32706 2007-04-12  Bruno Haible  <bruno@clisp.org>
32707
32708         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
32709         not before, since $(LDADD) often contains libgnu.a.
32710         * modules/striconv-tests (test_striconv_LDADD): Likewise.
32711         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
32712         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
32713         Needed on Cygwin.
32714
32715 2007-04-12  Eric Blake  <ebb9@byu.net>
32716
32717         Work around glibc's failure to flush stdin on fclose.
32718         * lib/closein.c (close_stdin): Flush stdin before closing.
32719
32720         Work around glibc's failure to reset seekable stdin on exit.
32721         * modules/closein: New module.
32722         * lib/closein.c: New file.
32723         * lib/closein.h: Likewise.
32724         * m4/closein.m4: Likewise.
32725         * MODULES.html.sh (File stream based Input/Output): Document it.
32726
32727 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32728
32729         * gnulib-tool: Rename generated 'autobuild' script to
32730         'do-autobuild' in --create-megatestdir output.
32731
32732         * doc/gnulib.texi (Build robot for gnulib): Fix.
32733
32734 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32735
32736         * modules/sysexits (Depends-on): Add absolute-header.
32737
32738 2007-04-12  Eric Blake  <ebb9@byu.net>
32739
32740         No need to preserve errno on success.
32741         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
32742         Reported by Bruno Haible.
32743
32744 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32745
32746         * MODULES.html.sh (Support for maintaining and releasing
32747         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
32748
32749 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32750
32751         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
32752
32753 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32754
32755         * modules/autobuild: New module.
32756
32757         * m4/autobuild.m4: New file.
32758
32759 2007-04-11  Bruno Haible  <bruno@clisp.org>
32760
32761         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
32762         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
32763         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
32764         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
32765         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32766         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32767         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32768         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32769         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32770         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32771         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
32772         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32773         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
32775         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32776         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32777         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
32778         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32779         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
32781         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32782         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32783         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
32784         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32785         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32786         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
32787         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32788         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32789         Reported by Eric Blake.
32790
32791 2007-04-11  Bruno Haible  <bruno@clisp.org>
32792
32793         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
32794
32795 2007-04-10  Bruno Haible  <bruno@clisp.org>
32796
32797         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
32798         for NaN and Infinity. Needed on FreeBSD 6.1.
32799         * tests/test-vasnprintf-posix.c (test_function): Undo last change
32800         regarding results for "%010a" of Infinity and NaN.
32801         * tests/test-vasprintf-posix.c (test_function): Likewise.
32802         * tests/test-snprintf-posix.h (test_function): Likewise.
32803         * tests/test-sprintf-posix.h (test_function): Likewise.
32804         * tests/test-fprintf-posix.h (test_function): Likewise.
32805         * tests/test-printf-posix.h (test_function): Likewise.
32806         * tests/test-fprintf-posix.out: Likewise.
32807
32808 2007-04-10  Bruno Haible  <bruno@clisp.org>
32809
32810         * modules/locale-tests: New file.
32811         * tests/test-locale.c: New file.
32812
32813         * modules/locale: New file.
32814         * lib/locale_.h: New file.
32815         * m4/locale_h.m4: New file.
32816
32817 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
32818             Bruno Haible  <bruno@clisp.org>
32819
32820         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
32821         be determined, test for availability of the copysignf, copysign,
32822         copysignl functions.
32823         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
32824         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
32825         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
32826
32827 2007-04-09  Eric Blake  <ebb9@byu.net>
32828
32829         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
32830         * modules/stdio (Makefile.am): Support fflush.
32831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32832         * modules/fflush: New file.
32833         * lib/fflush.c: Likewise.
32834         * m4/fflush.m4: Likewise.
32835         * modules/fflush-tests: New test.
32836         * tests/test-fflush.c: Likewise.
32837         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
32838
32839 2007-04-06  Bruno Haible  <bruno@clisp.org>
32840
32841         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
32842         (VASNPRINTF): Use signbit for faster determination whether to print a
32843         minus sign.
32844         * modules/vasnprintf (Files): Remove lib/float+.h.
32845         * modules/fprintf-posix (Depends-on): Add signbit.
32846         * modules/snprintf-posix (Depends-on): Likewise.
32847         * modules/sprintf-posix (Depends-on): Likewise.
32848         * modules/vasnprintf-posix (Depends-on): Likewise.
32849         * modules/vasprintf-posix (Depends-on): Likewise.
32850         * modules/vfprintf-posix (Depends-on): Likewise.
32851         * modules/vsnprintf-posix (Depends-on): Likewise.
32852         * modules/vsprintf-posix (Depends-on): Likewise.
32853
32854 2007-04-06  Bruno Haible  <bruno@clisp.org>
32855
32856         * tests/test-frexp.c (main): Test also the sign bit of zero results.
32857         * tests/test-frexpl.c (main): Likewise.
32858         * tests/test-ldexpl.c (main): Likewise.
32859         * modules/frexp-tests (Depends-on): Add signbit.
32860         * modules/frexpl-tests (Depdends-on): Likewise.
32861         * modules/ldexpl-tests (Depdends-on): Likewise.
32862
32863 2007-04-06  Bruno Haible  <bruno@clisp.org>
32864
32865         * modules/signbit-tests: New file.
32866         * tests/test-signbit.c: New file.
32867
32868         * modules/signbit: New file.
32869         * lib/signbitf.c: New file.
32870         * lib/signbitd.c: New file.
32871         * lib/signbitl.c: New file.
32872         * m4/signbit.m4: New file.
32873         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
32874         (signbit): New macro.
32875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
32876         REPLACE_SIGNBIT.
32877         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
32878         REPLACE_FREXPL into math.h.
32879
32880 2007-04-06  Bruno Haible  <bruno@clisp.org>
32881
32882         * modules/isnanf-nolibm-tests: New file.
32883         * tests/test-isnanf.c: New file.
32884
32885         * modules/isnanf-nolibm: New file.
32886         * lib/isnanf.h: New file.
32887         * lib/isnanf.c: New file.
32888         * lib/isnan.c: Consider the USE_FLOAT macro.
32889         * m4/isnanf.m4: New file.
32890
32891 2007-04-06  Bruno Haible  <bruno@clisp.org>
32892
32893         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
32894         (Link): New section.
32895
32896         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
32897
32898 2007-04-06  Bruno Haible  <bruno@clisp.org>
32899
32900         Assume the 'long double' type.
32901         * m4/longdouble.m4: Remove file.
32902         * config/srclist.txt: Don't mention longdouble.m4.
32903         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
32904         * lib/float+.h: Likewise.
32905         * lib/frexp.c: Likewise.
32906         * lib/printf-args.h: Likewise.
32907         * lib/printf-args.c: Likewise.
32908         * lib/printf-frexp.c: Likewise.
32909         * lib/printf-parse.c: Likewise.
32910         * lib/vasnprintf.c: Likewise.
32911         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
32912         * m4/intl.m4: Likewise.
32913         * m4/isnanl.m4: Likewise.
32914         * m4/printf.m4: Likewise.
32915         * m4/printf-frexpl.m4: Likewise.
32916         * m4/vasnprintf.m4: Likewise.
32917         * modules/allocsa (Files): Remove m4/longdouble.m4.
32918         * modules/gettext (Files): Likewise.
32919         * modules/relocatable-prog-wrapper (Files): Likewise.
32920         * modules/vasnprintf (Files): Likewise.
32921         * modules/isnanl (Files): Likewise.
32922         (Include): Simplify.
32923         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
32924         (Include): Simplify.
32925         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
32926         (Include): Simplify.
32927         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
32928         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32929         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
32930         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32931         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32932         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32933         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
32934         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32935         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32936         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32937         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
32938         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32939         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
32940         * tests/test-isnanl.c: Likewise.
32941         * tests/test-snprintf-posix.h: Likewise.
32942         * tests/test-sprintf-posix.h: Likewise.
32943         * tests/test-vasnprintf-posix.c: Likewise.
32944         * tests/test-vasnprintf-posix2.c: Likewise.
32945         * tests/test-vasprintf-posix.c: Likewise.
32946
32947 2007-04-06  Bruno Haible  <bruno@clisp.org>
32948
32949         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
32950         * lib/math_.h [__DECC]: Include the overridden include file through
32951         #include_next, outside the double-inclusion guard.
32952         * lib/stdio_.h [__DECC]: Likewise.
32953         * lib/stdlib_.h [__DECC]: Likewise.
32954         * lib/string_.h [__DECC]: Likewise.
32955         * lib/time_.h [__DECC]: Likewise.
32956         * lib/wchar_.h [__DECC]: Likewise.
32957         * lib/wctype_.h [__DECC]: Likewise.
32958         * lib/inttypes_.h [__DECC]: Likewise.
32959         Reported by Albert Chin <china@thewrittenword.com> in
32960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
32961
32962 2007-04-04  Eric Blake  <ebb9@byu.net>
32963
32964         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
32965         1.5.x.
32966
32967 2007-04-04  Bruno Haible  <bruno@clisp.org>
32968
32969         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
32970         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
32971
32972 2007-04-04  Bruno Haible  <bruno@clisp.org>
32973
32974         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
32975         results for "%010a" of Infinity and NaN.
32976         * tests/test-vasprintf-posix.c (test_function): Likewise.
32977         * tests/test-snprintf-posix.h (test_function): Likewise.
32978         * tests/test-sprintf-posix.h (test_function): Likewise.
32979         * tests/test-fprintf-posix.h (test_function): Remove these tests.
32980         * tests/test-printf-posix.h (test_function): Likewise.
32981         * tests/test-fprintf-posix.out: Update.
32982         Needed for FreeBSD 6.1.
32983
32984 2007-04-04  Bruno Haible  <bruno@clisp.org>
32985
32986         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
32987         directly used by the gnulib modules nor by gnulib-tool.
32988
32989 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
32990
32991         * DEPENDENCIES: Give overall description of version dependency
32992         desirability.  Use more-typical names for apps.
32993         Add shell, coreutils, diffutils, grep, tar, gzip.
32994
32995 2007-04-04  Simon Josefsson  <simon@josefsson.org>
32996
32997         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
32998
32999 2007-04-04  Karl Berry  <karl@gnu.org>
33000
33001         * MODULES.html.sh (func_module): missing '.
33002
33003 2007-04-03  Bruno Haible  <bruno@clisp.org>
33004
33005         * modules/argmatch-tests (Makefile.am): New variable
33006         test_argmatch_LDADD.
33007         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
33008         * modules/array-list-tests (Makefile.am): New variable
33009         test_array_list_LDADD.
33010         * modules/array-oset-tests (Makefile.am): New variable
33011         test_array_oset_LDADD.
33012         * modules/avltree-list-tests (Makefile.am): New variable
33013         test_avltree_list_LDADD.
33014         * modules/avltree-oset-tests (Makefile.am): New variable
33015         test_avltree_oset_LDADD.
33016         * modules/avltreehash-list-tests (Makefile.am): New variable
33017         test_avltreehash_list_LDADD.
33018         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
33019         test_canonicalize_lgpl_LDADD.
33020         * modules/carray-list-tests (Makefile.am): New variable
33021         test_carray_list_LDADD.
33022         * modules/dirname-tests (Makefile.am): New variable
33023         test_dirname_LDADD.
33024         * modules/linked-list-tests (Makefile.am): New variable
33025         test_linked_list_LDADD.
33026         * modules/linkedhash-list-tests (Makefile.am): New variable
33027         test_linkedhash_list_LDADD.
33028         * modules/rbtree-list-tests (Makefile.am): New variable
33029         test_rbtree_list_LDADD.
33030         * modules/rbtree-oset-tests (Makefile.am): New variable
33031         test_rbtree_oset_LDADD.
33032         * modules/rbtreehash-list-tests (Makefile.am): New variable
33033         test_rbtreehash_list_LDADD.
33034         * modules/xvasprintf-tests (Makefile.am): New variable
33035         test_xvasprintf_LDADD.
33036         Reported by Eric Blake.
33037
33038 2007-04-03  Eric Blake  <ebb9@byu.net>
33039
33040         * DEPENDENCIES: Weaken m4 requirements.
33041
33042 2007-04-03  Bruno Haible  <bruno@clisp.org>
33043
33044         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
33045         * modules/isnanl-tests (configure.ac): Likewise.
33046
33047 2007-04-03  Ben Pfaff  <blp@gnu.org>
33048
33049         * modules/iconv_open: Add $(srcdir)/ to source directory
33050         references in Makefile fragments that call gperf, to fix VPATH
33051         builds.
33052
33053 2007-04-03  Bruno Haible  <bruno@clisp.org>
33054
33055         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
33056         * lib/ldexpl.c: Undo last change.
33057
33058 2007-04-03  Bruno Haible  <bruno@clisp.org>
33059
33060         * modules/printf-frexpl (Depends-on): Undo last change.
33061         (Files): Add m4/ldexpl.m4.
33062
33063 2007-04-03  Bruno Haible  <bruno@clisp.org>
33064
33065         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
33066         * modules/isnanl (Link): New section.
33067
33068         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
33069         * modules/frexp (Link): New section.
33070
33071         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
33072         * modules/frexpl (Link): New section.
33073
33074         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
33075         * modules/ldexpl (Link): New section.
33076
33077 2007-04-03  Bruno Haible  <bruno@clisp.org>
33078
33079         * modules/TEMPLATE-EXTENDED: New file.
33080         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
33081
33082 2007-04-03  Bruno Haible  <bruno@clisp.org>
33083
33084         * DEPENDENCIES: New file.
33085         Suggested by Simon Josefsson.
33086
33087 2007-04-03  Bruno Haible  <bruno@clisp.org>
33088
33089         * doc/gnulib.texi: Escape @.
33090
33091 2007-04-03  James Youngman  <jay@gnu.org>
33092         and Paul Eggert  <eggert@cs.ucla.edu>
33093
33094         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
33095         birthtime on all systems that have birthtime, not just those which
33096         use st_birthtimensec rather than st_birthtim.  Putting zero in
33097         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
33098         that the birth time is not available for files on an NFS mount.
33099
33100 2007-04-03  Simon Josefsson  <simon@josefsson.org>
33101
33102         * modules/memxor: Move back from crypto/, suggested by Bruno.
33103         * modules/crypto/hmac-sha1: Fix memxor dependency.
33104
33105         * modules/crypto/gc: Moved from ../.
33106
33107 2007-04-02  Eric Blake  <ebb9@byu.net>
33108
33109         * lib/ldexpl.c (includes): Avoid libm.
33110
33111         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
33112
33113 2007-04-02  Bruno Haible  <bruno@clisp.org>
33114
33115         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
33116         on IRIX.
33117
33118 2007-04-02  Bruno Haible  <bruno@clisp.org>
33119
33120         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
33121         x86 or x86_64 platforms running MacOS X.
33122         Reported by Ryan Schmidt <@ryandesign.com>.
33123
33124 2007-04-02  Bruno Haible  <bruno@clisp.org>
33125
33126         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
33127         i386.
33128
33129 2007-04-01  Simon Josefsson  <simon@josefsson.org>
33130
33131         * modules/crypto/arcfour: Moved from ../.
33132         * modules/crypto/arcfour-tests: Moved from ../.
33133         * modules/crypto/arctwo: Moved from ../.
33134         * modules/crypto/arctwo-tests: Moved from ../.
33135         * modules/crypto/des: Moved from ../.
33136         * modules/crypto/des-tests: Moved from ../.
33137         * modules/crypto/gc-arcfour: Moved from ../.
33138         * modules/crypto/gc-arcfour-tests: Moved from ../.
33139         * modules/crypto/gc-arctwo: Moved from ../.
33140         * modules/crypto/gc-arctwo-tests: Moved from ../.
33141         * modules/crypto/gc-des: Moved from ../.
33142         * modules/crypto/gc-des-tests: Moved from ../.
33143         * modules/crypto/gc-hmac-md5: Moved from ../.
33144         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
33145         * modules/crypto/gc-hmac-sha1: Moved from ../.
33146         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
33147         * modules/crypto/gc-md2: Moved from ../.
33148         * modules/crypto/gc-md2-tests: Moved from ../.
33149         * modules/crypto/gc-md4: Moved from ../.
33150         * modules/crypto/gc-md4-tests: Moved from ../.
33151         * modules/crypto/gc-md5: Moved from ../.
33152         * modules/crypto/gc-md5-tests: Moved from ../.
33153         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
33154         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
33155         * modules/crypto/gc-random: Moved from ../.
33156         * modules/crypto/gc-rijndael: Moved from ../.
33157         * modules/crypto/gc-rijndael-tests: Moved from ../.
33158         * modules/crypto/gc-sha1: Moved from ../.
33159         * modules/crypto/gc-sha1-tests: Moved from ../.
33160         * modules/crypto/gc-tests: Moved from ../.
33161         * modules/crypto/hmac-md5: Moved from ../.
33162         * modules/crypto/hmac-md5-tests: Moved from ../.
33163         * modules/crypto/hmac-sha1: Moved from ../.
33164         * modules/crypto/hmac-sha1-tests: Moved from ../.
33165         * modules/crypto/md2: Moved from ../.
33166         * modules/crypto/md2-tests: Moved from ../.
33167         * modules/crypto/md4: Moved from ../.
33168         * modules/crypto/md4-tests: Moved from ../.
33169         * modules/crypto/md5: Moved from ../.
33170         * modules/crypto/md5-tests: Moved from ../.
33171         * modules/crypto/memxor: Moved from ../.
33172         * modules/crypto/rijndael: Moved from ../.
33173         * modules/crypto/rijndael-tests: Moved from ../.
33174         * modules/crypto/sha1: Moved from ../.
33175
33176 2007-03-30  James Youngman  <jay@gnu.org>
33177
33178         * tests/test-stat-time.c (prepare_test): use chmod() rather than
33179         rename() to change the ctime of a file (because ctime is unaffected
33180         by rename on jfs2 on AIX 5.1).
33181         (main): Start by doing cleanup, in case a previous run failed leaving
33182         test files behind.
33183
33184 2007-03-31  Bruno Haible  <bruno@clisp.org>
33185
33186         Support old proprietary implementations of iconv.
33187         * modules/iconv_open: New file.
33188         * lib/iconv_.h: New file.
33189         * m4/iconv_h.m4: New file.
33190         * lib/iconv_open.c: New file.
33191         * lib/iconv_open-aix.gperf: New file.
33192         * lib/iconv_open-hpux.gperf: New file.
33193         * lib/iconv_open-irix.gperf: New file.
33194         * lib/iconv_open-osf.gperf: New file.
33195         * m4/iconv_open.m4: New file.
33196         * modules/linebreak (Depends-on): Add iconv_open.
33197         * modules/striconv (Depends-on): Likewise.
33198         * modules/striconveh (Depends-on): Likewise.
33199         * modules/unicodeio (Depends-on): Likewise.
33200         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
33201         (iconv_t)(-1).
33202         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
33203         conversion if cd is (iconv_t)(-1).
33204         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
33205         is not possible.
33206
33207 2007-03-31  Bruno Haible  <bruno@clisp.org>
33208
33209         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33210         work on Solaris either. Protect also second use of "autodetect_jp".
33211
33212 2007-03-31  Bruno Haible  <bruno@clisp.org>
33213
33214         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
33215         the function is not present.
33216
33217 2007-03-31  Bruno Haible  <bruno@clisp.org>
33218
33219         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
33220         the function is not present.
33221
33222 2007-03-31  Bruno Haible  <bruno@clisp.org>
33223
33224         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
33225         a bug in HP-UX iconv_open().
33226
33227 2007-03-31  Bruno Haible  <bruno@clisp.org>
33228
33229         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
33230         (Mathematics <math.h>): New section, add fpieee.
33231         (Input/output <stdio.h>): Add fseterr.
33232         (Mathematics <math.h>): New section, add printf-frexp.
33233         (Container data structures): Add sublist.
33234         (Core language properties): Add fpucw, inline.
33235         (Functions for greatest-width integer types <inttypes.h>): Add
33236         imaxabs, imaxdiv, inttypes.
33237         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
33238         isnanl-nolibm, ldexp.
33239         (Mathematics <math.h>): New section, add printf-frexpl.
33240         (Support for systems lacking POSIX:2001): Add fprintf-posix,
33241         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
33242         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
33243         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
33244         (Unicode string functions): Add unistr/u*-mbtoucr.
33245         (Java): Add javacomp-script, javaexec-script.
33246         (C#): Add csharpcomp-script, csharpexec-script.
33247         (Support for building libraries and executables): Add havelib,
33248         relocatable-*.
33249         (Support for maintaining and releasing projects): Renamed from
33250         'Support for maintaining and release projects'. Add announce-gen.
33251
33252 2007-03-31  Bruno Haible  <bruno@clisp.org>
33253
33254         * README: Talk primarily about git.
33255         (git and CVS): Renamed from CVS.
33256         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
33257         gnulib is available through git.
33258         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
33259
33260 2007-03-30  Bruno Haible  <bruno@clisp.org>
33261
33262         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
33263         * lib/poll_.h: Likewise.
33264         * lib/stat_.h: Likewise.
33265         * lib/sys_time_.h: Likewise.
33266         * lib/sysexit_.h: Likewise.
33267         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
33268         * lib/stdbool_.h: Likewise.
33269         * lib/byteswap_.h: Add double-inclusion guard.
33270
33271 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
33272
33273         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
33274
33275 2007-03-30  Karl Berry  <karl@gnu.org>
33276
33277         * config/srclist-update: double space after USA in the license
33278         substitution, since that's how it's usually (?) written.
33279
33280 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33281
33282         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
33283         reported by Bruno Haible.
33284
33285 2007-03-29  Bruno Haible  <bruno@clisp.org>
33286
33287         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
33288         a bug in AIX iconv().
33289
33290 2007-03-29  Bruno Haible  <bruno@clisp.org>
33291
33292         * modules/ldexpl-tests: New file.
33293         * tests/test-ldexpl.c: New file.
33294
33295 2007-03-29  Bruno Haible  <bruno@clisp.org>
33296
33297         * lib/ldexpl.c: Include fpucw.h.
33298         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
33299         multiplication.
33300         * modules/ldexpl (Depends-on): Add fpucw.
33301
33302 2007-03-29  Bruno Haible  <bruno@clisp.org>
33303
33304         * modules/ldexpl: New file.
33305         * m4/ldexpl.m4: New file.
33306         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
33307         set.
33308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
33309         REPLACE_LDEXPL.
33310         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
33311         REPLACE_LDEXPL.
33312         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33313         gl_FUNC_LDEXPL_WORKS.
33314         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
33315         * modules/mathl (Files): Remove lib/ldexpl.c.
33316         (Depends-on): Add ldexpl.
33317
33318 2007-03-29  Bruno Haible  <bruno@clisp.org>
33319
33320         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
33321
33322 2007-03-29  Bruno Haible  <bruno@clisp.org>
33323
33324         * tests/test-striconveh.c (main): Don't assume that a direct conversion
33325         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
33326         and possibly also HP-UX.
33327         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33328         work on AIX, IRIX, HP-UX, OSF/1.
33329         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33330         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33331         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33332         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33333         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
33334         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33335
33336 2007-03-29  Bruno Haible  <bruno@clisp.org>
33337
33338         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
33339
33340 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
33341
33342         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
33343         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
33344
33345 2007-03-29  Eric Blake  <ebb9@byu.net>
33346
33347         * lib/acl-internal.h: Remove redundant include.
33348         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
33349         Cygwin when a file is locked.
33350
33351 2007-03-29  Bruno Haible  <bruno@clisp.org>
33352
33353         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
33354         file.
33355         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
33356
33357 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
33358
33359         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
33360         try to remove a parent directory if the child couldn't be removed
33361         (except for the first rmdir, which could fail because the child
33362         doesn't exist).  Problem reported by Jeff Blaine in
33363         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
33364
33365 2007-03-28  Bruno Haible  <bruno@clisp.org>
33366
33367         * lib/striconveh.c (utf8conv_carefully): New function.
33368         (mem_cd_iconveh_internal): Invoke it.
33369
33370 2007-03-28  Bruno Haible  <bruno@clisp.org>
33371
33372         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
33373         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
33374         input.
33375         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
33376         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
33377         unistr/u8-uctomb.
33378
33379 2007-03-28  Bruno Haible  <bruno@clisp.org>
33380
33381         * modules/unistr/u8-mbtoucr: New file.
33382         * lib/unistr/u8-mbtoucr.c: New file.
33383         * modules/unistr/u16-mbtoucr: New file.
33384         * lib/unistr/u16-mbtoucr.c: New file.
33385         * modules/unistr/u16-mbtoucr: New file.
33386         * lib/unistr/u16-mbtoucr.c: New file.
33387         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
33388
33389 2007-03-27  Simon Josefsson  <simon@josefsson.org>
33390             Bruno Haible  <bruno@clisp.org>
33391
33392         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
33393         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
33394         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
33395
33396         * m4/stdio_h.m4: Add stubs for vasprintf too.
33397
33398         * modules/stdio: Support vasprintf in sed command.
33399
33400         * modules/vasprintf: Depend on stdio for prototypes.  Remove
33401         vasprintf.h.  Add stdio module indicator.
33402
33403         * lib/stdio_.h: Declare asprintf and vasprintf, based on
33404         vasprintf.h.
33405
33406         * lib/vasprintf.h: File removed.
33407
33408         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
33409         * lib/vasprintf.c: Ditto.
33410         * lib/xvasprintf.c: Ditto.
33411         * tests/test-vasprintf-posix.c: Ditto.
33412         * tests/test-vasprintf.c: Ditto.
33413
33414 2007-03-27  Bruno Haible  <bruno@clisp.org>
33415
33416         Make vasnprintf multithread-safe.
33417         * lib/vasnprintf.c (decimal_point_char): New function.
33418         (VASNPRINTF): Use it.
33419         Suggested by Simon Josefsson.
33420
33421 2007-03-27  Eric Blake  <ebb9@byu.net>
33422
33423         Support sub-second birthtime on cygwin.
33424         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
33425         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
33426         (get_stat_birthtime): Also work with st_birthtim.
33427
33428 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33429
33430         * lib/stat-time.h (USE_BIRTHTIME): Remove.
33431         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
33432         (get_stat_birthtime_ns): Do not try to use "spare" fields.
33433         (get_stat_birthtime_ns): Simplify compile-time tests.
33434         (get_stat_birthtime): Change the API to look like
33435         get_stat_mtime etc., except return a negative tv_nsec on error.
33436         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
33437         Don't check for "spare" fields.
33438         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
33439         or for struct stat.st_birthtime, as these tests aren't used.
33440         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
33441
33442 2007-03-27  Bruno Haible  <bruno@clisp.org>
33443
33444         * lib/stat-time.h: Include <sys/stat.h>.
33445
33446 2007-03-27  James Youngman  <jay@gnu.org>
33447
33448         * lib/stat-time.h (get_stat_birthtime): New function for
33449           retrieving st_birthtime as provided by UFS2 (hence *BSD).
33450         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
33451           and its variants.
33452         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
33453         * modules/stat-time-test: New file.
33454         * tests/test-stat-time.c: New test, devised by Bruno Haible.
33455
33456 2007-03-26  Bruno Haible  <bruno@clisp.org>
33457
33458         Better support of signalling NaNs.
33459         * lib/atanl.c: Include isnanl.h.
33460         (atanl): Perform test for NaN at the beginning of the function and
33461         through a call to isnanl.
33462         * lib/cosl.c: Include isnanl.h.
33463         (cosl): Perform test for NaN at the beginning of the function and
33464         through a call to isnanl.
33465         * lib/ldexpl.c: Include isnanl.h.
33466         (ldexpl): Perform test for NaN through a call to isnanl.
33467         * lib/logl.c: Include isnanl.h.
33468         (logl): Perform test for NaN at the beginning of the function and
33469         through a call to isnanl.
33470         * lib/sinl.c: Include isnanl.h.
33471         (sinl): Perform test for NaN at the beginning of the function and
33472         through a call to isnanl.
33473         * lib/sqrtl.c: Include isnanl.h.
33474         (sqrtl): Perform test for NaN at the beginning of the function and
33475         through a call to isnanl.
33476         * lib/tanl.c: Include isnanl.h.
33477         (tanl): Perform test for NaN at the beginning of the function and
33478         through a call to isnanl.
33479         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
33480         * modules/mathl (Depends-on): Add isnanl.
33481
33482 2007-03-26  Eric Blake  <ebb9@byu.net>
33483
33484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
33485         regression in logic sense of previous patch.
33486
33487 2007-03-26  Bruno Haible  <bruno@clisp.org>
33488
33489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
33490         unportable shell command "if ! ...".
33491         Reported by Ralf Wildenhues.
33492
33493 2007-03-25  Bruno Haible  <bruno@clisp.org>
33494
33495         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
33496         <sysexits.h> file, and only add EX_CONFIG.
33497         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
33498         absolute file name and whether it is sufficient. Substitute also
33499         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
33500         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
33501         ABSOLUTE_SYSEXITS_H into sysexits.h.
33502
33503 2007-03-25  Bruno Haible  <bruno@clisp.org>
33504
33505         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
33506         hints is NULL.
33507
33508 2007-03-25  Bruno Haible  <bruno@clisp.org>
33509
33510         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
33511         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
33512
33513 2007-03-25  Bruno Haible  <bruno@clisp.org>
33514
33515         * lib/vasnprintf.c: Include langinfo.h.
33516         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
33517         multithread-safe.
33518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
33519         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
33520         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33521         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33522         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33523         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33524         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33525         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
33526         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33527         Reported by Simon Josefsson.
33528
33529 2007-03-25  Bruno Haible  <bruno@clisp.org>
33530
33531         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
33532         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
33533         * modules/vasnprintf (Depends-on): Add stdint.
33534
33535 2007-03-25  Bruno Haible  <bruno@clisp.org>
33536
33537         * modules/fpieee: New file.
33538         * m4/fpieee.m4: New file.
33539         * modules/isnan-nolibm (Depends-on): Add fpieee.
33540         * modules/isnanl-nolibm (Depends-on): Add fpieee.
33541         * modules/isnanl (Depends-on): Add fpieee.
33542
33543 2007-03-25  Bruno Haible  <bruno@clisp.org>
33544
33545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
33546
33547 2007-03-25  Bruno Haible  <bruno@clisp.org>
33548
33549         Avoid test failures on IRIX 6.5.
33550         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
33551         (main): Use it.
33552         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
33553         macros.
33554         (main): Use them.
33555
33556 2007-03-25  Bruno Haible  <bruno@clisp.org>
33557
33558         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
33559         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
33560         exists but doesn't work.
33561         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
33562         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
33563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
33564         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
33565
33566 2007-03-25  Bruno Haible  <bruno@clisp.org>
33567
33568         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
33569         returns inf. Needed on IRIX 6.5.
33570
33571 2007-03-25  Bruno Haible  <bruno@clisp.org>
33572
33573         * tests/test-frexpl.c: Include isnanl-nolibm.h.
33574         (main): Use isnanl instead of x != x idiom.
33575         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
33576
33577         * tests/test-frexp.c: Include isnan.h.
33578         (main): Use isnan instead of x != x idiom.
33579         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
33580
33581 2007-03-25  Bruno Haible  <bruno@clisp.org>
33582
33583         * tests/test-frexp.c (NaN): New function/macro.
33584         (main): Use it instead of 0.0 / 0.0.
33585         * tests/test-isnan.c (NaN): New function/macro.
33586         (main): Use it instead of 0.0 / 0.0.
33587         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
33588         (test_function): Use it instead of 0.0 / 0.0.
33589         * tests/test-vasprintf-posix.c (NaN): New function/macro.
33590         (test_function): Use it instead of 0.0 / 0.0.
33591         * tests/test-snprintf-posix.h (NaN): New function/macro.
33592         (test_function): Use it instead of 0.0 / 0.0.
33593         * tests/test-sprintf-posix.h (NaN): New function/macro.
33594         (test_function): Use it instead of 0.0 / 0.0.
33595         * tests/test-fprintf-posix.h (NaN): New function/macro.
33596         (test_function): Use it instead of 0.0 / 0.0.
33597         * tests/test-printf-posix.h (NaN): New function/macro.
33598         (test_function): Use it instead of 0.0 / 0.0.
33599
33600         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
33601
33602 2007-03-25  Bruno Haible  <bruno@clisp.org>
33603
33604         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
33605
33606 2007-03-25  Bruno Haible  <bruno@clisp.org>
33607
33608         * lib/regexec.c (merge_state_with_log): Make static.
33609
33610 2007-03-25  Bruno Haible  <bruno@clisp.org>
33611
33612         * lib/trigl.c (kernel_rem_pio2): Make static.
33613
33614 2007-03-25  Bruno Haible  <bruno@clisp.org>
33615
33616         * lib/sincosl.c (sincosl_table): Make static.
33617
33618 2007-03-25  Bruno Haible  <bruno@clisp.org>
33619
33620         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
33621         if the compiler does not support C99.
33622
33623 2007-03-25  Bruno Haible  <bruno@clisp.org>
33624
33625         * modules/time (Makefile.am): Ensure all rule action lines start with a
33626         tab.
33627
33628 2007-03-24  Bruno Haible  <bruno@clisp.org>
33629
33630         * modules/tsearch-tests: New file.
33631         * tests/test-tsearch.sh: New file.
33632         * tests/test-tsearch.c: New file, mostly copied from glibc.
33633
33634         * modules/search-tests: New file.
33635         * tests/test-search.c: New file.
33636
33637         * modules/search: New file.
33638         * lib/search_.h: New file, incorporating lib/tsearch.h.
33639         * m4/search_h.m4: New file.
33640         * lib/tsearch.h: Remove file.
33641         * lib/tsearch.c: Include search.h instead of tsearch.h.
33642         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
33643         HAVE_TSEARCH.
33644         * modules/tsearch (Files): Remove lib/tsearch.h.
33645         (Depends-on): Add search.
33646         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
33647         (Include): Change tsearch.h into search.h.
33648
33649 2007-03-24  Bruno Haible  <bruno@clisp.org>
33650
33651         * modules/fpucw: New file.
33652         * lib/fpucw.h: New file.
33653         * lib/frexp.c: Include fpucw.h.
33654         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
33655         (FUNC): Use them.
33656         * lib/printf-frexp.c: Include fpucw.h.
33657         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
33658         (FUNC): Use them.
33659         * lib/vasnprintf.c: Include fpucw.h.
33660         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
33661         'long double' calculations.
33662         * tests/test-frexpl.c: Include fpucw.h.
33663         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
33664         * tests/test-printf-frexpl.c: Include fpucw.h.
33665         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
33666         * modules/frexpl (Depends-on): Add fpucw.
33667         * modules/printf-frexpl (Depends-on): Likewise.
33668         * modules/fprintf-posix (Depends-on): Likewise.
33669         * modules/snprintf-posix (Depends-on): Likewise.
33670         * modules/sprintf-posix (Depends-on): Likewise.
33671         * modules/vasnprintf-posix (Depends-on): Likewise.
33672         * modules/vasprintf-posix (Depends-on): Likewise.
33673         * modules/vfprintf-posix (Depends-on): Likewise.
33674         * modules/vsnprintf-posix (Depends-on): Likewise.
33675         * modules/vsprintf-posix (Depends-on): Likewise.
33676         * modules/frexpl-tests (Depends-on): Likewise.
33677         * modules/printf-frexpl-tests (Depends-on): Likewise.
33678
33679 2007-03-24  Bruno Haible  <bruno@clisp.org>
33680
33681         * lib/float+.h: New file.
33682         * lib/isnan.c: Include float+.h.
33683         (SIZE): New macro.
33684         (FUNC): Compare only SIZE bytes of the value.
33685         * lib/vasnprintf.c: Include float+.h.
33686         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
33687         SIZEOF_LDBL or SIZEOF_DBL bytes.
33688         * modules/isnan-nolibm (Files): Add lib/float+.h.
33689         * modules/isnanl-nolibm (Files): Add lib/float+.h.
33690         * modules/isnanl (Files): Add lib/float+.h.
33691         * modules/vasnprintf (Files): Add lib/float+.h.
33692
33693 2007-03-24  Bruno Haible  <bruno@clisp.org>
33694
33695         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
33696         include isnanl-nolibm.h.
33697
33698 2007-03-24  Bruno Haible  <bruno@clisp.org>
33699
33700         * tests/test-read-file.c (main): Don't produce spurious output for
33701         expected situations. Make the test fail if it encountered unexpected
33702         results.
33703
33704 2007-03-24  Bruno Haible  <bruno@clisp.org>
33705
33706         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
33707         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
33708
33709 2007-03-24  Bruno Haible  <bruno@clisp.org>
33710
33711         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
33712
33713 2007-03-24  Bruno Haible  <bruno@clisp.org>
33714
33715         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
33716         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
33717
33718         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
33719         * modules/utf8-ucs4: Turn into a symbolic link to module
33720         unistr/u8-mbtouc.
33721
33722         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
33723         utf8-ucs4-unsafe.
33724         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
33725         unistr/u8-mbtouc-unsafe.
33726
33727         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
33728         * modules/utf16-ucs4: Turn into a symbolic link to module
33729         unistr/u16-mbtouc.
33730
33731         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
33732         utf16-ucs4-unsafe.
33733         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
33734         unistr/u16-mbtouc-unsafe.
33735
33736         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
33737         * modules/ucs4-utf8: Turn into a symbolic link to module
33738         unistr/u8-ubtomb.
33739
33740         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
33741         * modules/ucs4-utf16: Turn into a symbolic link to module
33742         unistr/u16-ubtomb.
33743
33744 2007-03-24  Bruno Haible  <bruno@clisp.org>
33745
33746         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
33747         Enable the function only if HAVE_INLINE.
33748         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
33749         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
33750         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
33751         Enable the function only if HAVE_INLINE.
33752         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
33753         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
33754         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
33755         Enable the function only if HAVE_INLINE.
33756         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
33757         Enable the function only if HAVE_INLINE.
33758         * modules/utf8-ucs4: Update.
33759         * modules/utf8-ucs4-unsafe: Update.
33760         * modules/utf16-ucs4: Update.
33761         * modules/utf16-ucs4-unsafe: Update.
33762         * modules/ucs4-utf8: Update.
33763         * modules/ucs4-utf16: Update.
33764
33765 2007-03-24  Bruno Haible  <bruno@clisp.org>
33766
33767         * lib/utf8-ucs4.h: Remove file.
33768         * lib/utf8-ucs4-unsafe.h: Remove file.
33769         * lib/utf16-ucs4.h: Remove file.
33770         * lib/utf16-ucs4-unsafe.h: Remove file.
33771         * lib/ucs4-utf8.h: Remove file.
33772         * lib/ucs4-utf16.h: Remove file.
33773         * lib/unistr.h: Include their previous contents.
33774         * m4/utf-ucs4.m4: Remove file.
33775         * m4/ucs4-utf.m4: Remove file.
33776         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
33777         (Depends-on): Add unistr/base.
33778         (configure.ac): Remove gl_UTF_UCS4.
33779         (Makefile.am): Update.
33780         (Include): Change to unistr.h.
33781         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
33782         (Depends-on): Add unistr/base.
33783         (configure.ac): Remove gl_UTF_UCS4.
33784         (Makefile.am): Update.
33785         (Include): Change to unistr.h.
33786         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
33787         (Depends-on): Add unistr/base.
33788         (configure.ac): Remove gl_UTF_UCS4.
33789         (Makefile.am): Update.
33790         (Include): Change to unistr.h.
33791         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
33792         (Depends-on): Add unistr/base.
33793         (configure.ac): Remove gl_UTF_UCS4.
33794         (Makefile.am): Update.
33795         (Include): Change to unistr.h.
33796         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
33797         (Depends-on): Add unistr/base.
33798         (configure.ac): Remove gl_UCS4_UTF.
33799         (Makefile.am): Update.
33800         (Include): Change to unistr.h.
33801         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
33802         (Depends-on): Add unistr/base.
33803         (configure.ac): Remove gl_UCS4_UTF.
33804         (Makefile.am): Update.
33805         (Include): Change to unistr.h.
33806         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
33807         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
33808         utf8-ucs4-unsafe.h.
33809         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
33810         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
33811         utf16-ucs4-unsafe.h.
33812         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
33813         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
33814         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
33815         * lib/unistr/u8-strchr.c: Likewise.
33816         * lib/unistr/u8-strrchr.c: Likewise.
33817         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
33818         * lib/unistr/u16-strchr.c: Likewise.
33819         * lib/unistr/u16-strrchr.c: Likewise.
33820         * lib/striconveh.c: Update.
33821         * lib/linebreak.c: Update.
33822
33823 2007-03-24  Bruno Haible  <bruno@clisp.org>
33824
33825         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
33826         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
33827
33828 2007-03-22  Bruno Haible  <bruno@clisp.org>
33829
33830         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
33831
33832 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
33833
33834         * MODULES.html.sh (File system functions): New module write-any-file.
33835         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
33836         * m4/write-any-file.m4: New files.
33837
33838 2007-03-23  Eric Blake  <ebb9@byu.net>
33839
33840         * gnulib-tool: Rearrange space-tab sequences, since some editors
33841         like to eat them.
33842
33843 2007-03-23  Eric Blake  <ebb9@byu.net>
33844
33845         * lib/version-etc.c (version_etc_va): Update license wording to
33846         be more concise.  Recommended by Richard Stallman.
33847
33848 2007-03-22  Bruno Haible  <bruno@clisp.org>
33849
33850         * lib/poll.c (MSG_PEEK): New fallback definition.
33851
33852 2007-03-22  Bruno Haible  <bruno@clisp.org>
33853
33854         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
33855         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
33856         (main): Update.
33857         Fixes a compilation error on BeOS.
33858
33859 2007-03-22  Bruno Haible  <bruno@clisp.org>
33860
33861         * modules/frexpl-tests: New file.
33862         * tests/test-frexpl.c: New file.
33863
33864         * modules/frexpl: New file.
33865         * m4/frexpl.m4: New file.
33866         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
33867         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
33868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
33869         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
33870         (Depends-on): Add frexpl. Remove isnanl-nolibm.
33871         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
33872
33873 2007-03-22  Bruno Haible  <bruno@clisp.org>
33874
33875         * lib/frexpl.c: Share code with lib/frexp.c.
33876         * modules/mathl (Files): Add lib/frexp.c.
33877         (Depends-on): Add isnanl-nolibm.
33878
33879 2007-03-22  Bruno Haible  <bruno@clisp.org>
33880
33881         * modules/printf-frexp (Files): Add m4/frexp.m4.
33882         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
33883         only if the found frexp function actually works.
33884
33885 2007-03-22  Bruno Haible  <bruno@clisp.org>
33886
33887         * lib/frexp.c: Remove older implementation that uses divisions.
33888
33889 2007-03-21  Bruno Haible  <bruno@clisp.org>
33890
33891         * modules/frexp-tests: New file.
33892         * tests/test-frexp.c: New file.
33893
33894         * modules/frexp: New file.
33895         * lib/frexp.c: New file.
33896         * m4/frexp.m4: New file.
33897         * lib/math_.h (frexp): New declaration.
33898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
33899         REPLACE_FREXP.
33900         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
33901
33902 2007-03-21  Bruno Haible  <bruno@clisp.org>
33903
33904         * modules/isnanl-tests: New file.
33905         * tests/test-isnanl.c: New file.
33906
33907         * modules/isnanl: New file.
33908         * lib/isnanl.h: New file.
33909         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
33910         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
33911         gl_FUNC_ISNANL_WORKS.
33912         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
33913         New macros.
33914
33915 2007-03-21  Bruno Haible  <bruno@clisp.org>
33916
33917         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
33918         lib/isnanl.h.
33919         (Include): Update.
33920         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
33921         * lib/vasnprintf.c: Update.
33922         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
33923         tests/test-isnanl.h, remove tests/test-isnanl.c.
33924         (Makefile.am): Update.
33925         * tests/test-isnanl-nolibm.c: New file.
33926         * tests/test-isnanl.h: New file.
33927         * tests/test-isnanl.c: Remove file.
33928
33929 2007-03-21  Jim Meyering  <jim@meyering.net>
33930
33931         When trying to open ".", treat ESTALE like EACCES.
33932         * lib/savewd.c (savewd_save): Resort to forking not just upon
33933         failure with EACCES, but also when errno is ESTALE.
33934
33935 2007-03-20  Bruno Haible  <bruno@clisp.org>
33936
33937         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
33938         Needed on AIX 5.1. Reported by Matthew Woehlke.
33939
33940 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33941
33942         Suggestions by Bruno Haible:
33943         * lib/acl-internal.h: Include "gettext.h" rather than rolling
33944         our own.
33945         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
33946         * modules/acl (Depends-on): Add gettext.
33947
33948 2007-03-19  Bruno Haible  <bruno@clisp.org>
33949
33950         * modules/iconvme: Remove file.
33951         * lib/iconvme.h: Remove file.
33952         * lib/iconvme.c: Remove file.
33953         * m4/iconvme.m4: Remove file.
33954
33955 2007-03-19  Bruno Haible  <bruno@clisp.org>
33956
33957         * doc/relocatable-maint.texi: Break long shell script line.
33958         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33959
33960 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33961
33962         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
33963         handle file_has_acl.
33964         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
33965         * lib/acl.c: Move header inclusions and related macro defns into
33966         lib/acl-internal.h.
33967         (S_ISLNK): Remove defn, since that's now done for us.
33968         (file_has_acl): Move to lib/file-has-acl.c.
33969         Call acl_trivial if available.  This is the crucial part of the fix.
33970         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
33971         shared within the library.  Rewrite a bit, partly to make it compatible
33972         with the GNU coding style.
33973         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
33974         Remove unnecessary double-quotes.
33975         Don't test for acl_to_text; the build will catch that.
33976         Replace acl_entries if it doesn't exist and it is needed.
33977         Check for -lsec and acl_trivial (as used on Solaris 10).
33978         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
33979         lib/file-has-acl.c.
33980         (Depends-on): Add sys_stat, for S_ISLNK.
33981
33982 2007-03-19  Ben Pfaff  <blp@gnu.org>
33983
33984         * doc/gnulib.texi: Fix typos.
33985         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33986
33987 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33988
33989         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
33990         If size is zero here, buf must be zero.
33991
33992 2007-03-19  Simon Josefsson  <simon@josefsson.org>
33993
33994         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
33995         <bruno@clisp.org>.
33996
33997 2007-03-18  Bruno Haible  <bruno@clisp.org>
33998
33999         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
34000         Suggested by Eric Blake.
34001
34002 2007-03-18  Ben Pfaff  <blp@gnu.org>
34003
34004         * doc/relocatable.texi: Recommend using as prefix a directory
34005         that does not exist and will never be created.  Based on
34006         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
34007         and others.
34008
34009 2007-03-17  Bruno Haible  <bruno@clisp.org>
34010
34011         * lib/fchownat.c: Include lchown.h.
34012
34013 2007-03-17  Bruno Haible  <bruno@clisp.org>
34014
34015         Fix endless loop when the given allocated size was > INT_MAX.
34016         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
34017         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
34018         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
34019         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
34020         * lib/sprintf.c (sprintf): Likewise.
34021
34022 2007-03-17  Bruno Haible  <bruno@clisp.org>
34023
34024         * tests/test-argp-2.sh (func_compare): Output a context diff.
34025
34026 2007-03-17  Bruno Haible  <bruno@clisp.org>
34027
34028         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
34029         locale's decimal-point character.
34030
34031 2007-03-17  Bruno Haible  <bruno@clisp.org>
34032
34033         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
34034         before comparing it. Needed because on some platforms (e.g. x86) a
34035         'long double' occupies less bytes than sizeof (long double).
34036
34037 2007-03-17  Bruno Haible  <bruno@clisp.org>
34038
34039         * tests/test-crc.c (main): Make printf statements 64-bit clean.
34040         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
34041         * tests/test-getaddrinfo.c (simple): Likewise.
34042         * tests/test-read-file.c (main): Likewise.
34043
34044 2007-03-17  Bruno Haible  <bruno@clisp.org>
34045
34046         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
34047
34048 2007-03-17  Bruno Haible  <bruno@clisp.org>
34049
34050         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
34051         unused variable.
34052
34053 2007-03-17  Bruno Haible  <bruno@clisp.org>
34054
34055         * tests/test-c-strcasecmp.c: Include c-strcase.h.
34056         * tests/test-c-strncasecmp.c: Likewise.
34057
34058 2007-03-17  Bruno Haible  <bruno@clisp.org>
34059
34060         * modules/stdlib (Depends-on): Add unistd.
34061         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
34062         Needed for MacOS X 10.3.
34063
34064 2007-03-17  Bruno Haible  <bruno@clisp.org>
34065
34066         * lib/unistr/u-strdup.h: Include <stdlib.h>.
34067
34068 2007-03-17  Bruno Haible  <bruno@clisp.org>
34069
34070         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
34071
34072 2007-03-17  Bruno Haible  <bruno@clisp.org>
34073
34074         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
34075         to reflect files copied from gnulib (with or without modifications).
34076         Suggested by Jim Meyering.
34077
34078 2007-03-17  Eric Blake  <ebb9@byu.net>
34079
34080         * NEWS: Document stdlib change from 2007-02-18.
34081
34082 2007-03-17  Jim Meyering  <jim@meyering.net>
34083
34084         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
34085         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
34086         someone uses a name containing shell meta-characters.
34087         Reported by Alfred M. Szmidt.
34088
34089         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
34090
34091 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34092
34093         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
34094         and copy gettext configuration files only if configure.ac contains
34095         a use of AM_GNU_GETTEXT_VERSION.
34096
34097 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34098
34099         * build-aux/bootstrap (gnulib_name): New variable.
34100         (gnulib_tool_options): Use it.
34101
34102 2007-03-13  Simon Josefsson  <simon@josefsson.org>
34103
34104         * tests/test-des.c: Use new namespace.
34105
34106 2007-03-15  Bruno Haible  <bruno@clisp.org>
34107
34108         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
34109         Reported by James Youngman <jay@gnu.org>.
34110
34111 2007-03-15  Bruno Haible  <bruno@clisp.org>
34112
34113         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
34114         declared prototype. Needed with cc on OSF/1 5.1.
34115
34116 2007-03-15  Bruno Haible  <bruno@clisp.org>
34117
34118         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
34119         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
34120         (struct gl_list_implementation): Add dispose_fn argument to the
34121         'create_empty', 'create' methods.
34122         (struct gl_list_impl_base): Add field 'dispose_fn'.
34123         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
34124         argument.
34125         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
34126         dispose_fn argument.
34127         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
34128         dispose_fn on the dropped values.
34129         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
34130         dispose_fn argument.
34131         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
34132         dropped values.
34133         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
34134         (gl_tree_remove_node): Call dispose_fn on the dropped value.
34135         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
34136         (gl_tree_remove_node): Call dispose_fn on the dropped value.
34137         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
34138         argument.
34139         (gl_tree_list_free): Call dispose_fn on the dropped values.
34140         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
34141         the dropped values.
34142         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
34143         Add dispose_fn argument.
34144         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
34145         Call dispose_fn on the dropped values.
34146         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
34147         Add dispose_fn argument.
34148         (gl_sublist_create): Initialize the 'dispose_fn' field.
34149         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
34150         * tests/test-array_list.c (main): Update.
34151         * tests/test-carray_list.c (main): Update.
34152         * tests/test-avltree_list.c (main): Update.
34153         * tests/test-rbtree_list.c (main): Update.
34154         * tests/test-avltreehash_list.c (main): Update.
34155         * tests/test-rbtreehash_list.c (main): Update.
34156         * tests/test-linked_list.c (main): Update.
34157         * tests/test-linkedhash_list.c (main): Update.
34158         * tests/test-array_oset.c (main): Update.
34159
34160 2007-03-15  Bruno Haible  <bruno@clisp.org>
34161
34162         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
34163         (gl_oset_create_empty): Add dispose_fn argument.
34164         (struct gl_oset_implementation): Add dispose_fn argument to
34165         'create_empty' method.
34166         (struct gl_oset_impl_base): Add dispose_fn field.
34167         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
34168         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
34169         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
34170         values.
34171         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
34172         (gl_tree_oset_free): Call dispose_fn on the dropped values.
34173         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34174         dropped value.
34175         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34176         dropped value.
34177         * tests/test-array_oset.c (main): Update.
34178         * tests/test-avltree_oset.c (main): Update.
34179         * tests/test-rbtree_oset.c (main): Update.
34180         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
34181
34182 2007-03-13  Bruno Haible  <bruno@clisp.org>
34183
34184         * tests/test-stdbool.c (i): Update after last patch.
34185
34186 2007-03-12  Bruno Haible  <bruno@clisp.org>
34187
34188         * lib/quotearg.c: Include <wctype.h> early, before the definition of
34189         the iswprint macro. Needed on Solaris 2.5.1.
34190
34191 2007-03-12  Bruno Haible  <bruno@clisp.org>
34192
34193         * tests/test-printf-frexp.c (main): Declare x as volatile.
34194
34195 2007-03-12  Simon Josefsson  <simon@josefsson.org>
34196
34197         * doc/gnulib.texi (Build robot for gnulib): New section.
34198
34199 2007-03-12  Jim Meyering  <jim@meyering.net>
34200
34201         * build-aux/bootstrap: New file.
34202         * build-aux/bootstrap.conf: New file, from coreutils.
34203
34204 2007-03-11  Bruno Haible  <bruno@clisp.org>
34205
34206         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
34207
34208 2007-03-12  Simon Josefsson  <simon@josefsson.org>
34209
34210         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
34211         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
34212         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
34213
34214 2007-03-11  Bruno Haible  <bruno@clisp.org>
34215
34216         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
34217         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
34218
34219 2007-03-11  Bruno Haible  <bruno@clisp.org>
34220
34221         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
34222         formula. Needed for SunPRO C 5.0.
34223
34224 2007-03-11  Bruno Haible  <bruno@clisp.org>
34225
34226         * modules/long-options (Depends-on): Add getopt.
34227
34228 2007-03-11  Bruno Haible  <bruno@clisp.org>
34229
34230         * modules/modechange (Depends-on): Add stdbool.
34231
34232 2007-03-11  Bruno Haible  <bruno@clisp.org>
34233
34234         * modules/i-ring (Depends-on): Add stdbool.
34235
34236 2007-03-11  Bruno Haible  <bruno@clisp.org>
34237
34238         * modules/gc-des (Depends-on): Add stdbool.
34239
34240 2007-03-11  Bruno Haible  <bruno@clisp.org>
34241
34242         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
34243
34244 2007-03-11  Bruno Haible  <bruno@clisp.org>
34245
34246         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
34247
34248 2007-03-11  Bruno Haible  <bruno@clisp.org>
34249
34250         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
34251
34252 2007-03-11  Bruno Haible  <bruno@clisp.org>
34253
34254         * lib/vasnprintf.c (sprintf): Undefine.
34255
34256 2007-03-11  Bruno Haible  <bruno@clisp.org>
34257
34258         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
34259         initializers in SunPRO C and Compaq C compilers.
34260
34261 2007-03-11  Bruno Haible  <bruno@clisp.org>
34262
34263         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
34264         decrementing code ANSI C compliant.
34265
34266 2007-03-11  Bruno Haible  <bruno@clisp.org>
34267
34268         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
34269         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
34270
34271 2007-03-11  Bruno Haible  <bruno@clisp.org>
34272
34273         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
34274         <stdbool.h> substitute doesn't pass.
34275
34276 2007-03-11  Bruno Haible  <bruno@clisp.org>
34277
34278         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
34279
34280 2007-03-11  Bruno Haible  <bruno@clisp.org>
34281
34282         * gnulib-tool (func_create_megatestdir): Create also an autobuild
34283         script, for submission to autobuild.josefsson.org.
34284
34285 2007-03-10  Bruno Haible  <bruno@clisp.org>
34286
34287         * modules/canonicalize-lgpl-tests: New file.
34288         * tests/test-canonicalize-lgpl.sh: New file.
34289         * tests/test-canonicalize-lgpl.c: New file.
34290
34291         * modules/c-strcase-tests: New file.
34292         * tests/test-c-strcase.sh: New file.
34293         * tests/test-c-strcasecmp.c: New file.
34294         * tests/test-c-strncasecmp.c: New file.
34295
34296         * modules/atexit-tests: New file.
34297         * tests/test-atexit.sh: New file.
34298         * tests/test-atexit.c: New file.
34299
34300 2007-03-10  Bruno Haible  <bruno@clisp.org>
34301
34302         * tests/test-binary-io.sh: Use temporary filenames that are not so
34303         likely to clash with those of other tests (in a parallel make).
34304         * tests/test-binary-io.c: Likewise.
34305
34306 2007-03-10  Bruno Haible  <bruno@clisp.org>
34307
34308         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
34309         fallback; use #error instead.
34310         Suggested by Simon Josefsson.
34311
34312 2007-03-10  Bruno Haible  <bruno@clisp.org>
34313
34314         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
34315         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
34316         first and the last.
34317
34318 2007-03-10  Bruno Haible  <bruno@clisp.org>
34319
34320         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
34321
34322 2007-03-10  Bruno Haible  <bruno@clisp.org>
34323
34324         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
34325         "make distcheck".
34326         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
34327         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
34328         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
34329
34330 2007-03-10  Bruno Haible  <bruno@clisp.org>
34331
34332         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
34333         variable.
34334         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
34335         variable.
34336
34337 2007-03-09  Eric Blake  <ebb9@byu.net>
34338         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
34339
34340         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
34341         types are not being provided by gnulib.
34342         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
34343         types are supported.
34344
34345 2007-03-10  Bruno Haible  <bruno@clisp.org>
34346
34347         * lib/stdio_.h (__attribute__): New macro.
34348         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
34349         vsprintf): Specify __attribute__ __format__ for GCC.
34350         Suggested by Eric Blake.
34351
34352 2007-03-09  Bruno Haible  <bruno@clisp.org>
34353
34354         * modules/printf-posix-tests: New file.
34355         * tests/test-printf-posix.sh: New file.
34356         * tests/test-printf-posix.c: New file.
34357
34358         * modules/printf-posix: New file.
34359         * lib/printf.c: New file.
34360         * m4/printf-posix-rpl.m4: New file.
34361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
34362         REPLACE_PRINTF.
34363         * lib/stdio_.h (printf): New declaration.
34364         (format, __format__, ____printf____, ____scanf____, ____strftime____,
34365         ____strfmon____): New macros.
34366         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
34367         REPLACE_PRINTF.
34368
34369 2007-03-09  Bruno Haible  <bruno@clisp.org>
34370
34371         * tests/test-vasnprintf-posix2.sh: New file.
34372         * tests/test-vasnprintf-posix2.c: New file.
34373         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
34374         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34375         (Makefile.am): Activate test-vasnprintf-posix2.sh.
34376
34377         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
34378         a locale dependent decimal point, rather than always '.'.
34379
34380 2007-03-09  Eric Blake  <ebb9@byu.net>
34381
34382         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
34383         spite of platforms like Tandem/NSK that define it to -1.
34384
34385 2007-03-08  Bruno Haible  <bruno@clisp.org>
34386
34387         * modules/vprintf-posix-tests: New file.
34388         * tests/test-vprintf-posix.sh: New file.
34389         * tests/test-vprintf-posix.c: New file.
34390         * tests/test-printf-posix.h: New file.
34391
34392         * modules/vprintf-posix: New file.
34393         * lib/vprintf.c: New file.
34394         * m4/vprintf-posix.m4: New file.
34395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
34396         REPLACE_VPRINTF.
34397         * lib/stdio_.h (vprintf): New declaration.
34398         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
34399         REPLACE_VPRINTF.
34400
34401 2007-03-08  Bruno Haible  <bruno@clisp.org>
34402
34403         * modules/fprintf-posix-tests: New file.
34404         * tests/test-fprintf-posix.sh: New file.
34405         * tests/test-fprintf-posix.c: New file.
34406
34407         * modules/fprintf-posix: New file.
34408         * lib/fprintf.c: New file.
34409         * m4/fprintf-posix.m4: New file.
34410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
34411         REPLACE_FPRINTF.
34412         * lib/stdio_.h (fprintf): New declaration.
34413         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
34414         REPLACE_FPRINTF.
34415
34416 2007-03-08  Bruno Haible  <bruno@clisp.org>
34417
34418         * modules/vfprintf-posix-tests: New file.
34419         * tests/test-vfprintf-posix.sh: New file.
34420         * tests/test-vfprintf-posix.c: New file.
34421         * tests/test-fprintf-posix.h: New file.
34422         * tests/test-fprintf-posix.out: New file.
34423
34424         * modules/vfprintf-posix: New file.
34425         * lib/vfprintf.c: New file.
34426         * m4/vfprintf-posix.m4: New file.
34427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
34428         REPLACE_VFPRINTF.
34429         * lib/stdio_.h (vfprintf): New declaration.
34430         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
34431         REPLACE_VFPRINTF.
34432
34433 2007-03-08  Bruno Haible  <bruno@clisp.org>
34434
34435         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
34436
34437 2007-03-08  Bruno Haible  <bruno@clisp.org>
34438
34439         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
34440         instead of 'expr' invocations.
34441         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34442         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34443         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34445         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34446         Suggested by Paul Eggert.
34447
34448 2007-03-08  Bruno Haible  <bruno@clisp.org>
34449
34450         * modules/fseterr-tests: New file.
34451         * tests/test-fseterr.c: New file.
34452
34453         * modules/fseterr: New file.
34454         * lib/fseterr.h: New file.
34455         * lib/fseterr.c: New file.
34456
34457 2007-03-08  Bruno Haible  <bruno@clisp.org>
34458
34459         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
34460         * lib/getopt_.h: Likewise.
34461         * lib/mbswidth.h: Likewise.
34462         * lib/setenv.h: Likewise.
34463         * lib/vasnprintf.h: Likewise.
34464         * lib/vasprintf.h: Likewise.
34465         * lib/verror.h: Likewise.
34466         * lib/xsetenv.h: Likewise.
34467         * lib/xvasprintf.h: Likewise.
34468
34469 2007-03-08  Jim Meyering  <jim@meyering.net>
34470
34471         * users.txt: Add parted.
34472
34473         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
34474
34475 2007-03-07  Bruno Haible  <bruno@clisp.org>
34476
34477         * m4/printf.m4: Make the shell script snippets copy&pastable.
34478
34479 2007-03-02  Bruno Haible  <bruno@clisp.org>
34480
34481         * lib/netinet_in_.h: New file.
34482         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
34483         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
34484         * modules/netinet_in (Files): Add lib/netinet_in_.h.
34485         (Depends-on): Add absolute-header.
34486         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
34487         into netinet/in.h.
34488
34489 2007-03-03  Bruno Haible  <bruno@clisp.org>
34490
34491         * lib/sys_select_.h: New file.
34492         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
34493         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
34494         * modules/sys_select (Files): Add lib/sys_select_.h.
34495         (Depends-on): Add absolute-header.
34496         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
34497         into sys/select.h.
34498
34499 2007-03-02  Bruno Haible  <bruno@clisp.org>
34500
34501         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
34502         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
34503         values.
34504         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
34505         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
34506         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
34507         * modules/sys_socket (Depends-on): Add absolute-header.
34508         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
34509         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
34510         (Include): Remove requirement of inclusion of <sys/types.h>.
34511
34512 2007-03-02  Bruno Haible  <bruno@clisp.org>
34513
34514         * lib/byteswap_.h (bswap_32): Fix formula.
34515
34516 2007-03-06  Bruno Haible  <bruno@clisp.org>
34517
34518         * modules/sprintf-posix-tests: New file.
34519         * tests/test-sprintf-posix.c: New file.
34520
34521         * modules/sprintf-posix: New file.
34522         * lib/sprintf.c: New file.
34523         * m4/sprintf-posix.m4: New file.
34524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
34525         REPLACE_SPRINTF.
34526         * lib/stdio_.h (sprintf): New declaration.
34527         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
34528         REPLACE_SPRINTF.
34529
34530 2007-03-06  Bruno Haible  <bruno@clisp.org>
34531
34532         * modules/vsprintf-posix-tests: New file.
34533         * tests/test-vsprintf-posix.c: New file.
34534         * tests/test-sprintf-posix.h: New file.
34535
34536         * modules/vsprintf-posix: New file.
34537         * lib/vsprintf.c: New file.
34538         * m4/vsprintf-posix.m4: New file.
34539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
34540         REPLACE_VSPRINTF.
34541         * lib/stdio_.h (vsprintf): New declaration.
34542         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
34543         REPLACE_VSPRINTF.
34544
34545 2007-03-06  Bruno Haible  <bruno@clisp.org>
34546
34547         * modules/vsnprintf (Depend-on): Remove minmax.
34548
34549 2007-03-06  Bruno Haible  <bruno@clisp.org>
34550
34551         * modules/snprintf-posix-tests: New file.
34552         * tests/test-snprintf-posix.c: New file.
34553
34554         * modules/snprintf-posix: New file.
34555         * m4/snprintf-posix.m4: New file.
34556         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
34557         gl_FUNC_SNPRINTF.
34558         (gl_FUNC_SNPRINTF): Invoke it.
34559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
34560         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
34561         is set.
34562         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
34563
34564 2007-03-06  Bruno Haible  <bruno@clisp.org>
34565
34566         * modules/vsnprintf-posix-tests: New file.
34567         * tests/test-vsnprintf-posix.c: New file.
34568         * tests/test-snprintf-posix.h: New file.
34569
34570         * modules/vsnprintf-posix: New file.
34571         * m4/vsnprintf-posix.m4: New file.
34572         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
34573         gl_FUNC_VSNPRINTF.
34574         (gl_FUNC_VSNPRINTF): Invoke it.
34575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
34576         * lib/stdio_.h (vsnprintf): Define as a replacement if
34577         REPLACE_VSNPRINTF is set.
34578         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
34579
34580 2007-03-06  Bruno Haible  <bruno@clisp.org>
34581
34582         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
34583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
34584
34585 2007-03-06  Bruno Haible  <bruno@clisp.org>
34586
34587         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
34588         (asinl): Declare also if HAVE_DECL_ASINL is set.
34589         (atanl): Declare also if HAVE_DECL_ATANL is set.
34590         (ceill): Declare also if HAVE_DECL_CEILL is set.
34591         (cosl): Declare also if HAVE_DECL_COSL is set.
34592         (expl): Declare also if HAVE_DECL_EXPL is set.
34593         (floorl): Declare also if HAVE_DECL_FLOORL is set.
34594         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
34595         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
34596         (logl): Declare also if HAVE_DECL_LOGL is set.
34597         (sinl): Declare also if HAVE_DECL_SINL is set.
34598         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
34599         (tanl): Declare also if HAVE_DECL_TANL is set.
34600         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
34601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
34602         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
34603         declaration of frexpl, ldexpl.
34604         * modules/printf-frexpl (Depends-on): Add math.
34605         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
34606
34607 2007-03-05  Bruno Haible  <bruno@clisp.org>
34608
34609         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
34610         frexpl and ldexpl are declared.
34611         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
34612
34613 2007-03-05  Bruno Haible  <bruno@clisp.org>
34614
34615         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
34616         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
34617
34618 2007-03-05  Bruno Haible  <bruno@clisp.org>
34619
34620         * lib/stdio_.h: Include <stddef.h>.
34621
34622 2007-03-05  Bruno Haible  <bruno@clisp.org>
34623
34624         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
34625
34626 2007-03-05  Bruno Haible  <bruno@clisp.org>
34627
34628         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
34629         NetBSD 4, from Ralf Wildenhues.
34630
34631 2007-03-04  Bruno Haible  <bruno@clisp.org>
34632
34633         * lib/vasprintf.h: Update #if logic for the case when the functions
34634         exist but are overridden.
34635
34636 2007-03-04  Bruno Haible  <bruno@clisp.org>
34637
34638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
34639         implementations: glibc-2.4 and MacOS X 10.3.
34640         * tests/test-vasnprintf-posix.c (test_function): Test also the case
34641         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
34642         * tests/test-vasprintf-posix.c (test_function): Likewise.
34643
34644 2007-03-04  Bruno Haible  <bruno@clisp.org>
34645
34646         * modules/vasprintf-posix-tests: New file.
34647         * tests/test-vasprintf-posix.c: New file.
34648
34649         * modules/vasprintf-posix: New file.
34650         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
34651         defined.
34652         * m4/vasprintf-posix.m4: New file.
34653         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
34654         gl_FUNC_VASPRINTF.
34655         (gl_FUNC_VASPRINTF): Invoke it.
34656         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
34657         here.
34658         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
34659
34660 2007-03-04  Bruno Haible  <bruno@clisp.org>
34661
34662         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
34663         REPLACE_GETTIMEOFDAY.
34664         * modules/sys_time (Makefile.am): Likewise.
34665         * m4/sys_time_h.m4: Likewise.
34666         * m4/gettimeofday.m4: Likewise.
34667
34668 2007-03-04  Bruno Haible  <bruno@clisp.org>
34669
34670         * modules/vasnprintf-posix-tests: New file.
34671         * tests/test-vasnprintf-posix.c: New file.
34672
34673         * modules/vasnprintf-posix: New file.
34674         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
34675         printf-frexpl.h.
34676         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
34677         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
34678         REPLACE_VASNPRINTF is defined.
34679         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
34680         gl_FUNC_VASNPRINTF.
34681         (gl_FUNC_VASNPRINTF): Invoke it.
34682         * m4/vasnprintf-posix.m4: New file.
34683         * m4/printf.m4: New file.
34684
34685 2007-03-04  Bruno Haible  <bruno@clisp.org>
34686
34687         Compile progreloc.c only if --enable-relocatable is specified.
34688         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
34689         if --enable-relocatable was specified.
34690         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
34691         lib_SOURCES.
34692
34693 2007-03-04  Jim Meyering  <jim@meyering.net>
34694
34695         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
34696         Use it consistently, rather than enumerating errno constants.
34697
34698 2007-03-04  Bruno Haible  <bruno@clisp.org>
34699
34700         * modules/xvasprintf-tests: New file.
34701         * tests/test-xvasprintf.c: New file.
34702
34703         * modules/vasprintf-tests: New file.
34704         * tests/test-vasprintf.c: New file.
34705
34706         * modules/vasnprintf-tests: New file.
34707         * tests/test-vasnprintf.c: New file.
34708
34709         * modules/vsnprintf-tests: New file.
34710         * tests/test-vsnprintf.c: New file.
34711
34712         * modules/snprintf-tests: New file.
34713         * tests/test-snprintf.c: New file.
34714
34715 2007-03-04  Bruno Haible  <bruno@clisp.org>
34716
34717         Compile relocatable.c only if --enable-relocatable is specified.
34718         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
34719         gl_RELOCATABLE_LIBRARY.
34720         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
34721         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
34722         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
34723         gl_RELOCATABLE_LIBRARY.
34724         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
34725         (Makefile.am): Remove lib_SOURCES.
34726         * modules/relocatable-lib-lgpl (configure.ac): Invoke
34727         gl_RELOCATABLE_LIBRARY.
34728         (Makefile.am): Remove lib_SOURCES.
34729         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
34730         always.
34731         * modules/relocatable-prog-wrapper (configure.ac): Invoke
34732         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
34733
34734 2007-03-04  Bruno Haible  <bruno@clisp.org>
34735
34736         * modules/argmatch-tests: New file.
34737         * tests/test-argmatch.c: New file.
34738
34739         * tests/test-allocsa.c (main): Halve the number of loop runs.
34740
34741         * modules/alloca-opt-tests: New file.
34742         * tests/test-alloca-opt.c: New file.
34743
34744 2007-03-04  Jim Meyering  <jim@meyering.net>
34745
34746         Work around difference between Linux ACLs and Solaris 10 ZFS.
34747         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
34748         for EINVAL.
34749
34750 2007-03-03  Bruno Haible  <bruno@clisp.org>
34751
34752         * modules/relocatable-prog (Depends-on): Add back progreloc's
34753         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
34754
34755 2007-03-03  Bruno Haible  <bruno@clisp.org>
34756
34757         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
34758         * modules/relocatable-lib: New file.
34759
34760 2007-03-03  Bruno Haible  <bruno@clisp.org>
34761
34762         * modules/relocatable-prog: Renamed from modules/relocatable.
34763         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
34764
34765 2007-03-03  Bruno Haible  <bruno@clisp.org>
34766
34767         * modules/relocatable-script (Files): Add doc/relocatable.texi,
34768         m4/relocatable-lib.m4.
34769         (Depends-on): Remove 'relocatable'.
34770         (configure.ac): Add gl_RELOCATABLE_NOP.
34771
34772 2007-03-03  Bruno Haible  <bruno@clisp.org>
34773
34774         * modules/relocatable-prog-wrapper: New file.
34775         * modules/relocatable (Depends-on): Add it. Remove all other
34776         dependencies except progname.
34777         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
34778
34779         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
34780         (gl_FUNC_STRERROR): Nop.
34781         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
34782
34783         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
34784         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
34785
34786         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
34787         (gl_FUNC_READLINK): Update.
34788
34789         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
34790
34791 2007-03-03  Bruno Haible  <bruno@clisp.org>
34792
34793         * lib/xreadlink.c: Include <unistd.h> unconditionally.
34794         * modules/xreadlink (Depends-on): Add unistd.
34795         * modules/xreadlink-with-size (Depends-on): Likewise.
34796
34797 2007-03-03  Bruno Haible  <bruno@clisp.org>
34798
34799         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
34800         extracted from gt_FUNC_SETENV.
34801         (gt_FUNC_SETENV): Remove macro.
34802         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
34803         remove gt_FUNC_SETENV.
34804
34805 2007-03-03  Bruno Haible  <bruno@clisp.org>
34806
34807         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
34808         ENABLE_RELOCATABLE here.
34809         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
34810
34811 2007-03-03  Bruno Haible  <bruno@clisp.org>
34812
34813         * modules/rbtreehash-list-tests (Depends-on): Add progname.
34814         * tests/test-rbtreehash_list.c: Include progname.h.
34815         (main): Call set_program_name.
34816
34817         * modules/rbtree-oset-tests (Depends-on): Add progname.
34818         * tests/test-rbtree_oset.c: Include progname.h.
34819         (main): Call set_program_name.
34820
34821         * modules/rbtree-list-tests (Depends-on): Add progname.
34822         * tests/test-rbtree_list.c: Include progname.h.
34823         (main): Call set_program_name.
34824
34825         * modules/linked-list-tests (Depends-on): Add progname.
34826         * tests/test-linked_list.c: Include progname.h.
34827         (main): Call set_program_name.
34828
34829 2007-03-03  Bruno Haible  <bruno@clisp.org>
34830
34831         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
34832         All uses of __restrict changed to _Restrict_.
34833         * lib/glob_.h (__restrict): Remove macro.
34834
34835 2007-03-02  Bruno Haible  <bruno@clisp.org>
34836
34837         * modules/gettext (configure.ac): Require gettext infrastructure
34838         from version 0.16.1.
34839
34840 2007-03-02  Bruno Haible  <bruno@clisp.org>
34841
34842         * modules/linkedhash-list-tests (Depends-on): Add progname.
34843         * tests/test-linkedhash_list.c: Include progname.h.
34844         (main): Call set_program_name.
34845
34846         * modules/carray-list-tests (Depends-on): Add progname.
34847         * tests/test-carray_list.c: Include progname.h.
34848         (main): Call set_program_name.
34849
34850         * modules/avltreehash-list-tests (Depends-on): Add progname.
34851         * tests/test-avltreehash_list.c: Include progname.h.
34852         (main): Call set_program_name.
34853
34854         * modules/avltree-oset-tests (Depends-on): Add progname.
34855         * tests/test-avltree_oset.c: Include progname.h.
34856         (main): Call set_program_name.
34857
34858         * modules/avltree-list-tests (Depends-on): Add progname.
34859         * tests/test-avltree_list.c: Include progname.h.
34860         (main): Call set_program_name.
34861
34862         * modules/array-oset-tests (Depends-on): Add progname.
34863         * tests/test-array_oset.c: Include progname.h.
34864         (main): Call set_program_name.
34865
34866         * modules/array-list-tests (Depends-on): Add progname.
34867         * tests/test-array_list.c: Include progname.h.
34868         (main): Call set_program_name.
34869
34870         * modules/argp-tests (Depends-on): Add progname.
34871         * tests/test-argp.c: Include argp.h first. Include progname.h.
34872         (main): Call set_program_name.
34873
34874 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
34875
34876         * doc/gnulib-tool.texi (Initial import): Reword description of
34877         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
34878         limited effect even if defined after the first system include.
34879
34880 2007-03-01  Bruno Haible  <bruno@clisp.org>
34881
34882         * build-aux/config.libpath: Update to libtool-1.5.22.
34883         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34884
34885 2007-03-01  Bruno Haible  <bruno@clisp.org>
34886
34887         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
34888         foo_CFLAGS.
34889         Reported by Ralf Wildenhues.
34890
34891 2007-03-01  Bruno Haible  <bruno@clisp.org>
34892
34893         * build-aux/install-reloc: Remove object files left over by some
34894         compilers.
34895         Reported by Ralf Wildenhues.
34896
34897 2007-03-01  Bruno Haible  <bruno@clisp.org>
34898
34899         * build-aux/install-reloc: Break long lines.
34900
34901 2007-03-01  Bruno Haible  <bruno@clisp.org>
34902
34903         * doc/relocatable.texi: Document that it may not work on OpenBSD.
34904         Reported by Ralf Wildenhues.
34905
34906 2007-03-01  Bruno Haible  <bruno@clisp.org>
34907
34908         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
34909         include ordering constraints.
34910
34911 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
34912
34913         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
34914         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
34915         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
34916         as another example.
34917         * lib/time_.h: Fix misspelling.
34918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
34919         Require gl_HEADER_TIME_H_DEFAULTS.
34920         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
34921         * m4/time_r.m4 (gl_TIME_R): Likewise.
34922         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
34923
34924 2007-03-01  Bruno Haible  <bruno@clisp.org>
34925
34926         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
34927         * m4/utimens.m4 (gl_UTIMENS): Likewise.
34928
34929 2007-03-01  Jim Meyering  <jim@meyering.net>
34930
34931         * modules/xreadlink (Maintainer): Add my name.
34932         * modules/xreadlink-with-size (Depends-on): Alphabetize.
34933
34934 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
34935             Bruno Haible  <bruno@clisp.org>
34936
34937         * build-aux/install-reloc: Compile also c-ctype.c.
34938         * build-aux/relocatable.sh.in: New file.
34939         * doc/relocatable.texi: New file.
34940         * doc/relocatable-maint.texi: New file.
34941         * doc/gnulib.texi: Include relocatable-maint.texi.
34942         * lib/progreloc.c: Include unistd.h unconditionally.
34943         * lib/relocwrapper.c: Include unistd.h unconditionally.
34944         Include c-ctype.h.
34945         (add_dotbin): Use c_tolower.
34946         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
34947         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
34948         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
34949         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
34950         to m4/relocatable-lib.m4.
34951         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
34952         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
34953         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
34954         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
34955         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
34956         * modules/relocatable: New file.
34957         * modules/relocatable-lib: New file.
34958         * modules/relocatable-script: New file.
34959
34960 2007-02-28  Bruno Haible  <bruno@clisp.org>
34961
34962         Import --enable-relocatable infrastructure.
34963         * build-aux/config.libpath: New file, from GNU gettext.
34964         * build-aux/install-reloc: New file, from GNU gettext.
34965         * build-aux/reloc-ldflags: New file, from GNU gettext.
34966         * lib/relocatable.h: New file, from GNU gettext.
34967         * lib/relocatable.c: New file, from GNU gettext.
34968         * lib/relocwrapper.c: New file, from GNU gettext.
34969         * m4/relocatable.m4: New file, from GNU gettext.
34970
34971 2007-02-28  Bruno Haible  <bruno@clisp.org>
34972
34973         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
34974
34975         * modules/xreadlink: New file, from GNU gettext with modifications.
34976         * lib/xreadlink.c: New file, from GNU gettext.
34977         * lib/xreadlink.h: Add comments.
34978         (xreadlink): New declaration.
34979
34980         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
34981         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
34982         lib/xreadlink-with-size.c.
34983         (configure.ac): Remove gl_XREADLINK invocation.
34984         (Makefile.am): Augment lib_SOURCES.
34985         * m4/xreadlink.m4: Remove file.
34986         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
34987         (xreadlink_with_size): Renamed from xreadink.
34988         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
34989         * modules/canonicalize (Depends-on): Replace xreadlink with
34990         xreadlink-with-size.
34991         * lib/canonicalize.c (canonicalize_filename_mode): Update.
34992
34993 2007-02-25  Jim Meyering  <jim@meyering.net>
34994
34995         * build-aux/announce-gen: When complaining about excess arguments,
34996         list them.
34997
34998 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34999
35000         * README: Document signed integer overflow situation more
35001         accurately.
35002
35003 2007-02-25  Bruno Haible  <bruno@clisp.org>
35004
35005         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
35006         'a' or 'A' conversion.
35007
35008 2007-02-25  Bruno Haible  <bruno@clisp.org>
35009
35010         * modules/filename: Renamed from modules/pathname.
35011         (Files): Replace lib/pathname.h with lib/filename.h. Replace
35012         lib/concatpath.c with lib/concat-filename.c.
35013         (Makefile.am): Update.
35014         (Include): Replace pathname.h with filename.h.
35015         * lib/filename.h: Renamed from lib/pathname.h.
35016         (concatenated_filename): Renamed from concatenated_pathname.
35017         * lib/concat-filename.c: Renamed from lib/concatpath.c.
35018         (concatenated_filename): Renamed from concatenated_pathname.
35019         * lib/findprog.c: Include filename.h instead of pathname.h.
35020         (find_in_path): Update.
35021         * lib/javacomp.c: Include filename.h instead of pathname.h.
35022         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35023         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35024         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35025         is_oldgcj_14_13_usable, is_javac_usable): Update.
35026         * lib/javaexec.c: Include filename.h instead of pathname.h.
35027         (execute_java_class): Update.
35028         * modules/findprog: Update.
35029         * modules/javacomp: Update.
35030         * modules/javaexec: Update.
35031         * MODULES.html.sh (File system functions): Add 'filename', remove
35032         'pathname'.
35033
35034 2007-02-25  Bruno Haible  <bruno@clisp.org>
35035
35036         * modules/printf-frexpl-tests: New file.
35037         * tests/test-printf-frexpl.c: New file.
35038
35039         * modules/printf-frexpl: New file.
35040         * lib/printf-frexpl.h: New file.
35041         * lib/printf-frexpl.c: New file.
35042         * m4/printf-frexpl.m4: New file.
35043
35044 2007-02-25  Bruno Haible  <bruno@clisp.org>
35045
35046         * modules/printf-frexp-tests: New file.
35047         * tests/test-printf-frexp.c: New file.
35048
35049         * modules/printf-frexp: New file.
35050         * lib/printf-frexp.h: New file.
35051         * lib/printf-frexp.c: New file.
35052         * m4/printf-frexp.m4: New file.
35053
35054 2007-02-25  Bruno Haible  <bruno@clisp.org>
35055
35056         Assume automake >= 1.10 for the tests.
35057         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
35058         * modules/arctwo-tests: Likewise.
35059         * modules/argp-tests: Likewise.
35060         * modules/avltree-list-tests: Likewise.
35061         * modules/avltree-oset-tests: Likewise.
35062         * modules/avltreehash-list-tests: Likewise.
35063         * modules/carray-list-tests: Likewise.
35064         * modules/crc-tests: Likewise.
35065         * modules/des-tests: Likewise.
35066         * modules/gc-arcfour-tests: Likewise.
35067         * modules/gc-arctwo-tests: Likewise.
35068         * modules/gc-des-tests: Likewise.
35069         * modules/gc-hmac-md5-tests: Likewise.
35070         * modules/gc-hmac-sha1-tests: Likewise.
35071         * modules/gc-md2-tests: Likewise.
35072         * modules/gc-md4-tests: Likewise.
35073         * modules/gc-md5-tests: Likewise.
35074         * modules/gc-pbkdf2-sha1-tests: Likewise.
35075         * modules/gc-rijndael-tests: Likewise.
35076         * modules/gc-sha1-tests: Likewise.
35077         * modules/gc-tests: Likewise.
35078         * modules/getaddrinfo-tests: Likewise.
35079         * modules/hmac-md5-tests: Likewise.
35080         * modules/hmac-sha1-tests: Likewise.
35081         * modules/linked-list-tests: Likewise.
35082         * modules/linkedhash-list-tests: Likewise.
35083         * modules/lock-tests: Likewise.
35084         * modules/md2-tests: Likewise.
35085         * modules/md4-tests: Likewise.
35086         * modules/md5-tests: Likewise.
35087         * modules/rbtree-list-tests: Likewise.
35088         * modules/rbtree-oset-tests: Likewise.
35089         * modules/rbtreehash-list-tests: Likewise.
35090         * modules/read-file-tests: Likewise.
35091         * modules/rijndael-tests: Likewise.
35092         * modules/stdint-tests: Likewise.
35093         * modules/tls-tests: Likewise.
35094
35095 2007-02-24  Bruno Haible  <bruno@clisp.org>
35096
35097         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
35098         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
35099         function; instead check whether isnan with a double argument links.
35100         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
35101         function; instead check whether isnan with a 'long double' argument
35102         links.
35103         Reported by Eric Blake <ebb9@byu.net>.
35104
35105 2007-02-24  Bruno Haible  <bruno@clisp.org>
35106
35107         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
35108         defined.
35109         * lib/isnanl.c: Remove all code. Just include isnan.c.
35110         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
35111
35112 2007-02-25  Jim Meyering  <jim@meyering.net>
35113
35114         Avoid conflicting types for 'unsetenv' on FreeBSD.
35115         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
35116         conflicting with FreeBSD's (5.0 and 6.1) function declaration
35117         in stdlib.h.
35118
35119 2007-02-24  Bruno Haible  <bruno@clisp.org>
35120
35121         * modules/isnanl-nolibm-tests: New file.
35122         * tests/test-isnanl.c: New file.
35123
35124         * modules/isnanl-nolibm: New file.
35125         * lib/isnanl.h: New file.
35126         * lib/isnanl.c: New file.
35127         * m4/isnanl.m4: New file.
35128
35129 2007-02-24  Bruno Haible  <bruno@clisp.org>
35130
35131         * modules/isnan-nolibm-tests: New file.
35132         * tests/test-isnan.c: New file.
35133
35134         * modules/isnan-nolibm: New file.
35135         * lib/isnan.h: New file.
35136         * lib/isnan.c: New file.
35137         * m4/isnan.m4: New file.
35138
35139 2007-02-24  Bruno Haible  <bruno@clisp.org>
35140
35141         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
35142         assume that an exponent fits in 20 bits.
35143
35144 2007-02-24  Jim Meyering  <jim@meyering.net>
35145
35146         * m4/regex.m4: Update the description of the configure-time option,
35147         --without-included-regex, to state accurately what the defaults are,
35148         and perhaps to give people an idea why using this option is risky.
35149
35150 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
35151
35152         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
35153         loops on small arguments.  This attempts to avoid the problem
35154         Bruno Haible reported for AIX 4.3.2 in
35155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
35156
35157 2007-02-23  Bruno Haible  <bruno@clisp.org>
35158
35159         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
35160         Needed for help2man.
35161
35162 2007-02-23  Karl Berry  <karl@gnu.org>
35163
35164         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
35165         exists, foo.h should be cvs-ignored, not committed.
35166
35167 2007-02-23  Eric Blake  <ebb9@byu.net>
35168
35169         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
35170         * lib/stat-time.h (includes): Likewise.
35171         * lib/utimecmp.c (includes): Likewise.
35172         * lib/utimens.h (includes): Likewise.
35173         * lib/getdate.y (includes): Also include "timespec.h" for use
35174         internal to the module.
35175         * modules/utimens (Depends-on): Revert yesterday's patch.
35176         * modules/nanosleep (Depends-on): Add missing dependency.
35177
35178 2007-02-22  Bruno Haible  <bruno@clisp.org>
35179
35180         * lib/glob.c: Don't include getlogin_r.h.
35181
35182 2007-02-22  Jim Meyering  <jim@meyering.net>
35183
35184         * modules/utimens (Depends-on): Add timespec, required for
35185         utimens.h's inclusion of timespec.h.
35186
35187 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35188
35189         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
35190         long unreadable paths in GNU/Linux.  Problem reported by Andreas
35191         Schwab in
35192         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
35193         I'll try to think of a better way to fix the Solaris problem.
35194
35195         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
35196         like glibc; on Solaris 10, it fails with errno == EINVAL.
35197         POSIX says the behavior is unspecified if the first argument is NULL,
35198         so play it safe and never pass NULL to the system getcwd.
35199
35200 2007-02-21  Jim Meyering  <jim@meyering.net>
35201
35202         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
35203         of gettimeofday.  It would conflict with the one now always
35204         provided via sys_time_.h.  Reported by Matthew Woehlke, as
35205         an IRIX 6.5 build failure.
35206
35207 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35208
35209         Minor fixups to port to Solaris 10 with Sun C 5.8.
35210         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
35211         * modules/getcwd (Depends-on): Add dirfd.
35212         * lib/putenv.c (putenv): #undef it.
35213         (rpl_putenv): New decl.
35214         (malloc, free): Include <stdlib.h> rather than prototyping separately.
35215
35216 2007-02-20  Bruno Haible  <bruno@clisp.org>
35217
35218         * modules/stdio-tests: New file.
35219         * tests/test-stdio.c: New file.
35220
35221         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
35222         (Depends-on): Add stdio.
35223         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35224         (Include): Use <stdio.h> instead of vsnprintf.h.
35225         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
35226         HAVE_DECL_VSNPRINTF.
35227         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
35228
35229         * modules/snprintf (Files): Remove lib/snprintf.h.
35230         (Depends-on): Add stdio.
35231         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35232         (Include): Use <stdio.h> instead of snprintf.h.
35233         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
35234         HAVE_DECL_SNPRINTF.
35235         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
35236         * lib/getaddrinfo.c: Likewise.
35237
35238         * modules/stdio: New file.
35239         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
35240         * lib/snprintf.h: Remove file.
35241         * lib/vsnprintf.h: Remove file.
35242         * lib/.cppi-disable: Remove snprintf.h.
35243         * m4/stdio_h.m4: New file.
35244         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
35245
35246 2007-02-20  Jim Meyering  <jim@meyering.net>
35247
35248         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
35249         used by e.g., mingw.  From Bruno Haible.
35250
35251 2007-02-19  Bruno Haible  <bruno@clisp.org>
35252
35253         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
35254         warnings.
35255         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35256
35257 2007-02-19  Bruno Haible  <bruno@clisp.org>
35258
35259         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
35260         from mingw users.
35261
35262 2007-02-19  Bruno Haible  <bruno@clisp.org>
35263
35264         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
35265         warnings.
35266         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
35267
35268 2007-02-19  Jim Meyering  <jim@meyering.net>
35269
35270         Don't use FD after a successful "fdopendir (fd)".
35271         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
35272         Reset it by calling dirfd on the just-obtained DIR*.
35273
35274         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
35275         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
35276
35277 2007-02-18  Bruno Haible  <bruno@clisp.org>
35278
35279         * lib/readlink.c: Include <unistd.h>.
35280         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
35281         HAVE_READLINK.
35282         * modules/readlink (Depends-on): Add unistd.
35283         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35284         (Include): Add <unistd.h>.
35285
35286         * lib/getlogin_r.h: Remove file.
35287         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
35288         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
35289         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
35290         HAVE_DECL_GETLOGIN_R.
35291         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
35292         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35293         (Include): Use <unistd.h> instead of getlogin_r.h.
35294
35295         * lib/getcwd.h: Remove file.
35296         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
35297         * lib/xgetcwd.c: Likewise.
35298         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
35299         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
35300         * modules/getcwd (Files): Remove lib/getcwd.h.
35301         (Depends-on): Add unistd.
35302         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35303         (Include): Use <unistd.h> instad of getcwd.h.
35304
35305         * lib/ftruncate.c: Include <unistd.h> first.
35306         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
35307         Set HAVE_FTRUNCATE.
35308         * modules/ftruncate (Depends-on): Add unistd.
35309         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35310
35311         * lib/fchdir.c: Include <unistd.h> first.
35312         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
35313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
35314         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
35315         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35316         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
35317
35318         * lib/dup2.c: Include <unistd.h> first.
35319         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
35320         HAVE_DUP2.
35321         * modules/dup2 (Depends-on): Add unistd.
35322         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35323
35324         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
35325         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
35326         REPLACE_CHOWN. Don't define chown as a macro here.
35327         * modules/chown (Depends-on): Add unistd.
35328         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35329
35330         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
35331         Add definition for GL_LINK_WARNING.
35332         (chown, dup2): New declarations.
35333         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
35334         link warning.
35335         (ftruncate): New declaration.
35336         (getcwd): New declaration, taken from old getcwd.h.
35337         (getlogin_r): New declaration, taken from old getlogin_r.h.
35338         (readlink): New declaration.
35339         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
35340         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
35341         (gl_PREREQ_UNISTD): Remove macro.
35342         (gl_UNISTD_MODULE_INDICATOR): New macro.
35343         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
35344         many new variables. Don't set UNISTD_H.
35345         * modules/unistd (Description): Change.
35346         (Depends-on): Add link-warning.
35347         (configure.ac): Update.
35348         (Makefile.am): Create unistd.h always. Substitute many new variables
35349         into it.
35350
35351 2007-02-18  Bruno Haible  <bruno@clisp.org>
35352
35353         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
35354         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
35355         HAVE_GETSUBOPT.
35356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
35357         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
35358         * lib/getsubopt.h: Remove file.
35359         * modules/getsubopt (Files): Remove lib/getsubopt.h.
35360         (Depends-on): Add stdlib.
35361         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35362         (Includes): Use <stdlib.h> instead of getsubopt.h.
35363         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
35364         Set HAVE_GETSUBOPT.
35365         * lib/getsubopt.c: Don't include getsubopt.h.
35366
35367 2007-02-18  Bruno Haible  <bruno@clisp.org>
35368
35369         * modules/fchdir (Depends-on): Add dup2.
35370
35371 2007-02-18  Bruno Haible  <bruno@clisp.org>
35372
35373         * lib/stdlib_.h: Handle glibc's special invocation convention
35374         specially.
35375
35376 2007-02-18  Bruno Haible  <bruno@clisp.org>
35377
35378         * modules/stdlib-tests: New file.
35379         * tests/test-stdlib.c: New file.
35380
35381         * modules/mkstemp (Files): Remove lib/mkstemp.h.
35382         (Depends-on): Add stdlib.
35383         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35384         (Includes): Use <stdlib.h> instead of mkstemp.h.
35385         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
35386         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
35387         * lib/mkstemp.c: Don't include mkstemp.h.
35388         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
35389         * lib/stdlib--.h: Don't include mkstemp.h.
35390
35391         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
35392         (Depends-on): Add stdlib.
35393         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35394         (Includes): Use <stdlib.h> instead of mkdtemp.h.
35395         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
35396         HAVE_MKDTEMP.
35397         * lib/mkdtemp.c: Don't include mkdtemp.h.
35398         * lib/clean-temp.c: Don't include mkdtemp.h.
35399
35400         * modules/exit (Files): Remove lib/exit.h.
35401         (Depends-on): Add stdlib.
35402         (Makefile.am): Remove lib_SOURCES.
35403         (Include): Use <stdlib.h> instead of exit.h.
35404         * lib/argmatch.c: Don't include exit.h.
35405         * lib/execute.c: Likewise.
35406         * lib/pagealign_alloc.c: Likewise.
35407         * lib/pipe.c: Likewise.
35408         * lib/wait-process.c: Likewise.
35409         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
35410         * lib/exitfail.c: Likewise.
35411         * lib/savewd.c: Likewise.
35412         * lib/xsetenv.c: Likewise.
35413
35414         * modules/stdlib: New file.
35415         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
35416         and extra comments about mkstemp().
35417         * lib/exit.h: Remove file.
35418         * lib/mkdtemp.h: Remove file.
35419         * lib/mkstemp.h: Remove file.
35420         * m4/stdlib_h.m4: New file.
35421         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
35422
35423 2007-02-18  Bruno Haible  <bruno@clisp.org>
35424
35425         * modules/math-tests: New file.
35426         * tests/test-math.c: New file.
35427
35428         * modules/math: New file.
35429         * modules/mathl (Files): Remove lib/mathl.h.
35430         (Depends-on): Add math.
35431         (Makefile.am): Don't mention mathl.h.
35432         (Include): Use <math.h> instead of mathl.h.
35433         * lib/math_.h: New file.
35434         * lib/mathl.h: Remove file.
35435         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
35436         mathl.h.
35437         * lib/asinl.c: Likewise.
35438         * lib/atanl.c: Likewise.
35439         * lib/ceill.c: Likewise.
35440         * lib/cosl.c: Likewise.
35441         * lib/expl.c: Likewise.
35442         * lib/floorl.c: Likewise.
35443         * lib/frexpl.c: Likewise.
35444         * lib/ldexpl.c: Likewise.
35445         * lib/logl.c: Likewise.
35446         * lib/sincosl.c: Likewise.
35447         * lib/sinl.c: Likewise.
35448         * lib/sqrtl.c: Likewise.
35449         * lib/tanl.c: Likewise.
35450         * lib/trigl.c: Likewise.
35451         * m4/math_h.m4: New file.
35452         * MODULES.html.sh (Mathematics): Add math.
35453
35454 2007-02-17  Bruno Haible  <bruno@clisp.org>
35455
35456         * modules/wctype-tests: New file.
35457         * tests/test-wctype.c: New file.
35458
35459         * modules/wchar-tests: New file.
35460         * tests/test-wchar.c: New file.
35461
35462         * modules/unistd-tests: New file.
35463         * tests/test-unistd.c: New file.
35464
35465         * modules/time-tests: New file.
35466         * tests/test-time.c: New file.
35467
35468         * modules/sysexits-tests: New file.
35469         * tests/test-sysexits.c: New file.
35470
35471         * modules/sys_time-tests: New file.
35472         * tests/test-sys_time.c: New file.
35473
35474         * modules/sys_stat-tests: New file.
35475         * tests/test-sys_stat.c: New file.
35476
35477         * modules/sys_socket-tests: New file.
35478         * tests/test-sys_socket.c: New file.
35479
35480         * modules/sys_select-tests: New file.
35481         * tests/test-sys_select.c: New file.
35482
35483         * modules/string-tests: New file.
35484         * tests/test-string.c: New file.
35485
35486         * modules/stdbool-tests: New file.
35487         * tests/test-stdbool.c: New file.
35488
35489         * modules/netinet_in-tests: New file.
35490         * tests/test-netinet_in.c: New file.
35491
35492         * modules/inttypes-tests: New file.
35493         * tests/test-inttypes.c: New file.
35494
35495         * modules/fcntl-tests: New file.
35496         * tests/test-fcntl.c: New file.
35497
35498         * modules/byteswap-tests: New file.
35499         * tests/test-byteswap.c: New file.
35500
35501         * modules/arpa_inet-tests: New file.
35502         * tests/test-arpa_inet.c: New file.
35503
35504 2007-02-17  Bruno Haible  <bruno@clisp.org>
35505
35506         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
35507         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
35508         if the corresponding module is not enabled. Emit link warnings if
35509         the function is used nevertheless.
35510         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
35511         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
35512         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
35513         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
35514         * modules/inttypes (Depends-on): Add link-warning.
35515         (Makefile.am): Copy the contents of build-aux/link-warning.h into
35516         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
35517         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
35518         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
35519         * modules/imaxdiv (configure.ac): Likewise.
35520         * modules/strtoimax (configure.ac): Likewise.
35521         * modules/strtoumax (configure.ac): Likewise.
35522
35523 2007-02-17  Bruno Haible  <bruno@clisp.org>
35524
35525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
35526         gl_STRING_MODULE_INDICATOR_DEFAULTS.
35527         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
35528         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
35529
35530 2007-02-17  Bruno Haible  <bruno@clisp.org>
35531
35532         * modules/link-warning: New file.
35533         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
35534         * lib/string_.h (GL_LINK_WARNING): Remove definition.
35535         * modules/string (Depends-on): Add link-warning.
35536         (Makefile.am): Copy the contents of build-aux/link-warning.h into
35537         string.h.
35538         * MODULES.html.sh (Support for building libraries and executables): Add
35539         link-warning.
35540
35541 2007-02-17  Bruno Haible  <bruno@clisp.org>
35542
35543         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
35544         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
35545         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
35546         long lines.
35547
35548 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
35549             Bruno Haible  <bruno@clisp.org>
35550
35551         * modules/tmpfile: New file.
35552         * lib/tmpfile.c: New file.
35553         * m4/tmpfile.m4: New file.
35554         * MODULES.html.sh (func_all_modules): New section "Input/output".
35555
35556 2007-02-15  Bruno Haible  <bruno@clisp.org>
35557
35558         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
35559         (supports_delete_on_close): New function.
35560         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
35561
35562 2007-02-14  Bruno Haible  <bruno@clisp.org>
35563
35564         * modules/mbspcasecmp-tests: New file.
35565         * tests/test-mbspcasecmp.sh: New file.
35566         * tests/test-mbspcasecmp.c: New file.
35567
35568         New module mbspcasecmp.
35569         * modules/mbspcasecmp: New file.
35570         * lib/mbspcasecmp.c: New file.
35571         * lib/string_.h (strncasecmp): Change warning message.
35572         (mbspcasecmp): New declaration.
35573         * m4/mbspcasecmp.m4: New file.
35574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35575         GNULIB_MBSPCASECMP.
35576         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
35577         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
35578
35579 2007-02-14  Bruno Haible  <bruno@clisp.org>
35580
35581         * modules/mbsncasecmp-tests: New file.
35582         * tests/test-mbsncasecmp.sh: New file.
35583         * tests/test-mbsncasecmp.c: New file.
35584
35585         New module mbsncasecmp.
35586         * modules/mbsncasecmp: New file.
35587         * lib/mbsncasecmp.c: New file.
35588         * lib/string_.h (mbsncasecmp): New declaration.
35589         * m4/mbsncasecmp.m4: New file.
35590         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35591         GNULIB_MBSNCASECMP.
35592         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
35593         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
35594
35595 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
35596
35597         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
35598         Verify that it doesn't overlap with our flags.
35599         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
35600         do not have the desired effect in multibyte locales; instead, use
35601         mbscasecmp.
35602         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
35603         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
35604         we don't require GNU fnmatch ourselves (if our users require it, they
35605         should do so explicitly).
35606
35607         Fix regex code so it doesn't rely on strcasecmp.
35608         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
35609         Otherwise, include gnulib's langinfo.h.
35610         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
35611         undesirable behavior in non-C locales.  Instead, rely on localecharset.
35612         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
35613         * modules/regex (FILES): Remove m4/codeset.m4.
35614         (Depends-on): Add localcharset.  Remove strcase.
35615
35616 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35617
35618         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
35619         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
35620
35621 2007-02-13  Bruno Haible  <bruno@clisp.org>
35622
35623         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
35624         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35625
35626 2007-02-12  Bruno Haible  <bruno@clisp.org>
35627
35628         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
35629         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
35630         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
35631         time warning rather than a link error.
35632
35633 2007-02-12  Bruno Haible  <bruno@clisp.org>
35634
35635         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
35636         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35637         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35638
35639 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
35640
35641         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
35642         args, not 2.
35643
35644 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
35645
35646         New module 'time', so that apps can include <time.h> as per
35647         POSIX and GNU instead of separate include files like time_r.h
35648         and timegm.h.  This implementation tries out a simpler approach
35649         for replacing decls in standard include files (as compared to
35650         the string module), somewhat as an experiment.
35651
35652         * config/srclist.txt: Comment out mktime.c for now.
35653         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
35654         since it doesn't apply any more.  Use generic wording instead.
35655         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
35656         'time'.
35657         * lib/time_.h, m4/time_h.m4, modules/time: New files.
35658         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
35659         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
35660         Don't include <sys/types.h>; no longer needed since we assume C89.
35661         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
35662         * lib/strftime.c: Likewise.
35663         * lib/time_r.c: Likewise.
35664         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
35665         * lib/nanosleep.c: Include <time.h> first, to check interface.
35666         * lib/strptime.c: Likewise.
35667         * lib/time_r.c: Likewise.
35668         * lib/timegm.c: Likewise.
35669         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
35670         needed.
35671         * lib/timegm.c: Don't include timegm.h; no longer needed.
35672         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
35673         time.h now handles any problems in that area.
35674         (struct timespec, nanosleep): Remove; time.h now arranges for these.
35675         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
35676         that time.h defines struct timespec.
35677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
35678         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
35679         handles that.
35680         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
35681         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
35682         needed.  Set REPLACE_LOCALTIME.
35683         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
35684         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
35685         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
35686         nanosleep; time_h.m4 now does that.  Don't require
35687         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
35688         module handles this now.
35689         * modules/getdate (Depends-on): Remove timespec.  Add time.
35690         * modules/nanosleep (Depends-on): Likewise.
35691         * modules/stat-time (Depends-on): Likewise.
35692         * modules/nanosleep (Include): Include time.h, not timespec.h.
35693         * modules/strptime (Files): Remove lib/strptime.h.
35694         (Depends-on): Add extensions, time.
35695         (Include): Include time.h, not strptime.h.
35696         * modules/time_r (Files): Remove lib/time_r.h.
35697         (Depends-on): Add time.
35698         (Include): Include time.h, not time_r.h.
35699         * modules/timegm: Likewise.
35700         * modules/timespec (Description): Now does timespec-related decls
35701         of our own, instead of struct timespec itself.
35702         (Depends-on): Add time; remove extensions.
35703         (Maintainer): Add self.
35704         * modules/utimecmp (Depends-on): Add time; remove timespec.
35705         * modules/utimens (Depends-on): Likewise.
35706         * modules/xnanosleep (Depends-on): Likewise.
35707
35708 2007-02-11  Bruno Haible  <bruno@clisp.org>
35709
35710         * lib/c-strstr.c: Include allocsa.h.
35711         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35712         * lib/c-strcasestr.c: Include allocsa.h.
35713         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35714         * lib/strcasestr.c: Include allocsa.h.
35715         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35716         * lib/mbsstr.c: Include allocsa.h.
35717         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
35718         allocsa/freesa instead of malloc/free.
35719         * lib/mbscasestr.c: Include allocsa.h.
35720         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
35721         allocsa/freesa instead of malloc/free.
35722         * modules/c-strstr (Depends-on): Add allocsa.
35723         * modules/c-strcasestr (Depends-on): Likewise.
35724         * modules/strcasestr (Depends-on): Likewise.
35725         * modules/mbsstr (Depends-on): Likewise.
35726         * modules/mbscasestr (Depends-on): Likewise.
35727
35728 2007-02-11  Bruno Haible  <bruno@clisp.org>
35729
35730         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
35731
35732         * modules/mbsspn-tests: New file.
35733         * tests/test-mbsspn.sh: New file.
35734         * tests/test-mbsspn.c: New file.
35735
35736 2007-02-11  Bruno Haible  <bruno@clisp.org>
35737
35738         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
35739
35740         * modules/mbspbrk-tests: New file.
35741         * tests/test-mbspbrk.sh: New file.
35742         * tests/test-mbspbrk.c: New file.
35743
35744 2007-02-11  Bruno Haible  <bruno@clisp.org>
35745
35746         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
35747         unneeded cast.
35748
35749         * modules/mbscspn-tests: New file.
35750         * tests/test-mbscspn.sh: New file.
35751         * tests/test-mbscspn.c: New file.
35752
35753 2007-02-11  Bruno Haible  <bruno@clisp.org>
35754
35755         * modules/mbscasecmp-tests: New file.
35756         * tests/test-mbscasecmp.sh: New file.
35757         * tests/test-mbscasecmp.c: New file.
35758
35759 2007-02-11  Bruno Haible  <bruno@clisp.org>
35760
35761         Ensure O(n) worst-case complexity of mbscasestr.
35762         * lib/mbscasestr.c: Include stdbool.h.
35763         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
35764         functions.
35765         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
35766         the bookkeeping indicates that it's worth it.
35767         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
35768
35769         * modules/mbscasestr-tests: New file.
35770         * tests/test-mbscasestr1.c: New file.
35771         * tests/test-mbscasestr2.sh: New file.
35772         * tests/test-mbscasestr2.c: New file.
35773         * tests/test-mbscasestr3.sh: New file.
35774         * tests/test-mbscasestr3.c: New file.
35775         * tests/test-mbscasestr4.sh: New file.
35776         * tests/test-mbscasestr4.c: New file.
35777         * m4/locale-tr.m4: New file.
35778
35779 2007-02-11  Bruno Haible  <bruno@clisp.org>
35780
35781         Ensure O(n) worst-case complexity of mbsstr.
35782         * lib/mbsstr.c: Include stdbool.h.
35783         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
35784         functions.
35785         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
35786         bookkeeping indicates that it's worth it.
35787         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
35788
35789         * modules/mbsstr-tests: New file.
35790         * tests/test-mbsstr1.c: New file.
35791         * tests/test-mbsstr2.sh: New file.
35792         * tests/test-mbsstr2.c: New file.
35793         * tests/test-mbsstr3.sh: New file.
35794         * tests/test-mbsstr3.c: New file.
35795         * m4/locale-fr.m4: New file.
35796
35797 2007-02-11  Bruno Haible  <bruno@clisp.org>
35798
35799         * lib/mbsrchr.c (mbsrchr): Fix bug.
35800
35801         * modules/mbsrchr-tests: New file.
35802         * tests/test-mbsrchr.sh: New file.
35803         * tests/test-mbsrchr.c: New file.
35804
35805 2007-02-11  Bruno Haible  <bruno@clisp.org>
35806
35807         * lib/mbschr.c (mbschr): Fix bug.
35808
35809         * modules/mbschr-tests: New file.
35810         * tests/test-mbschr.sh: New file.
35811         * tests/test-mbschr.c: New file.
35812         * m4/locale-zh.m4: New file.
35813
35814 2007-02-11  Bruno Haible  <bruno@clisp.org>
35815
35816         Support for copying multibyte string iterators.
35817         * lib/mbiter.h: Include <string.h>.
35818         (mbiter_multi_copy): New function.
35819         (mbi_copy): New macro.
35820         * lib/mbuiter.h: Include <string.h>.
35821         (mbuiter_multi_copy): New function.
35822         (mbui_copy): New macro.
35823
35824 2007-02-11  Bruno Haible  <bruno@clisp.org>
35825
35826         New module mbslen.
35827         * modules/mbslen: New file.
35828         * lib/mbslen.c: New file.
35829         * lib/string_.h (mbslen): New declaration.
35830         * m4/mbslen.m4: New file.
35831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35832         GNULIB_MBSLEN.
35833         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
35834         * MODULES.html.sh (Internationalization functions): Add mbslen.
35835
35836 2007-02-11  Bruno Haible  <bruno@clisp.org>
35837
35838         Ensure O(n) worst-case complexity of strcasestr substitute.
35839         * lib/strcasestr.c: Include stdbool.h.
35840         (knuth_morris_pratt): New function.
35841         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
35842         bookkeeping indicates that it's worth it.
35843         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
35844
35845         * modules/strcasestr-tests: New file.
35846         * tests/test-strcasestr.c: New file.
35847
35848 2007-02-11  Bruno Haible  <bruno@clisp.org>
35849
35850         Ensure O(n) worst-case complexity of c_strcasestr.
35851         * lib/c-strcasestr.c: Include stdbool.h, string.h.
35852         (knuth_morris_pratt): New function.
35853         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
35854         the bookkeeping indicates that it's worth it.
35855         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
35856
35857         * modules/c-strcasestr-tests: New file.
35858         * tests/test-c-strcasestr.c: New file.
35859
35860 2007-02-11  Bruno Haible  <bruno@clisp.org>
35861
35862         Ensure O(n) worst-case complexity of c_strstr.
35863         * lib/c-strstr.c: Include stdbool.h, string.h.
35864         (knuth_morris_pratt): New function.
35865         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
35866         bookkeeping indicates that it's worth it.
35867         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
35868
35869         * lib/c-strstr.c: Complete rewrite for maintainability.
35870
35871         * modules/c-strstr-tests: New file.
35872         * tests/test-c-strstr.c: New file.
35873
35874 2007-02-11  Bruno Haible  <bruno@clisp.org>
35875
35876         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
35877         5.2.1 and earlier, whereby \055 was treated just like the range
35878         delimiter '-'.
35879         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35880
35881 2007-02-08  Bruno Haible  <bruno@clisp.org>
35882
35883         * modules/regex (Depends-on): Add stdbool.
35884         Reported by Dalibor Topic <robilad@kaffe.org>.
35885
35886 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
35887
35888         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
35889         Prefer returning from main to exiting from it.
35890         Remove unnecessary parens after sizeof.
35891
35892 2007-02-05  Bruno Haible  <bruno@clisp.org>
35893
35894         New module mbssep.
35895         * modules/mbssep: New file.
35896         * lib/mbssep.c: New file.
35897         * lib/string_.h (strsep): Add a conditional link warning.
35898         (mbssep): New declaration.
35899         * m4/mbssep.m4: New file.
35900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35901         GNULIB_MBSSEP.
35902         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
35903         * MODULES.html.sh (Internationalization functions): Add mbssep.
35904
35905 2007-02-05  Bruno Haible  <bruno@clisp.org>
35906
35907         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
35908         Optimize search in case of 1 delimiter.
35909
35910 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
35911
35912         * lib/acl.h: Include sys/types.h before sys/acl.h.
35913
35914 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
35915
35916         Merge upstream fix for glibc bugzilla #3957:
35917
35918         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
35919
35920         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
35921         bit for RE_HAT_LISTS_NOT_NEWLINE.
35922         (build_charclass_op): Remove bogus comment.
35923
35924 2007-02-05  Simon Josefsson  <simon@josefsson.org>
35925
35926         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
35927
35928 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35929
35930         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
35931         * lib/memmem.c [!defined _LIBC]: Include config.h.
35932
35933 2007-02-04  Bruno Haible  <bruno@clisp.org>
35934
35935         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
35936         warning message.
35937
35938 2007-02-04  Bruno Haible  <bruno@clisp.org>
35939
35940         New module mbstok_r.
35941         * modules/mbstok_r: New file.
35942         * lib/mbstok_r.c: New file.
35943         * lib/string_.h (strtok_r): Change argument names to match the
35944         comments. Add a conditional link warning.
35945         (mbstok_r): New declaration.
35946         * m4/mbstok_r.m4: New file.
35947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35948         GNULIB_MBSTOK_R.
35949         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
35950         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
35951
35952 2007-02-04  Bruno Haible  <bruno@clisp.org>
35953
35954         New module mbsspn.
35955         * modules/mbsspn: New file.
35956         * lib/mbsspn.c: New file.
35957         * lib/string_.h (strspn): Add a conditional link warning.
35958         (mbsspn): New declaration.
35959         * m4/mbsspn.m4: New file.
35960         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35961         GNULIB_MBSSPN.
35962         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
35963         * MODULES.html.sh (Internationalization functions): Add mbsspn.
35964
35965 2007-02-04  Bruno Haible  <bruno@clisp.org>
35966
35967         New module mbspbrk.
35968         * modules/mbspbrk: New file.
35969         * lib/mbspbrk.c: New file.
35970         * lib/string_.h (strpbrk): Add a conditional link warning.
35971         (mbspbrk): New declaration.
35972         * m4/mbspbrk.m4: New file.
35973         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35974         GNULIB_MBSPBRK.
35975         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
35976         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
35977
35978 2007-02-04  Bruno Haible  <bruno@clisp.org>
35979
35980         New module mbscspn.
35981         * modules/mbscspn: New file.
35982         * lib/mbscspn.c: New file.
35983         * lib/string_.h (strcspn): Add a conditional link warning.
35984         (mbscspn): New declaration.
35985         * m4/mbscspn.m4: New file.
35986         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35987         GNULIB_MBSCSPN.
35988         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
35989         * MODULES.html.sh (Internationalization functions): Add mbscspn.
35990
35991 2007-02-04  Bruno Haible  <bruno@clisp.org>
35992
35993         New module mbscasestr, reduced goal of strcasestr.
35994         * modules/mbscasestr: New file.
35995         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
35996         (mbscasestr): Renamed from strcasestr.
35997         * lib/strcasestr.c: Don't include mbuiter.h.
35998         (strcasestr): Remove support for multibyte locales.
35999         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
36000         Change the conditional link warning.
36001         (mbscasestr): New declaration.
36002         * m4/mbscasestr.m4: New file.
36003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
36004         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
36005         REPLACE_STRCASESTR.
36006         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
36007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36008         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36009         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
36010         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
36011         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36012         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
36013         (Depends-on): Remove mbuiter.
36014         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
36015
36016 2007-02-04  Bruno Haible  <bruno@clisp.org>
36017
36018         Simplify handling of strncasecmp.
36019         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
36020         the conditional link warning.
36021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36022         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
36023         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
36024         * modules/strcase (configure.ac): Don't invoke
36025         gl_STRING_MODULE_INDICATOR.
36026         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
36027
36028 2007-02-04  Bruno Haible  <bruno@clisp.org>
36029
36030         New module mbscasecmp, reduced goal of strcasecmp.
36031         * modules/mbscasecmp: New file.
36032         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
36033         (mbscasecmp): Renamed from strcasecmp.
36034         * lib/strcasecmp.c: Don't include mbuiter.h.
36035         (strcasecmp): Remove support for multibyte locales.
36036         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
36037         Change the conditional link warning.
36038         (mbscasecmp): New declaration.
36039         * m4/mbscasecmp.m4: New file.
36040         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
36041         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
36042         REPLACE_STRCASECMP.
36043         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
36044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36045         GNULIB_MBSCASECMP.
36046         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
36047         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
36048         * modules/strcase (Files): Remove m4/mbrtowc.m4.
36049         (Depends-on): Remove mbuiter.
36050         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
36051
36052 2007-02-04  Bruno Haible  <bruno@clisp.org>
36053
36054         New module mbsstr. Remove module strstr.
36055         * modules/mbsstr: New file.
36056         * modules/strstr: Remove file.
36057         * lib/mbsstr.c: Renamed from lib/strstr.c.
36058         (mbsstr): Renamed from strstr.
36059         * lib/string_.h (strstr): Remove declaration. Change the conditional
36060         link warning.
36061         (mbsstr): New declaration.
36062         * m4/mbsstr.m4: New file.
36063         * m4/strstr.m4: Remove file.
36064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
36065         REPLACE_STRSTR.
36066         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
36067         Don't initialize GNULIB_STRSTR.
36068         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
36069         substitute GNULIB_STRSTR and REPLACE_STRSTR.
36070         * MODULES.html.sh (Internationalization functions): Add mbsstr.
36071         (Support for systems lacking ANSI C 89): Remove strstr.
36072
36073 2007-02-04  Bruno Haible  <bruno@clisp.org>
36074
36075         New module mbsrchr.
36076         * modules/mbsrchr: New file.
36077         * lib/mbsrchr.c: New file.
36078         * lib/string_.h (strrchr): Add a conditional link warning.
36079         (mbsrchr): New declaration.
36080         * m4/mbsrchr.m4: New file.
36081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36082         GNULIB_MBSRCHR.
36083         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
36084         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
36085
36086 2007-02-04  Bruno Haible  <bruno@clisp.org>
36087
36088         New module mbschr.
36089         * modules/mbschr: New file.
36090         * lib/mbschr.c: New file.
36091         * lib/string_.h (strchr): Add a conditional link warning.
36092         (mbschr): New declaration.
36093         * m4/mbschr.m4: New file.
36094         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36095         GNULIB_MBSCHR.
36096         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
36097         * MODULES.html.sh (Internationalization functions): Add mbschr.
36098
36099 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36100
36101         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
36102
36103         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
36104
36105 2007-02-04  Bruno Haible  <bruno@clisp.org>
36106
36107         New module description section 'configure.ac-early'.
36108         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
36109         (func_get_autoconf_early_snippet): New function.
36110         (func_import, func_create_testdir): Use it. Remove special cases for
36111         modules 'extensions' and 'lock'.
36112         * modules/extensions (configure.ac-early): Require
36113         gl_USE_SYSTEM_EXTENSIONS.
36114         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
36115
36116 2007-02-04  Bruno Haible  <bruno@clisp.org>
36117
36118         Make use of gcj-4.3's -fsource and -ftarget option.
36119         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
36120         and if so try the options -fsource and -ftarget.
36121         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
36122         source_version, ftarget_option, target_version arguments.
36123         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
36124         (is_envjavac_oldgcj_14_14_usable): Renamed from
36125         is_envjavac_gcj_14_14_usable.
36126         (is_envjavac_oldgcj_14_13_usable): Renamed from
36127         is_envjavac_gcj_14_13_usable.
36128         (is_gcj_present): Update.
36129         (is_gcj_43, is_gcj43_usable): New functions.
36130         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
36131         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
36132         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
36133         try the options -fsource and -ftarget.
36134
36135 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
36136
36137         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
36138         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
36139         larger value.
36140
36141 2007-02-03  Jim Meyering  <jim@meyering.net>
36142
36143         Give tools a better chance to allocate space for very large buffers.
36144         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
36145
36146         Make pwd and readlink work also when run with an unreadable parent dir
36147         on systems with openat support.
36148         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
36149         provided getcwd function, even when we have openat support.
36150         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
36151
36152 2007-02-02  Bruno Haible  <bruno@clisp.org>
36153
36154         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36155         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
36156         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
36157         portability problems if one of these functions is only used on specific
36158         platforms.
36159         Reported by Paul Eggert.
36160
36161 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
36162
36163         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
36164         is causing more trouble than it's curing.
36165         * lib/regex_internal.h (__mempcpy): Remove.
36166         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
36167         (and make the code a tad smaller to boot).
36168         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
36169
36170 2007-02-02  Jim Meyering  <jim@meyering.net>
36171
36172         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
36173         section, not in the Makefile.am: one.
36174
36175 2007-02-02  Eric Blake  <ebb9@byu.net>
36176
36177         * lib/strchrnul.c: Always include config.h first.
36178
36179         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
36180         gnulib strstr is not necessary here.
36181
36182 2007-02-02  Simon Josefsson  <simon@josefsson.org>
36183
36184         * m4/socklen.m4: Fix typo.
36185
36186 2007-02-02  Eric Blake  <ebb9@byu.net>
36187
36188         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
36189         * modules/netinet_in (Makefile.am): Likewise.
36190
36191 2007-02-01  Bruno Haible  <bruno@clisp.org>
36192
36193         * lib/string_.h (GL_LINK_WARNING): New macro.
36194         (strcasecmp, strstr, strcasestr): If provided by the system,
36195         conditionally define as a macro that leads to a warning instead of to
36196         an error.
36197         (strncasecmp): Conditionally define as a macro that leads to a warning.
36198
36199 2007-02-01  Karl Berry  <karl@gnu.org>
36200
36201         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
36202
36203 2007-02-01  Bruno Haible  <bruno@clisp.org>
36204
36205         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
36206         renamings.
36207
36208 2007-02-01  Eric Blake  <ebb9@byu.net>
36209
36210         * modules/regex (Depends-on): Revert dependence on mempcpy.
36211         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
36212         module's definition of mempcpy.
36213         Reported by Paul Eggert.
36214
36215 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
36216
36217         * lib/string_.h: If the gnulib module XYZ is not present, undefine
36218         the symbol XYZ before redefining it.  This fixes a problem with
36219         programs that don't use XYZ, when compiled on systems that define
36220         XYZ to something else.
36221
36222 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
36223
36224         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
36225         occurs when "mkdir -m foo" creates a setgid directory that is (1)
36226         writeable to group or other and (2) is intended to have a special
36227         mode bit that is set or cleared.  In such a case, the directory
36228         should be neither group- nor other-writeable until the special
36229         mode bits are right.
36230
36231 2007-01-31  Eric Blake  <ebb9@byu.net>
36232
36233         * modules/mountlist (Depends-on): Add strstr.
36234
36235         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
36236         bug.
36237         * modules/string (Makefile.am): Remove redundant replacement.
36238         * modules/regex (Depends-on): Add mempcpy.
36239
36240 2007-01-31  Bruno Haible  <bruno@clisp.org>
36241
36242         New module description field 'Link'.
36243         * gnulib-tool (func_usage): Document --extract-link-directive.
36244         (sed_extract_prog): Recognize 'Link' directive.
36245         (func_get_link_directive): New function.
36246         (func_import): Show summary of link directives.
36247         Handle --extract-link-directive option.
36248         * modules/acl (Link): New section.
36249         * modules/clock-time (Link): New section.
36250         * modules/euidaccess (Link): New section.
36251         * modules/gettext (Link): New section.
36252         * modules/iconv (Link): New section.
36253         * modules/lock (Link): New section.
36254         * modules/nanosleep (Link): New section.
36255         * modules/readline (Link): New section.
36256
36257 2007-01-27  Bruno Haible  <bruno@clisp.org>
36258
36259         Enforce the use of gnulib modules for unportable <string.h> functions.
36260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
36261         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
36262         (gl_HEADER_STRING_H_BODY): Require it.
36263         * lib/string_.h: If the gnulib module XYZ is not present, redefine
36264         the symbol XYZ to one that gives a link error.
36265         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
36266         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
36267         * modules/mempcpy (configure.ac): Likewise.
36268         * modules/memrchr (configure.ac): Likewise.
36269         * modules/stpcpy (configure.ac): Likewise.
36270         * modules/stpncpy (configure.ac): Likewise.
36271         * modules/strcase (configure.ac): Likewise.
36272         * modules/strcasestr (configure.ac): Likewise.
36273         * modules/strchrnul (configure.ac): Likewise.
36274         * modules/strdup (configure.ac): Likewise.
36275         * modules/strndup (configure.ac): Likewise.
36276         * modules/strnlen (configure.ac): Likewise.
36277         * modules/strpbrk (configure.ac): Likewise.
36278         * modules/strsep (configure.ac): Likewise.
36279         * modules/strstr (configure.ac): Likewise.
36280         * modules/strtok_r (configure.ac): Likewise.
36281
36282 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
36283
36284         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
36285
36286 2007-01-30  Jim Meyering  <jim@meyering.net>
36287
36288         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
36289
36290 2007-01-29  Bruno Haible  <bruno@clisp.org>
36291
36292         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
36293         * lib/execute.c: Likewise.
36294         * lib/pipe.c: Likewise.
36295         * lib/printf-args.h: Likewise.
36296         * lib/printf-args.c: Likewise.
36297         * lib/printf-parse.c: Likewise.
36298         * lib/vasnprintf.c: Likewise.
36299
36300 2007-01-29  Eric Blake  <ebb9@byu.net>
36301
36302         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
36303         declaration.
36304
36305 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36306
36307         * lib/strptime.h (strptime): Use 'restrict' for args where
36308         POSIX requires this.
36309         * lib/strptime.c (strptime): Likewise.
36310         Change license notice from LGPL to GPL, since gnulib-tool will
36311         change this as needed.
36312         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
36313         defined.
36314         Include "strptime.h" first, to check interface.
36315         Do not #undef _LIBC and _NL_CURRENT.
36316         Do not include <stdlib.h>; no longer needed.
36317         Include "time_r.h" and declare ptime_locale_status
36318         only if _LIBC is not defined.
36319         (__P): Remove unused macro.
36320         (match_string): Bring back glibc version, but use it only if _LIBC
36321         is defined.
36322         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
36323         Remove unnecessary assertion and abort() call.
36324         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
36325         * m4/strptime.m4: Fix serial number comment.
36326         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
36327         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
36328         (Depends-on): Add time_r.
36329
36330 2007-01-29  Bruno Haible  <bruno@clisp.org>
36331
36332         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36333         strptime.
36334         * modules/strptime (Depends-on): Add stdbool.
36335         * lib/strptime.h: Include <time.h> always. Add comments.
36336
36337 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36338
36339         * modules/strptime: New file.
36340         * lib/strptime.h: New file.
36341         * lib/strptime.c: New file.
36342         * m4/strptime.m4: New file.
36343
36344 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
36345
36346         * MODULES.html.sh: New module mpsort.
36347         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
36348
36349         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
36350         a circularity problem with HP-UX ia64 reported by Bob Proulx in
36351         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
36352         All uses changed.
36353         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
36354         All uses changed.
36355         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
36356         to _Restrict_.
36357         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
36358         the parameter matches the prototype.
36359
36360 2007-01-28  Jim Meyering  <jim@meyering.net>
36361
36362         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
36363         sys/time.h here, reverting that part of the previous patch:
36364         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
36365
36366 2007-01-28  Bruno Haible  <bruno@clisp.org>
36367
36368         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
36369         value of $(SYS_TIME_H).
36370         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
36371         remove it conditionally, too. [added by Jim Meyering]
36372         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
36373         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
36374         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
36375         GETTIMEOFDAY_REPLACEMENT to 1.
36376
36377 2007-01-28  Bruno Haible  <bruno@clisp.org>
36378
36379         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
36380         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
36381         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
36382         Set UNISTD_H instead of UNISTD_H2.
36383         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
36384
36385 2007-01-28  Bruno Haible  <bruno@clisp.org>
36386
36387         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
36388         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
36389
36390 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36391
36392         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
36393         (func_create_testdir): Ensure C locale for `grep' and `tr'
36394         character ranges.
36395         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
36396         ACLOCAL_AMFLAGS parsing state machine.
36397
36398 2007-01-27  Bruno Haible  <bruno@clisp.org>
36399
36400         * modules/unistr/base: Update.
36401
36402 2007-01-27  Bruno Haible  <bruno@clisp.org>
36403
36404         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
36405         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
36406         * modules/unistr/u32-mbtouc-unsafe: Renamed from
36407         modules/unistr/u32-mbtouc.
36408         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
36409         * lib/unistr.h: Update.
36410         * lib/linebreak.c: Update.
36411         * modules/unistr/u32-mbtouc: Renamed from
36412         modules/unistr/u32-mbtouc-safe.
36413         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
36414         * lib/unistr.h: Update.
36415         * lib/unistr/u32-to-u8.c: Update.
36416         * lib/unistr/u32-to-u16.c: Update.
36417
36418 2007-01-27  Bruno Haible  <bruno@clisp.org>
36419
36420         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
36421         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
36422         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
36423         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
36424         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
36425         * modules/unistr/u16-mbtouc-unsafe: Renamed from
36426         modules/unistr/u16-mbtouc.
36427         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
36428         * lib/unistr.h: Update.
36429         * lib/linebreak.c: Update.
36430         * modules/linebreak: Update.
36431         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
36432         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
36433         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
36434         * modules/unistr/u16-mbtouc: Renamed from
36435         modules/unistr/u16-mbtouc-safe.
36436         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
36437         * lib/unistr.h: Update.
36438         * lib/unistr/u16-to-u8.c: Update.
36439         * modules/unistr/u16-to-u8: Update.
36440         * lib/unistr/u16-to-u32.c: Update.
36441         * modules/unistr/u16-to-u32: Update.
36442
36443 2007-01-27  Bruno Haible  <bruno@clisp.org>
36444
36445         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
36446         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
36447         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
36448         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
36449         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
36450         * modules/unistr/u8-mbtouc-unsafe: Renamed from
36451         modules/unistr/u8-mbtouc.
36452         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
36453         * lib/unistr.h: Update.
36454         * lib/striconveh.c: Update.
36455         * modules/striconveh: Update.
36456         * lib/linebreak.c: Update.
36457         * modules/linebreak: Update.
36458         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
36459         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
36460         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
36461         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
36462         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
36463         * lib/unistr.h: Update.
36464         * lib/striconveh.c: Update.
36465         * modules/striconveh: Update.
36466         * lib/unistr/u8-to-u16.c: Update.
36467         * modules/unistr/u8-to-u16: Update.
36468         * lib/unistr/u8-to-u32.c: Update.
36469         * modules/unistr/u8-to-u32: Update.
36470
36471 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36472
36473         Sync from Libtool.
36474         * lib/argz.c: Do not include strings.h nor memory.h, include
36475         string.h unconditionally.  Patch by Simon Josefsson.
36476
36477 2007-01-27  Bruno Haible  <bruno@clisp.org>
36478
36479         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
36480         from gl_HEADER_STRING_H_BODY.
36481         (gl_HEADER_STRING_H_BODY): Require it.
36482         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
36483         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
36484         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
36485         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
36486         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
36487         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
36488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36489         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
36490         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
36491         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
36492         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
36493         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
36494         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
36495         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36496         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
36497
36498 2007-01-27  Bruno Haible  <bruno@clisp.org>
36499
36500         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
36501         check_PROGRAMS into noinst_PROGRAMS.
36502         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
36503         check_PROGRAMS in this case.
36504         (func_import): Set for_test to false.
36505         (func_create_testdir): Set for_test to true.
36506
36507 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36508             Bruno Haible  <bruno@clisp.org>
36509
36510         * modules/strcasestr (Files): Remove lib/strcasestr.h.
36511         (Depends-on): Add string.
36512         (Includes): Use <string.h> instead of strcasestr.h.
36513         * modules/string (Makefile.am): Also substitute the value of
36514         REPLACE_STRCASESTR.
36515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
36516         assume strcasestr is declared in <string.h> not <strings.h>. Also
36517         set REPLACE_STRCASESTR.
36518         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
36519         REPLACE_STRCASESTR.
36520         * lib/strcasestr.h: Remove file.
36521         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
36522         * lib/string_.h (strcasestr): New declaration.
36523
36524 2007-01-27  Bruno Haible  <bruno@clisp.org>
36525
36526         * lib/string_.h: Use 'extern'.
36527
36528 2007-01-27  Jim Meyering  <jim@meyering.net>
36529
36530         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
36531         of set-but-not-used local, "q".
36532
36533         * lib/mempcpy.c: Include <config.h> before <string.h>.
36534         This fixes a compilation error on HP-UX, due to the system's
36535         "restrict"-using mempcpy prototype.
36536
36537 2007-01-26  Bruno Haible  <bruno@clisp.org>
36538
36539         Small optimization.
36540         * lib/javacomp.c: Include c-strstr.h.
36541          (is_envjavac_gcj): Use c_strstr instead of strstr.
36542         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
36543
36544 2007-01-26  Bruno Haible  <bruno@clisp.org>
36545
36546         * MODULES.html.sh (Unicode string functions): Add the new modules.
36547
36548         * modules/uniconv/u32-strconv-to-locale: New file.
36549         * lib/uniconv/u32-strconv-to-locale.c: New file.
36550
36551         * modules/uniconv/u16-strconv-to-locale: New file.
36552         * lib/uniconv/u16-strconv-to-locale.c: New file.
36553
36554         * modules/uniconv/u8-strconv-to-locale: New file.
36555         * lib/uniconv/u8-strconv-to-locale.c: New file.
36556
36557         * modules/uniconv/u32-strconv-from-locale: New file.
36558         * lib/uniconv/u32-strconv-from-locale.c: New file.
36559
36560         * modules/uniconv/u16-strconv-from-locale: New file.
36561         * lib/uniconv/u16-strconv-from-locale.c: New file.
36562
36563         * modules/uniconv/u8-strconv-from-locale: New file.
36564         * lib/uniconv/u8-strconv-from-locale.c: New file.
36565
36566         * modules/uniconv/u32-strconv-to-enc: New file.
36567         * lib/uniconv/u32-strconv-to-enc.c: New file.
36568         * modules/uniconv/u32-strconv-to-enc-tests: New file.
36569         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
36570
36571         * modules/uniconv/u16-strconv-to-enc: New file.
36572         * lib/uniconv/u16-strconv-to-enc.c: New file.
36573         * lib/uniconv/u-strconv-to-enc.h: New file.
36574         * modules/uniconv/u16-strconv-to-enc-tests: New file.
36575         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
36576
36577         * modules/uniconv/u8-strconv-to-enc: New file.
36578         * lib/uniconv/u8-strconv-to-enc.c: New file.
36579         * modules/uniconv/u8-strconv-to-enc-tests: New file.
36580         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
36581
36582         * modules/uniconv/u32-strconv-from-enc: New file.
36583         * lib/uniconv/u32-strconv-from-enc.c: New file.
36584         * modules/uniconv/u32-strconv-from-enc-tests: New file.
36585         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
36586
36587         * modules/uniconv/u16-strconv-from-enc: New file.
36588         * lib/uniconv/u16-strconv-from-enc.c: New file.
36589         * modules/uniconv/u16-strconv-from-enc-tests: New file.
36590         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
36591
36592         * modules/uniconv/u8-strconv-from-enc: New file.
36593         * lib/uniconv/u8-strconv-from-enc.c: New file.
36594         * lib/uniconv/u-strconv-from-enc.h: New file.
36595         * modules/uniconv/u8-strconv-from-enc-tests: New file.
36596         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
36597
36598         * modules/uniconv/u32-conv-from-enc: New file.
36599         * lib/uniconv/u32-conv-from-enc.c: New file.
36600         * modules/uniconv/u32-conv-from-enc-tests: New file.
36601         * tests/uniconv/test-u32-conv-from-enc.c: New file.
36602
36603         * modules/uniconv/u16-conv-from-enc: New file.
36604         * lib/uniconv/u16-conv-from-enc.c: New file.
36605         * lib/uniconv/u-conv-from-enc.h: New file.
36606         * modules/uniconv/u16-conv-from-enc-tests: New file.
36607         * tests/uniconv/test-u16-conv-from-enc.c: New file.
36608
36609         * modules/uniconv/u8-conv-from-enc: New file.
36610         * lib/uniconv/u8-conv-from-enc.c: New file.
36611         * modules/uniconv/u8-conv-from-enc-tests: New file.
36612         * tests/uniconv/test-u8-conv-from-enc.c: New file.
36613
36614         * modules/uniconv/base: New file.
36615         * lib/uniconv.h: New file.
36616
36617 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
36618
36619         * doc/gnulib-tool.texi (Initial import): Update to match current
36620         behavior with strdup module.
36621         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
36622         * lib/memmem.h: Remove; all uses removed.  This is now done
36623         by <string.h>.
36624         * lib/mempcpy.h: Likewise.
36625         * lib/memrchr.h: Likewise.
36626         * lib/stpcpy.h: Likewise.
36627         * lib/stpncpy.h: Likewise.
36628         * lib/strcase.h: Likewise.
36629         * lib/strchrnul.h: Likewise.
36630         * lib/strdup.h: Likewise.
36631         * lib/strndup.h: Likewise.
36632         * lib/strnlen.h: Likewise.
36633         * lib/strpbrk.h: Likewise.
36634         * lib/strsep.h: Likewise.
36635         * lib/strstr.h: Likewise.
36636         * lib/strtok_r.h: Likewise.
36637         * lib/string_.h: New file.
36638         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
36639         Rely on <string.h> instead.
36640         * lib/canon-host.c: Likewise.
36641         * lib/chdir-long.c: Likewise.
36642         * lib/concatpath.c: Likewise.
36643         * lib/exclude.c: Likewise.
36644         * lib/fchdir.c: Likewise.
36645         * lib/getaddrinfo.c: Likewise.
36646         * lib/getcwd.c: Likewise.
36647         * lib/getsubopt.c: Likewise.
36648         * lib/glob.c: Likewise.
36649         * lib/hard-locale.c: Likewise.
36650         * lib/iconvme.c: Likewise.
36651         * lib/javacomp.c: Likewise.
36652         * lib/mempcpy.c: Likewise.
36653         * lib/memrchr.c: Likewise.
36654         * lib/regex_internal.h: Likewise.
36655         * lib/stpncpy.c: Likewise.
36656         * lib/strcasecmp.c: Likewise.
36657         * lib/strchrnul.c: Likewise.
36658         * lib/strdup.c: Likewise.
36659         * lib/striconv.c: Likewise.
36660         * lib/striconveh.c: Likewise.
36661         * lib/striconveha.c: Likewise.
36662         * lib/strncasecmp.c: Likewise.
36663         * lib/strndup.c: Likewise.
36664         * lib/strnlen.c: Likewise.
36665         * lib/strsep.c: Likewise.
36666         * lib/strstr.c: Likewise.
36667         * lib/strtok_r.c: Likewise.
36668         * lib/userspec.c: Likewise.
36669         * lib/w32spawn.h: Likewise.
36670         * lib/xstrndup.c: Likewise.
36671         * lib/mountlist.c (strstr): Remove decl.
36672         * m4/string_h.m4: New file.
36673         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
36674         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
36675         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
36676         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
36677         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
36678         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
36679         Set REPLACE_STRCASECMP if necessary.
36680         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
36681         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
36682         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
36683         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
36684         HAVE_DECL_STRDUP if necessary.
36685         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
36686         since gl_FUNC_STRNDUP does that now.
36687         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
36688         Check for decl here...
36689         (gl_PREREQ_STRNLEN): ... not here.
36690         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
36691         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
36692         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
36693         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
36694         necessary.
36695         * modules/string: New file.
36696         * modules/memmem (Files): Remove special-purpose include file.
36697         (Depends-on): Add string.
36698         (Include): Include <string.h>, not the removed file.
36699         * modules/mempcpy: Likewise.
36700         * modules/memrchr: Likewise.
36701         * modules/stpcpy: Likewise.
36702         * modules/stpncpy: Likewise.
36703         * modules/strcase: Likewise.
36704         * modules/strchrnul: Likewise.
36705         * modules/strdup: Likewise.
36706         * modules/strndup: Likewise.
36707         * modules/strnlen: Likewise.
36708         * modules/strpbrk: Likewise.
36709         * modules/strsep: Likewise.
36710         * modules/strstr: Likewise.
36711         * modules/strtok_r: Likewise.
36712         * tests/test-dirname.c: Don't include "strdup.h", since
36713         <string.h> now suffices.
36714         * tests/test-memmem.c: Don't include "memmem.h", since
36715         <string.h> now suffices.
36716
36717 2007-01-25  Bruno Haible  <bruno@clisp.org>
36718
36719         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
36720         *resultp is 0.
36721
36722         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
36723         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
36724         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
36725         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
36726
36727         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
36728         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
36729         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
36730         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
36731         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
36732         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
36733
36734 2007-01-24  Bruno Haible  <bruno@clisp.org>
36735
36736         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
36737         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
36738         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
36739         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
36740         gl_FUNC_FTS_CORE.
36741         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
36742         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
36743         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36744         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
36745         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
36746         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
36747         gl_FUNC_FCHOWNAT.
36748         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
36749         gl_FUNC_STRFTIME.
36750         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
36751         Reported by Ralf Wildenhues.
36752
36753 2007-01-24  Bruno Haible  <bruno@clisp.org>
36754
36755         Drop AC_REQUIRE calls that are redundant with the module dependencies.
36756         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
36757         gl_GETADDRINFO.
36758         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
36759         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
36760         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
36761
36762 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
36763
36764         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
36765         Don't use 'exit'; just return from 'main'.
36766         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
36767
36768         * lib/fnmatch_.h: Readjust white space and comments to match
36769         glibc, to avoid spurious diffs.
36770
36771 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36772
36773         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
36774         2004-12-01 change by Jakub Jelinek, since this code won't compile
36775         if !LIBC.  Problem reported by Bob Proulx.
36776
36777 2007-01-23  Bruno Haible  <bruno@clisp.org>
36778
36779         * lib/striconveh.c: Include c-strcaseeq.h.
36780         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
36781         * modules/striconveh (Depends-on): Add c-strcaseeq.
36782
36783 2007-01-23  Bruno Haible  <bruno@clisp.org>
36784
36785         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
36786
36787         * modules/c-strcaseeq: New file.
36788         * lib/c-strcaseeq.h: New file.
36789
36790         * modules/streq: New file.
36791         * lib/streq.h: New file.
36792
36793 2007-01-23  Bruno Haible  <bruno@clisp.org>
36794
36795         * modules/striconveha-tests: New file.
36796         * tests/test-striconveha.c: New file.
36797
36798         * lib/striconveha.h: Include <stdbool.h>.
36799         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
36800         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
36801         (mem_iconveha_notranslit): Renamed from mem_iconveha.
36802         (mem_iconveha): New function.
36803         (str_iconveha_notranslit): Renamed from str_iconveha.
36804         (str_iconveha): New function.
36805         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
36806         c-strcase.
36807
36808 2007-01-23  Bruno Haible  <bruno@clisp.org>
36809
36810         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
36811         encodings without forgiving before trying any encoding with handler.
36812         (str_iconveha): Try all encodings without forgiving before trying any
36813         encoding with handler.
36814
36815 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36816
36817         Import the following changes from libc.
36818
36819         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
36820
36821         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
36822
36823         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
36824
36825         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
36826         normal_bracket label.
36827
36828         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
36829
36830         [BZ #361]
36831         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
36832         to normal_bracket after fetching the next character.
36833
36834 2007-01-22  Bruno Haible  <bruno@clisp.org>
36835
36836         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
36837         argument.
36838         * lib/striconveh.c (iconv_carefully_1): New function.
36839         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
36840         argument.
36841         (str_cd_iconveh): Update.
36842         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
36843         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
36844         * tests/test-striconveh.c (MAGIC): New macro.
36845         (new_offsets): New function.
36846         (main): Test call with and without offsets.
36847
36848 2007-01-22  Bruno Haible  <bruno@clisp.org>
36849
36850         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
36851         * modules/sys_select (Makefile.am): Likewise.
36852         * modules/sys_socket (Makefile.am): Likewise.
36853         * modules/sys_time (Makefile.am): Likewise.
36854
36855 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36856
36857         * modules/gettimeofday (License): Change from GPL to LGPL, since
36858         gettimeofday is a library function.
36859
36860 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36861
36862         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
36863
36864 2007-01-21  Bruno Haible  <bruno@clisp.org>
36865
36866         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
36867
36868 2007-01-21  Bruno Haible  <bruno@clisp.org>
36869
36870         * modules/striconveha: New file.
36871         * lib/striconveha.h: New file.
36872         * lib/striconveha.c: New file.
36873         * MODULES.html.sh (Internationalization functions): Add striconveha.
36874         * lib/striconv.c (str_iconv): Optimize the case of an empty input
36875         string.
36876         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
36877
36878 2007-01-21  Bruno Haible  <bruno@clisp.org>
36879
36880         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
36881         * lib/striconveh.c (str_iconveh): Likewise.
36882
36883 2007-01-21  Bruno Haible  <bruno@clisp.org>
36884
36885         * lib/striconveh.h (mem_iconveh): New declaration.
36886         * lib/striconveh.c (mem_iconveh): New function.
36887         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
36888
36889 2007-01-21  Bruno Haible  <bruno@clisp.org>
36890
36891         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
36892
36893         * lib/striconveh.h (mem_cd_iconveh): Change specification.
36894         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
36895         original result buffer.
36896         (str_cd_iconveh): Update.
36897         * tests/test-striconveh.c (main): Update.
36898
36899         * lib/striconv.h (mem_cd_iconv): Change specification.
36900         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
36901         result buffer.
36902         (str_cd_iconv): Update.
36903         * tests/test-striconv.c (main): Update.
36904
36905 2007-01-21  Bruno Haible  <bruno@clisp.org>
36906
36907         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
36908
36909 2007-01-20  Jim Meyering  <jim@meyering.net>
36910
36911         * lib/userspec.c (parse_with_separator): If a user or group string
36912         starts with "+", skip the corresponding name-to-ID look-up, since
36913         such a look-up must fail: user and group names may not include "+".
36914
36915 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
36916
36917         * lib/poll.c: Include sys/time.h and time.h unconditionally,
36918         since we now assume the sys_time module.
36919         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
36920         check for sys/time.h; no longer needed.
36921         * modules/poll (Depends-on): Depend on sys_time.
36922
36923 2007-01-18  Bruno Haible  <bruno@clisp.org>
36924
36925         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
36926         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36927
36928         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
36929         gettimeofday.
36930
36931         * tests/test-gettimeofday.c: Include <time.h>.
36932         (dummy): Remove variable.
36933
36934         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
36935         gl_HEADER_SYS_TIME_H.
36936         (gl_HEADER_SYS_TIME_H): New macro.
36937
36938         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
36939         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36940         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
36941         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
36942         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36943         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
36944         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
36945         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36946         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
36947         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
36948         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36949
36950         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
36951         last change; it caused a compilation error when cross-compiling to
36952         Cygwin.
36953
36954 2007-01-18  Jim Meyering  <jim@meyering.net>
36955
36956         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
36957         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
36958         than the race-prone "test -d sys || mkdir sys".
36959         (configure.ac): Use AC_PROG_MKDIR_P.
36960         * modules/sys_select: Likewise.
36961         * modules/sys_socket: Likewise.
36962         * modules/sys_time: Likewise.
36963
36964 2007-01-18  Eric Blake  <ebb9@byu.net>
36965
36966         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
36967         replace gettimeofday.
36968         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
36969         name, to avoid infinite recursion.
36970
36971 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
36972
36973         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
36974         module sys_time.
36975         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
36976         assume timespec.h defines struct timeval.
36977         * lib/settime.c: Likewise.
36978         * lib/utimens.c: Likewise.
36979         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
36980         since we now assume the gettimeofday module.
36981         * lib/tempname.c (__gen_tempname): Likewise.
36982         * lib/gettimeofday.h: Remove.
36983         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
36984         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
36985         Include <time.h>, for 'time()'.
36986         (localtime_buffer_addr): Also use this workaround if
36987         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
36988         to simplify the uses.  All uses changed.
36989         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
36990         that #undef is inside {}, and 'const' follows type name consistently.
36991         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
36992         (gettimeofday): Do not use the maximum possible value for
36993         tv->tv_usec, since that might break usages other than ls.c.
36994         Instead, we'll leave ls.c alone.  This undoes today's patch
36995         by Bruno.  Add a compile-time warning for 1s-clock resolution;
36996         we've never observed the problem but might as well keep the
36997         canary.
36998         * lib/nanosleep.c: Include timespec.h first, for interface check.
36999         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
37000         now assume the sys_time module.
37001         * lib/tempname.c: Likewise.
37002         * lib/timespec.h: Likewise.
37003         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
37004         needed.
37005         * lib/strftime.c: Likewise.
37006         * lib/timespec.h: Likewise.
37007         * lib/posixtm.c: Include posixtm.h first, for interface check.
37008         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
37009         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
37010         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
37011         * lib/sys_time_.h: New file.
37012         * lib/timespec.h (struct timespec): Use long int, not long.
37013         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37014         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
37015         Remove obsolescent call to AC_HEADER_TIME.
37016         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37017         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37018         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37019         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
37020         Likewise.
37021         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
37022         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
37023         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
37024         into the sys_time module.  Check for gettimeofday just once.
37025         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
37026         for gettimeofday signature to just check the signature.  Merely
37027         compile it, since linking doesn't test signature.  Improve test for
37028         whether gettimeofday.o is actually needed.
37029         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
37030         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
37031         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
37032         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37033         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
37034         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
37035         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
37036         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
37037         than worrying about sys/time.h.
37038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37039         Don't bother worrying about TIME_WITH_SYS_TIME.
37040         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37041         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
37042         * m4/sys_time_h.m4: New file.
37043         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
37044         Don't include sys/time.h.  Return from main rather than exiting.
37045         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
37046         all uses changed.
37047         * modules/gethrxtime (Depends-on): Add sys_time.
37048         * modules/gettime (Depends-on): Likewise.
37049         * modules/gettimeofday (Depends-on): Likewise.
37050         * modules/nanosleep (Depends-on): Likewise.
37051         * modules/settime (Depends-on): Likewise.
37052         * modules/tempname (Depends-on): Likewise.
37053         * modules/utimens (Depends-on): Likewise.
37054         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
37055         (Include:) Change back to <sys/time.h>.
37056         (Maintainer:) Add self.
37057         * modules/sys_time: New file.
37058         * modules/tempname (Depends-on): Add gettimeofday.
37059         * tests/test-gettimeofday.c: Include <sys/time.h>
37060         rather than gettimeofday.h.
37061
37062 2007-01-17  Bruno Haible  <bruno@clisp.org>
37063
37064         * gnulib-tool (func_get_license): Revert last patch. Instead, let
37065         the license default to GPL.
37066         (func_create_testdir): Don't complain if a module is LGPL and its
37067         tests module depends on GPLed modules.
37068
37069 2007-01-17  Bruno Haible  <bruno@clisp.org>
37070
37071         * lib/gettimeofday.c (gettimeofday): Add code for the case
37072         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
37073         maximum possible value for tv->tv_usec, rather than the minimum one.
37074
37075 2005-10-08  Martin Lambers  <marlam@marlam.de>
37076 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37077 2007-01-16  Bruno Haible  <bruno@clisp.org>
37078
37079         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
37080         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
37081         gl_FUNC_GETTIMEOFDAY.
37082         (Include): Add gettimeofday.h.
37083         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
37084         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
37085         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
37086         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
37087         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
37088         * lib/gettimeofday.h: New file.
37089         * lib/gettimeofday.c: Include <sys/timeb.h>.
37090         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
37091         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37092         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
37093         fall back on time().
37094
37095         * tests/test-gettimeofday.c: New file.
37096         * modules/gettimeofday-tests: New file.
37097
37098 2007-01-16  Eric Blake  <ebb9@byu.net>
37099
37100         * modules/fnmatch (Depends-on): Depend on wchar.
37101         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
37102         * m4/fnmatch.m4: Likewise.
37103         * modules/mbchar (Makefile.am): Assume <wchar.h>.
37104         * m4/mbchar.m4: Likewise.
37105         * modules/mbswidth (Depends-on): Depend on wchar.
37106         * lib/mbswidth.c: Assume <wchar.h>.
37107         * m4/mbswidth.m4: Likewise.
37108         * modules/quotearg (Depends-on): Depend on wchar.
37109         * lib/quotearg.c: Assume <wchar.h>.
37110         * m4/quotearg.m4: Likewise.
37111         * modules/regex (Depends-on): Depend on wchar.
37112         * lib/regex_internal.h: Assume <wchar.h>.
37113         * m4/regex.m4: Likewise.
37114         * modules/stdint (Depends-on): Depend on wchar.
37115         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
37116         * m4/stdint.m4: Likewise.
37117         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
37118         * modules/strftime (Depends-on): Depend on wchar.
37119         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
37120         * modules/strtol (Depends-on): Depend on wchar.
37121         * lib/strtol.c: Assume <wchar.h>.
37122         * modules/wcwidth (Depends-on): Depend on wchar.
37123         * lib/wcwidth.h: Assume <wchar.h>.
37124         * m4/wcwidth.m4: Likewise.
37125
37126 2007-01-16  Bruno Haible  <bruno@clisp.org>
37127
37128         * modules/csharpexec-script: New, created from...
37129         * modules/csharpexec: ... this.
37130
37131 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37132
37133         * modules/javaexec-script: New, created from...
37134         * modules/javaexec: ... this.
37135
37136 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37137
37138         * modules/poll (Dependencies): Add sys_select.
37139
37140 2007-01-15  Jim Meyering  <jim@meyering.net>
37141
37142         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
37143         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
37144         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
37145         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
37146
37147 2007-01-15  Bruno Haible  <bruno@clisp.org>
37148
37149         * modules/striconveh: New file.
37150         * lib/striconveh.h: New file.
37151         * lib/striconveh.c: New file.
37152         * MODULES.html.sh (Internationalization functions): Add striconveh.
37153
37154         * modules/striconveh-tests: New file.
37155         * tests/test-striconveh.c: New file.
37156
37157 2007-01-15  Bruno Haible  <bruno@clisp.org>
37158
37159         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
37160         not from GNU libiconv or GNU libc.
37161
37162 2007-01-15  Bruno Haible  <bruno@clisp.org>
37163
37164         * doc/gnulib-intro.texi (Copyright): Explain the different license
37165         terms for module descriptions, autoconf macros, tests, documentation.
37166
37167 2007-01-14  Bruno Haible  <bruno@clisp.org>
37168
37169         * modules/striconv-tests: New file.
37170         * tests/test-striconv.c: New file.
37171
37172 2007-01-14  Bruno Haible  <bruno@clisp.org>
37173
37174         * modules/iconv-tests: New file.
37175         * tests/test-iconv.c: New file.
37176
37177 2007-01-14  Bruno Haible  <bruno@clisp.org>
37178
37179         * gnulib-tool (func_get_license): For test modules, use the license of
37180         the main module.
37181
37182 2007-01-14  Bruno Haible  <bruno@clisp.org>
37183
37184         * modules/iconv (Include): Clarify that <iconv.h> can only be included
37185         if iconv is found to exist.
37186
37187 2007-01-14  Bruno Haible  <bruno@clisp.org>
37188
37189         * modules/c-ctype-tests: New file.
37190         * tests/test-c-ctype.c: New file.
37191
37192 2007-01-14  Bruno Haible  <bruno@clisp.org>
37193
37194         * modules/binary-io-tests: New file.
37195         * tests/test-binary-io.sh: New file.
37196         * tests/test-binary-io.c: New file.
37197
37198 2007-01-14  Bruno Haible  <bruno@clisp.org>
37199
37200         * modules/array-oset-tests: New file.
37201         * tests/test-array_oset.c: New file.
37202
37203 2007-01-14  Bruno Haible  <bruno@clisp.org>
37204
37205         * modules/array-list-tests: New file.
37206         * tests/test-array_list.c: New file.
37207
37208 2007-01-14  Bruno Haible  <bruno@clisp.org>
37209
37210         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
37211         and make.
37212         Reported by Simon Josefsson in
37213         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
37214
37215 2007-01-14  Bruno Haible  <bruno@clisp.org>
37216
37217         * modules/allocsa-tests: New file.
37218         * tests/test-allocsa.c: New file.
37219
37220 2007-01-14  Bruno Haible  <bruno@clisp.org>
37221
37222         * modules/fchdir (Depends-on): Add absolute-header.
37223         * modules/unistd (Depends-on): Likewise.
37224
37225 2006-12-30  Bruno Haible  <bruno@clisp.org>
37226
37227         * modules/fchdir: New file.
37228         * modules/unistd (Files): Add lib/unistd_.h.
37229         (Makefile.am): Generate unistd.h from unistd_.h.
37230         * lib/fchdir.c: New file.
37231         * lib/dirent_.h: New file.
37232         * lib/unistd_.h: New file.
37233         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
37234         * m4/fchdir.m4: New file.
37235         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
37236         (gl_HEADER_UNISTD): Invoke it.
37237         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
37238         function.
37239         * lib/backupfile.c (opendir, closedir): Undefine.
37240         * lib/chown.c (open, close): Undefine.
37241         * lib/clean-temp.c (open, close): Undefine.
37242         * lib/copy-file.c (open, close): Undefine.
37243         * lib/execute.c (open, close): Undefine.
37244         * lib/fsusage.c (open, close): Undefine.
37245         * lib/gc-gnulib.c (open, close): Undefine.
37246         * lib/getcwd.c (opendir, closedir): Undefine.
37247         * lib/glob.c (opendir, closedir): Undefine.
37248         * lib/javacomp.c (open, close): Undefine.
37249         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
37250         * lib/openat-proc.c (open, close): Undefine.
37251         * lib/pagealign_alloc.c (open, close): Undefine.
37252         * lib/pipe.c (open, close): Undefine.
37253         * lib/progreloc.c (open, close): Undefine.
37254         * lib/savedir.c (opendir, closedir): Undefine.
37255         * lib/utime.c (open, close): Undefine.
37256         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
37257
37258 2007-01-10  Bruno Haible  <bruno@clisp.org>
37259
37260         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
37261
37262 2007-01-12  Eric Blake  <ebb9@byu.net>
37263
37264         Provide a robust <wchar.h>.  Further simplifications are now
37265         possible in other modules, but not included here.
37266         * modules/wchar: New module.
37267         * m4/wchar.m4: New file.
37268         * lib/wchar_.h: Likewise.
37269         * modules/mbchar (Depends-on): Depend on wchar, as the first use
37270         of the new module.
37271         * MODULES.html.sh (Extended multibyte and wide character utilities):
37272         New section.
37273
37274 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
37275
37276         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
37277         to a reasonable default for memory allocation.
37278         (xreadlink): Don't allocate a huge buffer, to work around a buggy
37279         file system that reports garbage st_size values for symlinks.
37280         Problem reported by Liyang Hu.
37281
37282 2007-01-11  Simon Josefsson  <simon@josefsson.org>
37283
37284         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
37285         Emacs .#* auto-save files).
37286
37287 2007-01-11  Bruno Haible  <bruno@clisp.org>
37288
37289         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
37290         directory.
37291
37292 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37293
37294         Use @...@ consistently in lib/wctype_.h.
37295         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
37296         on it being set to 1 or 0.
37297         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
37298         go back to AC_SUBSTing it.
37299         * modules/wctype (Makefile.am): Undo previous change.
37300
37301 2007-01-10  Eric Blake  <ebb9@byu.net>
37302
37303         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
37304         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
37305         * modules/wctype (Makefile.am): Likewise.
37306         Reported by Chris McGuire.
37307
37308 2007-01-10  Jim Meyering  <jim@meyering.net>
37309
37310         fts.c: a small readability/maintainability improvement
37311         * lib/fts.c (fts_read): Make this code slightly more readable and
37312         maintainable by hoisting the "sp->fts_cur = p" assignments to
37313         immediately follow the statements that set P.  Derived from
37314         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
37315
37316 2007-01-10  Eric Blake  <ebb9@byu.net>
37317
37318         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
37319         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
37320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37321         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37322         Reported by Chris McGuire.
37323
37324 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37325
37326         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
37327         in sed script.
37328
37329 2007-01-09  Bruno Haible  <bruno@clisp.org>
37330
37331         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
37332         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
37333         variables.
37334         (func_module): Use them.
37335
37336 2007-01-09  Bruno Haible  <bruno@clisp.org>
37337
37338         * modules/unistr/base: New file.
37339         * lib/unistr.h: New file.
37340
37341         * modules/unistr/u8-to-u16: New file.
37342         * lib/unistr/u8-to-u16.c: New file.
37343
37344         * modules/unistr/u8-to-u32: New file.
37345         * lib/unistr/u8-to-u32.c: New file.
37346
37347         * modules/unistr/u16-to-u8: New file.
37348         * lib/unistr/u16-to-u8.c: New file.
37349
37350         * modules/unistr/u16-to-u32: New file.
37351         * lib/unistr/u16-to-u32.c: New file.
37352
37353         * modules/unistr/u32-to-u8: New file.
37354         * lib/unistr/u32-to-u8.c: New file.
37355
37356         * modules/unistr/u32-to-u16: New file.
37357         * lib/unistr/u32-to-u16.c: New file.
37358
37359         * modules/unistr/u8-check: New file.
37360         * modules/unistr/u16-check: New file.
37361         * modules/unistr/u32-check: New file.
37362         * lib/unistr/u8-check.c: New file.
37363         * lib/unistr/u16-check.c: New file.
37364         * lib/unistr/u32-check.c: New file.
37365
37366         * modules/unistr/u8-chr: New file.
37367         * modules/unistr/u16-chr: New file.
37368         * modules/unistr/u32-chr: New file.
37369         * lib/unistr/u8-chr.c: New file.
37370         * lib/unistr/u16-chr.c: New file.
37371         * lib/unistr/u32-chr.c: New file.
37372
37373         * modules/unistr/u8-cmp: New file.
37374         * modules/unistr/u16-cmp: New file.
37375         * modules/unistr/u32-cmp: New file.
37376         * lib/unistr/u8-cmp.c: New file.
37377         * lib/unistr/u16-cmp.c: New file.
37378         * lib/unistr/u32-cmp.c: New file.
37379
37380         * modules/unistr/u8-cpy: New file.
37381         * modules/unistr/u16-cpy: New file.
37382         * modules/unistr/u32-cpy: New file.
37383         * lib/unistr/u8-cpy.c: New file.
37384         * lib/unistr/u16-cpy.c: New file.
37385         * lib/unistr/u32-cpy.c: New file.
37386         * lib/unistr/u-cpy.h: New file.
37387
37388         * modules/unistr/u8-cpy-alloc: New file.
37389         * modules/unistr/u16-cpy-alloc: New file.
37390         * modules/unistr/u32-cpy-alloc: New file.
37391         * lib/unistr/u8-cpy-alloc.c: New file.
37392         * lib/unistr/u16-cpy-alloc.c: New file.
37393         * lib/unistr/u32-cpy-alloc.c: New file.
37394         * lib/unistr/u-cpy-alloc.h: New file.
37395
37396         * modules/unistr/u8-endswith: New file.
37397         * modules/unistr/u16-endswith: New file.
37398         * modules/unistr/u32-endswith: New file.
37399         * lib/unistr/u8-endswith.c: New file.
37400         * lib/unistr/u16-endswith.c: New file.
37401         * lib/unistr/u32-endswith.c: New file.
37402         * lib/unistr/u-endswith.h: New file.
37403
37404         * modules/unistr/u8-mblen: New file.
37405         * modules/unistr/u16-mblen: New file.
37406         * modules/unistr/u32-mblen: New file.
37407         * lib/unistr/u8-mblen.c: New file.
37408         * lib/unistr/u16-mblen.c: New file.
37409         * lib/unistr/u32-mblen.c: New file.
37410
37411         * modules/unistr/u8-mbtouc: New file.
37412         * modules/unistr/u16-mbtouc: New file.
37413         * modules/unistr/u32-mbtouc: New file.
37414         * lib/unistr/u8-mbtouc.c: New file.
37415         * lib/unistr/u16-mbtouc.c: New file.
37416         * lib/unistr/u32-mbtouc.c: New file.
37417
37418         * modules/unistr/u8-mbtouc-safe: New file.
37419         * modules/unistr/u16-mbtouc-safe: New file.
37420         * modules/unistr/u32-mbtouc-safe: New file.
37421         * lib/unistr/u8-mbtouc-safe.c: New file.
37422         * lib/unistr/u16-mbtouc-safe.c: New file.
37423         * lib/unistr/u32-mbtouc-safe.c: New file.
37424
37425         * modules/unistr/u8-move: New file.
37426         * modules/unistr/u16-move: New file.
37427         * modules/unistr/u32-move: New file.
37428         * lib/unistr/u8-move.c: New file.
37429         * lib/unistr/u16-move.c: New file.
37430         * lib/unistr/u32-move.c: New file.
37431         * lib/unistr/u-move.h: New file.
37432
37433         * modules/unistr/u8-next: New file.
37434         * modules/unistr/u16-next: New file.
37435         * modules/unistr/u32-next: New file.
37436         * lib/unistr/u8-next.c: New file.
37437         * lib/unistr/u16-next.c: New file.
37438         * lib/unistr/u32-next.c: New file.
37439
37440         * modules/unistr/u8-prev: New file.
37441         * modules/unistr/u16-prev: New file.
37442         * modules/unistr/u32-prev: New file.
37443         * lib/unistr/u8-prev.c: New file.
37444         * lib/unistr/u16-prev.c: New file.
37445         * lib/unistr/u32-prev.c: New file.
37446
37447         * modules/unistr/u8-set: New file.
37448         * modules/unistr/u16-set: New file.
37449         * modules/unistr/u32-set: New file.
37450         * lib/unistr/u8-set.c: New file.
37451         * lib/unistr/u16-set.c: New file.
37452         * lib/unistr/u32-set.c: New file.
37453         * lib/unistr/u-set.h: New file.
37454
37455         * modules/unistr/u8-startswith: New file.
37456         * modules/unistr/u16-startswith: New file.
37457         * modules/unistr/u32-startswith: New file.
37458         * lib/unistr/u8-startswith.c: New file.
37459         * lib/unistr/u16-startswith.c: New file.
37460         * lib/unistr/u32-startswith.c: New file.
37461         * lib/unistr/u-startswith.h: New file.
37462
37463         * modules/unistr/u8-stpcpy: New file.
37464         * modules/unistr/u16-stpcpy: New file.
37465         * modules/unistr/u32-stpcpy: New file.
37466         * lib/unistr/u8-stpcpy.c: New file.
37467         * lib/unistr/u16-stpcpy.c: New file.
37468         * lib/unistr/u32-stpcpy.c: New file.
37469         * lib/unistr/u-stpcpy.h: New file.
37470
37471         * modules/unistr/u8-stpncpy: New file.
37472         * modules/unistr/u16-stpncpy: New file.
37473         * modules/unistr/u32-stpncpy: New file.
37474         * lib/unistr/u8-stpncpy.c: New file.
37475         * lib/unistr/u16-stpncpy.c: New file.
37476         * lib/unistr/u32-stpncpy.c: New file.
37477         * lib/unistr/u-stpncpy.h: New file.
37478
37479         * modules/unistr/u8-strcat: New file.
37480         * modules/unistr/u16-strcat: New file.
37481         * modules/unistr/u32-strcat: New file.
37482         * lib/unistr/u8-strcat.c: New file.
37483         * lib/unistr/u16-strcat.c: New file.
37484         * lib/unistr/u32-strcat.c: New file.
37485         * lib/unistr/u-strcat.h: New file.
37486
37487         * modules/unistr/u8-strchr: New file.
37488         * modules/unistr/u16-strchr: New file.
37489         * modules/unistr/u32-strchr: New file.
37490         * lib/unistr/u8-strchr.c: New file.
37491         * lib/unistr/u16-strchr.c: New file.
37492         * lib/unistr/u32-strchr.c: New file.
37493
37494         * modules/unistr/u8-strcmp: New file.
37495         * modules/unistr/u16-strcmp: New file.
37496         * modules/unistr/u32-strcmp: New file.
37497         * lib/unistr/u8-strcmp.c: New file.
37498         * lib/unistr/u16-strcmp.c: New file.
37499         * lib/unistr/u32-strcmp.c: New file.
37500
37501         * modules/unistr/u8-strcpy: New file.
37502         * modules/unistr/u16-strcpy: New file.
37503         * modules/unistr/u32-strcpy: New file.
37504         * lib/unistr/u8-strcpy.c: New file.
37505         * lib/unistr/u16-strcpy.c: New file.
37506         * lib/unistr/u32-strcpy.c: New file.
37507         * lib/unistr/u-strcpy.h: New file.
37508
37509         * modules/unistr/u8-strcspn: New file.
37510         * modules/unistr/u16-strcspn: New file.
37511         * modules/unistr/u32-strcspn: New file.
37512         * lib/unistr/u8-strcspn.c: New file.
37513         * lib/unistr/u16-strcspn.c: New file.
37514         * lib/unistr/u32-strcspn.c: New file.
37515         * lib/unistr/u-strcspn.h: New file.
37516
37517         * modules/unistr/u8-strdup: New file.
37518         * modules/unistr/u16-strdup: New file.
37519         * modules/unistr/u32-strdup: New file.
37520         * lib/unistr/u8-strdup.c: New file.
37521         * lib/unistr/u16-strdup.c: New file.
37522         * lib/unistr/u32-strdup.c: New file.
37523         * lib/unistr/u-strdup.h: New file.
37524
37525         * modules/unistr/u8-strlen: New file.
37526         * modules/unistr/u16-strlen: New file.
37527         * modules/unistr/u32-strlen: New file.
37528         * lib/unistr/u8-strlen.c: New file.
37529         * lib/unistr/u16-strlen.c: New file.
37530         * lib/unistr/u32-strlen.c: New file.
37531         * lib/unistr/u-strlen.h: New file.
37532
37533         * modules/unistr/u8-strmblen: New file.
37534         * modules/unistr/u16-strmblen: New file.
37535         * modules/unistr/u32-strmblen: New file.
37536         * lib/unistr/u8-strmblen.c: New file.
37537         * lib/unistr/u16-strmblen.c: New file.
37538         * lib/unistr/u32-strmblen.c: New file.
37539
37540         * modules/unistr/u8-strmbtouc: New file.
37541         * modules/unistr/u16-strmbtouc: New file.
37542         * modules/unistr/u32-strmbtouc: New file.
37543         * lib/unistr/u8-strmbtouc.c: New file.
37544         * lib/unistr/u16-strmbtouc.c: New file.
37545         * lib/unistr/u32-strmbtouc.c: New file.
37546
37547         * modules/unistr/u8-strncat: New file.
37548         * modules/unistr/u16-strncat: New file.
37549         * modules/unistr/u32-strncat: New file.
37550         * lib/unistr/u8-strncat.c: New file.
37551         * lib/unistr/u16-strncat.c: New file.
37552         * lib/unistr/u32-strncat.c: New file.
37553         * lib/unistr/u-strncat.h: New file.
37554
37555         * modules/unistr/u8-strncmp: New file.
37556         * modules/unistr/u16-strncmp: New file.
37557         * modules/unistr/u32-strncmp: New file.
37558         * lib/unistr/u8-strncmp.c: New file.
37559         * lib/unistr/u16-strncmp.c: New file.
37560         * lib/unistr/u32-strncmp.c: New file.
37561
37562         * modules/unistr/u8-strncpy: New file.
37563         * modules/unistr/u16-strncpy: New file.
37564         * modules/unistr/u32-strncpy: New file.
37565         * lib/unistr/u8-strncpy.c: New file.
37566         * lib/unistr/u16-strncpy.c: New file.
37567         * lib/unistr/u32-strncpy.c: New file.
37568         * lib/unistr/u-strncpy.h: New file.
37569
37570         * modules/unistr/u8-strnlen: New file.
37571         * modules/unistr/u16-strnlen: New file.
37572         * modules/unistr/u32-strnlen: New file.
37573         * lib/unistr/u8-strnlen.c: New file.
37574         * lib/unistr/u16-strnlen.c: New file.
37575         * lib/unistr/u32-strnlen.c: New file.
37576         * lib/unistr/u-strnlen.h: New file.
37577
37578         * modules/unistr/u8-strpbrk: New file.
37579         * modules/unistr/u16-strpbrk: New file.
37580         * modules/unistr/u32-strpbrk: New file.
37581         * lib/unistr/u8-strpbrk.c: New file.
37582         * lib/unistr/u16-strpbrk.c: New file.
37583         * lib/unistr/u32-strpbrk.c: New file.
37584         * lib/unistr/u-strpbrk.h: New file.
37585
37586         * modules/unistr/u8-strrchr: New file.
37587         * modules/unistr/u16-strrchr: New file.
37588         * modules/unistr/u32-strrchr: New file.
37589         * lib/unistr/u8-strrchr.c: New file.
37590         * lib/unistr/u16-strrchr.c: New file.
37591         * lib/unistr/u32-strrchr.c: New file.
37592
37593         * modules/unistr/u8-strspn: New file.
37594         * modules/unistr/u16-strspn: New file.
37595         * modules/unistr/u32-strspn: New file.
37596         * lib/unistr/u8-strspn.c: New file.
37597         * lib/unistr/u16-strspn.c: New file.
37598         * lib/unistr/u32-strspn.c: New file.
37599         * lib/unistr/u-strspn.h: New file.
37600
37601         * modules/unistr/u8-strstr: New file.
37602         * modules/unistr/u16-strstr: New file.
37603         * modules/unistr/u32-strstr: New file.
37604         * lib/unistr/u8-strstr.c: New file.
37605         * lib/unistr/u16-strstr.c: New file.
37606         * lib/unistr/u32-strstr.c: New file.
37607         * lib/unistr/u-strstr.h: New file.
37608
37609         * modules/unistr/u8-strtok: New file.
37610         * modules/unistr/u16-strtok: New file.
37611         * modules/unistr/u32-strtok: New file.
37612         * lib/unistr/u8-strtok.c: New file.
37613         * lib/unistr/u16-strtok.c: New file.
37614         * lib/unistr/u32-strtok.c: New file.
37615         * lib/unistr/u-strtok.h: New file.
37616
37617         * modules/unistr/u8-uctomb: New file.
37618         * modules/unistr/u16-uctomb: New file.
37619         * modules/unistr/u32-uctomb: New file.
37620         * lib/unistr/u8-uctomb.c: New file.
37621         * lib/unistr/u16-uctomb.c: New file.
37622         * lib/unistr/u32-uctomb.c: New file.
37623
37624         * MODULES.html.sh (Unicode string functions): Add the new modules.
37625
37626 2007-01-08  Bruno Haible  <bruno@clisp.org>
37627
37628         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
37629         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
37630         subdirectories.
37631
37632 2007-01-08  Karl Berry  <karl@gnu.org>
37633
37634         * doc/error.texi: mention that main() fns must set program_name
37635         when progname is used.
37636
37637 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
37638
37639         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
37640         WCTYPE_H is empty, for the benefit of builds from non-distclean
37641         directories.  Problem reported by Eric Blake in
37642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
37643
37644 2007-01-08  Bruno Haible  <bruno@clisp.org>
37645
37646         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
37647         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
37648         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
37649         PROVIDE_CANONICALIZE_FILENAME_MODE.
37650         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
37651
37652 2007-01-08  Bruno Haible  <bruno@clisp.org>
37653
37654         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
37655         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
37656         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
37657         * lib/fts.c: Likewise.
37658         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
37659
37660 2006-12-25  Bruno Haible  <bruno@clisp.org>
37661
37662         * modules/utf8-ucs4-safe: New file.
37663         * lib/utf8-ucs4-safe.h: New file.
37664         * lib/unistr/utf8-ucs4-safe.c: New file.
37665
37666         * modules/utf16-ucs4-safe: New file.
37667         * lib/utf16-ucs4-safe.h: New file.
37668         * lib/unistr/utf16-ucs4-safe.c: New file.
37669
37670         * MODULES.html.sh (Unicode string functions): Add the new modules.
37671
37672 2007-01-08  Bruno Haible  <bruno@clisp.org>
37673
37674         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
37675         (Depends-on): Add unitypes.
37676         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
37677         (u8_mbtouc_aux): Move out to separate file.
37678         (u8_mbtouc): Use ucs4_t, uint8_t types.
37679         * lib/unistr/utf8-ucs4.c: New file.
37680
37681         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
37682         (Depends-on): Add unitypes.
37683         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
37684         (u16_mbtouc_aux): Move out to separate file.
37685         (u16_mbtouc): Use ucs4_t, uint16_t types.
37686         * lib/unistr/utf16-ucs4.c: New file.
37687
37688         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
37689         (Depends-on): Add unitypes.
37690         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
37691         (u8_uctomb_aux): Move out to separate file.
37692         (u8_uctomb): Use ucs4_t, uint8_t types.
37693         * lib/unistr/ucs4-utf8.c: New file.
37694
37695         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
37696         (Depends-on): Add unitypes.
37697         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
37698         (u16_uctomb_aux): Move out to separate file.
37699         (u16_uctomb): Use ucs4_t, uint16_t types.
37700         * lib/unistr/ucs4-utf16.c: New file.
37701
37702 2006-12-25  Bruno Haible  <bruno@clisp.org>
37703
37704         * modules/unitypes: New file.
37705         * lib/unitypes.h: New file.
37706         * MODULES.html.sh (func_all_modules): New section "Unicode string
37707         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
37708         this section. Add unitypes.
37709
37710 2007-01-08  Bruno Haible  <bruno@clisp.org>
37711
37712         Avoid variable names that conflict with those from libtool.
37713         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
37714         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
37715         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
37716         library_names_spec to acl_library_names_spec, hardcode_* to
37717         acl_hardcode_*.
37718         Reported by Ralf Wildenhues.
37719
37720 2007-01-08  Bruno Haible  <bruno@clisp.org>
37721
37722         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
37723         definition.
37724         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
37725         definition.
37726         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
37727         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
37728         definition.
37729         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
37730         definition.
37731         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
37732         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
37733         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
37734         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
37735         definition.
37736         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
37737         definition.
37738         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
37739         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
37740         GC_USE_<algorithm>.
37741         * lib/gc-libgcrypt.c: Likewise.
37742         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
37743         * modules/gc-arctwo (configure.ac): Likewise.
37744         * modules/gc-des (configure.ac): Likewise.
37745         * modules/gc-hmac-md5 (configure.ac): Likewise.
37746         * modules/gc-hmac-sha1 (configure.ac): Likewise.
37747         * modules/gc-md2 (configure.ac): Likewise.
37748         * modules/gc-md4 (configure.ac): Likewise.
37749         * modules/gc-md5 (configure.ac): Likewise.
37750         * modules/gc-random (configure.ac): Likewise.
37751         * modules/gc-rijndael (configure.ac): Likewise.
37752         * modules/gc-sha1 (configure.ac): Likewise.
37753
37754 2007-01-08  Bruno Haible  <bruno@clisp.org>
37755
37756         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
37757         macro definition.
37758         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
37759         definition.
37760         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
37761         definition.
37762         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
37763         * modules/fcntl-safer (configure.ac): Likewise.
37764         * modules/fopen-safer (configure.ac): Likewise.
37765         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
37766         GNULIB_FWRITEERROR macro definition.
37767
37768 2007-01-08  Bruno Haible  <bruno@clisp.org>
37769
37770         * m4/gnulib-common.m4: New file.
37771         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
37772         (func_get_filelist): Add m4/gnulib-common.m4.
37773
37774 2007-01-08  Bruno Haible  <bruno@clisp.org>
37775
37776         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
37777         command.
37778
37779 2007-01-08  Jim Meyering  <jim@meyering.net>
37780
37781         Use a more robust test for a "can't happen" condition.
37782         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
37783         narrowed the st_size value.  Presuming the "can't happen" condition
37784         is true, that narrowing could conceivably convert an invalid st_size
37785         value into a valid one.  Instead, use a change based on Matthew
37786         Woehlke's original patch.
37787
37788         Slight readability improvement: use an assert-like macro
37789         in place of literal "abort ()" uses.
37790         * lib/fts.c (fts_assert): Define.
37791         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
37792         Use this macro instead of a bare 'abort'.
37793
37794 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
37795
37796         Don't worry about using IRIX 5.3's wctype.h broken definitions;
37797         simply work around them.
37798         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
37799         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
37800         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
37801         declaring.
37802         Don't bother to define as macros, since the standard doesn't require it.
37803         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
37804         longer worry about IRIX 5.3.
37805         (HAVE_WCTYPE_CTMP_BUG): Remove.
37806
37807 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
37808
37809         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
37810         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
37811         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37812         Problems reported by Georg Schwarz for IRIX 5.3.
37813
37814         * gnulib-tool (autoconf_minversion): Take the maximum version number
37815         found, not the minimum.  Problem reported by James Youngman.
37816
37817 2007-01-03  Karl Berry  <karl@gnu.org>
37818
37819         * doc/error.texi: new file, explaining interaction with progname.
37820         * doc/gnulib.texi: include it.  Update copyright.
37821
37822 2007-01-03  Simon Josefsson  <simon@josefsson.org>
37823
37824         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
37825         AC_CANONICAL_HOST, to improve autobuild outputs.
37826
37827 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
37828             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37829
37830         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
37831         sockets, server sockets, and other file descriptors.  Count errors
37832         to compute the return value.  Reorder the code a bit to be easier
37833         to follow.  Don't set event bits that were not requested (except
37834         POLLERR and POLLHUP).
37835
37836 2007-01-01  Bruno Haible  <bruno@clisp.org>
37837
37838         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
37839
37840 2007-01-03  Jim Meyering  <jim@meyering.net>
37841
37842         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
37843
37844 2007-01-02  Bruno Haible  <bruno@clisp.org>
37845
37846         * modules/settime (Include): Require timespec.h.
37847         * modules/nanosleep (Include): Likewise.
37848
37849 2007-01-01  Bruno Haible  <bruno@clisp.org>
37850
37851         * gnulib-tool (func_emit_copyright_notice): Bump year.
37852         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
37853
37854 2007-01-01  Bruno Haible  <bruno@clisp.org>
37855
37856         Improve support for OpenBSD.
37857         * build-aux/config.rpath (libname_spec): Export.
37858         (library_names_spec): New variable. Export.
37859         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
37860         library_names_spec from the config.rpath output. Locate shared library
37861         through the name pattern in library_names_spec.
37862
37863 2007-01-01  Eric Blake  <ebb9@byu.net>
37864
37865         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
37866
37867 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
37868
37869         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
37870         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
37871         assume the C locale, and avoid an "eval" that could cause trouble.
37872         Problem with SORT reported by Bob Proulx.
37873
37874         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
37875         Define.  Trivial patch from Henning Nielsen Lund, originally
37876         sent to bug-grep@gnu.org today.
37877
37878 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37879
37880         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
37881         struct stat.  Problem reported by Henning Nielsen Lund.
37882         * lib/acl.c: Include acl.h first, to check interface.  Don't
37883         bother to include sys/types.h and sys/stat.h again.
37884
37885 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
37886
37887         Import the following change from libc; problem reported by
37888         Sven Verdoolaege.
37889
37890         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
37891
37892         [BZ #1373]
37893         * lib/argp.h: Remove __NTH for __argp_usage inline function.
37894
37895 2006-12-28  Jim Meyering  <jim@meyering.net>
37896
37897         * build-aux/announce-gen: Do not assume that the package
37898         builds any of tar.gz, tar.bz2, and .xdelta files.
37899         Suggestion from Simon Josefsson.
37900
37901 2006-12-28  Simon Josefsson  <simon@josefsson.org>
37902
37903         * modules/announce-gen: New file.
37904
37905 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
37906
37907         * lib/mbchar.h: Just include <wctype.h>; the wctype module
37908         handles its gotchas now.
37909         * lib/mbswidth.c: Likewise.
37910         * lib/wcwidth.h: Likewise.
37911         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
37912         and iswcntrl; the wctype module does this stuff now.
37913         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37915         * modules/mbchar (Depends-on): Add wctype.
37916         * modules/mbswidth (Depends-on): Likewise.
37917         * modules/wcwidth (Depends-on): Likewise.
37918
37919 2006-12-27  Eric Blake  <ebb9@byu.net>
37920
37921         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
37922         module uses more than what <wctype.h> is required to provide.
37923
37924 2006-12-26  Eric Blake  <ebb9@byu.net>
37925
37926         * gnulib-tool (sed_extract_prog): Avoid space-tab.
37927
37928 2006-12-26  Eric Blake  <ebb9@byu.net>
37929
37930         * modules/absolute-header: New module.
37931         * modules/fcntl (Depends-on): Depend on it.
37932         * modules/inttypes (Depends-on): Likewise.
37933         * modules/stdint (Depends-on): Likewise.
37934         * modules/sys_stat (Depends-on): Likewise.
37935         * modules/wctype (Depends-on): Likewise.
37936         * MODULES.html.sh (Support for building libraries and
37937         executables): Document it.
37938
37939 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37940
37941         * gnulib-tool (SED): Remove, undoing previous change.
37942         The problem was that it broke coreutils on Solaris, because
37943         "sed --posix" leaked into a makefile.
37944         (sed): New alias, if 'alias' and GNU sed.
37945
37946 2006-12-24  Jim Meyering  <jim@meyering.net>
37947
37948         Work around an fchownat bug in glibc-2.4:
37949         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
37950         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
37951         in spite of the -P option.
37952         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
37953         New macros.
37954         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
37955         * modules/openat (Files): Add lib/fchownat.c.
37956         * lib/openat.c (fchownat): Don't define here.  Move to...
37957         * lib/fchownat.c: ...this new file.
37958
37959 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
37960
37961         Fix bug reported by Bruno Haible in
37962         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
37963         where quotearg.c didn't compile on Mac OS X 10.2 because it
37964         lacks <wchar.h> and wint_t.
37965         * lib/wctype_.h (__wctype_wint_t): New type.
37966         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
37967         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
37968         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
37969         Arg is now of type __wctype_wint_t, not wint_t.
37970         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
37971         substitute HAVE_WINT_T.
37972         * modules/wctype (Files): Add m4/wint_t.m4.
37973         (wctype.h): Substitute HAVE_WINT_T.
37974
37975 2006-12-23  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
37978
37979 2006-12-23  Bruno Haible  <bruno@clisp.org>
37980
37981         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
37982         S_ISLNK.
37983         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
37984         mingw.
37985
37986 2006-12-22  Bruno Haible  <bruno@clisp.org>
37987
37988         * lib/copy-file.c: Include acl.h.
37989         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
37990         Close the file descriptors only after being done with copy_acl.
37991         * modules/copy-file (Depends-on): Add acl.
37992
37993 2006-12-22  Bruno Haible  <bruno@clisp.org>
37994
37995         * gnulib-tool (SED): New variable.
37996         Use $SED instead of sed everywhere.
37997
37998 2006-12-22  Bruno Haible  <bruno@clisp.org>
37999
38000         * modules/no-c++: New file.
38001         * m4/no-c++.m4: New file.
38002         * MODULES.html.sh (Support for building libraries and executables):
38003         Add no-c++.
38004
38005 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
38006
38007         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
38008         Include <limits.h>, and use its INT_MAX to rewrite the
38009         j loop so that it does not overflow 'int'.  Problem reported by
38010         Ralf Wildenhues in
38011         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
38012         Play it safe by shifting left by 1 rather than multiplying by 2,
38013         as GCC is less likely to optimize this away when the value
38014         is signed (when it assumes overflow leads to undefined behavior).
38015         Also, don't assume time_t uses two's complement.
38016
38017 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
38018
38019         * MODULES.html.sh: New module wctype.
38020         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
38021         * lib/fnmatch.c: Don't bother to include <wchar.h> before
38022         <wctype.h>, since the new wctype module should fix this.
38023         * lib/quotearg.c: Include <wctype.h> unconditionally, since
38024         the wctype module should arrange for it.
38025         * lib/regex_internal.h: Likewise.
38026         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
38027         since the wctype module should handle this now.
38028         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
38029         * modules/fnmatch (Depends-on): Add wctype.
38030         * modules/quotearg (Depends-on): Likewise.
38031         * modules/regex (Depends-on): Likewise.
38032
38033 2006-12-19  Bruno Haible  <bruno@clisp.org>
38034
38035         * lib/strdup.h [C++]: Wrap definitions in extern "C".
38036         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
38037
38038 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38039
38040         * modules/savewd (Depends-on): Fix dependency on fcntl.
38041
38042 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38043
38044         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
38045         conforms to C99, rather than relying on the user's environment
38046         setting of STDINT_H.
38047
38048 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38049         and Eric Blake  <ebb9@byu.net>
38050
38051         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
38052         This is more consistent with the other defines here.
38053         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
38054         Port to z/OS.  Problem reported by Paul Gilmartin.
38055         Change local vars to use gl_ prefix rather than ac_.
38056         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
38057         with other defines.
38058         * modules/double-slash-root: New module.
38059         * modules/dirname (Files): Remove m4/double-slash-root.m4.
38060         (Depends-on): Add double-slash-root.
38061         * MODULES.html.sh (File system functions): Mention new module.
38062
38063 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
38064
38065         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
38066         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
38067         This is for the benefit of gzip, which doesn't do i18n.
38068
38069 2006-12-12  Jim Meyering  <jim@meyering.net>
38070
38071         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
38072         Reported by Andreas Schwab <schwab@suse.de>.
38073
38074 2006-12-12  Bruno Haible  <bruno@clisp.org>
38075
38076         Merge these changes.
38077         2006-09-05  Bruno Haible  <bruno@clisp.org>
38078         * lib/iconvme.c (iconv_string): No need to save and restore errno when
38079         iconv_alloc succeeded.
38080         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
38081         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
38082         test for " && dest " at the end - dest is always != NULL there. Call
38083         iconv with 4xNULL arguments initially, to reset the state. Call iconv
38084         with 2xNULL arguments, also to flush the state storage. Handle the
38085         IRIX iconv behaviour. Realloc the final result, to throw away unused
38086         memory.
38087
38088 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
38089
38090         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
38091         and fchmodat unconditionally, since glibc 2.4 has them.
38092         Problem reported by Arkadiusz Miskiewicz.
38093
38094 2006-12-10  Bruno Haible  <bruno@clisp.org>
38095
38096         * gnulib-tool (func_import): Show the include files only for those
38097         modules that are copied and specified.
38098         Reported by Karl Berry.
38099
38100 2006-12-08  Jim Meyering  <jim@meyering.net>
38101
38102         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
38103         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
38104
38105         * build-aux/announce-gen: Add two new options, both optional:
38106         --bootstrap-tools=TOOL_LIST
38107               a comma-separated list of tools, e.g.,
38108               autoconf,automake,bison,gnulib
38109         --gnulib-snapshot-date=DATE
38110               if gnulib is in the bootstrap tool list,
38111               then report this as the snapshot date.
38112               If not specified, use the current date/time.
38113               If you specify a date here, be sure it's UTC.
38114
38115 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38116
38117         * tests/test-argp-2.sh: Fix test to match actual output.
38118         (func_compare): Fix sed script to be portable.
38119
38120 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
38121
38122         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
38123         workaround for this case.  It is not autoconfigured now; offhand
38124         it's hard to see how to autoconfigure it.
38125
38126 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38127
38128         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
38129         a directory that is about to be chowned.  Such a directory's
38130         initial file permissions should permit the owner only and this
38131         should not be changed until after the chown, since the group and
38132         other bits would be incorrect if they granted permission before
38133         the chown.
38134
38135         Fix porting problem for iswctype reported by Georg Schwarz in:
38136         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
38137         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
38138         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
38139         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
38140         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38141
38142 2006-12-03  Jim Meyering  <jim@meyering.net>
38143
38144         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
38145         p->fts_statp may not yet be defined.
38146         (fts_read): Instead, set it in the caller, once p->fts_statp is
38147         sure to be defined, and corresponds to a top-level directory.
38148         This bug made du -x fail.  Here's the coreutils test case:
38149         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
38150         Reported by Mike Frysinger.
38151
38152 2006-12-01  Jim Meyering  <jim@meyering.net>
38153
38154         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
38155         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
38156         Reported by Simon Josefsson.
38157
38158 2006-11-30  Jim Meyering  <jim@meyering.net>
38159
38160         * m4/warning.m4: Use the all-permissive copyright notice
38161         recommended by RMS (rather than LGPL).
38162         * m4/vararrays.m4: Likewise.
38163         * m4/flexmember.m4: Likewise.
38164
38165 2006-11-29  Bruno Haible  <bruno@clisp.org>
38166
38167         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38168         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
38169         using +=.
38170         Reported by Simon Josefsson <simon@josefsson.org>.
38171
38172 2006-11-28  James Youngman <jay@gnu.org>
38173
38174         * README: Advise users that they might find the bug-gnulib@gnu.org
38175         and autotools-announce@gnu.org mailing lists useful.
38176
38177 2006-11-28  Bruno Haible  <bruno@clisp.org>
38178
38179         * m4/ptrdiff_max.m4: Remove file.
38180
38181 2006-11-21  Bruno Haible  <bruno@clisp.org>
38182
38183         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
38184         _AC_COMPUTE_INT.
38185         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38186         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
38187         _AC_COMPUTE_INT.
38188         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38189         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
38190         _AC_COMPUTE_INT.
38191         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38192
38193 2006-11-28  Jim Meyering  <jim@meyering.net>
38194
38195         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
38196         warning from "gcc -Wshadow" about shadowing the builtin.
38197
38198 2006-11-27  Bruno Haible  <bruno@clisp.org>
38199
38200         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
38201         _AC_COMPUTE_INT.
38202         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38203
38204 2006-11-27  Bruno Haible  <bruno@clisp.org>
38205             Paul Eggert  <eggert@cs.ucla.edu>
38206
38207         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
38208
38209 2006-11-26  Bruno Haible  <bruno@clisp.org>
38210
38211         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38212         noinst_LTLIBRARIES.
38213
38214 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
38215             Bruno Haible  <bruno@clisp.org>
38216
38217         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
38218         if compiling with "gcc -ansi".
38219
38220 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
38221
38222         Fix some incompatibilities with gcc -ansi -pedantic.
38223         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
38224         if compiling pedantically with GCC, unless it's C99 or later.
38225         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
38226         it mishandles gcc -ansi -pedantic as well.
38227         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
38228         if gcc -pedantic.
38229         * lib/regexec.c (check_node_accept_bytes): Don't use auto
38230         initializers for struct if -pedantic, unless it's C99 or later.
38231
38232 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
38233
38234         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
38235         Don't close an fd more than once. Identical atimes indicate
38236         success, not failure.
38237
38238 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
38239
38240         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
38241
38242 2006-11-23  Jim Meyering  <jim@meyering.net>
38243
38244         * build-aux/announce-gen: New file.  From coreutils.
38245
38246 2006-11-22  Jim Meyering  <jim@meyering.net>
38247
38248         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
38249         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
38250         (fts_read): Use a temporary to narrow the overused st_size member
38251         before using it in a switch statement.  Reported by Matthew Woehlke.
38252
38253         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
38254         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38255
38256 2006-11-20  Bruno Haible  <bruno@clisp.org>
38257
38258         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
38259         changequote instead of pairs of brackets.
38260         Reported by Andreas Schwab <schwab@suse.de>.
38261
38262 2006-11-21  Jim Meyering  <jim@meyering.net>
38263
38264         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
38265         so as to remain compatible with older compilers.
38266         Patch from Michael Deutschmann.
38267
38268 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
38269
38270         * MODULES.html.sh (File system functions): Add openat.
38271
38272         * lib/openat.h (rpl_fstatat): New macro, if
38273         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
38274         (fstatat): Define to rpl_fstatat under the same conditions,
38275         unless COMPILING_FSTATAT.
38276         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
38277         seems to have the bug.
38278         * lib/fstatat.c: New file.
38279         * modules/openat (Files): Add it.
38280
38281 2006-11-20  Bruno Haible  <bruno@clisp.org>
38282
38283         * Makefile: New file.
38284
38285 2006-11-20  Jim Meyering  <jim@meyering.net>
38286
38287         The beginnings of syntax-related checks for gnulib.
38288         * lib/Makefile: New file.
38289         * lib/t-idcache: New script.  Ensure that the two halves of
38290         idcache.c stay in sync.
38291
38292         * lib/idcache.c: Adjust comments in user- and group- portions to
38293         be more accurate, and to be consistent with one another.
38294
38295 2006-11-20  Jim Meyering  <jim@meyering.net>
38296
38297         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
38298         continue using the flexible array member (thus, this module performs
38299         half as many malloc calls), with the addition that...
38300         (getgroup, getuser): Consistently record a non-match via an empty
38301         "name" string, and map an empty string match to a NULL return value.
38302         * modules/idcache (Depends-on): Re-add flexmember.
38303
38304         * lib/idcache.c (getuser): Remove all uses of the register keyword.
38305         (getuidbyname, getgroup, getgidbyname): Likewise.
38306
38307         Use cleaner syntax: NULL rather than 0.
38308         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
38309
38310 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
38311
38312         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
38313         It mishandled the case where the group was missing.
38314         Problem reported by Greg Schafer.
38315         * modules/idcache: Likewise.
38316
38317 2006-11-18  Jim Meyering  <jim@meyering.net>
38318
38319         * check-module (%exempt_header): Add exception for some
38320         conditionally-included headers.
38321
38322         * modules/i-ring (Depends-on): Add verify.
38323         (License): Change to LGPL.
38324
38325 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38326
38327         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
38328         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
38329         and inttostr.h.  Use snprintf rather than uinttostr, so that
38330         LGPLed code doesn't depend on GPLed.
38331
38332 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
38333
38334         * modules/inline (License): Change from GPL to LGPL.
38335
38336 2006-11-17  Jim Meyering  <jim@meyering.net>
38337
38338         * modules/d-type (License): Switch to LGPL.
38339
38340 2006-11-15  Bruno Haible  <bruno@clisp.org>
38341
38342         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
38343
38344 2006-11-15  Eric Blake  <ebb9@byu.net>
38345
38346         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
38347         the module dependency.
38348
38349 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38350             Bruno Haible  <bruno@clisp.org>
38351
38352         * gnulib-tool (func_create_testdir): Add license consistency check.
38353
38354 2006-11-15  Eric Blake  <ebb9@byu.net>
38355
38356         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
38357         random "(cached)" in configure output.
38358
38359 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38360
38361         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
38362         test for conforming inttypes.h is both announced and cached.
38363
38364         * MODULES.html.sh (seen_modules, seen_files): New variables.
38365         (func_module): Rewrite to use a few less gnulib-tool and sed
38366         invocations.  Avoid a couple of quadratic algorithms for ...
38367         (missed_modules, missed_files): ... these, with ...
38368         (func_append, func_tmpdir): ... these new functions, from
38369         gnulib-tool.  Analogously, install traps for cleanup.
38370
38371         * tests/test-gc.c (main): Remove unused variables.
38372         * tests/test-read-file.c: Include stdlib.h, for 'free'.
38373
38374 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
38375
38376         * modules/inttostr (License): Change to LGPL.
38377
38378 2006-11-14  Eric Blake  <ebb9@byu.net>
38379
38380         * modules/tempname (License): Change to LGPL.
38381
38382 2006-11-14  Eric Blake  <ebb9@byu.net>
38383
38384         * doc/functions.texi (Function Portability): *printf functions on
38385         Cygwin now understand all POSIX size specifiers.
38386
38387 2006-11-14  Bruno Haible  <bruno@clisp.org>
38388
38389         * modules/c-ctype (License): Change to LGPL.
38390
38391 2006-11-12  Bruno Haible  <bruno@clisp.org>
38392
38393         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
38394         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
38395         for GNOME libraries, for which the include files are installed in
38396         subdirectories of $prefix/include.
38397
38398 2006-11-12  Bruno Haible  <bruno@clisp.org>
38399
38400         * m4/lib-link.m4: Require at least autoconf-2.54.
38401         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
38402         name to underscores for the --with option.
38403
38404 2006-11-13  Bruno Haible  <bruno@clisp.org>
38405
38406         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
38407         the tests directory.
38408         Reported by Ralf Wildenhues.
38409
38410 2006-11-13  Bruno Haible  <bruno@clisp.org>
38411
38412         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
38413         (func_emit_initmacro_end): Undo the override here.
38414         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
38415         Works around the famous automake error in coreutils.
38416
38417 2006-11-13  Eric Blake  <ebb9@byu.net>
38418
38419         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
38420         element, not its node.
38421
38422 2006-11-12  Bruno Haible  <bruno@clisp.org>
38423
38424         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
38425         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
38426
38427 2006-11-12  Bruno Haible  <bruno@clisp.org>
38428
38429         * gnulib-tool: New option --local-symlink.
38430         (func_usage): Document it.
38431         (lsymbolic): New variable.
38432         (func_import, func_create_testdir): If --symlink was not specified,
38433         test whether --local-symlink was specified and the file comes from
38434         the local_gnulib_dir.
38435
38436 2006-11-12  Bruno Haible  <bruno@clisp.org>
38437
38438         * gnulib-tool (func_ln): New function.
38439         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
38440
38441 2006-11-12  Bruno Haible  <bruno@clisp.org>
38442
38443         Finish support for source files in subdirectories.
38444         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
38445         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
38446         AUTOMAKE_OPTIONS.
38447         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
38448
38449 2006-11-12  Bruno Haible  <bruno@clisp.org>
38450
38451         * gnulib-tool (func_get_automake_snippet): Synthesize also an
38452         EXTRA_lib_SOURCES augmentation.
38453         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
38454
38455 2006-11-12  Jim Meyering  <jim@meyering.net>
38456
38457         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
38458         file descriptors.  This also averts a failure on systems with
38459         native openat support when a traversed directory lacks "x" access.
38460         * lib/fts_.h: Include "i-ring.h"
38461         (struct FTS) [fts_fd_ring]: New member.
38462         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
38463         (FCHDIR): Add parentheses.
38464         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
38465         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
38466         When descending, rather than simply closing the previous
38467         fts_cwd_fd value, push that file descriptor onto the ring.
38468         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
38469         (fts_open): Initialize the new fd_ring member.
38470         (fts_close): Clear the ring.
38471         (fts_safe_changedir): When possible, use our new fd_ring to skip
38472         the diropen and fstat and dev/ino comparison that would normally
38473         accompany a virtual `chdir ("..")'.
38474
38475         * modules/fts (Depends-on): Add i-ring.
38476         * modules/i-ring: New module.
38477         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
38478         * m4/i-ring.m4: New file.
38479
38480 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38481
38482         * gnulib-tool (func_create_testdir): Fix replacement of
38483         `build-aux' in configure.ac.  Run autotools in gltests
38484         subdirectory.
38485         (func_create_testdir, func_create_megatestdir, test): There is
38486         no need for '--force' in most autotool invocations in a new
38487         tree.  Actually fail the whole test if any of the tools, or the
38488         configure or make stages fail.
38489
38490         Sync from Automake.
38491         * build-aux/gnupload: Revert last change.  Add pointer to upload
38492         instructions of the GNU Maintenance Instructions.
38493         Suggestion by Karl Berry.
38494
38495 2006-11-10  Jim Meyering  <jim@meyering.net>
38496
38497         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
38498
38499 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
38500
38501         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
38502         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
38503         (bind_textdomain_codeset) [! ENABLE_NLS]:
38504         Evaluate all the arguments.  That way, callers get compatible behavior
38505         if the arguments have side effects.  Also, it avoids some GCC
38506         diagnostics in some cases; Joel E. Denny reported problems when Bison
38507         was configured with --enable-gcc-warnigs.
38508
38509 2006-11-10  Jim Meyering  <jim@meyering.net>
38510
38511         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
38512         relevant options in CFLAGS (like -O, -fno-inline) are taken into
38513         account.
38514
38515 2006-11-10  Jim Meyering  <jim@meyering.net>
38516
38517         * modules/inline: New file/module.
38518         * modules/xalloc (Files): Remove m4/inline.m4.
38519         (Depends-on): Add inline, instead.
38520         * modules/oset: Likewise.
38521         * modules/list: Likewise.
38522
38523 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
38524
38525         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
38526         Problem reported by Matthew Woehlke.
38527
38528 2006-11-09  Bruno Haible  <bruno@clisp.org>
38529
38530         * lib/tempname.c (gen_tempname): Remove variant that invokes
38531         __gen_tempname.
38532         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
38533         __gen_tempname.
38534
38535 2006-11-08  Bruno Haible  <bruno@clisp.org>
38536
38537         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
38538         to 'yes' instead of 'cross-compiling'.
38539
38540 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
38541
38542         * lib/quotearg.h (quotearg_free): New decl.
38543         * lib/quotearg.c (quotearg_free): New function.
38544         (slot0, nslots, slotvec0, slotvec):
38545         Now file-scope so that quotearg_free can get at them.
38546
38547 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38548
38549         Sync from Automake.
38550         * build-aux/gnupload: Add missing 'gnu' to example URL.
38551         Report by Karl Berry.
38552
38553 2006-11-08  Bruno Haible  <bruno@clisp.org>
38554
38555         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
38556         Suggested by Paul Eggert.
38557
38558 2006-11-08  Jim Meyering  <jim@meyering.net>
38559
38560         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
38561         It's already included if !_LIBC.
38562         (fts_safe_changedir): Add a comment.
38563
38564 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
38565
38566         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
38567         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
38568         Matthew Woehlke.
38569
38570         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
38571         definitions up, to avoid colliding with change below.
38572         (static_inline) [HAVE_INLINE]: New macro.
38573         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
38574         Provide extern decls when !HAVE_INLINE.  Do not define unless
38575         static_inline is defined, either by us or by xmalloc.c.  Use
38576         static_inline rather than static inline.
38577         (XCALLOC): Optimize sizeof(T) = 1 case.
38578         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
38579
38580 2006-11-07  Bruno Haible  <bruno@clisp.org>
38581
38582         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
38583         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
38584         AC_C_INLINE.
38585         * modules/xalloc (Files): Add m4/inline.m4.
38586
38587 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38588
38589         * README: Fix typo.
38590         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
38591         (Miscellanous Notes): ...from this.
38592
38593 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
38594
38595         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
38596         Mention that offsetof should be used instead of sizeof.
38597         From Bruno Haible.
38598
38599 2006-11-07  Bruno Haible  <bruno@clisp.org>
38600
38601         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
38602
38603 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
38604
38605         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
38606         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
38607         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
38608         (gl_tree_add_before, gl_tree_add_after):
38609         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
38610         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
38611         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
38612         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
38613         (gl_linked_add_after, gl_linked_add_at): Likewise.
38614         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
38615         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
38616         (gl_tree_add_before, gl_tree_add_after): Likewise.
38617         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
38618         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
38619         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38620
38621 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38622
38623         * lib/gl_oset.h: Use C comment style, not C++ comment style.
38624
38625 2006-11-06  Bruno Haible  <bruno@clisp.org>
38626
38627         * m4/inline.m4: New file.
38628         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
38629         * modules/list (Files): Add m4/inline.m4.
38630         * modules/oset (Files): Likewise.
38631
38632 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
38633
38634         * lib/idcache.c: Include <stddef.h>, for offsetof.
38635         (struct userid.name): Change from char * to a flexible array member.
38636         All uses changed.
38637         * modules/idcache (Depends-on): Add flexmember.
38638
38639         * MODULES.html.sh (Core language properties): New module flexmember.
38640         * modules/flexmember, m4/flexmember.m4: New files.
38641
38642         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
38643         inline functions that are identical with the old xnmalloc_inline,
38644         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
38645         that we can avoid some unnecessary integer multiplications and
38646         divisions in the common case where the element size is known at
38647         compile time.
38648         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
38649         needed.
38650         (xnboundedmalloc): Remove.
38651         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
38652         arguments, for consistency with rest of this header.
38653         (xcharalloc): Rewrite using XNMALLOC.
38654         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
38655         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
38656         versions have been moved to lib/xalloc.h and renamed to be the
38657         non-*_inline versions.
38658         (xmalloc, xrealloc): Implement without reference to the xnmalloc
38659         and xnrealloc functions, since those functions are now inline and
38660         now call us.
38661         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
38662         renaming described above.
38663         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
38664         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
38665         captures the dependency in AC_C_INLINE.
38666
38667         New module canonicalize-lgpl, proposed by Charles Wilson in
38668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
38669         with a few small changes afterwards.
38670         * MODULES.html.sh (File system functions): New module
38671         canonicalize-lgpl.
38672         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
38673         and canonicalize_file_name.
38674         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
38675         * modules/canonicalize-lgpl: New files.
38676
38677 2006-11-05  Bruno Haible  <bruno@clisp.org>
38678
38679         * gnulib-tool (func_import, func_create_testdir): Create directories
38680         also for files in subdirectories of lib/.
38681
38682 2006-11-05  Bruno Haible  <bruno@clisp.org>
38683
38684         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
38685         ANSI C compliant.
38686
38687 2006-11-03  Bruno Haible  <bruno@clisp.org>
38688
38689         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
38690         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
38691         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
38692         (xnboundedmalloc): New inline function.
38693         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
38694         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
38695         xmalloc.
38696         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
38697         xmalloc.
38698         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
38699         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
38700         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
38701         xmalloc.
38702         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
38703         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
38704         xmalloc.
38705         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
38706         gl_tree_add_after): Use XMALLOC instead of xmalloc.
38707         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
38708         xmalloc.
38709         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
38710         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
38711         gl_tree_add_after): Use XMALLOC instead of xmalloc.
38712         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
38713         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
38714         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
38715         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
38716
38717 2006-11-03  Bruno Haible  <bruno@clisp.org>
38718
38719         * lib/c-ctype.h [C++]: Define functions without name mangling.
38720         * lib/fwriteerror.h [C++]: Likewise.
38721         * lib/gcd.h [C++]: Likewise.
38722         * lib/linebreak.h [C++]: Likewise.
38723
38724 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
38725
38726         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
38727         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
38728         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
38729         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
38730         Check for functions and headers just once.
38731         Check for declaration of canonicalize_file_name.
38732         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
38733
38734 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
38735
38736         * gnulib-tool (func_import): Fix typo in actioncmd.
38737
38738 2006-11-02  Bruno Haible  <bruno@clisp.org>
38739
38740         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
38741         newline sequence in the Makefile.am snippet as a space, like "make"
38742         does.
38743         Reported by Roger Persson <perrog@gmail.com>.
38744
38745 2006-11-01  Bruno Haible  <bruno@clisp.org>
38746
38747         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
38748         already declared in <string.h>.
38749         * lib/strcase.h (strncasecmp): Don't declare it if yes.
38750
38751 2006-11-01  Bruno Haible  <bruno@clisp.org>
38752
38753         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
38754         * lib/strcase.h: Include <string.h>.
38755         (strcasecmp): Define to rpl_strcasecmp here.
38756
38757 2006-11-01  Bruno Haible  <bruno@clisp.org>
38758
38759         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
38760
38761 2006-11-01  Eric Blake  <ebb9@byu.net>
38762
38763         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
38764
38765         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
38766
38767 2006-10-29  Bruno Haible  <bruno@clisp.org>
38768
38769         Make it compile in C++ mode.
38770         * lib/full-write.c (full_rw): Add a cast.
38771
38772 2006-11-01  Bruno Haible  <bruno@clisp.org>
38773
38774         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
38775         be POSIX compliant.
38776         Reported by Roger Persson <perrog@gmail.com>.
38777
38778 2006-11-01  Eric Blake  <ebb9@byu.net>
38779
38780         * lib/getopt_.h: Fix comments.
38781
38782 2006-10-31  Eric Blake  <ebb9@byu.net>
38783
38784         * modules/tmpdir (Depends-on): Add sys_stat.
38785         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
38786         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
38787         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
38788         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
38789         tempname.
38790
38791 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
38792
38793         Avoid some C++ diagnostics reported by Bruno Haible.
38794         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
38795         xmalloc.
38796         (quotearg_alloc): Use xcharalloc rather than xmalloc.
38797         (struct slotvec): Move to top level.
38798         (quotearg_n_options): Rewrite to avoid xmalloc.
38799         * lib/xalloc.h (xcharalloc): New function.
38800         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
38801         [defined __cplusplus]: Add function template that provides result
38802         type propagation.  This part of the change is from Bruno Haible.
38803
38804 2006-10-29  Bruno Haible  <bruno@clisp.org>
38805
38806         Make it compile in C++ mode.
38807         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
38808         * lib/strnlen1.c (strnlen1): Cast memchr result.
38809         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
38810         * lib/clean-temp.c (string_equals, string_hash): Add casts.
38811         (create_temp_dir): Rename local variable 'template'.
38812         (compile_csharp_using_sscli): Add cast.
38813         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
38814         * lib/findprog.c (find_in_path): Likewise.
38815         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
38816         * lib/wait-process.c (register_slave_subprocess): Likewise.
38817
38818 2006-10-22  Bruno Haible  <bruno@clisp.org>
38819
38820         * modules/tsearch: New file.
38821         * lib/tsearch.h: New file.
38822         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
38823         * m4/tsearch.m4: New file.
38824         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
38825
38826 2006-10-29  Eric Blake  <ebb9@byu.net>
38827
38828         * lib/arcfour.c: Assume config.h.
38829         * lib/arctwo.c: Likewise.
38830         * lib/base64.c: Likewise.
38831         * lib/check-version.c: Likewise.
38832         * lib/crc.c: Likewise.
38833         * lib/des.c: Likewise.
38834         * lib/gc-gnulib.c: Likewise.
38835         * lib/gc-libgcrypt.c: Likewise.
38836         * lib/gc-pbkdf2-sha1.c: Likewise.
38837         * lib/getaddrinfo.c: Likewise.
38838         * lib/getdelim.c: Likewise.
38839         * lib/getline.c: Likewise.
38840         * lib/hmac-md5.c: Likewise.
38841         * lib/hmac-sha1.c: Likewise.
38842         * lib/iconvme.c: Likewise.
38843         * lib/md2.c: Likewise.
38844         * lib/md4.c: Likewise.
38845         * lib/memxor.c: Likewise.
38846         * lib/read-file.c: Likewise.
38847         * lib/readline.c: Likewise.
38848         * lib/rijndael-alg-fst.c: Likewise.
38849         * lib/rijndael-api-fst.c: Likewise.
38850         * lib/xgetdomainname.c: Likewise.
38851
38852 2006-10-28  Eric Blake  <ebb9@byu.net>
38853
38854         * lib/xstrndup.c: Assume config.h.
38855
38856 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
38857
38858         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
38859         stat-macros.h is now for our own macros, whereas stat_h is for
38860         macros in the <sys/stat.h> name space.
38861         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
38862         (STAT_MACROS_H): Remove.
38863         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
38864         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
38865         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
38866         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
38867         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
38868         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
38869         Move these macros to ...
38870         * lib/stat_.h: here.  Don't include stat-macros.h.
38871         * lib/canonicalize.c: Don't include stat-macros.h.
38872         * lib/chown.c: Likewise.
38873         * lib/euidaccess.c: Likewise.
38874         * lib/file-type.c: Likewise.
38875         * lib/filemode.c: Likewise.
38876         * lib/glob.c: Likewise.
38877         * lib/isapipe.c: Likewise.
38878         * lib/lchown.c: Likewise.
38879         * lib/lstat.c: Likewise.
38880         * lib/mkdir-p.c: Likewise.
38881         * lib/rmdir.c: Likewise.
38882         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
38883         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
38884         unless mkdir isn't declared, to speed up 'configure'.
38885         Always create sys/stat.h, since it's unlikely any real sys/stat.h
38886         would define all the S_* symbols.
38887         * modules/canonicalize (Depends-on):
38888         Depend on sys_stat, not stat-macros.
38889         * modules/chown: Likewise.
38890         * modules/euidaccess: Likewise.
38891         * modules/filemode: Likewise.
38892         * modules/file-type: Likewise.
38893         * modules/glob: Likewise.
38894         * modules/isapipe: Likewise.
38895         * modules/lchown: Likewise.
38896         * modules/lstat: Likewise.
38897         * modules/mkancesdirs: Likewise.
38898         * modules/rmdir: Likewise.
38899         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
38900         * modules/modechange: Likewise.
38901         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
38902         (configure.ac): Remove gl_STAT_MACROS.
38903         * modules/sys_stat (Depends-on): Remove stat-macros.
38904
38905 2006-10-27  Bruno Haible  <bruno@clisp.org>
38906
38907         * m4/signed.m4: Remove file.
38908         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
38909         invocation.
38910         * modules/vasnprintf (Files): Remove m4/signed.m4.
38911
38912 2006-10-27  Bruno Haible  <bruno@clisp.org>
38913
38914         Update to GNU gettext 0.16.
38915         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
38916         m4/inttypes-h.m4, m4/signed.m4.
38917         * m4/gettext.m4: Update to GNU gettext 0.16.
38918         * m4/intl.m4: New file, from GNU gettext.
38919         * m4/intldir.m4: New file, from GNU gettext.
38920         * config/srclist.txt: Update
38921
38922 2006-10-27  Eric Blake  <ebb9@byu.net>
38923
38924         * MODULES.html.sh: Document tempname.
38925         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
38926         dependencies.
38927         (Files): Move lib/tempname.c...
38928         * modules/tempname: ...to this new module.
38929         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
38930         (gl_PREREQ_TEMPNAME): Move...
38931         * m4/tempname.m4: ...to this new file.
38932         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
38933         * modules/sys_stat (Depends-on): Add stat-macros.
38934         * lib/stat_.h (includes): Pick up stat macros.
38935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
38936         if stat macros are broken.
38937         * lib/tempname.c (includes): No need to include "stat-macros.h".
38938         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
38939         (direxists, __path_search) [!_LIBC]: Don't compile these in
38940         gnulib; the tmpdir module covers that.
38941         * lib/tempname.h: New file.
38942
38943 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
38944
38945         * COPYING: Explain how gnulib-tool converts licence headers.
38946         Almost all wording by Eric Blake.
38947
38948 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
38949
38950         * lib/mbchar.h (is_basic_table): Make read-only.
38951         * lib/mbchar.c (is_basic_table): Likewise.
38952         Reported by John Darrington.
38953
38954 2006-10-25  Bruno Haible  <bruno@clisp.org>
38955
38956         * lib/progname.h (set_program_name): Undefine before defining.
38957
38958 2006-10-25  Bruno Haible  <bruno@clisp.org>
38959
38960         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
38961         false for non-gcc C++ compilers.
38962         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38963
38964 2006-10-24  Bruno Haible  <bruno@clisp.org>
38965
38966         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
38967         iconv implementations like Irix iconv.
38968
38969 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38970
38971         * modules/vararrays: New file.
38972         * m4/vararrays.m4: New file, taken from diffutils.
38973         * MODULES.html.sh: New module vararrays.
38974
38975 2006-10-24  Karl Berry  <karl@gnu.org>
38976
38977         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
38978         Don't call GNU Unix.
38979
38980 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38981
38982         * users.txt: Add Libtool.
38983
38984         Sync from Libtool:
38985
38986         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38987
38988         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
38989         to gnulib's policy of including config.h unconditionally.
38990
38991 2006-10-24  Bruno Haible  <bruno@clisp.org>
38992
38993         * modules/wcwidth (Files): Add m4/wint_t.m4.
38994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
38995         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
38996
38997 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38998
38999         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
39000         to pacify GCC with some -W flags enabled.  Problem reported by
39001         Bruno Haible.
39002
39003 2006-10-24  Jim Meyering  <jim@meyering.net>
39004
39005         * MODULES.html.sh: Remove uinttostr.  It's not a module.
39006         Reported by Karl Berry.
39007
39008 2006-10-23  Bruno Haible  <bruno@clisp.org>
39009
39010         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
39011
39012 2006-10-24  Bruno Haible  <bruno@clisp.org>
39013
39014         * lib/gl_list.h: Use C comment style, not C++ comment style.
39015
39016 2006-10-23  Eric Blake  <ebb9@byu.net>
39017
39018         * lib/getaddrinfo.c (includes): Add missing include.
39019
39020 2006-10-23  Bruno Haible  <bruno@clisp.org>
39021             Paul Eggert  <eggert@cs.ucla.edu>
39022
39023         Ability to rename obstack_free.
39024         * lib/obstack.h (__obstack_free): New macro. Declare instead of
39025         obstack_free.
39026         (obstack_free): Invoke the __obstack_free macro.
39027         * lib/obstack.c (obstack_free): Use __obstack_free macro.
39028
39029 2006-10-23  Bruno Haible  <bruno@clisp.org>
39030             Paul Eggert  <eggert@cs.ucla.edu>
39031
39032         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
39033         __argc, __argv from the declaration. (They are defined as macros on
39034         mingw.)
39035
39036 2006-10-22  Bruno Haible  <bruno@clisp.org>
39037
39038         * doc/gnulib-intro.texi: New file.
39039         * doc/gnulib.texi: Include it.
39040
39041 2006-10-21  Bruno Haible  <bruno@clisp.org>
39042
39043         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
39044         "Introduction", "Miscellanous Notes", "Particular Modules".
39045
39046 2006-10-21  Bruno Haible  <bruno@clisp.org>
39047
39048         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39049         Change mostlyclean-local rule to avoid sh syntax error from bash
39050         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
39051
39052 2006-10-23  Jim Meyering  <jim@meyering.net>
39053
39054         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
39055         in place of snprintf.
39056
39057         * modules/inttostr (Files): Add lib/uinttostr.c.
39058         * lib/uinttostr.c (inttostr): New file/function.
39059         * lib/inttostr.h (uinttostr): Declare.
39060         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
39061         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
39062         Add uinttostr.
39063         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
39064
39065 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39066
39067         * lib/canonicalize.c (ELOOP): Define if not already defined.
39068         Problem reported by Bruno Haible in
39069         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
39070
39071 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39072
39073         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
39074         Problem reported by Perry Smith and Ville Laurikari.
39075
39076         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
39077         uses.
39078
39079 2006-10-19  Bruno Haible  <bruno@clisp.org>
39080
39081         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
39082         for mingw.
39083
39084 2006-10-19  Bruno Haible  <bruno@clisp.org>
39085
39086         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
39087         Needed for mingw.
39088
39089 2006-10-19  Bruno Haible  <bruno@clisp.org>
39090
39091         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
39092
39093 2006-10-19  Bruno Haible  <bruno@clisp.org>
39094
39095         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
39096         it.
39097
39098 2006-10-19  Bruno Haible  <bruno@clisp.org>
39099
39100         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
39101         invocation.
39102
39103 2006-10-19  Bruno Haible  <bruno@clisp.org>
39104
39105         * gnulib-tool (func_create_testdir): Don't include ftruncate and
39106         mountlist by default.
39107
39108 2006-10-16  Bruno Haible  <bruno@clisp.org>
39109
39110         * lib/c-strstr.c: Include c-strstr.h.
39111
39112 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39113
39114         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
39115         in a slash.
39116
39117 2006-10-18  Bruno Haible  <bruno@clisp.org>
39118
39119         * lib/lock.h [C++]: Wrap definitions in extern "C".
39120
39121 2006-10-18  Bruno Haible  <bruno@clisp.org>
39122
39123         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
39124         gl_LIBOBJS list.
39125
39126 2006-10-18  Bruno Haible  <bruno@clisp.org>
39127
39128         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
39129
39130 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
39131
39132         * lib/xstrtol.h: Include gettext.h.
39133         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
39134         Problem reported by Eric Blake.
39135         * modules/xstrtol (Depends-on): Add gettext-h.
39136
39137 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
39138
39139         * lib/strftime.c (advance): New macro.
39140         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
39141         incomplete type, so you can't add 0 to it.  Problem and patch
39142         reported by Eelco Dolstra for dietlibc.
39143
39144 2006-10-18  Jim Meyering  <jim@meyering.net>
39145
39146         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
39147         type for a local, and rename it: s/up/user_proc/.
39148
39149 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
39150
39151         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
39152         READ_UTMP_USER_PROCESS.
39153         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
39154
39155 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39156
39157         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
39158         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
39159
39160 2006-10-17  Eric Blake  <ebb9@byu.net>
39161
39162         * lib/sigprocmask.c (sigprocmask): Fix typo.
39163
39164         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
39165
39166         * modules/clean-temp (Makefile.am): Don't add to make output...
39167         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
39168         config.h.
39169
39170 2006-10-17  Bruno Haible  <bruno@clisp.org>
39171
39172         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
39173         differently if DEFAULT_TEXT_DOMAIN is set.
39174
39175 2006-10-16  Bruno Haible  <bruno@clisp.org>
39176
39177         * lib/clean-temp.c: Include fwriteerror.h.
39178
39179 2006-10-16  Bruno Haible  <bruno@clisp.org>
39180
39181         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
39182
39183 2006-10-16  Bruno Haible  <bruno@clisp.org>
39184
39185         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
39186         * lib/sigprocmask.h: Include <sys/types.h>.
39187         (sigset_t): Use the system's definition if present.
39188
39189 2006-10-17  Eric Blake  <ebb9@byu.net>
39190
39191         * lib/xvasprintf.c (includes): Assume config.h.
39192         * lib/xasprintf.c (includes): Likewise.
39193
39194 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39195
39196         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
39197         at least as wide as intmax_t.
39198
39199 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
39200
39201         (Imported from Automake.)
39202         * build-aux/gnupload: Update to version 1.1 of directive file.
39203
39204 2006-10-16  Eric Blake  <ebb9@byu.net>
39205
39206         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
39207         match Automake 1.10a.
39208
39209 2006-10-14  Bruno Haible  <bruno@clisp.org>
39210
39211         * modules/sigprocmask: New file.
39212         * lib/sigprocmask.h: New file.
39213         * lib/sigprocmask.c: New file.
39214         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
39215         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
39216         request sigprocmask.o.
39217         (gl_PREREQ_SIGPROCMASK): New macro.
39218         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
39219         (Depends-on): Add sigprocmask.
39220         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
39221         gt_SIGNALBLOCKING. Test for 'raise' only once.
39222         * lib/fatal-signal.c: Include sigprocmask.h.
39223         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
39224         unblock_fatal_signals): Define always.
39225         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39226         sigprocmask.
39227
39228 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
39229
39230         Sync from Automake.
39231         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
39232         which incorrectly sets the mode of an existing destination
39233         directory.  In some cases the unpatched install-sh could do the
39234         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
39235         system.  We hope this is rare in practice, but it's clearly worth
39236         fixing.  Problem reported by Alex Unleashed in
39237         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
39238         Also, don't bother to check for -m bugs unless we're using -m;
39239         suggested by Stepan Kasal.
39240
39241 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39242
39243         Sync from Automake.
39244         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
39245         `-c' flag, so they appear at the same position as in %FASTDEP%
39246         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
39247         which ignores unknown options only after the first non-option.
39248         Bug report against M4 by Nelson H. F. Beebe.
39249
39250 2006-10-13  Jim Meyering  <jim@meyering.net>
39251
39252         Fix a bug in yesterday's change.
39253         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
39254         p->fts_statp->st_dev would be used uninitialized.
39255         Ensures that we always call fts_stat on the very first entry.
39256         Miklos Szeredi reported that find -xdev stopped working.
39257
39258 2006-10-12  Bruno Haible  <bruno@clisp.org>
39259
39260         * gnulib-tool (func_get_automake_snippet): Append an automatically
39261         computed EXTRA_DIST augmentation.
39262         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
39263         * modules/alloca-opt (Makefile.am): Likewise.
39264         * modules/allocsa (Makefile.am): Likewise.
39265         * modules/arcfour (Makefile.am): Likewise.
39266         * modules/arctwo (Makefile.am): Likewise.
39267         * modules/argmatch (Makefile.am): Likewise.
39268         * modules/argz (Makefile.am): Likewise.
39269         * modules/atexit (Makefile.am): Likewise.
39270         * modules/backupfile (Makefile.am): Likewise.
39271         * modules/byteswap (Makefile.am): Likewise.
39272         * modules/c-strtod (Makefile.am): Likewise.
39273         * modules/c-strtold (Makefile.am): Likewise.
39274         * modules/calloc (Makefile.am): Likewise.
39275         * modules/canon-host (Makefile.am): Likewise.
39276         * modules/canonicalize (Makefile.am): Likewise.
39277         * modules/chdir-long (Makefile.am): Likewise.
39278         * modules/chdir-safer (Makefile.am): Likewise.
39279         * modules/check-version (Makefile.am): Likewise.
39280         * modules/chown (Makefile.am): Likewise.
39281         * modules/cloexec (Makefile.am): Likewise.
39282         * modules/close-stream (Makefile.am): Likewise.
39283         * modules/closeout (Makefile.am): Likewise.
39284         * modules/crc (Makefile.am): Likewise.
39285         * modules/csharpexec (Makefile.am): Likewise.
39286         * modules/cycle-check (Makefile.am): Likewise.
39287         * modules/des (Makefile.am): Likewise.
39288         * modules/dev-ino (Makefile.am): Likewise.
39289         * modules/dirfd (Makefile.am): Likewise.
39290         * modules/dirname (Makefile.am): Likewise.
39291         * modules/dup2 (Makefile.am): Likewise.
39292         * modules/eealloc (Makefile.am): Likewise.
39293         * modules/error (Makefile.am): Likewise.
39294         * modules/euidaccess (Makefile.am): Likewise.
39295         * modules/exclude (Makefile.am): Likewise.
39296         * modules/exitfail (Makefile.am): Likewise.
39297         * modules/fcntl-safer (Makefile.am): Likewise.
39298         * modules/fcntl (Makefile.am): Likewise.
39299         * modules/file-type (Makefile.am): Likewise.
39300         * modules/fileblocks (Makefile.am): Likewise.
39301         * modules/filemode (Makefile.am): Likewise.
39302         * modules/filenamecat (Makefile.am): Likewise.
39303         * modules/fnmatch (Makefile.am): Likewise.
39304         * modules/fopen-safer (Makefile.am): Likewise.
39305         * modules/fpending (Makefile.am): Likewise.
39306         * modules/fprintftime (Makefile.am): Likewise.
39307         * modules/free (Makefile.am): Likewise.
39308         * modules/fsusage (Makefile.am): Likewise.
39309         * modules/ftruncate (Makefile.am): Likewise.
39310         * modules/fts (Makefile.am): Likewise.
39311         * modules/gc-arcfour (Makefile.am): Likewise.
39312         * modules/gc-des (Makefile.am): Likewise.
39313         * modules/gc-hmac-md5 (Makefile.am): Likewise.
39314         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
39315         * modules/gc-md4 (Makefile.am): Likewise.
39316         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
39317         * modules/gc-sha1 (Makefile.am): Likewise.
39318         * modules/gc (Makefile.am): Likewise.
39319         * modules/getaddrinfo (Makefile.am): Likewise.
39320         * modules/getcwd (Makefile.am): Likewise.
39321         * modules/getdelim (Makefile.am): Likewise.
39322         * modules/getdomainname (Makefile.am): Likewise.
39323         * modules/getgroups (Makefile.am): Likewise.
39324         * modules/gethostname (Makefile.am): Likewise.
39325         * modules/gethrxtime (Makefile.am): Likewise.
39326         * modules/getline (Makefile.am): Likewise.
39327         * modules/getloadavg (Makefile.am): Likewise.
39328         * modules/getlogin_r (Makefile.am): Likewise.
39329         * modules/getndelim2 (Makefile.am): Likewise.
39330         * modules/getopt (Makefile.am): Likewise.
39331         * modules/getpagesize (Makefile.am): Likewise.
39332         * modules/getpass-gnu (Makefile.am): Likewise.
39333         * modules/getpass (Makefile.am): Likewise.
39334         * modules/getsubopt (Makefile.am): Likewise.
39335         * modules/gettime (Makefile.am): Likewise.
39336         * modules/gettimeofday (Makefile.am): Likewise.
39337         * modules/getugroups (Makefile.am): Likewise.
39338         * modules/getusershell (Makefile.am): Likewise.
39339         * modules/glob (Makefile.am): Likewise.
39340         * modules/group-member (Makefile.am): Likewise.
39341         * modules/hard-locale (Makefile.am): Likewise.
39342         * modules/hash (Makefile.am): Likewise.
39343         * modules/hmac-md5 (Makefile.am): Likewise.
39344         * modules/hmac-sha1 (Makefile.am): Likewise.
39345         * modules/human (Makefile.am): Likewise.
39346         * modules/idcache (Makefile.am): Likewise.
39347         * modules/imaxabs (Makefile.am): Likewise.
39348         * modules/imaxdiv (Makefile.am): Likewise.
39349         * modules/inet_ntop (Makefile.am): Likewise.
39350         * modules/inet_pton (Makefile.am): Likewise.
39351         * modules/intprops (Makefile.am): Likewise.
39352         * modules/inttostr (Makefile.am): Likewise.
39353         * modules/inttypes (Makefile.am): Likewise.
39354         * modules/isapipe (Makefile.am): Likewise.
39355         * modules/javaversion (Makefile.am): Likewise.
39356         * modules/lchmod (Makefile.am): Likewise.
39357         * modules/lchown (Makefile.am): Likewise.
39358         * modules/localcharset (Makefile.am): Likewise.
39359         * modules/long-options (Makefile.am): Likewise.
39360         * modules/lstat (Makefile.am): Likewise.
39361         * modules/malloc (Makefile.am): Likewise.
39362         * modules/mathl (Makefile.am): Likewise.
39363         * modules/mbchar (Makefile.am): Likewise.
39364         * modules/md2 (Makefile.am): Likewise.
39365         * modules/md4 (Makefile.am): Likewise.
39366         * modules/md5 (Makefile.am): Likewise.
39367         * modules/memcasecmp (Makefile.am): Likewise.
39368         * modules/memchr (Makefile.am): Likewise.
39369         * modules/memcmp (Makefile.am): Likewise.
39370         * modules/memcoll (Makefile.am): Likewise.
39371         * modules/memcpy (Makefile.am): Likewise.
39372         * modules/memmem (Makefile.am): Likewise.
39373         * modules/memmove (Makefile.am): Likewise.
39374         * modules/mempcpy (Makefile.am): Likewise.
39375         * modules/memrchr (Makefile.am): Likewise.
39376         * modules/memset (Makefile.am): Likewise.
39377         * modules/memxor (Makefile.am): Likewise.
39378         * modules/mkancesdirs (Makefile.am): Likewise.
39379         * modules/mkdir-p (Makefile.am): Likewise.
39380         * modules/mkdir (Makefile.am): Likewise.
39381         * modules/mkdtemp (Makefile.am): Likewise.
39382         * modules/mkstemp (Makefile.am): Likewise.
39383         * modules/mktime (Makefile.am): Likewise.
39384         * modules/modechange (Makefile.am): Likewise.
39385         * modules/mountlist (Makefile.am): Likewise.
39386         * modules/nanosleep (Makefile.am): Likewise.
39387         * modules/obstack (Makefile.am): Likewise.
39388         * modules/openat (Makefile.am): Likewise.
39389         * modules/pagealign_alloc (Makefile.am): Likewise.
39390         * modules/pathmax (Makefile.am): Likewise.
39391         * modules/physmem (Makefile.am): Likewise.
39392         * modules/poll (Makefile.am): Likewise.
39393         * modules/posixtm (Makefile.am): Likewise.
39394         * modules/posixver (Makefile.am): Likewise.
39395         * modules/putenv (Makefile.am): Likewise.
39396         * modules/quote (Makefile.am): Likewise.
39397         * modules/quotearg (Makefile.am): Likewise.
39398         * modules/raise (Makefile.am): Likewise.
39399         * modules/read-file (Makefile.am): Likewise.
39400         * modules/readline (Makefile.am): Likewise.
39401         * modules/readlink (Makefile.am): Likewise.
39402         * modules/readtokens (Makefile.am): Likewise.
39403         * modules/readutmp (Makefile.am): Likewise.
39404         * modules/realloc (Makefile.am): Likewise.
39405         * modules/regex (Makefile.am): Likewise.
39406         * modules/rename-dest-slash (Makefile.am): Likewise.
39407         * modules/rename (Makefile.am): Likewise.
39408         * modules/rijndael (Makefile.am): Likewise.
39409         * modules/rmdir (Makefile.am): Likewise.
39410         * modules/rpmatch (Makefile.am): Likewise.
39411         * modules/safe-read (Makefile.am): Likewise.
39412         * modules/safe-write (Makefile.am): Likewise.
39413         * modules/same-inode (Makefile.am): Likewise.
39414         * modules/same (Makefile.am): Likewise.
39415         * modules/save-cwd (Makefile.am): Likewise.
39416         * modules/savedir (Makefile.am): Likewise.
39417         * modules/setenv (Makefile.am): Likewise.
39418         * modules/settime (Makefile.am): Likewise.
39419         * modules/sha1 (Makefile.am): Likewise.
39420         * modules/sig2str (Makefile.am): Likewise.
39421         * modules/snprintf (Makefile.am): Likewise.
39422         * modules/stat-macros (Makefile.am): Likewise.
39423         * modules/stat-time (Makefile.am): Likewise.
39424         * modules/stdbool (Makefile.am): Likewise.
39425         * modules/stdint (Makefile.am): Likewise.
39426         * modules/stdlib-safer (Makefile.am): Likewise.
39427         * modules/stpcpy (Makefile.am): Likewise.
39428         * modules/stpncpy (Makefile.am): Likewise.
39429         * modules/strcase (Makefile.am): Likewise.
39430         * modules/strcasestr (Makefile.am): Likewise.
39431         * modules/strchrnul (Makefile.am): Likewise.
39432         * modules/strcspn (Makefile.am): Likewise.
39433         * modules/strdup (Makefile.am): Likewise.
39434         * modules/strerror (Makefile.am): Likewise.
39435         * modules/strftime (Makefile.am): Likewise.
39436         * modules/strndup (Makefile.am): Likewise.
39437         * modules/strnlen (Makefile.am): Likewise.
39438         * modules/strpbrk (Makefile.am): Likewise.
39439         * modules/strsep (Makefile.am): Likewise.
39440         * modules/strstr (Makefile.am): Likewise.
39441         * modules/strtod (Makefile.am): Likewise.
39442         * modules/strtoimax (Makefile.am): Likewise.
39443         * modules/strtok_r (Makefile.am): Likewise.
39444         * modules/strtol (Makefile.am): Likewise.
39445         * modules/strtoll (Makefile.am): Likewise.
39446         * modules/strtoul (Makefile.am): Likewise.
39447         * modules/strtoull (Makefile.am): Likewise.
39448         * modules/strtoumax (Makefile.am): Likewise.
39449         * modules/strverscmp (Makefile.am): Likewise.
39450         * modules/sys_socket (Makefile.am): Likewise.
39451         * modules/sys_stat (Makefile.am): Likewise.
39452         * modules/sysexits (Makefile.am): Likewise.
39453         * modules/time_r (Makefile.am): Likewise.
39454         * modules/timegm (Makefile.am): Likewise.
39455         * modules/timespec (Makefile.am): Likewise.
39456         * modules/tmpfile-safer (Makefile.am): Likewise.
39457         * modules/trim (Makefile.am): Likewise.
39458         * modules/unistd-safer (Makefile.am): Likewise.
39459         * modules/unlinkdir (Makefile.am): Likewise.
39460         * modules/unlocked-io (Makefile.am): Likewise.
39461         * modules/userspec (Makefile.am): Likewise.
39462         * modules/utime (Makefile.am): Likewise.
39463         * modules/utimecmp (Makefile.am): Likewise.
39464         * modules/utimens (Makefile.am): Likewise.
39465         * modules/vasnprintf (Makefile.am): Likewise.
39466         * modules/vasprintf (Makefile.am): Likewise.
39467         * modules/vsnprintf (Makefile.am): Likewise.
39468         * modules/xalloc (Makefile.am): Likewise.
39469         * modules/xgetcwd (Makefile.am): Likewise.
39470         * modules/xnanosleep (Makefile.am): Likewise.
39471         * modules/xreadlink (Makefile.am): Likewise.
39472         * modules/xstrtod (Makefile.am): Likewise.
39473         * modules/xstrtol (Makefile.am): Likewise.
39474         * modules/xstrtold (Makefile.am): Likewise.
39475         * modules/yesno (Makefile.am): Likewise.
39476         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
39477
39478 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39479
39480         * modules/error (Makefile.am): Distribute files through
39481         EXTRA_DIST, not lib_SOURCES.
39482
39483 2006-10-12  Eric Blake  <ebb9@byu.net>
39484
39485         * modules/error (Makefile.am): Distribute files in /lib.
39486         * modules/obstack (Makefile.am): Likewise.
39487
39488 2006-10-12  Bruno Haible  <bruno@clisp.org>
39489
39490         * modules/acl (Makefile.am): Distribute all files in lib/ through
39491         EXTRA_DIST.
39492         * modules/arcfour (Makefile.am): Likewise.
39493         * modules/arctwo (Makefile.am): Likewise.
39494         * modules/argmatch (Makefile.am): Likewise.
39495         * modules/argz (Makefile.am): Likewise.
39496         * modules/atexit (Makefile.am): Likewise.
39497         * modules/backupfile (Makefile.am): Likewise.
39498         * modules/c-strtod (Makefile.am): Likewise.
39499         * modules/c-strtold (Makefile.am): Likewise.
39500         * modules/calloc (Makefile.am): Likewise.
39501         * modules/canon-host (Makefile.am): Likewise.
39502         * modules/canonicalize (Makefile.am): Likewise.
39503         * modules/chdir-long (Makefile.am): Likewise.
39504         * modules/chdir-safer (Makefile.am): Likewise.
39505         * modules/check-version (Makefile.am): Likewise.
39506         * modules/chown (Makefile.am): Likewise.
39507         * modules/cloexec (Makefile.am): Likewise.
39508         * modules/close-stream (Makefile.am): Likewise.
39509         * modules/closeout (Makefile.am): Likewise.
39510         * modules/crc (Makefile.am): Likewise.
39511         * modules/cycle-check (Makefile.am): Likewise.
39512         * modules/des (Makefile.am): Likewise.
39513         * modules/dirfd (Makefile.am): Likewise.
39514         * modules/dirname (Makefile.am): Likewise.
39515         * modules/dup2 (Makefile.am): Likewise.
39516         * modules/euidaccess (Makefile.am): Likewise.
39517         * modules/exclude (Makefile.am): Likewise.
39518         * modules/exitfail (Makefile.am): Likewise.
39519         * modules/fcntl-safer (Makefile.am): Likewise.
39520         * modules/file-type (Makefile.am): Likewise.
39521         * modules/fileblocks (Makefile.am): Likewise.
39522         * modules/filemode (Makefile.am): Likewise.
39523         * modules/filenamecat (Makefile.am): Likewise.
39524         * modules/fnmatch (Makefile.am): Likewise.
39525         * modules/fopen-safer (Makefile.am): Likewise.
39526         * modules/fpending (Makefile.am): Likewise.
39527         * modules/fprintftime (Makefile.am): Likewise.
39528         * modules/free (Makefile.am): Likewise.
39529         * modules/fsusage (Makefile.am): Likewise.
39530         * modules/ftruncate (Makefile.am): Likewise.
39531         * modules/fts (Makefile.am): Likewise.
39532         * modules/gc (Makefile.am): Likewise.
39533         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
39534         * modules/getaddrinfo (Makefile.am): Likewise.
39535         * modules/getcwd (Makefile.am): Likewise.
39536         * modules/getdelim (Makefile.am): Likewise.
39537         * modules/getdomainname (Makefile.am): Likewise.
39538         * modules/getgroups (Makefile.am): Likewise.
39539         * modules/gethostname (Makefile.am): Likewise.
39540         * modules/gethrxtime (Makefile.am): Likewise.
39541         * modules/getline (Makefile.am): Likewise.
39542         * modules/getloadavg (Makefile.am): Likewise.
39543         * modules/getlogin_r (Makefile.am): Likewise.
39544         * modules/getopt (Makefile.am): Likewise.
39545         * modules/getpass (Makefile.am): Likewise.
39546         * modules/getpass-gnu (Makefile.am): Likewise.
39547         * modules/getsubopt (Makefile.am): Likewise.
39548         * modules/gettime (Makefile.am): Likewise.
39549         * modules/gettimeofday (Makefile.am): Likewise.
39550         * modules/getugroups (Makefile.am): Likewise.
39551         * modules/getusershell (Makefile.am): Likewise.
39552         * modules/glob (Makefile.am): Likewise.
39553         * modules/group-member (Makefile.am): Likewise.
39554         * modules/hard-locale (Makefile.am): Likewise.
39555         * modules/hash (Makefile.am): Likewise.
39556         * modules/hmac-md5 (Makefile.am): Likewise.
39557         * modules/hmac-sha1 (Makefile.am): Likewise.
39558         * modules/human (Makefile.am): Likewise.
39559         * modules/idcache (Makefile.am): Likewise.
39560         * modules/imaxabs (Makefile.am): Likewise.
39561         * modules/imaxdiv (Makefile.am): Likewise.
39562         * modules/inet_ntop (Makefile.am): Likewise.
39563         * modules/inet_pton (Makefile.am): Likewise.
39564         * modules/inttostr (Makefile.am): Likewise.
39565         * modules/isapipe (Makefile.am): Likewise.
39566         * modules/lchown (Makefile.am): Likewise.
39567         * modules/long-options (Makefile.am): Likewise.
39568         * modules/lstat (Makefile.am): Likewise.
39569         * modules/malloc (Makefile.am): Likewise.
39570         * modules/mathl (Makefile.am): Likewise.
39571         * modules/mbchar (Makefile.am): Likewise.
39572         * modules/md2 (Makefile.am): Likewise.
39573         * modules/md4 (Makefile.am): Likewise.
39574         * modules/md5 (Makefile.am): Likewise.
39575         * modules/memcasecmp (Makefile.am): Likewise.
39576         * modules/memchr (Makefile.am): Likewise.
39577         * modules/memcmp (Makefile.am): Likewise.
39578         * modules/memcoll (Makefile.am): Likewise.
39579         * modules/memcpy (Makefile.am): Likewise.
39580         * modules/memmem (Makefile.am): Likewise.
39581         * modules/memmove (Makefile.am): Likewise.
39582         * modules/mempcpy (Makefile.am): Likewise.
39583         * modules/memrchr (Makefile.am): Likewise.
39584         * modules/memset (Makefile.am): Likewise.
39585         * modules/memxor (Makefile.am): Likewise.
39586         * modules/mkancesdirs (Makefile.am): Likewise.
39587         * modules/mkdir (Makefile.am): Likewise.
39588         * modules/mkdir-p (Makefile.am): Likewise.
39589         * modules/mkdtemp (Makefile.am): Likewise.
39590         * modules/mkstemp (Makefile.am): Likewise.
39591         * modules/mktime (Makefile.am): Likewise.
39592         * modules/modechange (Makefile.am): Likewise.
39593         * modules/mountlist (Makefile.am): Likewise.
39594         * modules/nanosleep (Makefile.am): Likewise.
39595         * modules/openat (Makefile.am): Likewise.
39596         * modules/pagealign_alloc (Makefile.am): Likewise.
39597         * modules/physmem (Makefile.am): Likewise.
39598         * modules/poll (Makefile.am): Likewise.
39599         * modules/posixtm (Makefile.am): Likewise.
39600         * modules/posixver (Makefile.am): Likewise.
39601         * modules/putenv (Makefile.am): Likewise.
39602         * modules/quote (Makefile.am): Likewise.
39603         * modules/quotearg (Makefile.am): Likewise.
39604         * modules/raise (Makefile.am): Likewise.
39605         * modules/read-file (Makefile.am): Likewise.
39606         * modules/readline (Makefile.am): Likewise.
39607         * modules/readlink (Makefile.am): Likewise.
39608         * modules/readtokens (Makefile.am): Likewise.
39609         * modules/readutmp (Makefile.am): Likewise.
39610         * modules/realloc (Makefile.am): Likewise.
39611         * modules/regex (Makefile.am): Likewise.
39612         * modules/rename (Makefile.am): Likewise.
39613         * modules/rename-dest-slash (Makefile.am): Likewise.
39614         * modules/rijndael (Makefile.am): Likewise.
39615         * modules/rmdir (Makefile.am): Likewise.
39616         * modules/rpmatch (Makefile.am): Likewise.
39617         * modules/safe-read (Makefile.am): Likewise.
39618         * modules/safe-write (Makefile.am): Likewise.
39619         * modules/same (Makefile.am): Likewise.
39620         * modules/save-cwd (Makefile.am): Likewise.
39621         * modules/savedir (Makefile.am): Likewise.
39622         * modules/setenv (Makefile.am): Likewise.
39623         * modules/settime (Makefile.am): Likewise.
39624         * modules/sha1 (Makefile.am): Likewise.
39625         * modules/sig2str (Makefile.am): Likewise.
39626         * modules/snprintf (Makefile.am): Likewise.
39627         * modules/stdlib-safer (Makefile.am): Likewise.
39628         * modules/stpcpy (Makefile.am): Likewise.
39629         * modules/stpncpy (Makefile.am): Likewise.
39630         * modules/strcase (Makefile.am): Likewise.
39631         * modules/strcasestr (Makefile.am): Likewise.
39632         * modules/strchrnul (Makefile.am): Likewise.
39633         * modules/strcspn (Makefile.am): Likewise.
39634         * modules/strdup (Makefile.am): Likewise.
39635         * modules/strerror (Makefile.am): Likewise.
39636         * modules/strftime (Makefile.am): Likewise.
39637         * modules/strndup (Makefile.am): Likewise.
39638         * modules/strnlen (Makefile.am): Likewise.
39639         * modules/strpbrk (Makefile.am): Likewise.
39640         * modules/strsep (Makefile.am): Likewise.
39641         * modules/strstr (Makefile.am): Likewise.
39642         * modules/strtod (Makefile.am): Likewise.
39643         * modules/strtoimax (Makefile.am): Likewise.
39644         * modules/strtok_r (Makefile.am): Likewise.
39645         * modules/strtol (Makefile.am): Likewise.
39646         * modules/strtoll (Makefile.am): Likewise.
39647         * modules/strtoul (Makefile.am): Likewise.
39648         * modules/strtoull (Makefile.am): Likewise.
39649         * modules/strtoumax (Makefile.am): Likewise.
39650         * modules/strverscmp (Makefile.am): Likewise.
39651         * modules/time_r (Makefile.am): Likewise.
39652         * modules/timegm (Makefile.am): Likewise.
39653         * modules/tmpfile-safer (Makefile.am): Likewise.
39654         * modules/unistd-safer (Makefile.am): Likewise.
39655         * modules/unlinkdir (Makefile.am): Likewise.
39656         * modules/userspec (Makefile.am): Likewise.
39657         * modules/utime (Makefile.am): Likewise.
39658         * modules/utimecmp (Makefile.am): Likewise.
39659         * modules/utimens (Makefile.am): Likewise.
39660         * modules/vasnprintf (Makefile.am): Likewise.
39661         * modules/vasprintf (Makefile.am): Likewise.
39662         * modules/vsnprintf (Makefile.am): Likewise.
39663         * modules/xalloc (Makefile.am): Likewise.
39664         * modules/xgetcwd (Makefile.am): Likewise.
39665         * modules/xnanosleep (Makefile.am): Likewise.
39666         * modules/xreadlink (Makefile.am): Likewise.
39667         * modules/xstrtod (Makefile.am): Likewise.
39668         * modules/xstrtol (Makefile.am): Likewise.
39669         * modules/xstrtold (Makefile.am): Likewise.
39670         * modules/yesno (Makefile.am): Likewise.
39671
39672 2006-10-12  Jim Meyering  <jim@meyering.net>
39673
39674         * m4/getloadavg.m4: Revert the change below.
39675
39676         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
39677         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
39678         fail with a symlink, which is what coreutils' ./bootstrap now
39679         creates by default.
39680
39681 2006-10-12  Bruno Haible  <bruno@clisp.org>
39682
39683         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
39684         mingw.
39685         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
39686         MSVC and mingw explicitly.
39687
39688 2006-10-11  Simon Josefsson  <jas@extundo.com>
39689             Bruno Haible  <bruno@clisp.org>
39690
39691         Add support for multiple gnulib-tool invocations in the scope of a
39692         single configure.ac file.
39693         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
39694         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
39695         with the same contents as the _LIBADD variable.
39696         (func_emit_initmacro_start, func_emit_initmacro_end,
39697         func_emit_initmacro_done): New functions.
39698         (func_import, func_create_testdir): Invoke them. Allow the identifiers
39699         gl_LIBOBJS and gl_LTLIBOBJS.
39700
39701 2006-10-11  Bruno Haible  <bruno@clisp.org>
39702
39703         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
39704         (func_create_testdir): Don't create po/Makefile.am, don't invoke
39705         autoreconf. Instead, invoke autopoint explicitly but move back the
39706         *.m4 files from gnulib.
39707
39708 2006-10-11  Bruno Haible  <bruno@clisp.org>
39709
39710         * gnulib-tool (func_usage): Make module names after --create-testdir
39711         optional.
39712         (func_create_testdir): If no module was specified, use nearly all
39713         modules.
39714
39715 2006-10-12  Jim Meyering  <jim@meyering.net>
39716
39717         Big performance improvement for fts-based tools that use FTS_NOSTAT.
39718         Avoid spurious inode-mismatch problems on non-POSIX file systems.
39719         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
39720         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
39721         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
39722         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
39723         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
39724         (fts_set_stat_required): New function.
39725         (fts_open): Defer the calls to fts_stat, if possible or requested.
39726         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
39727         into fts_stat itself.
39728         (fts_read): Perform any required (deferred) fts_stat call.
39729         (fts_build): Likewise, for the directory we're about to open and read.
39730         In the readdir loop, carefully decide whether each entry will require
39731         an eventual call to fts_stat, using dirent.d_type info if available.
39732         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
39733         a command line argument into this function.  Update all callers.
39734         Map a return value of FTS_DOT to FTS_D for a command line argument.
39735         * modules/fts (Depends-on): Add d-type.  Alphabetize.
39736         Thanks to Miklos Szeredi for his tenacity and for the initial
39737         bug report about "find" failing on a FUSE-based file system.
39738
39739         * lib/fts.c (fts_open): Use consistent indentation.
39740
39741 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39742
39743         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
39744         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
39745         reported by Jim Meyering.  All uses of cache variables renamed
39746         to match Autoconf's.
39747         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
39748         the other one.
39749
39750         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
39751         Fix misspelling in diagnostic.
39752
39753 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39754
39755         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
39756         defined.  Problem reported by Matthew Woehlke.
39757
39758         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
39759         Add support for Tandem NonStop R series.
39760         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
39761         Use new macro.
39762
39763         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
39764         (has_trailing_slash): Omit size arg; all callers changed.
39765         Omit 'inline', since it doesn't help performance and we'd
39766         need to configure it.
39767         Don't count //, ///, etc. as having a trailing slash.
39768         As a side effect, this removes a C99ism reported by Matthew Woehlke.
39769         (rpl_rename_dest_slash): On failure, use rename's errno rather
39770         than (in some cases) an incorrect or junk errno.
39771         Simplify code by removing need to compute length; this does
39772         cause it to make two passes instead of one over the file name,
39773         but it's worth it.
39774
39775         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
39776         change, since Autoconf's version may no longer be appropriate now
39777         that we are using CVS Autoconf's version.  Add support for Tandem.
39778
39779 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39780             Bruno Haible  <bruno@clisp.org>
39781
39782         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
39783         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
39784         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
39785         gl_AC_TYPE_LONG_LONG.
39786
39787         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
39788         instead of HAVE_LONG_LONG.
39789         * lib/printf-args.c (printf_fetchargs): Likewise.
39790         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
39791         * lib/vasnprintf.c (VASNPRINTF): Likewise.
39792         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
39793         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
39794         gl_AC_TYPE_LONG_LONG.
39795
39796 2006-10-11  Bruno Haible  <bruno@clisp.org>
39797
39798         * m4/longlong.m4: Add comments.
39799         * m4/ulonglong.m4: Likewise.
39800
39801 2006-10-10  Bruno Haible  <bruno@clisp.org>
39802
39803         Make it possible to #define stpcpy, strdup to aliases.
39804         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
39805         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
39806
39807 2006-10-10  Bruno Haible  <bruno@clisp.org>
39808
39809         Make it possible to #define gcd to an alias.
39810         * lib/gcd.c: Include config.h.
39811
39812 2006-10-10  Bruno Haible  <bruno@clisp.org>
39813
39814         Make it possible to #define c_isascii to an alias.
39815         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
39816         defined. Undefine the macros before defining them, to avoid gcc
39817         warnings.
39818         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
39819         define NO_C_CTYPE_MACROS early.
39820
39821 2006-10-10  Bruno Haible  <bruno@clisp.org>
39822
39823         Make it possible to #define set_program_name to an alias.
39824         * lib/progname.c: Don't undefine set_program_name; instead, undefine
39825         ENABLE_RELOCATABLE early.
39826
39827 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
39828
39829         Port to Tandem NSK OSS, which has 64-bit signed int but at most
39830         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
39831         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
39832         More generally, don't assume that 64-bit signed int is available
39833         if unsigned int is, and vice versa.
39834         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
39835         unsigned symbols, not on their signed counterparts.
39836         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
39837         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
39838         (UINT64_C, UINTMAX_C):
39839         Likewise.
39840         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
39841         unsigned counterparts.
39842         (Have_long_long, Unsigned): New macros.
39843         (Int): Renamed from INT.
39844         (strtoimax): Use the new macros.
39845         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
39846         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
39847         * modules/inttypes (inttypes.h): Substitute
39848         HAVE_UNSIGNED_LONG_LONG_INT.
39849         * modules/stdint (stdint.h): Likewise.
39850         (Files): Add m4/ulonglong.m4.
39851
39852 2006-10-10  Bruno Haible  <bruno@clisp.org>
39853
39854         Fix a gcc -Wshadow warning.
39855         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
39856         to 'bucket'.
39857         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
39858         gl_linked_indexof_from_to): Likewise.
39859         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
39860         Likewise.
39861         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
39862         Likewise.
39863         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
39864         Reported by Eric Blake.
39865
39866 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
39867
39868         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
39869         for NetBSD.  Problem reported by Bruno Haible.
39870
39871 2006-10-09  Jim Meyering  <jim@meyering.net>
39872
39873         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
39874         Patch from Bruno Haible.
39875
39876 2006-10-09  Jim Meyering  <jim@meyering.net>
39877
39878         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
39879         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
39880         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
39881
39882 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39883
39884         Don't include <config.h> twice; this doesn't work in some cases,
39885         e.g., when config.h has "#define intmax_t long long int" and
39886         we include <config.h>, <inttypes.h>, <config.h> in that order.
39887         Problem reported by Matthew Woehlke in:
39888         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
39889         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
39890         * lib/fts-cycle.c: Don't include config.h.
39891         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
39892         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
39893         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
39894         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
39895         inttypes.h.
39896         * lib/xstrtoumax.c: Likewise.
39897         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
39898         __strtol and the like, so that this module is more like its siblings.
39899         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
39900         Remove; no longer needed now that we assume gnulib inttypes.h.
39901
39902 2006-10-08  Bruno Haible  <bruno@clisp.org>
39903
39904         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
39905         option.
39906
39907 2006-10-07  Jim Meyering  <jim@meyering.net>
39908
39909         * modules/inttypes (inttypes.h): Revert what seems to have been
39910         an inadvertent part of today's change: use "|", not "/" in the
39911         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
39912
39913 2006-10-07  Bruno Haible  <bruno@clisp.org>
39914
39915         * modules/sublist: New file.
39916
39917 2006-10-07  Bruno Haible  <bruno@clisp.org>
39918
39919         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
39920         * modules/argz (argz.h): Likewise.
39921         * modules/arpa_inet (arpa/inet.h): Likewise.
39922         * modules/byteswap (byteswap.h): Likewise.
39923         * modules/configmake (configmake.h): Likewise.
39924         * modules/fcntl (fcntl.h): Likewise.
39925         * modules/fnmatch (fnmatch.h): Likewise.
39926         * modules/getopt (getopt.h): Likewise.
39927         * modules/glob (glob.h): Likewise.
39928         * modules/inttypes (inttypes.h): Likewise.
39929         * modules/netinet_in (netinet/in.h): Likewise.
39930         * modules/poll (poll.h): Likewise.
39931         * modules/stdbool (stdbool.h): Likewise.
39932         * modules/stdint (stdint.h): Likewise.
39933         * modules/sys_select (sys/select.h): Likewise.
39934         * modules/sys_socket (sys/socket.h): Likewise.
39935         * modules/sys_stat (sys/stat.h): Likewise.
39936         * modules/sysexits (sysexits.h): Likewise.
39937         * modules/unistd (unistd.h): Likewise.
39938         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39939         Add a "DO NOT EDIT" comment to the generated file.
39940         (func_import): Likewise for gnulib-comp.m4.
39941
39942 2006-10-07  Bruno Haible  <bruno@clisp.org>
39943
39944         * lib/gl_sublist.h: New file.
39945         * lib/gl_sublist.c: New file.
39946
39947 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
39948
39949         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
39950         name (relative to the original working directory) and the file
39951         name component (relative to the temporary working directory).  All
39952         callers changed.
39953         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
39954         * lib/mkdir-p.c (make_dir_parents): Likewise.
39955         * lib/mkdir-p.h (make_dir_parents): Likewise.
39956
39957 2006-10-06  Eric Blake  <ebb9@byu.net>
39958
39959         Define several macros for use by the clean-temp module.
39960         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
39961         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
39962         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
39963
39964         * lib/clean-temp.h (close_stream_temp): New declaration.
39965         * lib/clean-temp.c (includes): Pull in headers according to what
39966         other modules are in use.
39967         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
39968
39969 2006-10-06  Bruno Haible  <bruno@clisp.org>
39970
39971         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
39972         instead of fopen, fwriteerror.
39973
39974 2006-10-06  Bruno Haible  <bruno@clisp.org>
39975
39976         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
39977         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
39978         int.
39979         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
39980         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
39981         Return an error indicator.
39982         Suggested by Eric Blake.
39983
39984 2006-10-06  Bruno Haible  <bruno@clisp.org>
39985
39986         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
39987         Reported by Eric Blake.
39988
39989 2006-10-06  Bruno Haible  <bruno@clisp.org>
39990
39991         * modules/closeout (Description): Mention stderr too.
39992
39993 2006-10-06  Bruno Haible  <bruno@clisp.org>
39994         and Paul Eggert  <eggert@cs.ucla.edu>
39995
39996         * lib/closeout.c (close_stdout): Also close stderr.
39997         * lib/closeout.h: Update comment.
39998
39999 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40000
40001         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
40002         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
40003         * lib/dirchownmod.c: Include lchown.h.
40004         * lib/lchown.c: Don't include files that lchown.h now includes.
40005         Don't declare chown, since lchown.h now does that.
40006         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
40007         (lchown): Define to rpl_chown if lchown is declared but
40008         does not exist.  Declare using a prototype if lchown is not
40009         declared.  Add a copyright notice.
40010         * lib/mkstemp.h: Include <unistd.h>.
40011         * lib/openat.c: Include lchown.h.
40012
40013         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
40014         we now test for that separately.
40015         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
40016         rather than O_NOFOLLOW, when testing whether it's possible to
40017         avoid a race condition reliably.
40018         * lib/savewd.c (savewd_chdir): Likewise.
40019
40020         Remove macros that are no longer needed now that stdint.h is
40021         reliable.
40022         * lib/fsusage.c (UINTMAX_MAX): Remove.
40023         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
40024         * lib/utimecmp.c (SIZE_MAX): Remove.
40025
40026         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
40027
40028         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
40029         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
40030         O_NOATIME works.
40031
40032 2006-10-05  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/gl_list.h (gl_sortedlist_search_from_to,
40035         gl_sortedlist_indexof_from_to): New declarations.
40036         (gl_list_implementation): New fields sortedlist_search_from_to,
40037         sortedlist_indexof_from_to.
40038         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
40039         inline functions.
40040         * lib/gl_list.c (gl_sortedlist_search_from_to,
40041         gl_sortedlist_indexof_from_to): New functions.
40042         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
40043         function.
40044         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
40045         (gl_array_sortedlist_search_from_to): New function.
40046         (gl_array_list_implementation): Update.
40047         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
40048         function.
40049         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
40050         (gl_carray_sortedlist_search_from_to): New function.
40051         (gl_carray_list_implementation): Update.
40052         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
40053         gl_linked_sortedlist_indexof_from_to): New functions.
40054         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40055         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40056         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
40057         gl_tree_sortedlist_indexof_from_to): New functions.
40058         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40059         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40060         Update.
40061         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40062         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
40063         Update.
40064
40065 2006-10-05  Bruno Haible  <bruno@clisp.org>
40066
40067         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
40068         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
40069         (struct gl_list_implementation): Add fields search_from_to,
40070         indexof_from_to. Remove fields search, indexof.
40071         (gl_list_search): Use the search_from_to method.
40072         (gl_list_search_from, gl_list_search_from_to): New functions.
40073         (gl_list_indexof): Use the indexof_from_to method.
40074         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40075         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
40076         (gl_list_search_from, gl_list_search_from_to): New functions.
40077         (gl_list_indexof): Use the indexof_from_to method.
40078         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40079         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
40080         gl_array_indexof. Add start_index, end_index arguments.
40081         (gl_array_search_from_to): Renamed from gl_array_search. Add
40082         start_index, end_index arguments.
40083         (gl_array_remove, gl_array_list_implementation): Update.
40084         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
40085         gl_carray_indexof. Add start_index, end_index arguments.
40086         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
40087         start_index, end_index arguments.
40088         (gl_carray_remove, gl_carray_list_implementation): Update.
40089         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
40090         gl_linked_search. Add start_index, end_index arguments.
40091         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
40092         start_index, end_index arguments.
40093         (gl_linked_remove): Update.
40094         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40095         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40096         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
40097         field to 'size_t'.
40098         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
40099         gl_tree_search. Add start_index, end_index arguments.
40100         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40101         start_index, end_index arguments.
40102         (gl_tree_remove): Update.
40103         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40104         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40105         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
40106         function.
40107         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
40108         gl_tree_search. Add start_index, end_index arguments.
40109         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40110         start_index, end_index arguments.
40111         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40112         Update.
40113         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40114
40115 2006-10-05  Bruno Haible  <bruno@clisp.org>
40116
40117         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
40118
40119         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
40120         fwriteerror_temp): New declarations.
40121         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
40122         (descriptors): New variable.
40123         (cleanup): First, close the descriptors.
40124         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
40125         fclose_temp, fwriteerror_temp): New functions.
40126
40127 2006-10-04  Jim Meyering  <jim@meyering.net>
40128
40129         * lib/fts.c (fts_open): Tiny comment change.
40130
40131 2006-10-04  Bruno Haible  <bruno@clisp.org>
40132
40133         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
40134         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
40135         gl_LOCK_BODY.
40136         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
40137         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
40138         gl_LOCK_EARLY_BODY.
40139         (gl_LOCK): Require gl_LOCK_BODY.
40140
40141 2006-10-04  Bruno Haible  <bruno@clisp.org>
40142
40143         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
40144         (gl_oset_search_atleast): New declaration.
40145         (struct gl_oset_implementation): Add field 'search_atleast'.
40146         (gl_oset_search_atleast): New inline function.
40147         * lib/gl_oset.c (gl_oset_search_atleast): New function.
40148         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
40149         (gl_array_oset_implementation): Update.
40150         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
40151         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
40152         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
40153
40154 2006-10-04  Bruno Haible  <bruno@clisp.org>
40155
40156         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
40157
40158 2006-10-03  Bruno Haible  <bruno@clisp.org>
40159
40160         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
40161         from gl_avltreehash_list_implementation.
40162
40163 2006-10-03  Bruno Haible  <bruno@clisp.org>
40164
40165         * lib/gl_oset.c (gl_oset_add): Fix return type.
40166
40167 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
40168
40169         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
40170
40171 2006-10-02  Eric Blake  <ebb9@byu.net>
40172
40173         * modules/strnlen (Depends-on): Add extensions.
40174
40175 2006-10-02  Eric Blake  <ebb9@byu.net>
40176
40177         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
40178         definition in 2.60+.
40179
40180 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
40181
40182         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
40183         checks.
40184
40185 2006-10-02  Bruno Haible  <bruno@clisp.org>
40186
40187         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
40188         to the AUTOMAKE_OPTIONS.
40189         Reported by Jim Meyering.
40190
40191 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
40192
40193         Work around bug in Solaris 10 /proc file system:
40194         /proc/self/fd/NNN/.. isn't the parent directory of
40195         the directory whose file descriptor is NNN.  This needs to
40196         be worked around at run time, not compile time, since a
40197         program might be built on Solaris 8, where things work, and
40198         run on Solaris 10.
40199         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
40200         to use the following interface instead:
40201         (OPENAT_BUFFER_SIZE): New macro.
40202         (openat_proc_name): New function.
40203         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
40204         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
40205         Likewise.
40206         * lib/openat-proc.c: New file.
40207         * modules/openat (Files): Add lib/openat-proc.c.
40208         (Depends-on): Add same-inode, stdbool.
40209         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
40210
40211 2006-09-29  Bruno Haible  <bruno@clisp.org>
40212
40213         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
40214         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
40215         argument. Set stdout_closed before testing for ferror, not after.
40216         (fwriteerror, fwriteerror_no_ebadf): New functions.
40217
40218 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40219
40220         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
40221
40222 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
40223
40224         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
40225         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
40226
40227 2006-09-28  Jim Meyering  <jim@meyering.net>
40228
40229         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
40230         Include <unistd.h>.
40231
40232 2006-09-28  Bruno Haible  <bruno@clisp.org>
40233
40234         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
40235         * modules/linkedhash-list (Depends-on): Likewise.
40236         * modules/rbtreehash-list (Depends-on): Likewise.
40237
40238 2006-09-28  Bruno Haible  <bruno@clisp.org>
40239
40240         * lib/strndup.h: Simplify the redefinition of strndup.
40241         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
40242         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
40243
40244 2006-09-28  Bruno Haible  <bruno@clisp.org>
40245
40246         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
40247         * lib/gl_linkedhash_list.c: Likewise.
40248         * lib/gl_rbtreehash_list.c: Likewise.
40249
40250 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
40251
40252         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
40253         getaddrinfo.
40254
40255         * lib/__fpending.h: Don't include <stdio_ext.h> unless
40256         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
40257         it causes <stdio_ext.h> to cause a compile-time error.
40258         Problem reported by Nelson H. F. Beebe.
40259         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
40260         of HAVE_DECL___PENDING.
40261
40262         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
40263         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
40264         declaration.
40265
40266 2006-09-27  Jim Meyering  <jim@meyering.net>
40267
40268         This file could end up with a definition for a function
40269         named __strndup, rather than rpl_strndup on a system with
40270         incomplete weak_alias support.
40271         * lib/strndup.c (strndup): Rename from __strndup.
40272         Remove #defines that used to map __strndup to strndup.
40273         Don't use K&R prototypes.
40274         Remove LIBC-related code, since this file is not sync'd with glibc.
40275         * lib/strndup.h: Revamp, accordingly.
40276         * m4/strndup.m4: Modernize.
40277
40278 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
40279
40280         * modules/savewd (Depends-on): Add 'raise'.
40281         * lib/savewd.c: Include <signal.h>, for 'raise'.
40282
40283 2006-09-26  Jim Meyering  <jim@meyering.net>
40284
40285         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
40286         when we detect Darwin 8.7.0's acl_get_file bug.
40287         Rearrange to perform the new (below) run-test while $LIBS
40288         contains any acl-related library.  Set USE_ACL at the end.
40289         (gl_ACL_GET_FILE): New function.
40290
40291 2006-09-26  Eric Blake  <ebb9@byu.net>
40292
40293         * lib/verror.c: Include <config.h> unconditionally.
40294
40295 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
40296
40297         * modules/clock-time (Maintainer): Add self.
40298         * modules/getlogin_r (Depends-on): Add extensions.
40299
40300 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40301
40302         * modules/clock-time: New module.
40303         * modules/nanosleep (Depends-on): Add clock-time.
40304         * modules/gethrxtime (Depends-on): Likewise.
40305         * modules/gettime (Depends-on): Likewise.
40306         * modules/settime (Depends-on): Likewise.
40307
40308         * modules/fts-lgpl: Depend on openat.
40309         * modules/mkancesdirs: Depend on savewd.
40310         * modules/mkdir-p: Likewise.
40311
40312 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40313
40314         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
40315
40316         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
40317         `gl_have_arbitrary_file_name_length_limit' to
40318         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
40319         actually works between configure runs.
40320
40321 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40322             Bruno Haible  <bruno@clisp.org>
40323
40324         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
40325
40326 2006-09-25  Jim Meyering  <jim@meyering.net>
40327
40328         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
40329         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
40330
40331 2006-09-25  Eric Blake  <ebb9@byu.net>
40332
40333         * gnulib-tool (func_import, func_create_testdir): Fix typos in
40334         exec's in 2006-09-18 patch when shuffling fds.
40335
40336 2006-09-25  Bruno Haible  <bruno@clisp.org>
40337
40338         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
40339         Reported by Jim Meyering.
40340
40341 2006-09-24  Jim Meyering  <jim@meyering.net>
40342
40343         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
40344         compare a pointer against a literal "0".  That caused failures with
40345         at least HP-UX's hpcc.
40346
40347 2006-09-22  Simon Josefsson  <jas@extundo.com>
40348
40349         * modules/gc-sha1:
40350         * modules/gc-md4:
40351         * modules/gc-hmac-sha1:
40352         * modules/gc-hmac-md5:
40353         * modules/gc-des:
40354         * modules/gc-arcfour: Distribute more files.
40355
40356 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40357
40358         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
40359         (gl_linked_iterator_from_to): Initialize struct completely.
40360         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
40361         (gl_tree_iterator_from_to): Likewise
40362         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
40363         * lib/gl_array_list.c [lint] (gl_array_iterator)
40364         (gl_array_iterator_from_to): Likewise.
40365         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
40366         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
40367         (gl_carray_iterator_from_to): Likewise.
40368
40369         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
40370         * lib/md4.c (md4_process_block): Remove unused variable.
40371         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
40372         parentheses for clarity.
40373
40374 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40375
40376         * modules/bison-i18n (Depends-on): Add gettext.
40377
40378 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40379
40380         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
40381         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40382         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
40383         also add missing comma that caused broken test.
40384         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
40385         stdlib.h, for `abort'.
40386         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
40387         variables.
40388         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
40389         include unistd.h if present, for `rmdir'.
40390         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
40391         variables.
40392         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
40393         in the process include standard headers for prototypes.
40394         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
40395         gets declared on GNU/Linux.
40396         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
40397         unistd.h, for `rmdir'.
40398         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
40399
40400         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
40401         always true.
40402         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
40403
40404         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
40405
40406 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40407
40408         * gnulib-tool (func_version): Create output all at once.  This
40409         may help avoid triggering unnecessary SIGPIPEs, and at any
40410         rate it doesn't hurt.
40411
40412 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40413             Bruno Haible  <bruno@clisp.org>
40414
40415         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
40416         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40417         * m4/signed.m4 (bh_C_SIGNED): Likewise.
40418
40419         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
40420         (gl_FUNC_VASPRINTF): Invoke it.
40421
40422 2006-09-22  Bruno Haible  <bruno@clisp.org>
40423
40424         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
40425         getloadavg.c as first argument.
40426
40427 2006-09-22  Bruno Haible  <bruno@clisp.org>
40428
40429         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
40430         at the beginning of the gl_INIT macro.
40431         * modules/getloadavg (configure.ac): Pass $gl_source_base to
40432         gl_GETLOADAVG.
40433
40434 2006-09-22  Bruno Haible  <bruno@clisp.org>
40435
40436         * gnulib-tool (func_create_megatestdir): Don't include the config-h
40437         module.
40438         Suggested by Ralf Wildenhues.
40439
40440 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40441
40442         Import this patch from libc:
40443
40444         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
40445
40446         * lib/regex_internal.c (re_string_reconstruct): Handle
40447         offset < pstr->valid_raw_len && pstr->offsets_needed case.
40448         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
40449         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
40450         re_string_context_at.
40451
40452         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
40453         now requires it.
40454         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
40455         gl_REGEX now does it for us.
40456         (gl_REGEX): Add test taken from
40457         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
40458
40459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
40460         Check that large offsets work.  Modernize Autoconf usages.
40461         Prefer "yes" to mean a good thing rather than a bad.
40462         Don't put "#define mkstemp" in config.h, as this might interfere
40463         with standard system headers that "#define mkstemp mkstemp64".
40464
40465         * modules/mkstemp (Depends-on): Add extensions, so that
40466         mkstemp is visible on some platforms.
40467         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
40468         (Include): Change to "mkstemp.h" from <stdlib.h>.
40469         (Files): Add mkstemp.h.
40470
40471         * lib/mkstemp.h: New file, since some standard headers
40472         #define mkstemp.
40473         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
40474         Include "mkstemp.h".
40475         Make the _LIBC code resemble glibc original more,
40476         e.g., use K&R style.
40477         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
40478         (mkstemp): Remove, since mkstemp.h does this for us.
40479         * lib/stdlib--.h: Include mkstemp.h.
40480
40481         Import this patch from libc:
40482
40483         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
40484
40485         * lib/tempname.c (__gen_tempname): Change attempts_min
40486         into a macro.  Use preprocessor to decide how to initialize
40487         attempts [Coverity CID 67].
40488
40489 2006-09-20  Bruno Haible  <bruno@clisp.org>
40490
40491         * lib/mkdtemp.c: Import from libc.
40492         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
40493                 * sysdeps/posix/tempname.c (__gen_tempname): Change
40494                 attempts_min into a macro.  Use preprocessor to decide how to
40495                 initialize attempts [Coverity CID 67].
40496         2001-11-27  Paul Eggert  <eggert@twinsun.com>
40497                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
40498                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
40499
40500 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40501
40502         * gnulib-tool (func_exit): New function, to allow to pass the
40503         exit status portably through the trap.  Use everywhere.
40504         (--help, --version): Signal a write error.
40505         (trap): catch SIGPIPE, for write errors.
40506         Exit at the end of the trap, with the correct exit status.
40507
40508 2006-09-19  Karl Berry  <karl@gnu.org>
40509
40510         * doc/gnulib.texi: note about the license texinfo files.
40511
40512 2006-09-19  Eric Blake  <ebb9@byu.net>
40513
40514         * gnulib-tool: Avoid space-tab.
40515
40516 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
40517
40518         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
40519         that prevented coreutils 6.1 from building.  Problem reported
40520         by Petter Reinholdtsen.
40521
40522 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
40523
40524         * gnulib-tool (avoidlist): Fix typo that broke options like
40525         --avoid=lock that are used by coreutils bootstrap.
40526
40527 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
40528
40529         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
40530         more systematically.
40531
40532 2006-09-18  Jim Meyering  <jim@meyering.net>
40533
40534         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
40535
40536 2006-09-18  Bruno Haible  <bruno@clisp.org>
40537
40538         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
40539
40540 2006-09-18  Bruno Haible  <bruno@clisp.org>
40541
40542         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
40543         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
40544         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
40545         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
40546         * m4/gettext.m4: Require autoconf >= 2.52.
40547         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
40548         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
40549         of gl_cv_header_inttypes_h.
40550
40551 2006-09-18  Bruno Haible  <bruno@clisp.org>
40552
40553         * lib/javaversion.c: Include configmake.h.
40554
40555 2006-09-18  Bruno Haible  <bruno@clisp.org>
40556
40557         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
40558         avoid that the while loops be executed in a subshell.
40559
40560 2006-09-18  Bruno Haible  <bruno@clisp.org>
40561
40562         * MODULES.html.sh (func_module): Break long lines.
40563         Suggested by Bruce Korb <bkorb@gnu.org>.
40564
40565 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40566
40567         Speed up by a factor of 1.12.
40568         * gnulib-tool (nl): New variable.
40569         (func_import): Rewrite include directive extraction to only read each
40570         directive once.
40571
40572 2006-09-17  Bruno Haible  <bruno@clisp.org>
40573
40574         * modules/javaversion (Makefile.am): Remove DEFS setting.
40575         (Depends-on): Add configmake, for PKGDATADIR definition.
40576
40577 2006-09-17  Bruno Haible  <bruno@clisp.org>
40578
40579         * gnulib-tool (func_create_testdir): Rewrite all files at once.
40580
40581 2006-09-17  Bruno Haible  <bruno@clisp.org>
40582
40583         * gnulib-tool (func_append): New function, stolen from libtool.m4.
40584         (func_modules_transitive_closure, func_modules_add_dummy,
40585         func_modules_to_filelist, func_import, func_create_testdir,
40586         func_create_megatestdir, ...): Use it wherever possible.
40587         Suggested by Ralf Wildenhues.
40588
40589 2006-09-16  Karl Berry  <karl@gnu.org>
40590
40591         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
40592         to avoid sectioning errors.
40593         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
40594         [ifinfo]: blank line after @center-ed titles.
40595         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
40596         Spell FSF address consistently with others.
40597         (These changes approved by rms.)
40598
40599 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40600
40601         Speed up by a factor of 1.61.
40602         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
40603         already checked module names again.
40604
40605 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40606
40607         Speed up by a factor of 1.13.
40608         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
40609         for new_files, and the input to func_add_or_update.
40610
40611 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40612
40613         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
40614         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
40615
40616 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
40617
40618         * modules/mkancesdirs (Depends-on): Add fcntl.
40619         * modules/savewd: New file.
40620         * MODULES.html.sh (File system functions): Add savewd.
40621
40622         * modules/configmake (Makefile.am): Add support for the
40623         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
40624
40625 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
40626
40627         * m4/savewd.m4: New file.
40628
40629 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
40630
40631         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
40632         (dirchownmod): New arg FD.  All callers changed.
40633         Use FD rather than opening the directory ourself, as opening is
40634         now the caller's responsibility.
40635         * lib/dirchownmod.h: Likewise.
40636         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
40637         hosts that require <sys/types.h> before <sys/stat.h>.  Include
40638         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
40639         (test_dir): Remove.
40640         (mkancesdirs): Return length of prefix of FILE that has already
40641         been made, or -2 if there is a child doing the work.  Redo
40642         algorithm so that it is O(N) rather than O(N**2).  Optimize away
40643         ".", and treat ".." specially since it might stray back into
40644         already-created areas.  Use a subprocess if necessary.  New arg
40645         WD; all users changed.  MAKE_DIR function should now return 1
40646         if it creates a directory that is not readable.  Return -2 if
40647         a child process is spun off.
40648         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
40649         Adjust signature to match code.
40650         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
40651         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
40652         all users changed.
40653         * lib/savewd.c, lib/savewd.h: New files.
40654
40655 2006-09-15  Jim Meyering  <jim@meyering.net>
40656
40657         * modules/rename-dest-slash: New module.
40658         * MODULES.html.sh (posix_compat): Add it here.
40659
40660         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
40661
40662 2006-09-15  Jim Meyering  <jim@meyering.net>
40663
40664         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
40665         file.
40666
40667         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
40668
40669 2006-09-15  Jim Meyering  <jim@meyering.net>
40670
40671         * lib/rename-dest-slash.c (has_trailing_slash): Use
40672         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
40673         (rpl_rename_dest_slash): Perform the cheaper trailing slash
40674         test before testing whether SRC is a directory.
40675         Suggestions from Bruno Haible.
40676
40677         Avoid a warning about an unused variable.
40678         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
40679         into the #ifdef block where it's used.
40680
40681         * lib/rename-dest-slash.c: New file.
40682
40683 2006-09-14  Bruno Haible  <bruno@clisp.org>
40684
40685         * lib/allocsa.c: Include <config.h> unconditionally.
40686         * lib/asnprintf.c: Likewise.
40687         * lib/asprintf.c: Likewise.
40688         * lib/c-strcasecmp.c: Likewise.
40689         * lib/c-strcasestr.c: Likewise.
40690         * lib/c-strncasecmp.c: Likewise.
40691         * lib/c-strstr.c: Likewise.
40692         * lib/classpath.c: Likewise.
40693         * lib/clean-temp.c: Likewise.
40694         * lib/concatpath.c: Likewise.
40695         * lib/copy-file.c: Likewise.
40696         * lib/csharpcomp.c: Likewise.
40697         * lib/csharpexec.c: Likewise.
40698         * lib/execute.c: Likewise.
40699         * lib/fatal-signal.c: Likewise.
40700         * lib/findprog.c: Likewise.
40701         * lib/fwriteerror.c: Likewise.
40702         * lib/gl_array_list.c: Likewise.
40703         * lib/gl_array_oset.c: Likewise.
40704         * lib/gl_avltree_list.c: Likewise.
40705         * lib/gl_avltree_oset.c: Likewise.
40706         * lib/gl_avltreehash_list.c: Likewise.
40707         * lib/gl_carray_list.c: Likewise.
40708         * lib/gl_linked_list.c: Likewise.
40709         * lib/gl_linkedhash_list.c: Likewise.
40710         * lib/gl_list.c: Likewise.
40711         * lib/gl_oset.c: Likewise.
40712         * lib/gl_rbtree_list.c: Likewise.
40713         * lib/gl_rbtree_oset.c: Likewise.
40714         * lib/gl_rbtreehash_list.c: Likewise.
40715         * lib/imaxabs.c: Likewise.
40716         * lib/imaxdiv.c: Likewise.
40717         * lib/javacomp.c: Likewise.
40718         * lib/javaexec.c: Likewise.
40719         * lib/javaversion.c: Likewise.
40720         * lib/linebreak.c: Likewise.
40721         * lib/localcharset.c: Likewise.
40722         * lib/lock.c: Likewise.
40723         * lib/mbchar.c: Likewise.
40724         * lib/mbswidth.c: Likewise.
40725         * lib/mkdtemp.c: Likewise.
40726         * lib/pipe.c: Likewise.
40727         * lib/printf-args.c: Likewise.
40728         * lib/printf-parse.c: Likewise.
40729         * lib/progname.c: Likewise.
40730         * lib/progreloc.c: Likewise.
40731         * lib/readlink.c: Likewise.
40732         * lib/sh-quote.c: Likewise.
40733         * lib/stpcpy.c: Likewise.
40734         * lib/stpncpy.c: Likewise.
40735         * lib/strcasecmp.c: Likewise.
40736         * lib/strcasestr.c: Likewise.
40737         * lib/strcspn.c: Likewise.
40738         * lib/striconv.c: Likewise.
40739         * lib/strncasecmp.c: Likewise.
40740         * lib/strnlen1.c: Likewise.
40741         * lib/strstr.c: Likewise.
40742         * lib/strtok_r.c: Likewise.
40743         * lib/tls.c: Likewise.
40744         * lib/tmpdir.c: Likewise.
40745         * lib/unicodeio.c: Likewise.
40746         * lib/unsetenv.c: Likewise.
40747         * lib/vasnprintf.c: Likewise.
40748         * lib/vasprintf.c: Likewise.
40749         * lib/wait-process.c: Likewise.
40750         * lib/xallocsa.c: Likewise.
40751         * lib/xsetenv.c: Likewise.
40752         * lib/xstriconv.c: Likewise.
40753
40754 2006-09-13  Simon Josefsson  <jas@extundo.com>
40755
40756         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
40757         that internally, suggested by Ralf Wildenhues
40758         <Ralf.Wildenhues@gmx.de>.
40759
40760 2006-09-13  Simon Josefsson  <jas@extundo.com>
40761
40762         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
40763         @LIBOBJS@.
40764         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40765
40766 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40767
40768         * lib/_fpending.c: Include <config.h> unconditionally, since we no
40769         longer worry about uses that don't define HAVE_CONFIG_H.
40770         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
40771         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
40772         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
40773         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
40774         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
40775         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
40776         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
40777         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
40778         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
40779         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
40780         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
40781         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
40782         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
40783         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
40784         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
40785         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
40786         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
40787         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
40788         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
40789         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
40790         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
40791         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
40792         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
40793         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
40794         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
40795         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
40796         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
40797         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
40798         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
40799         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
40800         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
40801         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
40802         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
40803         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
40804         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
40805         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
40806         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
40807         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
40808         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
40809         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
40810         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
40811         Likewise.
40812
40813 2006-09-13  Eric Blake  <ebb9@byu.net>
40814
40815         * lib/getopt.c: Fix typo in last commit.
40816
40817 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40818
40819         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
40820         dgettext.
40821
40822 2006-09-12  Jim Meyering  <jim@meyering.net>
40823
40824         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
40825         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
40826         Reported by Nelson H. F. Beebe.
40827
40828 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40829
40830         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
40831         program_invocation_name and program_invocation_short_name are
40832         initialized.
40833         * lib/argp-namefrob.h: Move declarations of program_invocation_name
40834         and program_invocation_short_name to argp.h, so they are visible
40835         to user programs.
40836         * lib/argp.h: Likewise
40837
40838 2006-09-10  Bruno Haible  <bruno@clisp.org>
40839
40840         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40841         m4/inttypes_h.m4, m4/uintmax_t.m4.
40842
40843 2006-09-10  Bruno Haible  <bruno@clisp.org>
40844
40845         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
40846         gl_AC_TYPE_UINTMAX_T.
40847
40848 2006-09-10  Bruno Haible  <bruno@clisp.org>
40849
40850         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
40851
40852 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
40853
40854         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
40855         convention.  Text proposed by Bruno Haible.
40856         (struct argp_option): Document the use of N_() wrappers.
40857
40858         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
40859         '\v', and translate the two parts separately, instead of feeding
40860         the whole string to gettext.  This allows to exclude
40861         '\v' from the strings visible to the translator by writing doc
40862         strings as N_("..") "\v" N_("..").
40863
40864 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
40865
40866         * config/srclist.txt: Undo latest change; the bug was fixed.
40867
40868 2006-09-09  Bruno Haible  <bruno@clisp.org>
40869
40870         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
40871         assignments if building a library without libtool.
40872         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
40873         in func_emit_lib_Makefile_am.
40874         (func_import): When building a static library libfoo.a, arrange to
40875         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
40876         (func_create_testdir): Likewise.
40877         * modules/gc (configure.ac, Makefile.am): If building statically,
40878         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
40879         * modules/iconvme (configure.ac, Makefile.am): Likewise.
40880         * modules/striconv (configure.ac, Makefile.am): Likewise.
40881         Based on a suggestion by Ralf Wildenhues.
40882
40883 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40884
40885         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40886         Check for unistd.h too, since Autoconf doesn't assume POSIX.
40887         Also:
40888
40889         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40890         Add year_2050_test to catch glibc bug 2821
40891         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40892
40893         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40894         Prefer #ifdef to #if.
40895
40896         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
40897         Return from 'main' instead of calling 'exit'.
40898
40899 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40900
40901         * lib/mktime.c (guess_time_tm): Fix bug where mktime
40902         returned the maximum time_t value rather than (time_t) -1.
40903         Problem originally reported by William Bardwell
40904         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40905
40906         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40907         Moved to here ...
40908         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40909         ... from here.
40910
40911 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40912
40913         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
40914         2821 is fixed.
40915
40916 2006-09-08  Jim Meyering  <jim@meyering.net>
40917
40918         Don't make generated files read-only.  That would bother too many
40919         people.  However, do retain the ability to work when targets are
40920         read-only: remove the destination and temporary files before writing
40921         them (when generated via sed or echo), or by using the -f option for
40922         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
40923         * modules/alloca-opt, modules/argz, modules/arpa_inet:
40924         * modules/byteswap, modules/configmake, modules/fcntl:
40925         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40926         * modules/localcharset, modules/netinet_in, modules/poll:
40927         * modules/stdbool, modules/stdint, modules/sys_select:
40928         * modules/sys_socket, modules/sys_stat, modules/sysexits:
40929
40930 2006-09-08  Jim Meyering  <jim@meyering.net>
40931
40932         Avoid new build failure on FreeBSD 6.0.
40933         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
40934         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
40935         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
40936
40937 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40938
40939         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
40940
40941 2006-09-07  Jim Meyering  <jim@meyering.net>
40942
40943         Fix global typo in last change: use chmod u-w, not chmod u-x.
40944         Spotted by Paul Eggert and Bruce Korb.
40945         * modules/alloca-opt, modules/argz, modules/arpa_inet:
40946         * modules/byteswap, modules/configmake, modules/fcntl:
40947         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40948         * modules/localcharset, modules/netinet_in, modules/poll:
40949         * modules/stdbool, modules/stdint, modules/sys_select:
40950         * modules/sys_socket, modules/sys_stat, modules/sysexits:
40951
40952 2006-09-06  Jim Meyering  <jim@meyering.net>
40953
40954         Make generated files be read-only.
40955         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
40956         Ensure that each generated file is now read-only.
40957         * modules/argz: Likewise.
40958         * modules/arpa_inet: Likewise.
40959         * modules/byteswap: Likewise.
40960         * modules/configmake: Likewise.
40961         * modules/fcntl: Likewise.
40962         * modules/fnmatch: Likewise.
40963         * modules/getopt: Likewise.
40964         * modules/glob: Likewise.
40965         * modules/inttypes: Likewise.
40966         * modules/netinet_in: Likewise.
40967         * modules/poll: Likewise.
40968         * modules/stdbool: Likewise.
40969         * modules/stdint: Likewise.
40970         * modules/sys_select: Likewise.
40971         * modules/sys_socket: Likewise.
40972         * modules/sys_stat: Likewise.
40973         * modules/sysexits: Likewise.
40974         * modules/localcharset: Same as above, but continue using temporary
40975         file named "t-$@" (why different?) rather than the "$@-t" used
40976         everywhere else.
40977
40978         * modules/sysexits (Makefile.am): Replace literal occurrences
40979         of "sysexit.h" more readable, and more consistent, "$@".
40980
40981 2006-09-06  Bruno Haible  <bruno@clisp.org>
40982
40983         * modules/striconv: New file.
40984         * modules/xstriconv: New file.
40985         * MODULES.html.sh (Internationalization functions): Add striconv,
40986         xstriconv.
40987
40988 2006-09-06  Bruno Haible  <bruno@clisp.org>
40989
40990         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
40991         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
40992         not using libtool correctly.
40993
40994 2006-09-06  Bruno Haible  <bruno@clisp.org>
40995
40996         * lib/striconv.h: New file.
40997         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
40998         iconvstring.c.
40999         * lib/xstriconv.h: New file.
41000         * lib/xstriconv.c: New file.
41001
41002 2006-09-06  Bruno Haible  <bruno@clisp.org>
41003
41004         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41005         lib_..._LDFLAGS.
41006
41007 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41008
41009         * lib/argz_.h: Sync from Libtool.
41010
41011         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
41012                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41013
41014         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
41015
41016 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41017
41018         * modules/trim: New file.
41019
41020 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41021
41022         * lib/trim.h: New file.
41023         * lib/trim.c: New file.
41024
41025 2006-09-05  Bruno Haible  <bruno@clisp.org>
41026
41027         * MODULES.html.sh (String handling): Add trim.
41028
41029 2006-09-04  Karl Berry  <karl@gnu.org>
41030
41031         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
41032         until next release.
41033
41034 2006-09-03  Bruno Haible  <bruno@clisp.org>
41035
41036         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
41037         correctly.
41038
41039 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41040
41041         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
41042         not gl_GETLOADAVG.  Omit unneeded semicolons.
41043         Problems reported by Ralf Wildenhues in
41044         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41045         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
41046         at the end, which is the usual gnulib style.
41047
41048         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
41049         of doing all the work ourselves.
41050         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
41051         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
41052
41053 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41054
41055         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
41056         Problem reported by Ralf Wildenhues in
41057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41058
41059         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
41060         HAVE_STRUCT_STATFS_F_FSTYPENAME.
41061
41062 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41063
41064         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
41065         yesterday's patch by changing test -n to test -z.
41066
41067 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41068
41069         * modules/getloadavg (Files): Add m4/getloadavg.m4.
41070         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
41071         the former is now obsolescent.
41072
41073         * modules/chdir-long (Depends-on): Add fcntl.
41074
41075 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41076
41077         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
41078         obsolescent, and programs should use gnulib instead.
41079         * m4/getloadavg.m4: New file, with contents taken from Autoconf
41080         but with prefixes changed.
41081
41082 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41083
41084         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
41085         or stdbool.h, because they might not exist while configuring.
41086
41087         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
41088         Don't include unistd.h or limits.h; not needed, since chdir-long.h
41089         does that for us.
41090         (O_DIRECTORY): Remove.
41091
41092 2006-08-31  Eric Blake  <ebb9@byu.net>
41093
41094         * gnulib-tool: Don't let emacs change spaces to TAB.
41095
41096 2006-08-31  Bruno Haible  <bruno@clisp.org>
41097
41098         * gnulib-tool: When calling func_import more than once, do it in a
41099         subshell.
41100         Reported by Eric Blake <ebb9@byu.net>.
41101
41102 2006-08-31  Bruno Haible  <bruno@clisp.org>
41103
41104         * gnulib-tool (nl): Remove variable.
41105         (sed_transform_lib_file): Use more robust test for config-h module.
41106         (func_import): Fix typo in 2006-08-25 patch.
41107
41108 2006-08-31  Bruno Haible  <bruno@clisp.org>
41109
41110         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
41111         specified, augment Makefile.am variables instead of assigning them.
41112
41113 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41114
41115         Work around a bug in both the Linux and SunOS 64-bit kernels:
41116         nanosleep mishandles sleeps for longer than 2**31 seconds.
41117         Problem reported by Frank v Waveren in
41118         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41119         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
41120         Check for nanosleep bug.
41121         (LIB_NANOSLEEP): Append clock_gettime library if needed.
41122
41123 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41124
41125         Work around a bug in both the Linux and SunOS 64-bit kernels:
41126         nanosleep mishandles sleeps for longer than 2**31 seconds.
41127         Problem reported by Frank v Waveren in
41128         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41129         * lib/nanosleep.c (BILLION): New constant.
41130         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
41131         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
41132         implementation.
41133
41134 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41135
41136         * modules/nanosleep (Depends-on): Add gettime.
41137
41138 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41139         and Simon Josefsson  <jas@extundo.com>
41140         and Oskar Liljeblad  <oskar@osk.mine.nu>
41141
41142         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
41143         * gnulib-tool (func_import): New license type 'unmodifiable license
41144         text'.
41145         * modules/fdl: Use it.  Longer description.
41146         * module/gpl, module/lgpl: New files.
41147
41148 2006-08-30  Jim Meyering  <jim@meyering.net>
41149
41150         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
41151         shadowing the parameter.
41152
41153 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41154
41155         Sync from Libtool:
41156
41157         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41158
41159         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
41160         sharing with gnulib.  Report by Eric Blake.
41161
41162 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41163
41164         * modules/isapipe: New file.
41165         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
41166
41167 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41168
41169         * modules/configmake (Makefile.am): Add a comment, and omit
41170         the CONFIGMAKE_ prefix from generated macro names.  Suggested
41171         by Bruno Haible.
41172
41173 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41174
41175         * m4/isapipe.m4: New file.
41176
41177 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41178
41179         * lib/isapipe.c, lib/isapipe.h: New files.
41180
41181 2006-08-29  Jim Meyering  <jim@meyering.net>
41182
41183         * modules/configmake (Makefile.am): Make configmake.h depend on
41184         Makefile.  Otherwise, a stale configmake.h could hang around.
41185
41186 2006-08-29  Eric Blake  <ebb9@byu.net>
41187
41188         * lib/error.c (error_at_line, print_errno_message): Match libc, after
41189         resolution of upstream bug 3044.
41190
41191 2006-08-29  Bruno Haible  <bruno@clisp.org>
41192
41193         * modules/localcharset (Depends-on): Add configmake.
41194         (Makefile.am): Remove setting of LIBDIR through DEFS.
41195
41196 2006-08-29  Bruno Haible  <bruno@clisp.org>
41197
41198         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
41199         defined.
41200
41201 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41202
41203         * modules/fcntl: New file.
41204         * modules/chdir-safer (Depends-on): Add fcntl.
41205         * modules/fts: Likewise.
41206         * modules/mkdir-p: Likewise.
41207
41208         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
41209         This undoes the most recent change, since we're now addressing the
41210         problem in a different way.
41211
41212         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
41213         into output, since the output might be called Makefile.am even
41214         if $makefile_name is something different.
41215         (func_import): Use $makefile_am rather than
41216         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
41217         empty.
41218
41219         * modules/inttypes (Files): Add m4/inttypes-h.m4.
41220
41221 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41222
41223         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
41224         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
41225         recent change to stdint.m4, since we're now addressing the problem in a
41226         different way.
41227
41228 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41229
41230         * m4/fcntl_h.m4: New file.
41231
41232 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41233
41234         * lib/fcntl_.h: New file.
41235         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
41236         the fcntl module.
41237         * lib/dirchownmod.c: Likewise.
41238         * lib/fts.c: Likewise.
41239
41240         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
41241         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
41242         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
41243         just before including <inttypes.h>, to avoid circular inclusion.
41244
41245 2006-08-28  Jim Meyering  <jim@meyering.net>
41246
41247         * doc/visibility.texi: Actually read and correct the grammar of the
41248         sentence affected by yesterday's change.
41249
41250 2006-08-28  Eric Blake  <ebb9@byu.net>
41251
41252         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
41253         needs wrapper.
41254
41255 2006-08-28  Eric Blake  <ebb9@byu.net>
41256
41257         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
41258
41259 2006-08-28  Eric Blake  <ebb9@byu.net>
41260
41261         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
41262
41263 2006-08-28  Bruno Haible  <bruno@clisp.org>
41264
41265         * modules/c-strstr: New file, from GNU gettext.
41266         * MODULES.html.sh (String handling): Add c-strstr.
41267
41268 2006-08-28  Bruno Haible  <bruno@clisp.org>
41269
41270         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
41271         macros.
41272         Reported by Eric Blake.
41273
41274 2006-08-28  Bruno Haible  <bruno@clisp.org>
41275
41276         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
41277         (VASNPRINTF): Return a string of length > INT_MAX without failing.
41278         * lib/vasprintf.c: Include errno.h, limits.h.
41279         (EOVERFLOW): New fallback definition.
41280         (vasprintf): Test here whether the string length is > INT_MAX.
41281         * lib/vsnprintf.c: Include errno.h, limits.h.
41282         (EOVERFLOW): New fallback definition.
41283         (vsnprintf): Fix bug when generated string was too long for the buffer.
41284         Test here whether the string length is > INT_MAX.
41285
41286 2006-08-28  Bruno Haible  <bruno@clisp.org>
41287
41288         * lib/inttypes_.h (SCNX*): Remove definitions.
41289         Reported by Eric Blake.
41290
41291 2006-08-28  Bruno Haible  <bruno@clisp.org>
41292
41293         * lib/c-strstr.h: New file, from GNU gettext.
41294         * lib/c-strstr.c: New file, from GNU gettext.
41295
41296 2006-08-28  Bruno Haible  <bruno@clisp.org>
41297
41298         * gnulib-tool: Reorder some statements.
41299
41300 2006-08-28  Bruno Haible  <bruno@clisp.org>
41301
41302         * gnulib-tool: New option --makefile-name.
41303         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
41304         $makefile_name.
41305         (func_import): Write $makefile_name to the cache file, and read it from
41306         there unless explicitly specified. Use $makefile_name as file name
41307         instead of Makefile.am. Adjust the recommendations accordingly.
41308
41309 2006-08-28  Bruno Haible  <bruno@clisp.org>
41310
41311         * gnulib-tool (func_verify_module): Check against misapplying patch.
41312
41313 2006-08-28  Bruno Haible  <bruno@clisp.org>
41314
41315         * gnulib-tool (func_relativize, func_relconcat): New functions.
41316         Give an error if --local-dir is given with --update.
41317         Remove trailing slashes from $local_gnulib_dir.
41318         (func_import): Store the relativized $local_gnulib_dir in
41319         gnulib-cache.m4, and read it from there if not specified explicitly.
41320
41321 2006-08-28  Bruno Haible  <bruno@clisp.org>
41322
41323         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
41324         is the current directory. Respect also $local_gnulib_dir.
41325
41326 2006-08-28  Bruno Haible  <bruno@clisp.org>
41327             Simon Josefsson  <jas@extundo.com>
41328
41329         BeOS portability.
41330         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
41331
41332 2006-08-27  Jim Meyering  <jim@meyering.net>
41333
41334         * doc/visibility.texi: Remove duplicate word: "pointer".
41335
41336 2006-08-26  Bruno Haible  <bruno@clisp.org>
41337
41338         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
41339         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
41340         (Makefile.am): Create inttypes.h from inttypes_.h.
41341         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
41342
41343         * modules/imaxabs: New file.
41344
41345         * modules/imaxdiv: New file.
41346
41347 2006-08-26  Bruno Haible  <bruno@clisp.org>
41348
41349         * m4/inttypes.m4: New file.
41350         * m4/_inttypes_h.m4: Remove file.
41351         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
41352         PRI_MACROS_BROKEN.
41353         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
41354
41355         * m4/imaxabs.m4: New file.
41356
41357         * m4/imaxdiv.m4: New file.
41358
41359 2006-08-26  Bruno Haible  <bruno@clisp.org>
41360
41361         * lib/inttypes_.h: New file.
41362         * lib/inttypes.h: Remove file.
41363         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
41364
41365         * lib/imaxabs.c: New file.
41366
41367         * lib/imaxdiv.c: New file.
41368
41369 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41370
41371         New config-h module, so that "make" output needn't be cluttered
41372         by -DHAVE_CONFIG_H.
41373         * MODULES.html.sh (Support for building libraries and executables):
41374         Add config-h.
41375         * modules/config-h: New file.
41376         * gnulib-tool (nl, sed_transform_lib_file): New vars.
41377         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
41378         the config-h module is used.
41379
41380         New configmake module, so that "make" output needn't be cluttered
41381         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
41382         * MODULES.html.sh (Support for building libraries and executables):
41383         Add configmake.
41384         * modules/configmake: New file.
41385
41386 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41387
41388         * m4/config-h.m4: New file.
41389
41390 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
41391
41392         * config/srclist.txt: Add elisp-comp.
41393
41394 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
41395
41396         * MODULES.html.sh (Support for building libraries and executables):
41397         Add elisp-comp.
41398         * build-aux/elisp-comp: New file.
41399         * modules/elisp-comp: New file.
41400
41401 2006-08-24  Bruno Haible  <bruno@clisp.org>
41402
41403         * gnulib-tool (func_create_testdir): Use non-default values of
41404         sourcebase and m4base.
41405
41406 2006-08-24  Bruno Haible  <bruno@clisp.org>
41407
41408         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
41409         HTML structure.
41410
41411 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
41412
41413         * modules/openat (Depends-on): Add lchown.
41414
41415 2006-08-23  Bruno Haible  <bruno@clisp.org>
41416
41417         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
41418         of gl_LOCK_EARLY instead of gl_LOCK.
41419
41420 2006-08-23  Bruno Haible  <bruno@clisp.org>
41421
41422         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
41423         on OSF/1 to no.
41424         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
41425
41426 2006-08-23  Bruno Haible  <bruno@clisp.org>
41427
41428         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
41429         as unusable.
41430
41431         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
41432         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
41433         (gl_LOCK): New macro.
41434
41435 2006-08-22  Simon Josefsson  <jas@extundo.com>
41436
41437         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
41438         to md5 module.
41439
41440 2006-08-22  Simon Josefsson  <jas@extundo.com>
41441
41442         * MODULES.html.sh: Add "Support for maintaining and release
41443         projects".
41444
41445         * build-aux/gnupload: New file, from coreutils.
41446
41447 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
41448
41449         Avoid the need for AC_LIBSOURCES in m4 macros.
41450         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
41451         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
41452         * modules/check-version (EXTRA_DIST): Add check-version.h.
41453         * modules/crc (EXTRA_DIST): Add crc.h.
41454         * modules/des (EXTRA_DIST): Add des.h.
41455         * modules/gc (EXTRA_DIST): Add gc.h.
41456         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
41457         * modules/getline (EXTRA_DIST): Add getline.h.
41458         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
41459         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
41460         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
41461         * modules/md2 (EXTRA_DIST): Add md2.h.
41462         * modules/md4 (EXTRA_DIST): Add md4.h.
41463         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
41464         * modules/read-file (EXTRA_DIST): Add read-file.h.
41465         * modules/readline (EXTRA_DIST): Add readline.h.
41466         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
41467         rijndael-api-fst.h.
41468
41469 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
41470
41471         * m4/rijndael.m4 (gl_ARCFOUR):
41472         * m4/arctwo.m4 (gl_ARCTWO):
41473         * m4/check-version.m4 (gl_CHECK_VERSION):
41474         * m4/crc.m4 (gl_CRC):
41475         * m4/des.m4 (gl_DES):
41476         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
41477         * m4/gc.m4 (gl_GC):
41478         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
41479         * m4/getline.m4 (gl_FUNC_GETLINE):
41480         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
41481         * m4/hmac-md5.m4 (gl_HMAC_MD5):
41482         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
41483         * m4/md2.m4 (gl_MD2):
41484         * m4/md4.m4 (gl_MD4):
41485         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
41486         * m4/read-file.m4 (gl_FUNC_READ_FILE):
41487         * m4/readline.m4 (gl_FUNC_READLINE):
41488         * m4/rijndael.m4 (gl_RIJNDAEL):
41489         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
41490         to get the necessary .h files and whatnot.
41491
41492 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
41493
41494         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
41495         gnulib rather than the other way around.
41496         * config/srclistvars.sh (COREUTILS): Remove.
41497
41498 2006-08-22  Jim Meyering  <jim@meyering.net>
41499
41500         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
41501
41502         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
41503
41504 2006-08-22  Eric Blake  <ebb9@byu.net>
41505
41506         * modules/regexprops-generic: New file.
41507         * MODULES.html.sh (Support for building documentation): List it.
41508
41509 2006-08-22  Eric Blake  <ebb9@byu.net>
41510
41511         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
41512         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41513         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
41514         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
41515
41516 2006-08-22  Bruno Haible  <bruno@clisp.org>
41517
41518         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
41519         and lib_LTLIBRARIES like the other lib_* variables.
41520
41521 2006-08-22  Bruno Haible  <bruno@clisp.org>
41522
41523         * build-aux/x-to-1.in: New file, from GNU gettext.
41524
41525 2006-08-22  Bruno Haible  <bruno@clisp.org>
41526
41527         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
41528         <utmpx.h> exists.
41529
41530 2006-08-22  Bruno Haible  <bruno@clisp.org>
41531
41532         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
41533         <utmpx.h> exists.
41534
41535 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
41536
41537         BeOS portability.
41538         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
41539         exist.
41540         Problem reported by Bruno Haible.
41541
41542 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
41543
41544         Avoid the need for AC_LIBSOURCES in m4 macros.
41545         * modules/acl (EXTRA_DIST): Add acl.h.
41546         * modules/argmatch (Files): Add m4/argmatch.m4.
41547         (configure.ac): Add gl_ARGMATCH.
41548         (EXTRA_DIST): Renamed from lib_SOURCES, for
41549         consistency with the other modules.  Remove argmatch.c.
41550         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
41551         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
41552         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
41553         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
41554         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
41555         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
41556         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
41557         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
41558         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
41559         * modules/closeout (EXTRA_DIST): Add closeout.h.
41560         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
41561         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
41562         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
41563         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
41564         dirname.h; remove basename.c and stripslash.c.
41565         * modules/exclude (EXTRA_DIST): Add exclude.h.
41566         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
41567         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
41568         * modules/file-type (EXTRA_DIST): Add file-type.h.
41569         * modules/filemode (EXTRA_DIST): Add filemode.h.
41570         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
41571         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
41572         * modules/fpending (EXTRA_DIST): Add __fpending.h.
41573         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
41574         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
41575         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
41576         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
41577         * modules/getdate (EXTRA_DIST): Add getdate.c.
41578         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
41579         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
41580         * modules/getpass (EXTRA_DIST): Add getpass.h.
41581         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
41582         * modules/group-member (EXTRA_DIST): Add group-member.h.
41583         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
41584         * modules/hash (EXTRA_DIST): Add hash.h.
41585         * modules/human (EXTRA_DIST): Add human.h.
41586         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
41587         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
41588         * modules/lchown (EXTRA_DIST): Add lchown.h.
41589         * modules/long-options (EXTRA_DIST): Add long-options.h.
41590         * modules/lstat (EXTRA_DIST): Add lstat.h.
41591         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
41592         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
41593         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
41594         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
41595         * modules/memxor (EXTRA_DIST): Add memxor.h.
41596         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
41597         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
41598         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
41599         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
41600         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
41601         * modules/physmem (EXTRA_DIST): Add physmem.h.
41602         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
41603         * modules/posixver (EXTRA_DIST): Add posixver.h.
41604         * modules/quote (EXTRA_DIST): Add quote.h.
41605         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
41606         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
41607         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
41608         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
41609         regex_internal.h regexec.c.
41610         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
41611         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
41612         * modules/same (EXTRA_DIST): Add same.h.
41613         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
41614         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
41615         * modules/savedir (EXTRA_DIST): Add savedir.h.
41616         * modules/sha1 (EXTRA_DIST): Add sha1.h.
41617         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
41618         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
41619         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
41620         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
41621         * modules/strdup (EXTRA_DIST): Add strdup.h.
41622         * modules/strftime (EXTRA_DIST): Add strftime.h.
41623         * modules/strndup (EXTRA_DIST): Add strndup.h.
41624         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
41625         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
41626         * modules/time_r (EXTRA_DIST): Add time_r.h.
41627         * modules/timespec (EXTRA_DIST): Add timespec.h.
41628         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
41629         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
41630         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
41631         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
41632         * modules/userspec (EXTRA_DIST): Add userspec.h.
41633         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
41634         * modules/utimens (EXTRA_DIST): Add utimens.h.
41635         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
41636         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
41637         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
41638         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
41639         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
41640         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
41641         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
41642         * modules/yesno (EXTRA_DIST): Add yesno.h.
41643
41644 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
41645
41646         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
41647
41648         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
41649         * m4/dev-ino.m4, same-inode.m4: Remove.
41650
41651         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
41652         * m4/acl.m4 (AC_FUNC_ACL):
41653         * m4/backupfile.m4 (gl_BACKUPFILE):
41654         * m4/c-strtod.m4 (gl_C99_STRTOLD):
41655         * m4/canon-host.m4 (gl_CANON_HOST):
41656         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41657         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
41658         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
41659         * m4/cloexec.m4 (gl_CLOEXEC):
41660         * m4/close-stream.m4 (gl_CLOSE_STREAM):
41661         * m4/closeout.m4 (gl_CLOSEOUT):
41662         * m4/dirfd.m4 (gl_FUNC_DIRFD):
41663         * m4/dirname.m4 (gl_DIRNAME):
41664         * m4/exclude.m4 (gl_EXCLUDE):
41665         * m4/exitfail.m4 (gl_EXITFAIL):
41666         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
41667         * m4/file-type.m4 (gl_FILE_TYPE):
41668         * m4/filemode.m4 (gl_FILEMODE):
41669         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
41670         * m4/fpending.m4 (gl_FUNC_FPENDING):
41671         * m4/fprintftime.m4 (gl_FPRINTFTIME):
41672         * m4/fts.m4 (gl_FUNC_FTS):
41673         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
41674         * m4/getdate.m4 (gl_GETDATE):
41675         * m4/gethrxtime.m4 (gl_GETHRXTIME):
41676         * m4/getpagesize.m4 (gl_GETPAGESIZE):
41677         * m4/getpass.m4 (gl_FUNC_GETPASS):
41678         * m4/gettime.m4 (gl_GETTIME):
41679         * m4/getugroups.m4 (gl_GETUGROUPS):
41680         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
41681         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
41682         * m4/hard-locale.m4 (gl_HARD_LOCALE):
41683         * m4/hash.m4 (gl_HASH):
41684         * m4/idcache.m4 (gl_IDCACHE):
41685         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
41686         * m4/lchown.m4 (gl_FUNC_LCHOWN):
41687         * m4/long-options.m4 (gl_LONG_OPTIONS):
41688         * m4/lstat.m4 (gl_FUNC_LSTAT):
41689         * m4/md5.m4 (gl_MD5):
41690         * m4/memcasecmp.m4 (gl_MEMCASECMP):
41691         * m4/memcoll.m4 (gl_MEMCOLL):
41692         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
41693         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
41694         * m4/memxor.m4 (gl_MEMXOR):
41695         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
41696         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
41697         * m4/modechange.m4 (gl_MODECHANGE):
41698         * m4/mountlist.m4 (gl_MOUNTLIST):
41699         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41700         * m4/openat.m4 (gl_FUNC_OPENAT):
41701         * m4/pathmax.m4 (gl_PATHMAX):
41702         * m4/physmem.m4 (gl_PHYSMEM):
41703         * m4/posixtm.m4 (gl_POSIXTM):
41704         * m4/posixver.m4 (gl_POSIXVER):
41705         * m4/quote.m4 (gl_QUOTE):
41706         * m4/quotearg.m4 (gl_QUOTEARG):
41707         * m4/readtokens.m4 (gl_READTOKENS):
41708         * m4/readutmp.m4 (gl_READUTMP):
41709         * m4/regex.m4 (gl_REGEX):
41710         * m4/safe-read.m4 (gl_SAFE_READ):
41711         * m4/safe-write.m4 (gl_SAFE_WRITE):
41712         * m4/same.m4 (gl_SAME):
41713         * m4/save-cwd.m4 (gl_SAVE_CWD):
41714         * m4/savedir.m4 (gl_SAVEDIR):
41715         * m4/settime.m4 (gl_SETTIME):
41716         * m4/sha1.m4 (gl_SHA1):
41717         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
41718         * m4/stat-macros.m4 (gl_STAT_MACROS):
41719         * m4/stat-time.m4 (gl_STAT_TIME):
41720         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
41721         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
41722         * m4/strdup.m4 (gl_FUNC_STRDUP):
41723         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
41724         * m4/strndup.m4 (gl_FUNC_STRNDUP):
41725         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
41726         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
41727         * m4/time_r.m4 (gl_TIME_R):
41728         * m4/timespec.m4 (gl_TIMESPEC):
41729         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
41730         * m4/unlinkdir.m4 (gl_UNLINKDIR):
41731         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
41732         * m4/userspec.m4 (gl_USERSPEC):
41733         * m4/utimecmp.m4 (gl_UTIMECMP):
41734         * m4/utimens.m4 (gl_UTIMENS):
41735         * m4/xalloc.m4 (gl_XALLOC):
41736         * m4/xgetcwd.m4 (gl_XGETCWD):
41737         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
41738         * m4/xreadlink.m4 (gl_XREADLINK):
41739         * m4/xstrtod.m4 (gl_XSTRTOD):
41740         * m4/yesno.m4 (gl_YESNO):
41741         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
41742         to get the necessary .h files and whatnot.
41743
41744 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
41745             Bruno Haible  <bruno@clisp.org>
41746
41747         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
41748         /bin/sh understanding of '!' conditional negation.
41749
41750 2006-08-21  Jim Meyering  <jim@meyering.net>
41751
41752         * modules/openat (Depends-on): Really alphabetize.
41753
41754         * modules/acl (Depends-on): Add error and quote.
41755
41756         * check-module (find_included_lib_files): Add at-func.c to the
41757         ok-to-include-more-than-once white list.
41758
41759         * modules/openat (Depends-on): Add lstat.  Alphabetize.
41760
41761 2006-08-21  Bruno Haible  <bruno@clisp.org>
41762
41763         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41764         Emit a pkgdata_DATA variable only if some snippets add contents to it.
41765         Reported by Martin Lambers <marlam@marlam.de>.
41766
41767 2006-08-21  Bruno Haible  <bruno@clisp.org>
41768
41769         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
41770         specify an installation location, don't emit a noinst_LIBRARIES or
41771         noinst_LTLIBRARIES assignment.
41772
41773 2006-08-21  Bruno Haible  <bruno@clisp.org>
41774
41775         BeOS portability.
41776         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
41777         BeOS has mbrtowc() but no <wctype.h>.
41778
41779 2006-08-21  Bruno Haible  <bruno@clisp.org>
41780
41781         BeOS portability.
41782         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
41783         exist.
41784
41785 2006-08-21  Bruno Haible  <bruno@clisp.org>
41786
41787         BeOS portability.
41788         * lib/mbchar.h: Include <wctype.h> only if it exists.
41789
41790 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41791
41792         Remove files that are no longer needed by their respective modules.
41793         * m4/obstack.m4: Remove.
41794         * m4/strerror_r.m4: Remove.
41795         * m4/uint32_t.m4: Remove.
41796         * m4/uintptr_t.m4: Remove.
41797         * m4/ullong_max.m4: Remove.
41798         * m4/xstrtoimax.m4: Remove.
41799         * m4/xstrtoumax.m4: Remove.
41800
41801         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
41802         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
41803         dependencies now capture this.
41804
41805         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
41806         Do not use AC_LIBSOURCES, since gnulib modules now do this.
41807         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
41808         * m4/human.m4 (gl_HUMAN): Likewise.
41809         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
41810         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
41811
41812         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
41813
41814         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
41815         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
41816         stdint.
41817         * m4/human.m4 (gl_HUMAN): Likewise.
41818         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
41819         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
41820         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
41821         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
41822         * m4/xstrtol (gl_XSTRTOL): Likewise.
41823
41824         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
41825         AC_TYPE_LONG_LONG_INT.
41826         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
41827         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
41828         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
41829         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
41830
41831         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
41832         on stdbool.
41833
41834         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
41835         (gl_PREREQ_XSTRTOUL): Remove.
41836
41837         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
41838
41839         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
41840         mode.
41841
41842 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41843
41844         Add and change modules to make it easier for coreutils to use
41845         gnulib-tool.
41846         * modules/backupfile (Files): Remove m4/d-ino.m4.
41847         (Depends-on): Add d-ino.
41848         * modules/cycle-check (Depends-on): Add stdint.
41849         (lib_SOURCES): Add cycle-check.h.
41850         * modules/d-ino: New module.
41851         * modules/d-type: New module.
41852         * modules/error (Files): Remove m4/strerror_r.m4.
41853         * modules/filemode (Files): Add m4/st_dm_mode.m4.
41854         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41855         m4/inttypes_h.m4, m4/uintmax_t.m4.
41856         (Depends-on): Add stdint.
41857         (lib_SOURCES): Add fsusage.h.
41858         * modules/getcwd (Files): Remove d-ino.m4.
41859         (Depends-on): Add d-ino.
41860         * modules/getndelim2 (Depends-on): Add stdint.
41861         * modules/glob (Files): Remove m4/d-type.m4.
41862         (Depends-on): Add d-type.
41863         * modules/host-os: New module.
41864         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
41865         m4/inttypes_h.m4, m4/uintmax_t.m4.
41866         * Depends-on: Add stdint.
41867         (lib_SOURCES): Add human.h.
41868         * modules/inttostr (Files): Remove m4/intmax_t.m4,
41869         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
41870         m4/uintmax_t.m4, m4/ulonglong.m4.
41871         (Depends-on): Add stdint.
41872         (EXTRA_DIST): Add inttostr.h.
41873         * modules/lchmod: New module.
41874         * modules/link-follow: New module.
41875         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
41876         (Depends-on): Add lchmod.
41877         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
41878         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
41879         (Depends-on): Add stdint.
41880         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
41881         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
41882         (Depends-on): Add stdint.
41883         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
41884         * modules/perl: New module.
41885         * modules/regex (Depends-on): Add stdint.
41886         * modules/rmdir-errno: New module.
41887         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
41888         m4/intmax_t.m4.
41889         (Depends-on): Add stdint.
41890         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
41891         m4/uintmax_t.m4.
41892         (Depends-on): Add stdint.
41893         * modules/unlink-busy: New module.
41894         * modules/utimecmp (Depends-on): Add stdint.
41895         * modules/uptime: New module.
41896         * modules/winsz-ioctl: New module.
41897         * modules/winsz-termios: New module.
41898         * modules/xnanosleep (Depends-on): Add nanosleep.
41899         * modules/ullong_max: Remove.
41900         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
41901         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
41902         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
41903         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
41904         (Depends-on): Add inttypes.
41905         (lib_SOURCES): Add xstrtol.h.
41906         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
41907         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
41908         * MODULES.html.sh: Move 'assert' into the assert section.
41909         Move 'dummy' into the linking section.
41910         Remove ullong_max.
41911         Add section for compatibility checks for POSIX:2001 functions,
41912         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
41913         winsz-ioctl, and winsz-termios into it.
41914         Add lchmod.
41915         Add top-level Misc section and put host-os, perl, and uptime
41916         into it.
41917
41918 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41919
41920         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
41921         now assume the stdint module.  Do not include inttypes.h.
41922         * lib/fsusage.h: Likewise.
41923         * lib/getndelim2.c: Likewise.
41924         * lib/human.h: Likewise.
41925         * lib/inttostr.h: Likewise.
41926         * lib/obstack.c: Likewise.
41927         * lib/regex_internal.h: Likewise.
41928         * lib/tempname.c: Likewise.
41929         * lib/utimecmp.c: Likewise.
41930         * lib/xstrtol.h: Likewise.
41931
41932         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
41933
41934         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
41935         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
41936         * lib/xtime.h: Likewise.
41937
41938 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41939
41940         * modules/openat (Files): Add lib/fchmodat.c.
41941         Fixes problem reported by Jay Youngman.
41942
41943 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41944
41945         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
41946         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
41947
41948 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
41949             Bruno Haible  <bruno@clisp.org>
41950
41951         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
41952         and is a script that invokes bison. Tighten the code. Add comments.
41953
41954 2006-08-18  Jim Meyering  <jim@meyering.net>
41955
41956         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
41957         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
41958         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
41959         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
41960
41961 2006-08-18  Bruno Haible  <bruno@clisp.org>
41962
41963         * modules/bison-i18n: New file.
41964         * MODULES.html.sh (Internationalization functions): Add it.
41965
41966 2006-08-18  Bruno Haible  <bruno@clisp.org>
41967
41968         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
41969         sys/statvfs.h. When getmntinfo was found, check its declaration and
41970         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
41971
41972 2006-08-18  Bruno Haible  <bruno@clisp.org>
41973
41974         * m4/bison-i18n.m4: New file, from bison.
41975
41976 2006-08-18  Bruno Haible  <bruno@clisp.org>
41977
41978         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
41979         (ME_DUMMY): Treat "kernfs" as a dummy.
41980         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
41981
41982 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
41983
41984         Update from coreutils.
41985
41986         2006-08-15  Jim Meyering  <jim@meyering.net>
41987
41988         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
41989
41990         2006-01-17  Jim Meyering  <jim@meyering.net>
41991
41992         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
41993
41994         2006-01-11  Jim Meyering  <jim@meyering.net>
41995
41996         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
41997         Check for the lchmod function.
41998
41999 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42000
42001         Update from coreutils.
42002
42003         * lib/__fpending.h: Add copyright notice.
42004         * lib/fprintftime.h: Likewise.
42005         * lib/savedir.c: Use (C) in copyright notice.
42006         * lib/savedir.h: Likewise.
42007
42008         2006-08-15  Jim Meyering  <jim@meyering.net>
42009
42010         * lib/at-func.c: New file, with the logic of all emulated at-functions.
42011         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
42012         in support of the EXPECTED_ERRNO macro.
42013         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
42014         definitions.  Instead, define the appropriate symbols and include
42015         "at-func.c".
42016         * lib/mkdirat.c (mkdirat): Likewise.
42017         * lib/fchmodat.c (fchmodat): Likewise.
42018         (ENOSYS): Remove definition.
42019         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
42020         it.  Don't include "unistd--.h" -- it wasn't ever used.
42021
42022         2006-01-17  Jim Meyering  <jim@meyering.net>
42023
42024         Rewrite fts.c not to change the current working directory,
42025         by using openat, fstatat, fdopendir, etc..
42026
42027         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
42028         (HAVE_OPENAT_SUPPORT): Define.
42029         [_LIBC] (fchdir): Don't undef or define; no longer used.
42030         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
42031         Now, this `function' always succeeds, and consumes its file descriptor
42032         parameter -- so callers must not close such FDs.  Update callers.
42033         (diropen_fd, opendirat, cwd_advance_fd): New functions.
42034         (diropen): Add parameter, SP.  Adjust all callers.
42035         Implement using diropen_fd, rather than open.
42036         (fts_open): Initialize new member, fts_cwd_fd.
42037         Remove fts_rft-setting code.
42038         (fts_close): Close fts_cwd_fd, if necessary.
42039         (__opendir2): Define in terms of opendir or opendirat,
42040         depending on whether the FST_NOCHDIR flag is set.
42041         (fts_build): Since fts_safe_changedir consumes its FD, and since
42042         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
42043         and close the dup'd file descriptor upon failure.
42044         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
42045         (fts_safe_changedir): Tweak semantics to reflect that this function
42046         now calls cwd_advance_fd and hence consumes its FD argument.
42047         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
42048         [struct FTS] (fts_rft): Remove now-unused member.
42049         [struct FTS] (fts_cycle.state): Improve comment.
42050
42051         * lib/openat.c (openat_needs_fchdir): New function.
42052         * lib/openat.h (openat_needs_fchdir): Declare it.
42053
42054 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
42055
42056         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
42057         Problem and fix reported by Pádraig Brady in
42058         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
42059
42060 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42061
42062         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
42063
42064 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42065
42066         * lib/memcoll.c (memcoll): Optimize for the common case where the
42067         arguments are bytewise equal.
42068
42069 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42070
42071         * doc/regexprops-generic.texi: Add a copyright notice.
42072
42073 2006-08-15  Bruno Haible  <bruno@clisp.org>
42074
42075         * modules/tmpdir (License): Change to LGPL.
42076
42077 2006-08-15  Bruno Haible  <bruno@clisp.org>
42078
42079         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
42080         module.
42081
42082 2006-08-14  Simon Josefsson  <jas@extundo.com>
42083
42084         * config/srclist.txt: Add gnupload.
42085
42086 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42087
42088         Change copyright notice from LGPL 2 to GPL 2, since that's the
42089         standard form used in the gnulib repository.
42090         * tests/test-lock.c: Likewise.
42091         * tests/test-stdint.c: Likewise.
42092         * tests/test-tls.c: Likewise.
42093
42094         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
42095         prelude-manager.  User shorter URLs for GNU projects, without '?'.
42096         Add copyright notice.
42097
42098         * check-module: Add copyright notice.  Output a copyright
42099         notice if "--version" is specified.
42100         * modules/COPYING: New file.
42101         * tests/test-getaddrinfo.c: Add copyright notice.
42102         * tests/test-verify.c: Likewise.
42103
42104 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42105
42106         Change copyright notice from LGPL 2 to GPL 2, since that's the
42107         standard form used in the gnulib repository.
42108         * lib/lock.c: LGPL -> GPL.
42109         * lib/lock.h: Likewise.
42110         * lib/strnlen1.c: Likewise.
42111         * lib/strnlen1.h: Likewise.
42112         * lib/tls.c: Likewise.
42113         * lib/tls.h: Likewise.
42114         * lib/tmpdir.c: Likewise.
42115
42116         * lib/TODO: Remove; this belongs only in coreutils.
42117
42118 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42119
42120         Add copyright notices to long-enough files that lack them, since
42121         otherwise the files aren't clearly free.  Use the same notice that
42122         getdate.texi already uses.
42123         * doc/alloca-opt.texi: Add copyright notice.
42124         * doc/alloca.texi: Likewise.
42125         * doc/ctime.texi: Likewise.
42126         * doc/functions.texi: Likewise.
42127         * doc/gcd.texi: Likewise.
42128         * doc/gnulib-tool.texi: Likewise.
42129         * doc/inet_ntoa.texi: Likewise.
42130         * doc/visibility.texi: Likewise.
42131
42132         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
42133         * doc/quote.texi: Add copyright notice.
42134
42135         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
42136         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
42137         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
42138         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
42139         is now obsolete, and give a pointer to the Sun list.
42140         Add copyright notice.
42141
42142 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42143
42144         * config/srclistvars.sh: Add copyright notice.
42145
42146 2006-08-14  Eric Blake  <ebb9@byu.net>
42147
42148         Import the following change from libc:
42149
42150         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
42151
42152         Upstream bug 2997.
42153         * lib/misc/error.c: Add space between program name and message if file
42154         name is missing.
42155
42156 2006-08-12  Karl Berry  <karl@gnu.org>
42157
42158         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
42159         remove, these originate in gnulib now.
42160
42161 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42162
42163         * doc/Makefile (standards.info standards.html standards.dvi):
42164         Also depend on make-stds.texi.
42165
42166 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42167
42168         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
42169         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
42170
42171         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
42172         in wchar_t.  Problem reported by Eric Blake.
42173
42174         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
42175         LEN is smaller than SIZE.  Suggested by Bruno Haible.
42176         Also, help the compiler to keep LEN in a register.
42177
42178 2006-08-11  Eric Blake  <ebb9@byu.net>
42179
42180         * users.txt: Sort.  Add tar.
42181
42182 2006-08-11  Bruno Haible  <bruno@clisp.org>
42183
42184         * users.txt: New file.
42185
42186 2006-08-11  Bruno Haible  <bruno@clisp.org>
42187
42188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
42189         before <wchar.h>. Needed for OSF/1 and BSD/OS.
42190
42191 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42192
42193         * modules/snprintf (Depends-on): Remove minmax.
42194         (Maintainer): Add self and Bruno.
42195
42196 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42197
42198         * lib/.cppi-disable: Add snprintf.h, socket_.h.
42199         * lib/snprintf.c: Include <errno.h> and <limits.h>.
42200         (EOVERFLOW): Define if the system does not.
42201         Do not include "minmax.h"; it wasn't used.
42202         (snprintf): Don't assume size_t promotes to an unsigned type.
42203         Fix bug when generated string was too long for the buffer: the
42204         buffer's contents are supposed to be the initial prefix of the
42205         output.  Don't assume vasnprintf returns EOVERFLOW if the size
42206         exceeds INT_MAX; do the check ourselves.
42207
42208         Import the following changes from libc:
42209
42210         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
42211
42212         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
42213         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
42214         set wc to the byte which couldn't be converted.
42215         (re_string_reconstruct): Don't clear valid_raw_len before calling
42216         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
42217         tip_context using re_string_context_at.
42218
42219         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
42220
42221         * lib/posix/regex.h: g++ still cannot handled [restrict].
42222
42223         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
42224
42225         * lib/posix/regex.h: Remove special handling for VMS.
42226
42227 2006-08-10  Jim Meyering  <jim@meyering.net>
42228
42229         * modules/same-inode: New module.
42230         * modules/dev-ino: New module.
42231         * modules/cycle-check: Depend on these modules, rather than simply
42232         including their .h files.
42233         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
42234         required via m4/cycle-check.m4.
42235         * modules/same: Depend on new same-inode module, rather than
42236         including same-inode.h.
42237         * modules/chdir-safer: New file.
42238
42239         * modules/chown (Depends-on): Add stat-macros.
42240
42241 2006-08-10  Jim Meyering  <jim@meyering.net>
42242
42243         * m4/cycle-check.m4: New file.
42244         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
42245         * m4/dev-ino.m4, m4/same-inode.m4: New files.
42246
42247 2006-08-10  Eric Blake  <ebb9@byu.net>
42248
42249         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
42250         in from original proposal.
42251
42252 2006-08-10  Eric Blake  <ebb9@byu.net>
42253         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42254
42255         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
42256         namespace.
42257
42258 2006-08-10  Bruno Haible  <bruno@clisp.org>
42259
42260         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
42261         as well.
42262
42263 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42264
42265         Sync from coreutils.
42266
42267         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
42268
42269         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
42270         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
42271
42272 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42273
42274         * modules/restrict: Remove; no longer needed now that we assume
42275         Autoconf 2.59 or later.
42276         * MODULES.html.sh: Remove 'restrict'.
42277         * modules/argp (Depends-on): Remove 'restrict'.
42278         * modules/base64 (Depends-on): Likewise.
42279         * modules/gc (Depends-on): Likewise.
42280         * modules/getaddrinfo (Depends-on): Likewise.
42281         * modules/glob (Depends-on): Likewise.
42282         * modules/inet_ntop (Depends-on): Likewise.
42283         * modules/inet_pton (Depends-on): Likewise.
42284         * modules/memxor (Depends-on): Likewise.
42285         * modules/regex (Depends-on): Likewise.
42286         * modules/strtok_r (Depends-on): Likewise.
42287         * modules/time_r (Depends-on): Likewise.
42288
42289 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42290
42291         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
42292         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
42293         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42294         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
42295         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
42296         * m4/memxor.m4 (gl_MEMXOR): Likewise.
42297         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
42298         gl_C_RESTRICT replaced by AC_C_RESTRICT.
42299
42300         Merge from coreutils.
42301         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
42302         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
42303         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42304         * m4/time_r.m4 (gl_TIME_R): Likewise.
42305
42306 2006-08-09  Karl Berry  <karl@gnu.org>
42307
42308         * config/srclist.txt: no more gettext-tools, per Bruno.
42309
42310 2006-08-08  Eric Blake  <ebb9@byu.net>
42311
42312         * modules/verror: New module.
42313         * MODULES.html.sh: Document it.
42314
42315 2006-08-08  Eric Blake  <ebb9@byu.net>
42316
42317         * lib/verror.h, lib/verror.c: New files.
42318
42319 2006-08-08  Eric Blake  <ebb9@byu.net>
42320
42321         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
42322         verror_at_line output complies with GNU Coding Standards even when
42323         file is NULL.
42324
42325 2006-08-07  Bruno Haible  <bruno@clisp.org>
42326
42327         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
42328         versions of AIX.
42329         Reported by Ralf Wildenhues.
42330
42331 2006-08-07  Bruno Haible  <bruno@clisp.org>
42332
42333         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
42334         in an AC_DEFUN. Needed so that the autoconf snippets can use
42335         AC_REQUIRE.
42336
42337 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42338
42339         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42340         Initialize pkgdata_DATA.
42341         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
42342         overriding it.
42343
42344 2006-08-06  Eric Blake  <ebb9@byu.net>
42345
42346         * lib/error.h: Fold in some upstream changes from glibc.
42347         * lib/error.c: Likewise.
42348
42349 2006-08-04  Bruno Haible  <bruno@clisp.org>
42350
42351         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42352         Make the mostlyclean-local rule depend on mostlyclean-generic.
42353         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
42354
42355 2006-07-31  Bruno Haible  <bruno@clisp.org>
42356
42357         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
42358         <stdlib.h>, <string.h>.
42359
42360 2006-07-30  Bruno Haible  <bruno@clisp.org>
42361
42362         * modules/readlink (License): Change to LGPL.
42363
42364 2006-07-30  Bruno Haible  <bruno@clisp.org>
42365
42366         * modules/javaversion (Makefile.am): Distribute javaversion.java and
42367         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
42368         set PKGDATADIR to point to it.
42369
42370 2006-07-30  Bruno Haible  <bruno@clisp.org>
42371
42372         * modules/csharpexec (configure.ac): Comment out macro invocation.
42373         * modules/javaexec (configure.ac): Likewise.
42374         * modules/javacomp-script (configure.ac): Likewise.
42375
42376         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
42377
42378 2006-07-30  Bruno Haible  <bruno@clisp.org>
42379
42380         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
42381         linked-list.
42382
42383 2006-07-30  Bruno Haible  <bruno@clisp.org>
42384
42385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
42386
42387 2006-07-30  Bruno Haible  <bruno@clisp.org>
42388
42389         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42390         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
42391         get removed.
42392
42393 2006-07-29  Bruno Haible  <bruno@clisp.org>
42394
42395         Make it possible for gnulib-tool to work with locally modified or
42396         augmented gnulib repositories.
42397         * gnulib-tool (func_usage): Document --local-dir option.
42398         (local_gnulib_dir): New variable.
42399         Handle --local-dir option.
42400         (func_lookup_file): New function.
42401         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
42402         (func_get_description, func_get_filelist, func_get_description,
42403         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
42404         func_get_automake_snippet, func_get_include_directive,
42405         func_get_license, func_get_maintainer): Use func_lookup_file.
42406         (func_import, func_create_testdir): Use func_lookup_file.
42407
42408 2006-07-29  Bruno Haible  <bruno@clisp.org>
42409
42410         * modules/setenv (Depends-on): Add unistd.
42411
42412 2006-07-29  Bruno Haible  <bruno@clisp.org>
42413
42414         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
42415
42416 2006-07-29  Bruno Haible  <bruno@clisp.org>
42417
42418         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
42419
42420 2006-07-29  Bruno Haible  <bruno@clisp.org>
42421
42422         * gnulib-tool (import, update): If there is no Makefile.am, look at
42423         aclocal.m4, instead of bailing out.
42424
42425 2006-07-29  Bruno Haible  <bruno@clisp.org>
42426
42427         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
42428         Categorize the options by when they are useful.
42429
42430 2006-07-29  Bruno Haible  <bruno@clisp.org>
42431
42432         * gnulib-tool (func_usage): Document option --no-libtool.
42433         Handle option --no-libtool.
42434         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
42435         for changed semantics of $libtool variable.
42436         (func_import): Likewise. If libtool is not used, show this through
42437         an option --no-libtool.
42438         (func_create_testdir): Update.
42439
42440 2006-07-29  Bruno Haible  <bruno@clisp.org>
42441
42442         * gnulib-tool (func_import): Extend error message about missing
42443         --doc-base.
42444
42445 2006-07-29  Bruno Haible  <bruno@clisp.org>
42446
42447         * gnulib-tool (func_import): Don't create the $docbase directory if
42448         there is no file to store there.
42449
42450 2006-07-29  Bruno Haible  <bruno@clisp.org>
42451
42452         * gnulib-tool (autoconf_minversion): If a --dir option is given and
42453         relevant, look for configure.ac there, not in the current directory.
42454         Also use a simple search for AC_PREREQ, not "autoconf --trace".
42455
42456 2006-07-29  Bruno Haible  <bruno@clisp.org>
42457
42458         * gnulib-tool (SORT): New variable.
42459         (func_usage): Undocument --assume-autoconf option.
42460         Remove --assume-autoconf option handling.
42461         (autoconf_minversion): Determine from the contents of configure.ac.
42462         (func_import): Remove autoconf_minversion handling.
42463         Suggested by Eric Blake.
42464
42465 2006-07-29  Bruno Haible  <bruno@clisp.org>
42466
42467         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
42468
42469 2006-07-29  Bruno Haible  <bruno@clisp.org>
42470
42471         * config/srclist.txt (*setenv.[ch]): Remove rules.
42472
42473 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42474
42475         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
42476
42477 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42478
42479         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
42480         arpa/inet.h.
42481
42482 2006-07-28  Simon Josefsson  <jas@extundo.com>
42483
42484         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
42485         * modules/inet_pton (Depends-on): Likewise.
42486
42487 2006-07-28  Simon Josefsson  <jas@extundo.com>
42488
42489         * m4/netinet_in_h.m4: New file.
42490
42491 2006-07-28  Simon Josefsson  <jas@extundo.com>
42492
42493         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
42494         #include's.
42495
42496 2006-07-28  Simon Josefsson  <jas@extundo.com>
42497
42498         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
42499         #include's.
42500
42501 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
42502
42503         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
42504         setgid on directories only if they set these bits.
42505         * lib/modechange.h: Remove obsolete comment about masks.
42506
42507 2006-07-28  Eric Blake  <ebb9@byu.net>
42508
42509         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
42510         macro expansion.
42511
42512 2006-07-28  Bruno Haible  <bruno@clisp.org>
42513
42514         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
42515
42516 2006-07-28  Bruno Haible  <bruno@clisp.org>
42517
42518         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
42519
42520 2006-07-28  Bruno Haible  <bruno@clisp.org>
42521
42522         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42523         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42524         Define fallbacks.
42525         Avoids link error on FreeBSD 4.x.
42526         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42527
42528         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
42529         encoding.
42530         * lib/mbswidth.c (iswcntrl): Likewise.
42531
42532 2006-07-27  Bruno Haible  <bruno@clisp.org>
42533
42534         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
42535         test.
42536
42537 2006-07-27  Bruno Haible  <bruno@clisp.org>
42538
42539         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
42540         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
42541         defined.
42542
42543 2006-07-26  Eric Blake  <ebb9@byu.net>
42544
42545         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
42546
42547 2006-07-26  Eric Blake  <ebb9@byu.net>
42548
42549         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
42550         like mingw that lack mkstemp.
42551         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
42552         avoid compilation warning on mingw.
42553
42554 2006-07-26  Bruno Haible  <bruno@clisp.org>
42555
42556         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
42557         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
42558         INT_FAST*_MIN, INTPTR_MIN.
42559
42560 2006-07-25  Bruno Haible  <bruno@clisp.org>
42561
42562         * modules/version-etc (Depends-on): Add stdarg.
42563
42564 2006-07-25  Bruno Haible  <bruno@clisp.org>
42565
42566         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
42567         complex commands.
42568
42569 2006-07-25  Bruno Haible  <bruno@clisp.org>
42570
42571         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
42572         defined in <stdarg.h> or config.h.
42573
42574 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
42575
42576         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
42577         (gl_STDIO_SAFER): Remove.
42578
42579 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
42580
42581         * MODULES.html.sh (File stream based Input/Output):
42582         Add fopen-safer, tmpfile-safer; remove stdio-safer.
42583         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
42584         * modules/fopen-safer, modules/tmpfile-safer: New files.
42585         * modules/stdio-safer: Remove.
42586
42587 2006-07-24  Bruno Haible  <bruno@clisp.org>
42588
42589         * modules/tmpdir: New file.
42590         * MODULES.html.sh (File system functions): Add it.
42591
42592 2006-07-24  Bruno Haible  <bruno@clisp.org>
42593
42594         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
42595         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
42596
42597 2006-07-24  Bruno Haible  <bruno@clisp.org>
42598
42599         * modules/clean-temp: New file.
42600
42601 2006-07-24  Bruno Haible  <bruno@clisp.org>
42602
42603         * m4/tmpdir.m4: New file, from GNU gettext.
42604
42605 2006-07-24  Bruno Haible  <bruno@clisp.org>
42606
42607         * lib/tmpdir.h: New file, from GNU gettext.
42608         * lib/tmpdir.c: New file, from GNU gettext.
42609
42610 2006-07-24  Bruno Haible  <bruno@clisp.org>
42611
42612         * lib/clean-temp.h: New file, from GNU gettext.
42613         * lib/clean-temp.c: New file, from GNU gettext.
42614
42615 2006-07-23  Eric Blake  <ebb9@byu.net>
42616
42617         * modules/stdio-safer (Files): Add tmpfile-safer.c.
42618         (Depends-on): Add binary-io.
42619
42620 2006-07-23  Eric Blake  <ebb9@byu.net>
42621
42622         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
42623
42624 2006-07-23  Eric Blake  <ebb9@byu.net>
42625
42626         * lib/tmpfile-safer.c: New file.
42627         * lib/stdio-safer.h (fopen_safer): Add prototype.
42628         * lib/stdio--.h (tmpfile): Make safer.
42629
42630 2006-07-23  Bruno Haible  <bruno@clisp.org>
42631
42632         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
42633         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
42634         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
42635         gl_linked_remove_at): Use it.
42636
42637 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42638         and Simon Josefsson <jas@extundo.com>
42639
42640         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
42641
42642         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
42643
42644 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42645
42646         * modules/close-stream: New file.
42647         * modules/closeout (Description): Make it clear that it exits
42648         with a diagnostic on error.
42649         (Depends-on): Add close-stream.  Remove fpending, stdbool.
42650         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
42651
42652 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42653
42654         * m4/close-stream.m4: New file.
42655
42656 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42657
42658         * lib/close-stream.c, lib/close-stream.h: New files.
42659
42660 2006-07-22  Bruno Haible  <bruno@clisp.org>
42661
42662         Merge from GNU gettext 0.15.
42663
42664         2006-05-01  Bruno Haible  <bruno@clisp.org>
42665
42666                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
42667
42668         2006-07-22  Bruno Haible  <bruno@clisp.org>
42669
42670                 * modules/javaversion: New file.
42671                 * MODULES.html.sh (Java): Add javaversion.
42672
42673         2006-03-12  Bruno Haible  <bruno@clisp.org>
42674
42675                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
42676
42677         2005-12-04  Bruno Haible  <bruno@clisp.org>
42678
42679                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
42680                 (untested).
42681
42682         2006-06-21  Bruno Haible  <bruno@clisp.org>
42683
42684                 Avoid warnings from recent versions of mcs.
42685                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
42686                 -o, -L, -r any more. Use options documented since mcs-1.0
42687                 instead. Similarly for -g.
42688
42689         2005-12-04  Bruno Haible  <bruno@clisp.org>
42690
42691                 * build-aux/csharpcomp.sh.in: Suffix for resources is
42692                 .resources, not .resource.
42693
42694         2005-07-09  Bruno Haible  <bruno@clisp.org>
42695
42696                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
42697                 add a .dll suffix.
42698                 Reported by Mark Junker <mjscod@gmx.de>.
42699
42700         2006-07-22  Bruno Haible  <bruno@clisp.org>
42701
42702                 * modules/gettext: Upgrade to gettext-0.15.
42703                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
42704                 m4/visibility.m4.
42705                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
42706
42707 2006-07-22  Bruno Haible  <bruno@clisp.org>
42708
42709         Merge from GNU gettext 0.15.
42710
42711         2006-03-25  Bruno Haible  <bruno@clisp.org>
42712
42713                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
42714
42715         2006-07-21  Bruno Haible  <bruno@clisp.org>
42716
42717                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
42718                 "1.1".
42719
42720         2006-05-09  Bruno Haible  <bruno@clisp.org>
42721
42722                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
42723                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
42724                 for the conftestver execution.
42725
42726         2006-05-01  Bruno Haible  <bruno@clisp.org>
42727
42728                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
42729                 optional target-version argument. Verify that the compiler
42730                 groks source of the specified source-version, or add -source
42731                 option as necessary. Verify that the compiler produces
42732                 bytecode in the specified target-version, or add -target and
42733                 -source options as necessary. Make the result of the test
42734                 available as variable CONF_JAVAC. Also log error output in
42735                 config.log.
42736
42737         2006-03-11  Bruno Haible  <bruno@clisp.org>
42738
42739                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
42740
42741         2006-05-09  Bruno Haible  <bruno@clisp.org>
42742
42743                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
42744                 CLASSPATH_SEPARATOR to a semicolon.
42745
42746         2006-03-12  Bruno Haible  <bruno@clisp.org>
42747
42748                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
42749                 available as variable CONF_JAVA, for subsequent autoconf
42750                 tests. Also log error output in config.log.
42751
42752         2006-07-19  Bruno Haible  <bruno@clisp.org>
42753
42754                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
42755                 that getline works on glibc2 systems. Needed to avoid trouble
42756                 in relocatable.c.
42757                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
42758
42759         2005-12-04  Bruno Haible  <bruno@clisp.org>
42760
42761                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
42762                 launcher (untested).
42763
42764         2005-12-04  Bruno Haible  <bruno@clisp.org>
42765
42766                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
42767
42768         2006-07-22  Bruno Haible  <bruno@clisp.org>
42769
42770                 * gettext.m4: Update from GNU gettext-0.15.
42771                 * nls.m4: Likewise.
42772                 * po.m4: Likewise.
42773                 * inttypes-pri.m4: Likewise.
42774                 * inttypes-h.m4: Renamed from inttypes.m4.
42775                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
42776
42777 2006-07-22  Bruno Haible  <bruno@clisp.org>
42778
42779         Merge from GNU gettext 0.15.
42780
42781         2005-07-05  Bruno Haible  <bruno@clisp.org>
42782
42783                 * printf-args.c (printf_fetchargs): Work around broken
42784                 definition of wint_t on mingw.
42785
42786         2005-02-12  Bruno Haible  <bruno@clisp.org>
42787
42788                 * xallocsa.h: Add extern "C" for C++.
42789
42790         2006-05-17  Bruno Haible  <bruno@clisp.org>
42791
42792                 Cygwin portability.
42793                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
42794
42795         2006-04-30  Bruno Haible  <bruno@clisp.org>
42796
42797                 * progreloc.c: Include <mach-o/dyld.h> if available.
42798                 (find_executable): Use _NSGetExecutablePath when possible.
42799
42800         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42801
42802                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
42803                 function.
42804
42805         2005-12-29  Bruno Haible  <bruno@clisp.org>
42806
42807                 * progreloc.c (set_program_name_and_installdir): Fix
42808                 compilation error.
42809
42810         2005-12-04  Bruno Haible  <bruno@clisp.org>
42811
42812                 Cygwin portability.
42813                 * progreloc.c: Include <windows.h> also on Cygwin.
42814                 (find_executable): Add support for Cygwin.
42815                 (set_program_name_and_installdir): Handle also platforms with
42816                 nonempty EXEEXT.
42817
42818         2006-07-11  Bruno Haible  <bruno@clisp.org>
42819
42820                 * javacomp.c: Fix a comment.
42821                 Reported by Jim Meyering.
42822
42823         2006-04-30  Bruno Haible  <bruno@clisp.org>
42824
42825                 * javacomp.h (compile_java_class): Add source_version,
42826                 target_version arguments.
42827                 * javacomp.c: Rewritten to choose only a compiler that
42828                 respects the specified source_version and target_version.
42829
42830         2006-06-27  Bruno Haible  <bruno@clisp.org>
42831
42832                 Assume correct S_ISDIR macro.
42833                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
42834
42835         2006-07-22  Bruno Haible  <bruno@clisp.org>
42836
42837                 * javaversion.h: New file, from GNU gettext.
42838                 * javaversion.c: New file, from GNU gettext.
42839                 * javaversion.java: New file, from GNU gettext.
42840                 * javaversion.class: New file, from GNU gettext.
42841
42842         2006-05-17  Bruno Haible  <bruno@clisp.org>
42843
42844                 Cygwin portability.
42845                 * javaexec.c (execute_java_class): Test for jview program
42846                 also on Cygwin.
42847
42848         2006-04-09  Bruno Haible  <bruno@clisp.org>
42849
42850                 * fatal-signal.c: Don't include string.h.
42851                 (at_fatal_signal): Use a copying loop instead of memcpy.
42852
42853         2005-12-04  Bruno Haible  <bruno@clisp.org>
42854
42855                 * csharpexec.c: Add support for 'clix' launcher (untested).
42856                 (execute_csharp_using_sscli): New function.
42857                 (execute_csharp_program): Call it.
42858
42859         2006-06-21  Bruno Haible  <bruno@clisp.org>
42860
42861                 Avoid warnings from recent versions of mcs.
42862                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
42863                 -o, -L, -r any more. Use options documented since mcs-1.0
42864                 instead. Similarly for -g.
42865
42866         2005-07-09  Bruno Haible  <bruno@clisp.org>
42867
42868                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
42869                 add a .dll suffix.
42870                 Reported by Mark Junker <mjscod@gmx.de>.
42871
42872         2006-06-17  Bruno Haible  <bruno@clisp.org>
42873
42874                 * config.charset: Update for NetBSD 3.0.
42875
42876         2006-05-17  Bruno Haible  <bruno@clisp.org>
42877
42878                 Cygwin portability.
42879                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
42880
42881         2006-05-16  Bruno Haible  <bruno@clisp.org>
42882
42883                 * localcharset.c [CYGWIN]: Include <windows.h>.
42884                 (get_charset_aliases): For Cygwin, return the same CPxxx
42885                 aliases list as under WIN32.
42886                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
42887                 the environment variables. Fall back to GetACP().
42888
42889         2006-04-05  Bruno Haible  <bruno@clisp.org>
42890
42891                 * config.charset: Update Juan Manuel Guerrero's address.
42892
42893         2005-02-12  Bruno Haible  <bruno@clisp.org>
42894
42895                 * allocsa.h: Add extern "C" for C++.
42896
42897         2005-02-10  Bruno Haible  <bruno@clisp.org>
42898
42899                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
42900                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
42901
42902         2006-07-22  Bruno Haible  <bruno@clisp.org>
42903
42904                 * gettext.h: Update to GNU gettext-0.15.
42905
42906 2006-07-22  Bruno Haible  <bruno@clisp.org>
42907
42908         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
42909         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
42910         lib-prefix.m4, longdouble.m4, ssize_t.m4.
42911
42912 2006-07-21  Eric Blake  <ebb9@byu.net>
42913
42914         * modules/stdlib-safer: New file.
42915         * MODULES.html.sh (File stream based Input/Output): Add
42916         stdlib-safer.
42917
42918 2006-07-21  Eric Blake  <ebb9@byu.net>
42919
42920         * lib/stdlib-safer.h: New file from coreutils, required by
42921         stdlib--.h.
42922
42923 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
42924
42925         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
42926
42927 2006-07-20  Bruno Haible  <bruno@clisp.org>
42928
42929         * gnulib-tool: Recognize new option --assume-autoconf.
42930         (autoconf_minversion): New variable.
42931         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
42932
42933 2006-07-20  Bruno Haible  <bruno@clisp.org>
42934
42935         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
42936
42937 2006-07-19  Derek R. Price  <derek@ximbiot.com>
42938
42939         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
42940         Reindent and repaginate.
42941
42942 2006-07-19  Derek Price  <derek@ximbiot.com>
42943
42944         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
42945         Correct grammar.
42946
42947 2006-07-17  Bruno Haible  <bruno@clisp.org>
42948
42949         * modules/list: New file.
42950         * modules/array-list: New file.
42951         * modules/carray-list, modules/carray-list-tests: New files.
42952         * modules/linked-list, modules/linked-list-tests: New files.
42953         * modules/avltree-list, modules/avltree-list-tests: New files.
42954         * modules/rbtree-list, modules/rbtree-list-tests: New files.
42955         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
42956         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
42957         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
42958         * modules/oset: New file.
42959         * modules/array-oset: New file.
42960         * modules/avltree-oset, modules/avltree-oset-tests: New files.
42961         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
42962         * tests/test-carray_list.c: New file.
42963         * tests/test-linked_list.c: New file.
42964         * tests/test-avltree_list.c: New file.
42965         * tests/test-rbtree_list.c: New file.
42966         * tests/test-linkedhash_list.c: New file.
42967         * tests/test-avltreehash_list.c: New file.
42968         * tests/test-rbtreehash_list.c: New file.
42969         * tests/test-avltree_oset.c: New file.
42970         * tests/test-rbtree_oset.c: New file.
42971         * MODULES.html.sh (Container data structures): New section.
42972
42973 2006-07-17  Bruno Haible  <bruno@clisp.org>
42974
42975         * m4/gl_list.m4: New file.
42976
42977 2006-07-17  Bruno Haible  <bruno@clisp.org>
42978
42979         * lib/gl_list.h: New file.
42980         * lib/gl_list.c: New file.
42981         * lib/gl_array_list.h: New file.
42982         * lib/gl_array_list.c: New file.
42983         * lib/gl_carray_list.h: New file.
42984         * lib/gl_carray_list.c: New file.
42985         * lib/gl_linked_list.h: New file.
42986         * lib/gl_linked_list.c: New file.
42987         * lib/gl_anylinked_list1.h: New file.
42988         * lib/gl_anylinked_list2.h: New file.
42989         * lib/gl_avltree_list.h: New file.
42990         * lib/gl_avltree_list.c: New file.
42991         * lib/gl_anyavltree_list1.h: New file.
42992         * lib/gl_anyavltree_list2.h: New file.
42993         * lib/gl_rbtree_list.h: New file.
42994         * lib/gl_rbtree_list.c: New file.
42995         * lib/gl_anyrbtree_list1.h: New file.
42996         * lib/gl_anyrbtree_list2.h: New file.
42997         * lib/gl_anytree_list1.h: New file.
42998         * lib/gl_anytree_list2.h: New file.
42999         * lib/gl_linkedhash_list.h: New file.
43000         * lib/gl_linkedhash_list.c: New file.
43001         * lib/gl_anyhash_list1.h: New file.
43002         * lib/gl_anyhash_list2.h: New file.
43003         * lib/gl_avltreehash_list.h: New file.
43004         * lib/gl_avltreehash_list.c: New file.
43005         * lib/gl_rbtreehash_list.h: New file.
43006         * lib/gl_rbtreehash_list.c: New file.
43007         * lib/gl_anytreehash_list1.h: New file.
43008         * lib/gl_anytreehash_list2.h: New file.
43009
43010         * lib/gl_oset.h: New file.
43011         * lib/gl_oset.c: New file.
43012         * lib/gl_array_oset.h: New file.
43013         * lib/gl_array_oset.c: New file.
43014         * lib/gl_avltree_oset.h: New file.
43015         * lib/gl_avltree_oset.c: New file.
43016         * lib/gl_rbtree_oset.h: New file.
43017         * lib/gl_rbtree_oset.c: New file.
43018         * lib/gl_anytree_oset.h: New file.
43019
43020 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43021
43022         * m4/mkancesdirs.m4: New file.
43023         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
43024         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
43025         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
43026         it.
43027
43028 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43029
43030         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
43031         * lib/mkancesdirs.h: New files.
43032         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
43033         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
43034         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
43035         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
43036         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
43037         callers changed.  Revamp internals significantly, by not
43038         attempting to create directories that are temporarily more
43039         permissive than the final results.  Do not attempt to use
43040         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
43041         This removes some race conditions, fixes some bugs, and simplifies
43042         things.  Use new dirchownmod function to do owner and mode changes.
43043         * lib/mkdir-p.h: Likewise.
43044         * lib/modechange.c (octal_to_mode): New function.
43045         (struct mode_change): New member mentioned.
43046         (make_node_op_equals): New arg mentioned.  All callers changed.
43047         (mode_compile): Keep track of which mode bits the user has explicitly
43048         mentioned.
43049         (mode_adjust): New arg DIR, so that we implement the X op correctly.
43050         New arg PMODE_BITS, to keep track of which mode bits the user
43051         mentioned; it treats S_ISUID and S_ISGID speciall.
43052         All callers changed.
43053         * lib/modechange.h: Likewise.
43054
43055 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43056
43057         * MODULES.html.sh: Add mkancestors.
43058         * modules/mkancesdirs: New module.
43059         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
43060         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
43061         The chdir-safer and afs files are now orphans; I'll remove them
43062         unless someone speaks up.
43063         Add lib/dirchownmod.c, lib/dirchownmod.h.
43064         (Depends-on): Remove alloca, chown, save-cwd, dirname.
43065         Add lchown, mkancesdirs.
43066         (Maintainer): Add self.
43067
43068 2006-07-15  Karl Berry  <karl@gnu.org>
43069
43070         * gnulib-tool: help message wording/arrangement.
43071
43072 2006-07-14  Simon Josefsson  <jas@extundo.com>
43073
43074         * doc/gnulib.texi (Libtool and Windows): New section.
43075
43076 2006-07-12  Simon Josefsson  <jas@extundo.com>
43077
43078         * modules/gendocs (License): Fix license, approved by Karl.
43079
43080 2006-07-12  Eric Blake  <ebb9@byu.net>
43081
43082         * MODULES.html.sh: Add gendocs.
43083
43084 2006-07-11  Eric Blake  <ebb9@byu.net>
43085
43086         * modules/fdl: New module, to install doc/fdl.texi.
43087         * MODULES.html.sh: Add new section for documentation modules.
43088         * gnulib-tool: Avoid space-tab.
43089         (--doc-base): New option, to manage files from doc.
43090
43091 2006-07-11  Eric Blake  <ebb9@byu.net>
43092
43093         * m4/absolute-header.m4: Fix comments to match recent change.
43094
43095 2006-07-11  Eric Blake  <ebb9@byu.net>
43096
43097         * gnulib-tool: List --doc-base before --tests-base.
43098
43099 2006-07-11  Derek R. Price  <derek@ximbiot.com>
43100
43101         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
43102
43103 2006-07-11  Bruno Haible  <bruno@clisp.org>
43104
43105         * README: Mention where to put documentation.
43106
43107 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43108
43109         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
43110
43111 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43112
43113         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
43114         to stdint.m4.
43115
43116 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43117
43118         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
43119         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
43120         "no/such/file/stdint.h" when there is no such file, so that
43121         the resulting C code can be parsed by dodgy compilers.
43122         Problems reported by Bob Proulx.
43123
43124 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43125
43126         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
43127         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43128         macros into the GNU _D_EXACT_NAMLEN.
43129         * lib/savedir.c:  Likewise.
43130         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
43131
43132 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43133         and Paul Eggert  <eggert@cs.ucla.edu>
43134
43135         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
43136         * m4/savedir.m4:
43137         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43138         macros into the GNU _D_EXACT_NAMLEN.
43139
43140 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43141
43142         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
43143         around the absolute name, to work around a problem with the HP-UX
43144         11.23 native C compiler, reported by Bob Proulx.
43145
43146 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43147
43148         * doc/maintain.texi, make-stds.texi: Sync from
43149         <http://savannah.gnu.org/projects/gnustandards>.
43150
43151 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43152
43153         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
43154
43155 2006-07-09  Jim Meyering  <jim@meyering.net>
43156
43157         * m4/glob.m4: Remove a doubled word in a comment.
43158
43159 2006-07-09  Jim Meyering  <jim@meyering.net>
43160
43161         * lib/argp-pv.c: Remove a doubled word in a comment.
43162         * lib/check-version.c (check_version): Likewise.
43163         * lib/javacomp.c (compile_java_class): Likewise.
43164
43165 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
43166
43167         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
43168         for the benefit of people using Autoconf 2.60.  If you want to
43169         support older Autoconf versions you can copy m4/onceonly_2_57.m4
43170         (or m4/onceonly.m4, if pre-2.57) manually.
43171
43172 2006-07-08  Jim Meyering  <jim@meyering.net>
43173
43174         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
43175         comment.
43176         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
43177         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
43178         comment.
43179
43180 2006-07-08  Jim Meyering  <jim@meyering.net>
43181
43182         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
43183
43184 2006-07-07  Simon Josefsson  <jas@extundo.com>
43185
43186         * tests/test-crc.c: Change expected crc value, the test vector
43187         were probably computed using the old broken crc.c?
43188
43189 2006-07-06  Simon Josefsson  <jas@extundo.com>
43190
43191         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
43192         now the canonical place for the M4 file).
43193
43194         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
43195         from the sys_socket dependency now.
43196
43197         * modules/inet_pton (Files): Ditto.
43198
43199         * modules/inet_ntop (Files): Ditto.
43200
43201 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
43202
43203         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
43204         not gl_PREREQ_GETUSERSHELL.
43205
43206 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43207
43208         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
43209         with only one argument, for Autoconf 2.60.
43210         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
43211         expand to nothing, so add a shell command to avoid syntax error.
43212         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43213
43214 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43215
43216         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
43217
43218 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43219
43220         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
43221         no longer needed.  Check for isblank decl.
43222         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
43223         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
43224         of existence.
43225
43226 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43227
43228         * lib/getloadavg.c: Use __VMS, not VMS.
43229         * lib/getopt.c: Likewise.
43230         * lib/getpagesize.h: Likewise.
43231         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
43232         and probably does not work.
43233
43234 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43235
43236         * lib/.cppi-disable: Add wcwidth.
43237         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
43238         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
43239         (ISGRAPH): Remove.  All uses changed to isgraph.
43240         (FOLD) [!defined _LIBC]: Remove special case.
43241         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
43242         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
43243         HAVE_ISBLANK.
43244         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
43245         case.
43246
43247 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
43248
43249         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
43250         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
43251         brackets.  Other minor changes to suppress some compiler
43252         warnings.
43253
43254 2006-07-06  Derek R. Price  <derek@ximbiot.com>
43255         and Paul Eggert  <eggert@cs.ucla.edu>
43256
43257         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
43258         of invoking obsolescent AC_HEADER_DIRENT macro.
43259         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
43260         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
43261         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43262         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
43263         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
43264         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43265         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
43266         * m4/readdir.m4: Remove; no longer needed.
43267
43268 2006-07-06  Derek R. Price  <derek@ximbiot.com>
43269         and Paul Eggert  <eggert@cs.ucla.edu>
43270
43271         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
43272         Don't worry about this obsolete case any more.
43273         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
43274         directories.
43275         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
43276         worry about this obsolete case any more.
43277         * lib/fts.c: Likewise.
43278         * lib/getcwd.c: Likewise.
43279         * lib/glob.h: Likewise.
43280         * lib/savedir.c: Likewise.
43281
43282 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43283
43284         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
43285         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
43286         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
43287         needed.
43288         All uses removed.
43289         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43290         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
43291         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
43292         needed.
43293         * m4/getdate.m4 (gl_GETDATE): Likewise.
43294         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
43295         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
43296         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43297         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43298         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
43299         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43300         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
43301         needed.
43302
43303 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43304
43305         * lib/memcasecmp.c: Include <limits.h>.
43306         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
43307         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
43308         Don't assume isdigit succeeds only on '0' through '9'.
43309
43310 2006-07-05  Eric Blake  <ebb9@byu.net>
43311
43312         * modules/getaddrinfo (Depends-on): Add snprintf.
43313
43314 2006-07-05  Eric Blake  <ebb9@byu.net>
43315
43316         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
43317         to avoid 'header present but could not be compiled' on cygwin.
43318
43319 2006-07-05  Eric Blake  <ebb9@byu.net>
43320
43321         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
43322         missing from netdb.h.
43323         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
43324
43325 2006-07-05  Derek R. Price  <derek@ximbiot.com>
43326
43327         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
43328         no longer needed.
43329         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
43330         * m4/getdate.m4 (gl_GETDATE): Likewise.
43331         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
43332         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
43333         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43334         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43335         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43336
43337 2006-07-05  Derek R. Price  <derek@ximbiot.com>
43338
43339         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
43340         All uses of is_space replaced by isspace.
43341         * lib/exit.h: Don't talk about STDC_HEADERS.
43342         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
43343         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
43344         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
43345         replaced by isprint etc.
43346         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
43347         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
43348         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
43349         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
43350         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
43351         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
43352
43353 2006-07-05  Bruno Haible  <bruno@clisp.org>
43354
43355         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
43356         the function exists, before testing against AIX.
43357         Reported by Martin Lambers <marlam@marlam.de>.
43358
43359 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
43360
43361         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
43362         From Mark D. Baushke.
43363
43364 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
43365
43366         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
43367         to the absolute name, not just one, to bypass Sun C 5.8's
43368         "warning: #include of /usr/include/... may be non-portable".
43369
43370 2006-07-04  Eric Blake  <ebb9@byu.net>
43371
43372         * modules/dirname-tests: New test module.
43373         * tests/test-dirname.c: New file, replacing dirname.c
43374         TEST_DIRNAME section that was recently deleted.
43375
43376 2006-07-04  Bruno Haible  <bruno@clisp.org>
43377
43378         Assume ANSI C header files and <ctype.h> functions.
43379         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
43380         (mbsnwidth): Use isprint, iscntrl instead.
43381
43382 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
43383
43384         Merge from coreutils.
43385         * MODULES.html.sh: Add xstrtold.
43386         * modules/xstrtold: New file.
43387         * modules/cycle-check (Files): Add lib/same-inode.h.
43388         * modules/dirname (Files): Add m4/double-slash-root.m4.
43389         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
43390         * modules/mkdir-p (Files): Add lib/same-inode.h.
43391         * modules/same (Files): Add lib/same-inode.h.
43392
43393 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
43394
43395         * m4/absolute-header.m4: Renamed from full-header-path.m4.
43396         This is to keep the terminology clean; POSIX talks about
43397         "absolute pathnames", not "full pathnames", but the GNU
43398         Coding Standards say to use "path" for something else;
43399         so use "absolute" to keep both sides happy.
43400         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
43401         Set gl_absolute_header, not gl_full_header_path.
43402         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
43403         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
43404         All uses changed.
43405
43406         Merge from coreutils.
43407
43408         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
43409
43410         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
43411         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
43412         want to require the building of c-strtod.o.
43413         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
43414         needs -lm directly.
43415         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
43416
43417         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
43418
43419         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
43420         --as-needed option if available.  Problem reported by Albert Chin in
43421         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
43422         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
43423         cc merely issues a bunch of annoying warnings for --as-needed
43424         (this problem was reported by Bob Proulx).  Also, try linking with
43425         -lm to detect a bug in binutils 2.16 (this problem was reported
43426         by Ralf Wildenhues).
43427
43428         2006-06-18  Jim Meyering  <jim@meyering.net>
43429
43430         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
43431         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
43432         macro.
43433         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
43434         also check for glibc-2.4's abort-inducing bug.
43435
43436         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
43437         Low-probability clean-up should be to use rmdir to get rid of
43438         the just-created directory, not unlink.
43439
43440         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
43441         configure fail, and request a bug report to inform us about it.
43442         Add a comment that, barring reports to the contrary, in 2007 we'll
43443         assume ftruncate is universally available.
43444
43445         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
43446
43447         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
43448
43449         2006-03-12  Jim Meyering  <jim@meyering.net>
43450
43451         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
43452         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
43453         * m4/same.m4 (gl_SAME): Likewise.
43454         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
43455
43456         2006-03-11  Eric Blake  <ebb9@byu.net>
43457
43458         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
43459         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
43460         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
43461         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
43462
43463 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
43464
43465         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
43466         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
43467         reported by Mark D. Baushke, one in
43468         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
43469
43470         Merge from coreutils.
43471
43472         * lib/.cppi-disable: Add stdint_.h.
43473         * lib/.cvsignore: Add stdint.h.
43474
43475         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
43476
43477         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
43478         both double and long double versions.
43479         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
43480         * lib/xstrtold.c: New file.
43481         * lib/xstrtod.h (xstrtold): New decl.
43482
43483         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
43484
43485         * lib/filemode.c (setst): Remove.
43486         (strmode): Rewrite to avoid setst.  This makes the code shorter,
43487         (arguably) clearer, and the generated code is a bit smaller on my
43488         Debian GNU/Linux stable x86 host.
43489
43490         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
43491
43492         * lib/filemode.c: Include "filemode.h" first, to test the interface.
43493         Assume that filemode.h includes sys/types.h and sys/stat.h.
43494         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
43495         (ftypelet): Reorder to put common cases first, for efficiency.
43496         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
43497         to do 'M'.
43498         (strmode): Renamed from mode_string, and now stores 12 bytes instead
43499         of 10, for compatibility with FreeBSD.  All callers changed.
43500         (filemodestring): Now stores 12 bytes instead of 10, and sets file
43501         types that can't be deduced solely from st_mode.  First arg is now a
43502         const pointer.
43503         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
43504         (strmode): Renamed from mode_string.
43505         (filemodestring): New decl.
43506         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
43507         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
43508         needed.
43509         (S_ISPORT, S_ISWHT): New macros, if not already defined.
43510
43511         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
43512
43513         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
43514         fsusage.h now does that.  Include fsusage.h first, to test interface.
43515         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
43516         at most one method (the old code could have generated decls that
43517         didn't conform to C89, not that this was ever exercised).
43518         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
43519
43520         2006-03-19  Jim Meyering  <jim@meyering.net>
43521
43522         Work even in a chroot where d_ino values for entries in "/"
43523         don't match the stat.st_ino values for the same names.
43524         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
43525         number, iterate through all entries again, using lstat instead.
43526         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
43527         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
43528
43529         * lib/getcwd.c (__getcwd): Clarify a comment.
43530         Use memcpy in place of a call to strcpy.
43531
43532         2006-03-12  Jim Meyering  <jim@meyering.net>
43533
43534         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
43535         matches that of the current directory (which we're about to chdir ".."
43536         out of), then save the dev-ino of the parent, instead.
43537
43538         * lib/same-inode.h (SAME_INODE): New file/macro.
43539         * lib/chdir-safer.c (SAME_INODE): Remove definition.
43540         Include "same-inode.h", instead.
43541         * lib/same.c: Likewise.
43542         * lib/cycle-check.h: Include "same-inode.h".
43543         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
43544         * lib/cycle-check.c (SAME_INODE): Remove definition.
43545         * lib/root-dev-ino.h: Include "same-inode.h".
43546
43547         2006-03-11  Eric Blake  <ebb9@byu.net>
43548
43549         * lib/same.c (same_name): s/base_name/last_component/
43550         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
43551         * lib/filenamecat.c (file_name_concat): Likewise.
43552
43553         2006-03-11  Eric Blake  <ebb9@byu.net>,
43554                     Paul Eggert  <eggert@cs.ucla.edu>
43555
43556         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
43557         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
43558         drive prefix.
43559         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
43560         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
43561         (last_component): New method.
43562         * lib/dirname.c (dir_len): Determine when drive letters need a
43563         subsequent slash.  Preserve // when it is special.
43564         (dir_name): Don't append dot when drive letter is absolute.
43565         [TEST_DIRNAME]: Move into a full-blown gnulib test.
43566         * lib/basename.c (base_name): New semantics - malloc the result.
43567         Preserve // when it is special.  Preserve relative files that look
43568         like drive letters.
43569         (base_len): Preserve // when it is special.
43570         (last_component): New method, similar to old base_name semantics.
43571         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
43572         base_name.  Strip redundant slashes from ///.
43573
43574 2006-07-03  Jim Meyering  <jim@meyering.net>
43575
43576         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
43577         macro is used before the first cycle_check call.
43578
43579 2006-07-03  Eric Blake  <ebb9@byu.net>
43580
43581         * modules/dirname (Depends-on): Add xstrndup.
43582
43583 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
43584
43585         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
43586         test cases, so that config.log is a bit easier to follow.
43587
43588 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
43589
43590         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
43591         both are 64 bits, since this seems to be the tradition, and this
43592         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
43593         we ever run into a host that prefers long long to long in this
43594         case, we'll need another configure-time test.  Problem reported by
43595         Jim Meyering.
43596
43597 2006-07-02  Eric Blake  <ebb9@byu.net>
43598
43599         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
43600
43601 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
43602
43603         * modules/inttypes (Depends-on): No longer depends on stdint.
43604         * modules/stdint (Description): Say more about assumptions.
43605         Say that the fast types might differ.  Say macros are used.
43606         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
43607         (Makefile.am): Revise list of substituted symbols to match
43608         new stdint.m4.
43609         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
43610         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
43611         * tests/test-stdint.c (verify_same_types)
43612         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
43613         the code conforms to C99/C89.
43614         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
43615         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
43616
43617 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
43618
43619         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
43620         but fix a bug, by requiring at least 64 bits.
43621         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
43622         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
43623         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
43624         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
43625
43626         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
43627         changes.  Make 2.59 a prerequisite.  Check and substitute for
43628         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
43629         inttypes.h.  Do not use special include files; just use the
43630         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
43631         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
43632         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
43633         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
43634         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
43635         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
43636         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
43637         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
43638         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
43639         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
43640         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
43641         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
43642         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
43643         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
43644         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
43645         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
43646         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
43647         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
43648         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
43649         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
43650         WINT_MAX.  Check for C99 conformance more strictly, by detecting
43651         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
43652         not check for things that C99 does not require, e.g., int8_t.  If
43653         a test isn't needed unless <stdint.h> isn't working, and is
43654         unlikely to be needed for any other reason, then don't do it
43655         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
43656         size_t, since we assume C89 freestanding at least.  Do not check
43657         for sig_atomic_t, wchar_t, or wint_t, since the code now does
43658         the right thing even if the types are not defined.  Instead use:
43659         (gl_STDINT_TYPE_PROPERTIES): New macro.
43660         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
43661         testing whether <sys/types.h> clashes, as Autoconf does this for
43662         us now.  All uses removed.
43663         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
43664         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
43665         (gl_CHECK_TYPE_SAME):
43666         Remove; no longer needed.
43667         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
43668         exists, since we'll return 0 anyway in that case.
43669         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
43670
43671 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
43672
43673         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
43674         possible collision with system files.
43675         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
43676         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
43677         WCHAR_MIN and WCHAR_MAX in this case.
43678         (<stddef.h>): Do not include; no longer needed.
43679         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
43680         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
43681         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
43682         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
43683         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
43684         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
43685         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
43686         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
43687         !defined(__c99))]: Include in this case too, since it's harmless
43688         now.
43689         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
43690         dangerous to do so.
43691         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
43692         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
43693         (_STDINT_MIN, _STDINT_MAX): New macros.
43694         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
43695         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
43696         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
43697         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
43698         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
43699         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
43700         macros, not typedefs; this simplifies things quite a bit.
43701         Use long int for all types narrower than int64_t.
43702         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
43703         Define in terms of long long int or int64_t or long int,
43704         not int64_t or int32_t.  This saves some compile-time testing.
43705         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
43706         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
43707         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
43708         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
43709         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
43710         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
43711         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
43712         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
43713         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
43714         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
43715         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
43716         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
43717         undef any previous version and define our own version, for
43718         simplicity and consistency with the new macros for types.
43719         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
43720         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
43721         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
43722         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
43723         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
43724         @WINT_T_SUFFIX@ to keep things simple here.
43725         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
43726         Simplify by assuming typical 8/16/32/64 host, since we're
43727         already doing that elsewhere anyway.
43728         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
43729         and assume long long int is 64 bits if available.  This
43730         speeds up 'configure'.
43731
43732 2006-07-01  Eric Blake  <ebb9@byu.net>
43733
43734         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
43735         Reported by Andreas Buening.
43736
43737 2006-07-01  Eric Blake  <ebb9@byu.net>
43738
43739         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
43740
43741 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
43742
43743         * lib/getaddrinfo.c: fixed typo
43744
43745 2006-06-29  Jim Meyering  <jim@meyering.net>
43746
43747         * modules/strftime (Maintainer): Add my name, since with the
43748         FPRINTFTIME changes strftime.c has forked from glibc.
43749
43750 2006-06-29  Eric Blake  <ebb9@byu.net>
43751
43752         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
43753
43754 2006-06-29  Eric Blake  <ebb9@byu.net>
43755
43756         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
43757
43758 2006-06-29  Eric Blake  <ebb9@byu.net>
43759
43760         * lib/stat_.h: New file.
43761
43762 2006-06-29  Eric Blake  <ebb9@byu.net>
43763
43764         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
43765         unused static function.
43766
43767 2006-06-29  Eric Blake  <ebb9@byu.net>
43768
43769         * doc/functions.texi (Function Portability): Document missing lstat
43770         on mingw.
43771
43772 2006-06-29  Eric Blake  <ebb9@byu.net>
43773
43774         * MODULES.html.sh: Add sys_stat.
43775         * modules/sys_stat: New module.
43776         * modules/mkstemp (Depends-on): Add sys_stat.
43777
43778 2006-06-29  Derek R. Price  <derek@ximbiot.com>
43779
43780         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
43781
43782 2006-06-29  Derek R. Price  <derek@ximbiot.com>
43783
43784         * m4/c-bs-a.m4: Removed.
43785
43786 2006-06-29  Derek R. Price  <derek@ximbiot.com>
43787
43788         * lib/strftime.c: Assume strftime() exists.
43789
43790 2006-06-29  Derek Price  <derek@ximbiot.com>
43791
43792         * modules/c-bs-a: Removed - \a is C89.
43793         * MODULES.html.sh: Remove c-bs-a.
43794
43795 2006-06-29  Bruno Haible  <bruno@clisp.org>
43796
43797         * modules/wcwidth (License): Change to LGPL.
43798
43799 2006-06-28  Simon Josefsson  <jas@extundo.com>
43800
43801         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
43802         on _WIN32.
43803
43804         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
43805         getnameinfo.
43806
43807 2006-06-28  Simon Josefsson  <jas@extundo.com>
43808
43809         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
43810
43811 2006-06-28  Simon Josefsson  <jas@extundo.com>
43812
43813         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
43814         functions there.  It will succeed on Windows XP, but on Windows
43815         2000 and (presumably) earlier, it will fail, and use the internal
43816         re-implementation.
43817         (use_win32_p): New function.
43818         (getaddrinfo): Use strtoul on servname, to support numeric ports.
43819         Support AI_NUMERICSERV to disable getservbyname.
43820         (getnameinfo): New function, only supports
43821         NI_NUMERICHOST|NI_NUMERICSERV for now.
43822
43823         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
43824         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
43825         getnameinfo.
43826
43827 2006-06-28  Eric Blake  <ebb9@byu.net>
43828
43829         * modules/wcwidth: New file.
43830         * modules/mbchar (Depends-on): Add wcwidth.
43831         * modules/mbswidth (Depends-on): Add wcwidth.
43832         * MODULES.html.sh: Add wcwidth.
43833
43834 2006-06-28  Eric Blake  <ebb9@byu.net>
43835
43836         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
43837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
43838
43839 2006-06-28  Eric Blake  <ebb9@byu.net>
43840
43841         * lib/xvasprintf.h: Fix comments.
43842
43843 2006-06-28  Eric Blake  <ebb9@byu.net>
43844
43845         * lib/mbchar.h (wcwidth): Include wcwidth.h.
43846         * lib/mbswidth.c (wcwidth): Move from here...
43847         * lib/wcwidth.h: ...to this new file.
43848
43849 2006-06-28  Derek R. Price  <derek@ximbiot.com>
43850
43851         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
43852
43853         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
43854         it's obsolete.
43855         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
43856
43857 2006-06-28  Derek R. Price  <derek@ximbiot.com>
43858
43859         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
43860         Autoconf 2.60 says this stuff was obsolete.
43861
43862 2006-06-28  Bruno Haible  <bruno@clisp.org>
43863
43864         * modules/wcwidth (Files): Add m4/wchar_t.m4.
43865
43866 2006-06-28  Bruno Haible  <bruno@clisp.org>
43867
43868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
43869         gt_TYPE_WCHAR_T.
43870
43871 2006-06-28  Bruno Haible  <bruno@clisp.org>
43872
43873         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
43874         declaration for wcwidth.
43875         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
43876
43877 2006-06-28  Bruno Haible  <bruno@clisp.org>
43878
43879         * lib/mkdtemp.c [MINGW]: Include <io.h>.
43880         (mkdir): Define using _mkdir.
43881
43882 2006-06-28  Bruno Haible  <bruno@clisp.org>
43883
43884         * lib/getaddrinfo.h: Fix POSIX URL.
43885         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
43886         _WIN32.
43887         (use_win32_p): Make static.
43888         (getaddrinfo): Reject service name if it is empty or does not consist
43889         solely of decimal digits, or if its value is > 65535.
43890         (getnameinfo): Remove useless casts.
43891
43892 2006-06-27  Simon Josefsson  <jas@extundo.com>
43893
43894         * modules/sys_select: New file, suggested by Bruno Haible, Paul
43895         Eggert and Martin Lambers.
43896
43897 2006-06-27  Simon Josefsson  <jas@extundo.com>
43898
43899         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
43900         Eggert and Martin Lambers.
43901
43902 2006-06-27  Bruno Haible  <bruno@clisp.org>
43903
43904         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
43905         result to 0, not to empty.
43906         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
43907
43908 2006-06-27  Bruno Haible  <bruno@clisp.org>
43909
43910         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
43911
43912 2006-06-26  Simon Josefsson  <jas@extundo.com>
43913
43914         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
43915         present.
43916
43917 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
43918
43919         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
43920         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
43921         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
43922
43923 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
43924
43925         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
43926
43927 2006-06-26  Bruno Haible  <bruno@clisp.org>
43928
43929         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
43930
43931 2006-06-26  Bruno Haible  <bruno@clisp.org>
43932
43933         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
43934
43935 2006-06-26  Bruno Haible  <bruno@clisp.org>
43936
43937         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
43938         SGI C compiler in pre-C99 mode.
43939         Suggested by Mark D. Baushke and Larry Jones.
43940
43941 2006-06-26  Bruno Haible  <bruno@clisp.org>
43942
43943         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
43944         WCHAR_MAX.
43945         Reported by Mark D. Baushke and Larry Jones.
43946
43947 2006-06-26  Bruno Haible  <bruno@clisp.org>
43948
43949         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
43950         in pre-C99 mode.
43951         Suggested by Mark D. Baushke and Larry Jones.
43952
43953 2006-06-23  Simon Josefsson  <jas@extundo.com>
43954             Bruno Haible  <bruno@clisp.org>
43955
43956         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
43957         Emit mostlyclean-local rule.
43958         (func_emit_tests_Makefile_am): Likewise.
43959         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
43960
43961 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
43962
43963         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
43964
43965 2006-06-23  Bruno Haible  <bruno@clisp.org>
43966
43967         * tests/test-stdint.c: Update to match ISO C 99 Technical
43968         Corrigendum 1.
43969
43970 2006-06-23  Bruno Haible  <bruno@clisp.org>
43971
43972         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
43973
43974 2006-06-23  Bruno Haible  <bruno@clisp.org>
43975
43976         * lib/stdint_.h: Treat IRIX like OpenBSD.
43977
43978 2006-06-23  Bruno Haible  <bruno@clisp.org>
43979
43980         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
43981         ISO C 99 Technical Corrigendum 1.
43982
43983 2006-06-22  Simon Josefsson  <jas@extundo.com>
43984
43985         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
43986         MinGW.
43987
43988 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43989
43990         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
43991         needed.  Some compiler complained about some of them.  Problem reported
43992         by Larry Jones in
43993         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
43994
43995 2006-06-21  Simon Josefsson  <jas@extundo.com>
43996
43997         * tests/test-getaddrinfo.c: New file.
43998
43999         * modules/getaddrinfo-tests: New file.
44000
44001         * MODULES.html.sh: Add inet_pton.
44002
44003         * modules/inet_pton: New file.
44004
44005 2006-06-21  Simon Josefsson  <jas@extundo.com>
44006
44007         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
44008         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
44009         of using the (limited) gnulib implementation on Windows XP.
44010
44011         * m4/inet_pton.m4: New file.
44012
44013 2006-06-21  Simon Josefsson  <jas@extundo.com>
44014
44015         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
44016         variable.
44017
44018         * lib/socket_.h: Don't define WINVER.
44019
44020         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
44021         slightly modified to work in gnulib.
44022
44023 2006-06-21  Simon Josefsson  <jas@extundo.com>
44024
44025         * doc/gnulib.texi (Windows sockets): Add.
44026
44027 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44028
44029         * lib/read-file.c (fread_file): Start with buffer allocation of
44030         0 bytes rather than 1 byte; this simplifies the code.
44031         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
44032         code to free buffer and save/restore errno.
44033         (internal_read_file): Remove unused local.
44034
44035 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44036
44037         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
44038         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
44039         Problem reported by Denis Excoffier in
44040         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
44041
44042 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44043
44044         * modules/sys_socket, modules/socklen: Include sys/types since
44045         FreeBSD 4.x's sys/socket.h needs it.
44046
44047 2006-06-19  Simon Josefsson  <jas@extundo.com>
44048
44049         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
44050
44051 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44052
44053         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
44054
44055 2006-06-19  Bruno Haible  <bruno@clisp.org>
44056
44057         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
44058         and FULL_PATH_INTTYPES_H in angle brackets.
44059         Reported by Mark D. Baushke <mdb@gnu.org>.
44060
44061 2006-06-17  Eric Blake  <ebb9@byu.net>
44062
44063         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
44064         errno.
44065
44066 2006-06-17  Bruno Haible  <bruno@clisp.org>
44067
44068         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
44069         <sys/inttypes.h>.
44070
44071 2006-06-17  Bruno Haible  <bruno@clisp.org>
44072
44073         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
44074         whether errno is declared. Assume <errno.h> declares errno.
44075
44076 2006-06-17  Bruno Haible  <bruno@clisp.org>
44077
44078         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
44079
44080 2006-06-17  Bruno Haible  <bruno@clisp.org>
44081
44082         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
44083         problem on Solaris 2.5.1.
44084
44085 2006-06-16  Eric Blake  <ebb9@byu.net>
44086
44087         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
44088         * lib/unicodeio.c [!defined errno]: Likewise.
44089         * lib/strtol.c [!defined errno]: Likewise.
44090         * lib/strtod.c [!defined errno]: Likewise.
44091
44092 2006-06-15  Eric Blake  <ebb9@byu.net>
44093
44094         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
44095
44096 2006-06-15  Eric Blake  <ebb9@byu.net>
44097
44098         * config/srclist.txt (ssize_t.m4): Lose sync.
44099
44100 2006-06-15  Bruno Haible  <bruno@clisp.org>
44101
44102         * modules/stdint (Files): Include m4/full-header-path.m4,
44103         m4/size_max.m4, m4/wchar_t.m4.
44104         (Makefile.am): Many more substitutions.
44105         * modules/stdint-tests: New file.
44106         * tests/test-stdint.c: New file.
44107
44108 2006-06-15  Bruno Haible  <bruno@clisp.org>
44109
44110         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
44111         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
44112         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
44113         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
44114         gl_CHECK_TYPE_SAME): New macros.
44115
44116 2006-06-15  Bruno Haible  <bruno@clisp.org>
44117
44118         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
44119
44120 2006-06-15  Bruno Haible  <bruno@clisp.org>
44121
44122         * lib/stdint_.h: Rewritten to be fully auto-configured.
44123         Fixes bug on HP-UX/IA64.
44124
44125 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
44126
44127         * lib/getdate.y (__attribute__): Don't define if already defined.
44128         Problem reported by Larry Jones.
44129         * lib/utimens.c (__attribute__): Likewise.
44130
44131 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
44132
44133         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
44134         reported by Andreas Schwab.
44135
44136 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44137             Bruno Haible  <bruno@clisp.org>
44138
44139         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
44140         check for the declaration of strnlen and a run test that exposes the
44141         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
44142         rpl_strndup.
44143
44144 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44145             Bruno Haible  <bruno@clisp.org>
44146
44147         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
44148
44149 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44150
44151         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
44152         compile test, for Tru64 4.0D.
44153
44154 2006-05-28  Karl Berry  <karl@gnu.org>
44155
44156         * config/srclist.txt (printf-args.c): lose sync.
44157
44158 2006-05-26  Martin Lambers  <marlam@marlam.de>
44159
44160         * lib/getpass.c: Updates the test for the native W32 API, and adds
44161         missing includes, thus fixing compilation warnings.
44162
44163 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44164
44165         * lib/exclude.c (exclude_fnmatch): New function.
44166         (excluded_file_name): Call exclude_fnmatch.
44167         * lib/exclude.h (excluded_file_name): New prototype
44168
44169 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
44170
44171         * lib/tempname.c (small_open, large_open): New macros.
44172         (__open, __open64) [!_LIBC]: Remove.
44173         (__gen_tempname): Use small_open and large_open instead of __open
44174         and __open64.  This fixes a portability bug on HP-UX 11.11i
44175         reported by Simon Wing-Tang in
44176         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
44177
44178 2006-05-24  Bruno Haible  <bruno@clisp.org>
44179
44180         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
44181         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
44182         Reported by Thorsten Maerz <torte@netztorte.de> via
44183         Aaron Stone <aaron@serendipity.cx>.
44184
44185 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44186
44187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
44188         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
44189         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
44190         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
44191         not really conditional on the cache.
44192         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
44193
44194 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44195
44196         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
44197         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
44198         (my_usleep): Don't mishandle maximum value.
44199
44200 2006-05-19  Jim Meyering  <jim@meyering.net>
44201
44202         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
44203
44204 2006-05-17  Bruno Haible  <bruno@clisp.org>
44205
44206         Cygwin portability.
44207         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
44208
44209 2006-05-17  Bruno Haible  <bruno@clisp.org>
44210
44211         * lib/stdint_.h: Fix recognition of Cygwin.
44212
44213 2006-05-15  Bruno Haible  <bruno@clisp.org>
44214
44215         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
44216         on libtool patch by Ralf Wildenhues.
44217
44218 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
44219
44220         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
44221         test for C99 conformance; (bool) 0.5 is an integer constant
44222         expression, but (bool) -0.5 is not.  Problem reported by Fedor
44223         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
44224
44225 2006-05-11  Simon Josefsson  <jas@extundo.com>
44226
44227         * m4/xvasprintf.m4: Fix obvious typo.
44228
44229 2006-05-11  Jim Meyering  <jim@meyering.net>
44230
44231         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
44232         James Lemley.
44233
44234 2006-05-10  Simon Josefsson  <jas@extundo.com>
44235
44236         * lib/md4.c: Typo fix, update copyright years.
44237         (K1, K2): Don't use L because it turn computations into 64-bit on
44238         64-bit platforms.
44239
44240 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
44241
44242         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
44243         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
44244         unwanted sign propagation, e.g., on hosts with 64-bit int.
44245         There still are some problems with reeelly weird theoretical hosts
44246         (e.g., 33-bit int) but it's not worth worrying about now.
44247         * lib/sha1.c (rol): Likewise.
44248         (K1, K2, K3, K4): Remove unnecessary L suffix.
44249
44250 2006-05-10  Bruno Haible  <bruno@clisp.org>
44251
44252         * lib/des.c: Cast to avoid warnings.
44253
44254 2006-05-09  Bruno Haible  <bruno@clisp.org>
44255
44256         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
44257         (Depends-on): Depend also on xsize, stdarg.
44258         (configure.ac): Add gl_XVASPRINTF.
44259
44260 2006-05-09  Bruno Haible  <bruno@clisp.org>
44261
44262         * m4/xvasprintf.m4: New file.
44263
44264 2006-05-09  Bruno Haible  <bruno@clisp.org>
44265
44266         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
44267         (EOVERFLOW): Define fallback value.
44268         (xstrcat): New function.
44269         (xvasprintf): Recognize the special case of a string concatenation.
44270
44271 2006-05-08  Eric Blake  <ebb9@byu.net>
44272
44273         * gnulib-tool (func_version): Base copyright year on CVS date.
44274         (func_emit_copyright_notice): New function.
44275         (func_emit_lib_Makefile_am): Use it.
44276         (func_emit_tests_Makefile_am): Likewise.
44277         (func_import): Likewise.
44278
44279 2006-05-08  Bruno Haible  <bruno@clisp.org>
44280
44281         * modules/stdarg: New file.
44282         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
44283
44284 2006-05-08  Bruno Haible  <bruno@clisp.org>
44285
44286         * m4/stdarg.m4: New file, from GNU gettext.
44287
44288 2006-05-08  Bruno Haible  <bruno@clisp.org>
44289
44290         * config/srclist.txt (build-aux/config.rpath): different from latest
44291         release.
44292
44293 2006-05-08  Bruno Haible  <bruno@clisp.org>
44294
44295         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
44296
44297 2006-05-05  Jim Meyering  <jim@meyering.net>
44298
44299         * m4/warning.m4: New file, derived from bison's file by the same name.
44300
44301 2006-05-03  Bruno Haible  <bruno@clisp.org>
44302
44303         * lib/stdint_.h: Shorter URL.
44304         * lib/inttypes.h: Likewise.
44305
44306 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44307
44308         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
44309
44310 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44311
44312         * lib/verify.h: Document the internals better.  Most of this change
44313         was written by Bruno Haible.
44314
44315 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44316
44317         * doc/verify.texi: New file, partly based on a proposal by
44318         Bruno Haible.
44319
44320 2006-05-02  Bruno Haible  <bruno@clisp.org>
44321
44322         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
44323         test from here...
44324         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
44325
44326 2006-04-29  Bruno Haible  <bruno@clisp.org>
44327
44328         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
44329         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
44330
44331 2006-04-29  Bruno Haible  <bruno@clisp.org>
44332
44333         * gnulib-tool: Make --update option actually work.
44334
44335 2006-04-29  Bruno Haible  <bruno@clisp.org>
44336
44337         * doc/gcd.texi: New file.
44338         * doc/gnulib.texi: Include it.
44339
44340 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
44341
44342         * lib/getdate.y (get_date): When adding relative date, start with the
44343         initial time, not with the result of the first mktime call.
44344
44345 2006-04-25  Bruno Haible  <bruno@clisp.org>
44346
44347         * gnulib-tool (func_import): Output the include directives in three
44348         blocks, sorted separately.
44349         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44350
44351 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
44352
44353         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
44354         to define main with arguments, for C++.  Reported by Eric Blake.
44355         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
44356         Prefer 'int main ()' to 'int main (void)', for C++.
44357         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44358         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
44359         for 'main', for C99 and C++.
44360
44361 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
44362
44363         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
44364         Don't assume that exit status -1 is valid.
44365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44366         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44367         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44368         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
44369         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
44370         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
44371         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
44372         functions can be used without declaring them, or that you can
44373         exit with status -1.
44374         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44375
44376 2006-04-24  Karl Berry  <karl@gnu.org>
44377
44378         * config/srclist.txt (longdouble.m4): sync lost.
44379
44380 2006-04-24  Eric Blake  <ebb9@byu.net>
44381
44382         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
44383
44384 2006-04-24  Bruno Haible  <bruno@clisp.org>
44385
44386         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
44387         poll() implementation in AIX.
44388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44389
44390 2006-04-24  Bruno Haible  <bruno@clisp.org>
44391
44392         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
44393         assigned exactly once.
44394
44395 2006-04-23  Claudio Fontana  <claudio@gnu.org>
44396             Bruno Haible  <bruno@clisp.org>
44397
44398         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
44399         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
44400         for AM_CPPFLAGS.
44401
44402 2006-04-23  Bruno Haible  <bruno@clisp.org>
44403
44404         * modules/copy-file: Depend on unistd.
44405         * modules/execute: Likewise.
44406         * modules/fatal-signal: Likewise.
44407         * modules/findprog: Likewise.
44408         * modules/mkdtemp : Likewise.
44409         * modules/pipe: Likewise.
44410         * modules/wait-process: Likewise.
44411
44412 2006-04-23  Bruno Haible  <bruno@clisp.org>
44413
44414         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
44415         condition was already detected.
44416         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44417
44418 2006-04-23  Bruno Haible  <bruno@clisp.org>
44419
44420         * lib/copy-file.c: Include <unistd.h> unconditionally.
44421         * lib/execute.c: Likewise.
44422         * lib/fatal-signal.c: Likewise.
44423         * lib/findprog.c: Likewise.
44424         * lib/mkdtemp.c: Likewise.
44425         * lib/pipe.h: Likewise.
44426         * lib/pipe.c: Likewise.
44427         * lib/wait-process.h: Likewise.
44428
44429 2006-04-23  Bruno Haible  <bruno@clisp.org>
44430
44431         * gnulib-tool (func_usage): Fix --import description. Document
44432         --update.
44433         (func_import): Create temporary file in a temporary directory, if
44434         --dry-run is specified. Silence errors from 'grep' when there are no
44435         m4 files in $m4dir.
44436         (func_create_testdir): Silence errors from 'grep' when there are no
44437         m4 files in $m4dir.
44438         Reported by Karl Berry <karl@freefriends.org>.
44439
44440 2006-04-20  Bruno Haible  <bruno@clisp.org>
44441
44442         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
44443         one argument, so that the code will be portable to Autoconf 2.60.
44444         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
44445         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44446         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
44447
44448 2006-04-19  Derek Price  <derek@ximbiot.com>
44449             Eric Blake  <ebb9@byu.net>
44450
44451         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
44452         rather than "/full/path.h".  Update comment to match.  Shorten &
44453         generalize m4_translit call via AS_TR_CPP.
44454
44455 2006-04-19  Derek Price  <derek@ximbiot.com>
44456             Eric Blake  <ebb9@byu.net>
44457
44458         * lib/inttypes.h: Correct grammar in comment.
44459
44460 2006-04-18  Derek Price  <derek@ximbiot.com>
44461             Paul Eggert  <eggert@cs.ucla.edu>
44462
44463         * modules/inttypes: New file.
44464         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
44465
44466 2006-04-18  Derek Price  <derek@ximbiot.com>
44467             Paul Eggert  <eggert@cs.ucla.edu>
44468
44469         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
44470         New files.
44471
44472 2006-04-18  Derek Price  <derek@ximbiot.com>
44473             Paul Eggert  <eggert@cs.ucla.edu>
44474
44475         * lib/inttypes.h: New file.
44476         * lib/strtoimax.c: Assume <inttypes.h>.
44477
44478 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
44479
44480         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
44481         isn't mounted.  Problem reported by Kir Kolyshkin.
44482
44483 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
44484
44485         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
44486         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
44487         Derek R. Price.
44488         * lib/regex.h (RE_DUP_MAX): Update comment to match current
44489         implementation.
44490
44491 2006-04-12  Eric Blake  <ebb9@byu.net>
44492
44493         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
44494         is now done automatically by the corresponding Autoconf macro.
44495
44496 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
44497
44498         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
44499         time_r.h.
44500
44501 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
44502
44503         Merge regex changes from libc, removing some of our
44504         POSIX-conformance changes that were rejected and redoing them in a
44505         less-intrusive way.
44506
44507         * lib/regcomp.c (re_compile_internal, init_dfa):
44508         Length arg is now size_t, not Idx.  All uses changed.
44509         (peek_token): Forward decl now says internal_function.
44510         (__re_error_msgid, __re_error_msgid_idx):
44511         Now static rather than extern with attribute_hidden.
44512         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
44513         For some reason libc prefers K&R style defns for external functions.
44514         (regerror) [!defined _LIBC]: Likewise.
44515         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
44516         (seek_collating_symbol_entry, lookup_collation_sequence_value):
44517         (build_range_exp, build_collating_symbol):
44518         Use K&R-style defn.
44519         (re_compile_fastmap): Use '\0' to memset, not 0.
44520         (utf8_sb_map): Make the calculations more obvious.
44521         (init_dfa, parse_bracket_exp, build_charclass_op):
44522         Call calloc and cast result, as glibc does.
44523         (init_word_char, fetch_token, peek_token, peek_token_bracket):
44524         (build_range_exp, build_collating_symbol):
44525         Now internal functions.
44526
44527         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
44528
44529         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
44530         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
44531         Don't depend on VMS; depend on __VMS instead, for POSIX
44532         namespace cleanness.
44533         (regoff_t): Define to ssize_t, not long int.
44534
44535         Remove the REG_ macros named below.  Instead, make the old names
44536         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
44537         __USE_GNU_REGEX.
44538         (REG_BACKSLASH_ESCAPE_IN_LISTS):
44539         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
44540         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
44541         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
44542         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
44543         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
44544         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
44545         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
44546         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
44547         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
44548         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
44549         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
44550         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
44551         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
44552         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
44553         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
44554         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
44555         (REG_NREGS):
44556         Remove.  All uses replaced by the old RE_* names.
44557         (RE_BACKSLASH_ESCAPE_IN_LISTS):
44558         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
44559         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
44560         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
44561         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
44562         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
44563         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
44564         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
44565         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
44566         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
44567         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
44568         Don't bother having these macros be independent of each others'
44569         values, since they no longer exist in the POSIX name space.
44570
44571         Rename the following member names back to their old names,
44572         unless !__USE_GNU_REGEX.  All uses changed back.
44573         (buffer): Renamed from re_buffer.
44574         (allocated): Renamed from re_allocated.
44575         (used): Renamed from re_used.
44576         (syntax): Renamed from re_syntax.
44577         (fastmap): Renamed from re_fastmap.
44578         (translate): Renamed from re_translate.
44579         (can_be_null): Renamed from re_can_be_null.
44580         (regs_allocated): Renamed from re_regs_allocated.
44581         (fastmap_accurate): Renamed from re_fastmap_accurate.
44582         (no_sub): Renamed from re_no_sub.
44583         (not_bol): Renamed from re_not_bol.
44584         (not_eol): Renamed from re_not_eol.
44585         (newline_anchor): Renamed from re_newline_anchor.
44586         (num_regs): Renamed from rm_num_regs.
44587         (start): Renamed from rm_start.
44588         (end): Renamed from rm_end.
44589
44590         (free_state): Move up a bit.
44591
44592         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
44593         #define to be empty.
44594         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
44595         when that is what is intended.
44596         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
44597         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
44598         (MAX): New macro.
44599         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
44600         All uses changed back to re_malloc, etc.  It's now the caller's
44601         responsibility to check for overflow; all callers changed.
44602         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
44603         (re_x2nrealloc): Remove.
44604         (free_state): Remove decl.
44605
44606         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
44607         (re_set_registers, re_exec):
44608         Use K&R-style defn.
44609
44610         2006-01-31  Roland McGrath  <roland@redhat.com>
44611
44612         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
44613         Reported by Mike Frysinger <vapier@gentoo.org>.
44614
44615         2006-01-15  Andreas Jaeger  <aj@suse.de>
44616
44617         [BZ #1950]
44618         * lib/regex_internal.c (re_string_reconstruct): Adjust for
44619         build_wcs_upper_buffer change.
44620         (build_wcs_upper_buffer): Change return type.
44621
44622         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
44623
44624         * lib/regex_internal.h: Include <stdint.h> if available.
44625
44626         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
44627
44628         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
44629
44630         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44631
44632         * lib/regcomp.c: Adjust for changed secondary hash function.
44633
44634         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
44635
44636         * lib/regex.h: Pretty printing.
44637         Clean up namespace a bit.
44638
44639         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
44640
44641         * lib/regexec.c (update_cur_sifted_state, check_arrival,
44642         check_arrival_add_next_nodes): Avoid using uninitialized variable.
44643
44644         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
44645                     Ulrich Drepper  <drepper@redhat.com>
44646
44647         [BZ #1302]
44648         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
44649         changed.
44650         (bitset_word_t): Renamed from bitset_word.  All uses changed.
44651
44652         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
44653
44654         [BZ #281]
44655         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
44656         * lib/regcomp.c: Remove unnecessary uses of
44657         unsigned RE_TRANSLATE_TYPE.
44658         * lib/regex_internal.h: Likewise.
44659         * lib/regex_internal.c: Likewise.
44660         * lib/regexec.c: Likewise.
44661         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
44662
44663         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
44664
44665         * lib/regexec.c (find_recover_state): Remove unnecessary
44666         initialization.
44667         (transit_state_bkref): Make DFA a const pointer.
44668         (get_subexp): Likewise.
44669         (check_arrival): Likewise.
44670         (update_cur_sifted_state): Likewise.
44671         (re_search_internal): Likewise.
44672         (prune_impossible_nodes): Likewise.
44673         (acquire_init_state_context): Likewise.
44674         (proceed_next_node): Likewise.
44675         (set_regs): Likewise.
44676         (free_fail_stack_return): Likewise.
44677         (check_arrival_expand_ecl): Mark DFA parameter as const.
44678         (check_arrival_expand_ecl_sub): Likewise.
44679         (check_subexp_limits): Likewise.
44680         (sub_epsilon_src_nodes):  Likewise.
44681         (add_epsilon_src_nodes):  Likewise.
44682         (merge_state_array): Likewise.
44683         (update_regs): Likewise.
44684         (build_trtable): Likewise.
44685         (sift_states_backward): Mark MCTX parameter as const.
44686         (build_sifted_states): Likewise.
44687         (update_cur_sifted_state): Likewise.
44688         (sift_states_mkref): Likewise.
44689         (check_arrival_expand_ecl): Mark eclosure as const.
44690         (check_dst_limits_calc_pos_1): Likewise.
44691         * lib/regex_internal.h (re_match_context_t): Make dfa a const
44692         pointer.
44693
44694         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
44695
44696         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
44697         (transit_state_sb): Likewise.
44698         (transit_state_mb): Likewise.
44699         (sift_states_iter_mb): Likewise.
44700         (check_arrival_add_next_nodes): Likewise.
44701         (check_node_accept_bytes): Change first parameter to pointer-to-const.
44702         [_LIBC] (re_search_2_stub): Use mempcpy.
44703
44704         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
44705         mbrtowc for very simple UTF-8 case.
44706
44707         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
44708         a pointer-to-const.
44709         (re_acquire_state_context): Likewise.
44710         * lib/regex_internal.h: Adjust prototypes.
44711
44712         * lib/regex.c: Prevent using C++ compilers.
44713
44714         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
44715         (re_acquire_state_context): Likewise.
44716
44717 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
44718
44719         * modules/regex (Depends-on): Add ssize_t.
44720
44721 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
44722
44723         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
44724         translation table.
44725
44726 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
44727
44728         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
44729
44730 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
44731             Bruno Haible  <bruno@clisp.org>
44732
44733         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
44734         <sys/types.h> and <inttypes.h>.
44735
44736 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44737
44738         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
44739         `__error_t_defined', so argp.h will not typedef the former.
44740
44741 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44742
44743         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
44744         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
44745         glibc names.  Even if glibc is changed to conform to POSIX, the
44746         traditional names will be available anyway, since regex depends on
44747         the extensions module.  Also, fix a longstanding typo in the
44748         implementation of Spencer ERE test #75 from grep 2.3.  Problems
44749         reported by Emanuele Giaquinta.  Also, change sense of cached
44750         variable, so that the message makes sense.
44751
44752 2006-03-24  Simon Josefsson  <jas@extundo.com>
44753
44754         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
44755         including some doc fixes.
44756         (base64_encode_alloc): Fix +1 bug on allocation failures.
44757
44758 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44759
44760         * lib/base64.c (base64_encode): Do not read past end of array with
44761         unsanitized input on systems with CHAR_BIT > 8.
44762
44763 2006-03-24  Eric Blake  <ebb9@byu.net>
44764
44765         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
44766
44767 2006-03-22  Karl Berry  <karl@gnu.org>
44768
44769         * config/srclist.txt (*setenv.[ch]): get from coreutils.
44770         * config/srclistvars.sh (COREUTILS): new var.
44771
44772 2006-03-17  Jim Meyering  <jim@meyering.net>
44773
44774         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
44775         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
44776
44777 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
44778
44779         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
44780         no longer needs it.  Instead, check that regoff_t is as least
44781         as wide as ptrdiff_t.
44782
44783         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
44784         so that our regex.h stays compatible with the installed regex.
44785         This is helpful for installers who configure --without-included-regex.
44786         Problem reported by Emanuele Giaquinta.
44787
44788 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
44789
44790         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
44791         Typedef to long int, not to off_, as POSIX will likely change
44792         in that direction.
44793
44794 2006-03-15  Eric Blake  <ebb9@byu.net>
44795
44796         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
44797
44798 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
44799
44800         * lib/argp-help.c (validate_uparams): Fix typo
44801         * lib/argp-parse.c (argp_default_options): Consistently begin help
44802         messages with a lowercase letter.
44803
44804 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
44805
44806         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
44807         overrun buffers and shouldn't be used (much as gets shouldn't be
44808         used).
44809         * lib/time_r.c (asctime_r, ctime_r): Likewise.
44810
44811 2006-03-08  Simon Josefsson  <jas@extundo.com>
44812
44813         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
44814         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44815
44816 2006-03-08  Simon Josefsson  <jas@extundo.com>
44817
44818         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
44819         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44820
44821 2006-03-08  Simon Josefsson  <jas@extundo.com>
44822
44823         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
44824         signal that configure disabled the device.
44825
44826 2006-03-08  Simon Josefsson  <jas@extundo.com>
44827
44828         * build-aux/maint.mk: Fix refresh-po, to handle no translated
44829         languages.
44830
44831 2006-03-07  Simon Josefsson  <jas@extundo.com>
44832
44833         * modules/getopt (Depends-on): Add unistd.
44834
44835         * modules/unistd: New file.
44836
44837 2006-03-07  Simon Josefsson  <jas@extundo.com>
44838
44839         * modules/gc-random: New file.
44840
44841 2006-03-07  Simon Josefsson  <jas@extundo.com>
44842
44843         * m4/unistd_h.m4: New file.
44844
44845 2006-03-07  Simon Josefsson  <jas@extundo.com>
44846
44847         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
44848         test to be side-effect free by storing the result in the cache
44849         variable gl_cv_lib_readline, and moving the assignment of
44850         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
44851         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44852
44853 2006-03-07  Simon Josefsson  <jas@extundo.com>
44854
44855         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
44856         error on missing devices (the functions will return an error).
44857
44858         * m4/gc.m4: Move random stuff to gc-random.m4
44859
44860 2006-03-07  Simon Josefsson  <jas@extundo.com>
44861
44862         * lib/unistd_.h: New file.
44863
44864 2006-03-07  Simon Josefsson  <jas@extundo.com>
44865
44866         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
44867
44868 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
44869
44870         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
44871         Problem reported by Juan Manuel Guerrero.
44872
44873 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
44874
44875         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
44876         the unistd module.
44877         * lib/getlogin_r.c: Likewise.
44878         * lib/getlogin_r.h: Likewise.
44879         * lib/glob.c: Likewise.
44880         * lib/pagealign_alloc.c: Likewise.
44881         * lib/unistd_.h: Remove; no longer needed.
44882
44883 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
44884
44885         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44886         Add unistd.
44887         * modules/c-stack (Depends-on): Add unistd.
44888         * modules/getlogin_r: Likewise.
44889         * modules/glob: Likewise.
44890         * modules/pagealign_alloc: Likewise.
44891         * modules/unistd (Files): Remove lib/unistd_.h.
44892         (EXTRA_DIST): Remove.
44893         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
44894         need unistd_.h.
44895         (MOSTLYCLEANFILES): Remove unistd.h-t.
44896
44897 2006-03-03  Simon Josefsson  <jas@extundo.com>
44898
44899         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
44900
44901 2006-03-03  Simon Josefsson  <jas@extundo.com>
44902
44903         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
44904         libidn and bison.
44905
44906 2006-03-03  Simon Josefsson  <jas@extundo.com>
44907
44908         * build-aux/maint.mk: Add indent target.
44909
44910 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
44911
44912         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
44913         our replacement poll.h in any case, to avoid a differing
44914         declaration from a system header.  Seen on AIX.
44915
44916 2006-03-01  Simon Josefsson  <jas@extundo.com>
44917
44918         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
44919         <kasal@ucw.cz>.
44920
44921 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44922
44923         * modules/gettime (Depends-on): Add extensions module.
44924         * modules/nanosleep (Depends-on): Likewise.
44925         * modules/settime (Depends-on): Likewise.
44926
44927 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44928
44929         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
44930         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
44931         pedantically.
44932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44933         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
44934
44935         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
44936         not "==".  Reported by Ralf Wildenhues.
44937
44938 2006-03-01  Karl Berry  <karl@gnu.org>
44939
44940         * doc/Copyright/request-*: new files, synced from gnuorg.
44941
44942 2006-03-01  Karl Berry  <karl@gnu.org>
44943
44944         * config/srclist.txt (Copyright/*): new entries.
44945
44946 2006-02-28  Simon Josefsson  <jas@extundo.com>
44947
44948         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
44949
44950 2006-02-27  Simon Josefsson  <jas@extundo.com>
44951
44952         * lib/base64.h: Indent #define's.  From Jim Meyering
44953         <jim@meyering.net>.
44954
44955 2006-02-27  Jim Meyering  <jim@meyering.net>
44956
44957         Revert the change of 2006-02-24, so these files can continue
44958         to be sync'd from gettext.
44959         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
44960         of `config.h'.
44961
44962 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
44963
44964         * modules/intprops: New file.
44965         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
44966         Add intprops.
44967         * modules/getloadavg (Files): Remove lib/intprops.h.
44968         (Depends-on): Add intprops.
44969         * modules/human: Likewise.
44970         * modules/inttostr: Likewise.
44971         * modules/openat: Likewise.
44972         * modules/sig2str: Likewise.
44973         * modules/userspec: Likewise.
44974         * modules/utimecmp: Likewise.
44975         * modules/xnanosleep: Likewise.
44976         * modules/xstrtol: Likewise.
44977
44978 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
44979
44980         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
44981         * modules/lock-tests (TESTS): Use $(EXEEXT).
44982         * modules/tls-tests: Likewise.
44983         * modules/argp-tests: Likewise.
44984         (check_PROGRAMS): New var, replacing...
44985         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
44986
44987 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44988
44989         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
44990         `config.h'.
44991
44992 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44993
44994         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
44995
44996 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44997
44998         Sync from coreutils.
44999         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
45000         gl_CHDIR_SAFER.
45001
45002 2006-02-22  Jim Meyering  <jim@meyering.net>
45003
45004         Sync from coreutils.
45005         * m4/chdir-safer.m4: New file.
45006
45007 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45008
45009         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
45010         AT_FDCWD exceeds INT_MAX.
45011         * lib/openat.h (AT_FDCWD): Likewise.
45012
45013 2006-02-17  Eric Blake  <address@hidden>
45014
45015         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
45016
45017 2006-02-16  Simon Josefsson  <jas@extundo.com>
45018
45019         * modules/getaddrinfo (Depends-on): Add sys_socket.
45020
45021 2006-02-15  Simon Josefsson  <jas@extundo.com>
45022
45023         * build-aux/maint.mk: Add dsyntax-check rule.
45024
45025 2006-02-15  Eric Blake  <ebb9@byu.net>
45026
45027         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
45028         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
45029         'present but cannot compile' warnings on cygwin.
45030         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
45031         use ws2tcpip.h if sys/socket.h works.
45032         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
45033         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
45034
45035 2006-02-14  Simon Josefsson  <jas@extundo.com>
45036
45037         * modules/maintainer-makefile (Files): Rename.
45038
45039         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
45040         and (the local) Makefile.cfg to maint-cfg.mk.
45041
45042         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
45043         to the latter.
45044
45045         * modules/maintainer-makefile: New module.
45046
45047         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
45048         severaly stripped to make it possible to build it up from scratch
45049         with reliable tests.
45050
45051         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
45052         fixes to permit overriding the default actions when configure and
45053         makefile are not available.
45054
45055 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45056
45057         Sync from coreutils.
45058         * modules/lstat (Depends-on): Don't depend on xalloc.
45059         (License): Change from GPL to LGPL, since this is now simply a
45060         replacement for a libc function.
45061
45062 2006-02-14  Jim Meyering  <jim@meyering.net>
45063
45064         Sync from coreutils.
45065
45066         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
45067         failure on deficient systems, and simplify gnulib lgpl dependencies.
45068         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
45069         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
45070
45071         * lib/xalloc-die.c: Remove unused definition of N_.
45072
45073 2006-02-14  Jim Meyering  <jim@meyering.net>
45074
45075         Sync from coreutils.
45076         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
45077         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
45078         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
45079         double-quote uses of that variable, to accommodate the rare case in
45080         which getmntent is available in none of the libraries checked.  This
45081         happens at least on FreeBSD 5.0.
45082
45083 2006-02-13  Simon Josefsson  <jas@extundo.com>
45084
45085         * gnulib-tool (Usage): Fix --import, from
45086         karl@freefriends.org (Karl Berry).
45087
45088 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45089
45090         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
45091
45092 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
45093
45094         * lib/argp-namefrob.h: Restore changes accidentally lost during the
45095         "autoupdate" on 2005-12-12.
45096
45097 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45098
45099         * modules/closeout (Depends-on): Remove atexit.
45100
45101 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45102
45103         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
45104         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
45105
45106 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45107
45108         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
45109         __EXTENSIONS__ if this causes compilation to fail.  Problem
45110         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
45111         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
45112
45113 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
45114
45115         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
45116         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
45117         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
45118         All uses changed.
45119
45120 2006-01-26  Simon Josefsson  <jas@extundo.com>
45121
45122         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
45123         prototype is visible on mingw32.
45124
45125         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
45126         for mingw32.
45127
45128         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
45129         mingw32).
45130
45131 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45132
45133         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
45134         attempt to open for write; this always fails, at least on POSIX
45135         hosts.  This reinstates the 2006-01-09 change, which was
45136         inadvertently removed.
45137
45138 2006-01-26  Bruno Haible  <bruno@clisp.org>
45139
45140         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
45141         Reported by Paul Eggert.
45142
45143 2006-01-26  Bruno Haible  <bruno@clisp.org>
45144             Paul Eggert  <eggert@cs.ucla.edu>
45145
45146         * lib/stdbool_.h (_Bool)
45147         [(! (defined __cplusplus || defined __BEOS__)
45148           && !defined __GNUC__
45149           && !(defined __HP_cc || defined __xlc__
45150                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
45151                || defined __sgi))]:
45152         #define to signed char in these cases too; this simplifies
45153         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
45154         etc., separately) and makes it more conservative.
45155
45156 2006-01-25  Simon Josefsson  <jas@extundo.com>
45157
45158         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
45159         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
45160         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
45161
45162 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45163
45164         * lib/argp-namefrob.h: Bugfix. Remove stray #
45165
45166 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45167
45168         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
45169         so that we test the test.
45170         Check for yet another HP-UX cc bug involving *bool |= bool.
45171
45172 2006-01-25  Karl Berry  <karl@gnu.org>
45173
45174         * config/srclist.txt (vasnprintf.c): sync lost.
45175
45176 2006-01-25  Jim Meyering  <jim@meyering.net>
45177
45178         Sync from the stable (b5) branch of coreutils:
45179
45180         * lib/fts.c (fts_children): Don't let close() clobber errno from
45181         failed fchdir().
45182
45183         * lib/fts.c (fts_stat): When following a symlink-to-directory,
45184         don't necessarily interpret stat-fails+lstat-succeeds as indicating
45185         a dangling symlink.  That can also happen at least for ELOOP.
45186         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
45187         FYI, this bug predates the inclusion of fts.c in coreutils.
45188
45189         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
45190         in their own block, so pre-c99 compilers don't object.
45191
45192         Avoid the double-free (first in fts_read, second in fts_close) that
45193         would occur when an `active' directory is made inaccessible (e.g.,
45194         via chmod a-x) during a traversal.
45195         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
45196         before returning.  Reproduce this failure by
45197         mkdir -p a/b; cd a; chmod a-x . b
45198         Reported by Stavros Passas.
45199
45200 2006-01-25  Jim Meyering  <jim@meyering.net>
45201
45202         * lib/fileblocks.c: Remove more useless parentheses.
45203         * lib/readutmp.h: Likewise.
45204
45205 2006-01-25  Bruno Haible  <bruno@clisp.org>
45206
45207         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
45208         warnings.
45209         Reported by Paul Eggert.
45210
45211 2006-01-25  Bruno Haible  <bruno@clisp.org>
45212
45213         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
45214         rid of a trap command. For Solaris sh.
45215         Reported by Mark D. Baushke <mdb@gnu.org>.
45216
45217 2006-01-24  Simon Josefsson  <jas@extundo.com>
45218
45219         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
45220         Bruno.
45221
45222 2006-01-24  Karl Berry  <karl@gnu.org>
45223
45224         * config/srclist.txt (argp-namefrob.h): sync lost.
45225
45226 2006-01-24  Jim Meyering  <jim@meyering.net>
45227
45228         * modules/openat (Files): Add lib/intprops.h.
45229         From Mark D. Baushke.
45230
45231 2006-01-24  Jim Meyering  <jim@meyering.net>
45232
45233         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
45234         Reported by Mark D. Baushke.
45235
45236 2006-01-24  Jim Meyering  <jim@meyering.net>
45237
45238         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
45239
45240 2006-01-24  Bruno Haible  <bruno@clisp.org>
45241
45242         * modules/strnlen (Maintainer): Change from glibc to all.
45243
45244 2006-01-24  Bruno Haible  <bruno@clisp.org>
45245
45246         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
45247         Patch by Paul Eggert.
45248
45249 2006-01-24  Bruno Haible  <bruno@clisp.org>
45250
45251         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
45252         already has it.
45253         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
45254         2005-11-26.
45255
45256         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
45257         'signed char' to avoid problems with the built-in _Bool type.
45258         Reported by Paul Eggert on 2005-11-26.
45259
45260 2006-01-24  Bruno Haible  <bruno@clisp.org>
45261
45262         * gnulib-tool (func_import): Avoid constructing complicated sed
45263         expressions inside backquote.
45264         Report and solution by Mark D. Baushke <mdb@gnu.org>.
45265
45266 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
45267
45268         These changes imported from libc.
45269         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
45270         test and two separate function calls.
45271         * lib/strndup.c (__strndup): Add libc_hidden_def.
45272
45273 2006-01-23  Simon Josefsson  <jas@extundo.com>
45274
45275         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
45276         Remove the test_*_SOURCES variable: automake infers it by default.
45277         * modules/tls-tests: Likewise.
45278
45279 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45280
45281         Work around porting bugs reported by Dieter in
45282         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
45283         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
45284         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
45285         Include "getopt.h" first, to check interface.
45286         (getenv): Declare only if defined HAVE_DECL_GETENV &&
45287         !HAVE_DECL_GETENV.
45288         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
45289         (__strndup): Revert to K&R-style function dfns, the glibc style.
45290         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
45291         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
45292         Include strnlen.h first, to get prototype properly.
45293         (strnlen): Renamed from __strnlen.
45294         Remove weak alias.
45295
45296 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45297
45298         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
45299
45300 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45301
45302         * config/srclist.txt: Adjust to reflect glibc reorganization.
45303         This affects only comments.
45304
45305 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45306
45307          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
45308          Reported by Bruce Korb <bkorb@gnu.org>.
45309
45310 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
45311
45312         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
45313         to pacify gcc -Wswitch-default.
45314
45315 2006-01-22  Bruno Haible  <bruno@clisp.org>
45316
45317         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
45318         temporary buffer for sprintf, take into account the precision also
45319         for 'd', 'i', 'u', 'o', 'x', 'X'.
45320
45321 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
45322
45323         * modules/argp-tests: New module
45324         * tests/test-argp.c: New file
45325         * tests/test-argp-2.sh: New file
45326
45327 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
45328
45329         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
45330         (__argp_base_name): Removed
45331         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
45332         typo.
45333         (__argp_base_name): Provide macro definition or extern declaration
45334         depending on the configuration
45335
45336 2006-01-20  Simon Josefsson  <jas@extundo.com>
45337
45338         * modules/inet_ntop (Depends-on): Depend on sys_socket.
45339
45340 2006-01-20  Simon Josefsson  <jas@extundo.com>
45341
45342         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
45343
45344 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
45345
45346         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
45347         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
45348         Suggested by Bruno Haible.
45349
45350 2006-01-20  Karl Berry  <karl@gnu.org>
45351
45352         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
45353         until changes propagate, I guess.
45354
45355 2006-01-19  Simon Josefsson  <jas@extundo.com>
45356
45357         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
45358
45359 2006-01-19  Simon Josefsson  <jas@extundo.com>
45360
45361         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
45362
45363 2006-01-19  Simon Josefsson  <jas@extundo.com>
45364
45365         * gnulib-tool: Set check_PROGRAMS.
45366
45367         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
45368         modules/des-tests, modules/gc-arcfour-tests,
45369         modules/gc-arctwo-tests, modules/gc-des-tests,
45370         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
45371         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
45372         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
45373         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
45374         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
45375         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
45376         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
45377         test_*_SOURCES.
45378
45379 2006-01-18  Simon Josefsson  <jas@extundo.com>
45380
45381         * modules/socklen (Depends-on): Depend on sys_socket.
45382
45383 2006-01-18  Simon Josefsson  <jas@extundo.com>
45384
45385         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
45386         modules/des-tests, modules/gc-arcfour-tests,
45387         modules/gc-arctwo-tests, modules/gc-des-tests,
45388         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
45389         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
45390         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
45391         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
45392         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
45393         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
45394         $(EXEEXT) to automake TESTS variable, for mingw32.
45395
45396 2006-01-17  Simon Josefsson  <jas@extundo.com>
45397
45398         * modules/socklen (Include): Need sys/socket.h.
45399
45400 2006-01-17  Bruno Haible  <bruno@clisp.org>
45401
45402         * modules/ssize_t (Include): Add <sys/types.h>.
45403
45404 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
45405
45406         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
45407         it's not portable and it doesn't work with cross-compiles.
45408         Problem reported by Bruno Haible.  Fix missing-$ typo in
45409         'test "gl_cv_ignore_unused_libraries" ...' that prevented
45410         -zignore from being used with Sun's C compiler.
45411
45412 2006-01-12  Simon Josefsson  <jas@extundo.com>
45413
45414         * lib/base64.c: Fix warning, reported by Bruno Haible
45415         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
45416
45417 2006-01-12  Bruno Haible  <bruno@clisp.org>
45418
45419         * modules/ldd: New file.
45420         * build-aux/ldd.sh.in: New file.
45421         * MODULES.html.sh (Support for building libraries and executables): Add
45422         ldd.
45423
45424 2006-01-12  Bruno Haible  <bruno@clisp.org>
45425
45426         * m4/ldd.m4: New file.
45427
45428 2006-01-12  Bruno Haible  <bruno@clisp.org>
45429
45430         * gnulib-tool (func_import, func_create_testdir): Don't go into an
45431         endless loop while replacing $auxdir with build-aux.
45432
45433 2006-01-11  Simon Josefsson  <jas@extundo.com>
45434
45435         * lib/stdint_.h (SIZE_MAX): Add missing (.
45436
45437 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
45438
45439         Sync from coreutils.
45440         * lib/md5.c: Fix commentary typos.
45441         (alignof, UNALIGNED_P): No need for a GCC-specific version.
45442         * lib/md5.h (__attribute__): Remove; unused.
45443         * lib/sha1.c: Fix commentary to match md5 better.
45444         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
45445         so that we don't need to worry about alignment.  All uses changed.
45446         This merges the 2005-10-28 md5 change into sha1.
45447
45448 2006-01-11  Jim Meyering  <jim@meyering.net>
45449
45450         Sync from coreutils.
45451         * lib/md5.c (OP): Fix spacing.
45452
45453 2006-01-11  Bruno Haible  <bruno@clisp.org>
45454
45455         Ensure automatic ordering between gl_LOCK and gl_ARGP.
45456         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
45457         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
45458
45459 2006-01-11  Bruno Haible  <bruno@clisp.org>
45460
45461         Ensure automatic ordering between gl_LOCK and gl_ARGP.
45462         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
45463         the "early" section as well.
45464
45465 2006-01-11  Bruno Haible  <bruno@clisp.org>
45466
45467         Avoid "ar: no archive members specified" error on MacOS X.
45468         * gnulib-tool (func_modules_add_dummy): New function.
45469         (func_import, func_create_testdir): Invoke it.
45470
45471 2006-01-11  Bruno Haible  <bruno@clisp.org>
45472
45473         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
45474         with $auxdir in AC_CONFIG_FILES statements.
45475
45476 2006-01-11  Bruno Haible  <bruno@clisp.org>
45477
45478         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45479         Initialize also noinst_HEADERS to empty.
45480
45481 2006-01-11  Bruno Haible  <bruno@clisp.org>
45482
45483         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
45484         variables.
45485         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
45486         autoreconf.
45487
45488 2006-01-11  Bruno Haible  <bruno@clisp.org>
45489
45490         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
45491         overridable by the user.
45492         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45493
45494 2006-01-10  Simon Josefsson  <jas@extundo.com>
45495
45496         * modules/sys_socket: New file.
45497
45498 2006-01-10  Simon Josefsson  <jas@extundo.com>
45499
45500         * m4/sys_socket_h.m4: New file.
45501
45502 2006-01-10  Simon Josefsson  <jas@extundo.com>
45503
45504         * lib/socket_.h: New file.
45505
45506 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45507
45508         * modules/readutmp (Maintainer): Add myself.
45509
45510 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45511
45512         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
45513         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
45514         People who are still concerned with buggy memcmp implementations
45515         can invoke gl_FUNC_MEMCMP themselves.
45516
45517 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45518
45519         * lib/regex_internal.h (BITSET_WORD_BITS):
45520         Work around a bug in 64-bit PGC (before version 6.1-2), where the
45521         preprocessor mishandles large unsigned values as if they were signed.
45522         Problem reported by Claudio Fontana in
45523         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
45524
45525 2006-01-10  Jim Meyering  <jim@meyering.net>
45526
45527         Avoid the double-free (first in fts_read, second in fts_close) that
45528         would occur when an `active' directory is made inaccessible (e.g.,
45529         via chmod a-x) during a traversal.
45530         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
45531         before returning.  Reproduce this failure by
45532         mkdir -p a/b; cd a; chmod a-x . b
45533         Reported by Stavros Passas.
45534
45535         Sync from coreutils.
45536         * lib/sha1.c: Tweak grammar in a comment.
45537
45538 2006-01-10  Jim Meyering  <jim@meyering.net>
45539
45540         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
45541         Patch by Joerg Sonnenberger.
45542
45543 2006-01-10  Bruno Haible  <bruno@clisp.org>
45544
45545         * modules/readutmp: Depend on module free.
45546         * modules/strtok_r: Depend on module restrict.
45547
45548 2006-01-10  Bruno Haible  <bruno@clisp.org>
45549
45550         * modules/gettext (configure.ac): Add an invocation of
45551         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
45552
45553 2006-01-10  Bruno Haible  <bruno@clisp.org>
45554
45555         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
45556         Reported by Werner Lemberg <wl@gnu.org>.
45557
45558 2006-01-10  Bruno Haible  <bruno@clisp.org>
45559
45560         * lib/localcharset.c: Update from GNU gettext.
45561
45562 2006-01-10  Bruno Haible  <bruno@clisp.org>
45563
45564         * lib/argp.h (__const): Remove macro. Use const instead.
45565         * lib/argp-fmtstream.h (__const): Likewise.
45566         * lib/glob_.h (__const): Remove macro.
45567         * lib/glob-libc.h: Use const instead of __const.
45568
45569 2006-01-10  Bruno Haible  <bruno@clisp.org>
45570
45571         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
45572         variable.
45573         Needed to avoid an automake error regarding the 'gettext' module.
45574
45575 2006-01-09  Simon Josefsson  <jas@extundo.com>
45576
45577         * modules/inet_ntop (Depends-on): Add restrict.
45578
45579 2006-01-09  Simon Josefsson  <jas@extundo.com>
45580
45581         * modules/gc-rijndael-tests (License): Put under LGPL.
45582
45583         * modules/gc-des-tests (License): Likewise.
45584
45585         * modules/gc-arcfour-tests (License): Likewise.
45586
45587         * modules/gc-arctwo-tests (License): Likewise.
45588
45589         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
45590
45591         * modules/gc-hmac-sha1-tests (Files): Likewise.
45592
45593         * modules/gc-hmac-md5-tests (License): Likewise.
45594
45595         * modules/gc-sha1-tests (License): Likewise.
45596
45597         * modules/gc-md5-tests (License): Likewise.
45598
45599         * modules/gc-md4-tests (License): Likewise.
45600
45601         * modules/gc-md2-tests (License): Likewise.
45602
45603         * modules/gc-tests (License): Likewise.
45604
45605         * modules/des-tests (License): Likewise.
45606
45607         * modules/md4-tests (License): Likewise.
45608
45609         * modules/md2-tests (License): Likewise.
45610
45611 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45612
45613         Sync from coreutils:
45614
45615         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
45616         * modules/lib-ignore: New file.
45617         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
45618         chdir-safer.m4, lchmod.m4.
45619         * modules/openat: Add mkdirat.c, openat-priv.h.
45620
45621 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45622
45623         Sync from coreutils.
45624         * m4/lib-ignore.m4: New file.
45625         * m4/lchmod.m4: New file.
45626
45627 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45628
45629         Sync from coreutils.
45630         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
45631         for write access: POSIX says that must fail.
45632         * lib/fts.c (diropen): Likewise.
45633         * lib/save-cwd.c (save_cwd): Likewise.
45634         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
45635         well, for minor improvements on hosts that lack O_DIRECTORY.
45636         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
45637         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
45638         Fall back on chown if open failed with EACCES.
45639
45640         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
45641         Report an error at compile-time if only a 1-second nominal clock
45642         resolution is found.
45643
45644         * lib/lchmod.h: New file.
45645         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
45646         (make_dir_parents): Use lchown rather than chown, and
45647         lchmod rather than chmod.
45648
45649         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
45650         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
45651         "proc" reported by n0dalus.
45652
45653         * lib/mountlist.c: Include <limits.h>.
45654         (dev_from_mount_options)
45655         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
45656         New function.  It no longer assumes "dev=" has the System V meaning
45657         on Linux (since it doesn't).  It also parses "dev=" more carefully.
45658         (read_file_system_list)
45659         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
45660         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
45661         dev= in that case.
45662
45663         * lib/posixtm.h (PDS_PRE_2000): New macro.
45664         * lib/posixtm.c (year): Arg is now syntax_bits rather than
45665         allow_century.  All usages changed.  Reject dates outside the range
45666         1969-1999 if PDS_PRE_2000 is used.
45667
45668 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45669
45670         Sync from coreutils.
45671         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
45672         (Time of day items): Mention the possibility of leap seconds.
45673         Problem reported by Dr. David Alan Gilbert.
45674
45675 2006-01-09  Jim Meyering  <jim@meyering.net>
45676
45677         Sync from coreutils.
45678
45679         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
45680
45681         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
45682
45683         * lib/modechange.c (mode_compile): Reject an invalid mode string
45684         that starts with an octal digit.  From Andreas Gruenbacher.
45685
45686         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
45687         and dup to open_safer and dup_safer, respectively.
45688         (openat_permissive): Fix typo in comment.
45689
45690         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
45691         "gettext.h"; either no longer needed or are guaranteed by openat.h.
45692         (_): Remove; no longer needed.
45693         (openat): Renamed from rpl_openat; no need for rpl_openat
45694         since openat.h renames openat for us.
45695         Replace most of the body with a call to openat_permissive,
45696         to avoid duplicate code.
45697         Port to (probably hypothetical) environments were mode_t is
45698         wider than int.
45699         (openat_permissive): Require mode arg, so that we can check
45700         types better.  Put it just after flags.  Change cwd failure
45701         indicator from pointer-to-bool to pointer-to-errno-value.
45702         All callers changed.
45703         Invoke openat_save_fail and/or openat_restore_fail if
45704         cwd_errno is null, so that openat can call us.
45705         (openat_permissive, fdopendir, fstatat, unlinkat):
45706         Simplify errno handling to avoid some duplicate code,
45707         as it's OK to set errno on success.
45708         * lib/openat.h: Revamp code so that function macros depend on
45709         __OPENAT_PREFIX only, not also on AT_FDCWD.
45710         (openat_ro): Remove.  Caller changed to use openat_permissive.
45711         (openat_permissive): Now a macro, if not a function.
45712         (openat_restore_fail, openat_save_fail): Now always functions,
45713         since mkdirat needs them even if __OPENAT_PREFIX is defined.
45714
45715         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
45716         and openat.c.
45717         * lib/mkdirat.c: Include openat-priv.h.
45718         Remove definitions of macros defined therein.
45719         * lib/openat.c: Likewise.
45720
45721         * lib/mkdirat.c (mkdirat): New file and function.
45722         * lib/openat.h (mkdirat): Declare.
45723
45724         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
45725
45726         * lib/openat.h (openat_permissive): Declare.
45727         (openat_ro): Define.
45728
45729         * lib/openat.c (EXPECTED_ERRNO): New macro.
45730         (openat_permissive): New function -- used in remove.c rewrite.
45731         (all functions): Set errno just before returning, only if there
45732         was an actual failure.
45733         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
45734
45735         Emulate openat-family functions using Linux's procfs, if possible.
45736         Idea and some code based on Ulrich Drepper's glibc changes.
45737
45738         * lib/openat.c: (BUILD_PROC_NAME): New macro.
45739         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
45740         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
45741         before falling back on save_cwd and restore_cwd.
45742         (fdopendir, fstatat, unlinkat): Likewise.
45743
45744         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
45745         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
45746
45747         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
45748         as second argument to va_arg.  Otherwise, some versions of gcc
45749         warn that `if this code is reached, the program will abort'.
45750
45751 2006-01-09  Jim Meyering  <jim@meyering.net>
45752
45753         Sync from coreutils.
45754         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
45755         Require openat-priv.h.
45756
45757 2006-01-09  Bruno Haible  <bruno@clisp.org>
45758
45759         * modules/strnlen (Include): Use strnlen.h.
45760
45761 2006-01-09  Bruno Haible  <bruno@clisp.org>
45762
45763         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
45764
45765 2006-01-09  Bruno Haible  <bruno@clisp.org>
45766
45767         * lib/sysexit_.h (EX_OK): New macro.
45768         Suggested by Martin Lambers <marlam@marlam.de>.
45769
45770 2006-01-09  Bruno Haible  <bruno@clisp.org>
45771
45772         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
45773         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
45774
45775 2006-01-09  Bruno Haible  <bruno@clisp.org>
45776
45777         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
45778         numbers.
45779
45780 2006-01-09  Bruno Haible  <bruno@clisp.org>
45781
45782         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
45783         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
45784         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
45785         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
45786
45787 2006-01-09  Bruno Haible  <bruno@clisp.org>
45788
45789         * build-aux/javacomp.sh.in: New file, moved from lib/.
45790         * modules/javacomp-script (Files): Update.
45791         (configure.ac): Add AC_CONFIG_FILES invocation.
45792         (EXTRA_DIST): Remove variable.
45793
45794         * build-aux/javaexec.sh.in: New file, moved from lib/.
45795         * modules/javaexec (Files): Update.
45796         (configure.ac): Add AC_CONFIG_FILES invocation.
45797         (EXTRA_DIST): Remove javaexec.sh.in.
45798
45799         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
45800         * modules/csharpcomp-script (Files): Update.
45801         (configure.ac): Add AC_CONFIG_FILES invocation.
45802         (EXTRA_DIST): Remove variable.
45803
45804         * build-aux/csharpexec.sh.in: New file, moved from lib/.
45805         * modules/csharpexec (Files): Update.
45806         (configure.ac): Add AC_CONFIG_FILES invocation.
45807         (EXTRA_DIST): Remove csharpexec.sh.in.
45808
45809 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
45810
45811         Sync from coreutils.
45812
45813         Add POSIX ACL support
45814         * lib/acl.h (copy_acl, set_acl): Add declarations.
45815         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
45816         systems other than Linux.
45817         (chmod_or_fchmod): New function: use fchmod when possible,
45818         and chmod otherwise.
45819         (file_has_acl): Add a POSIX ACL implementation, with a
45820         Linux-specific subcase.
45821         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
45822         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
45823         acls are unsupported.
45824         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
45825         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
45826         are unsupported.
45827
45828 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
45829
45830         Sync from coreutils.
45831         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
45832
45833 2006-01-07  Bruno Haible  <bruno@clisp.org>
45834
45835         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
45836         gl_EARLY.
45837
45838 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45839
45840         * lib/strftime.c (tzname): Don't declare if it is already #defined.
45841         Problem reported for Mingw by Mark Junker.
45842
45843 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45844
45845         * README: Gnulib normally doesn't generate a tarball.
45846
45847 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
45848
45849         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
45850         long int, not int, for nanosecond counts, so that people who are
45851         used to POSIX struct timespec won't be surprised.  Reported by Jim
45852         Meyering.
45853
45854 2005-12-28  Bruno Haible  <bruno@clisp.org>
45855
45856         * build-aux/config.rpath: Update from GNU gettext.
45857
45858 2005-12-16  Jim Meyering  <jim@meyering.net>
45859
45860         * modules/fprintftime: New module.
45861         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
45862
45863 2005-12-16  Jim Meyering  <jim@meyering.net>
45864
45865         * m4/fprintftime.m4: New file.
45866
45867 2005-12-16  Jim Meyering  <jim@meyering.net>
45868
45869         * lib/fprintftime.c, lib/fprintftime.h: New files.
45870
45871 2005-12-15  Simon Josefsson  <jas@extundo.com>
45872
45873         * modules/socklen (configure.ac): Fix M4 macro name, to align with
45874         new m4/socklen.m4.
45875
45876 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45877
45878         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
45879         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
45880
45881 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45882
45883         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
45884         * lib/argp-help.c (fill_in_uparams): Check if the constructed
45885         struct uparams is valid. Fall back to the default values if it is
45886         not.
45887
45888 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45889
45890         * modules/argp (Files): Add argp-pin.c
45891         (Depends-on): dirname
45892         (lib_SOURCES): Add argp-pin.c
45893
45894 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45895
45896         * m4/argp.m4:  Check if program_invocation_name and
45897         program_invocation_short_name are declared and define appropriate
45898         macros if they are not.
45899
45900 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45901
45902         * lib/argp-help.c (__argp_base_name): New function
45903         (__argp_short_program_name): Rewrite using __argp_base_name
45904         * lib/argp-namefrob.h: Define program_invocation_name and
45905         program_invocation_short_name if requested
45906         (__argp_base_name): Add prototype
45907         * lib/argp-parse.c (argp_def): Use gettext wrappers
45908         (argp_default_parser): Use __argp_base_name
45909         * lib/argp-pin.c: New file. Defines program_invocation_name and
45910         program_invocation_short_name on systems that lack them.
45911
45912 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
45913
45914         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
45915         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45916         porting problem reported by Georg Schwarz in
45917         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45918
45919 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
45920
45921         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
45922         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45923         porting problem reported by Georg Schwarz in
45924         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45925
45926 2005-12-05  Bruno Haible  <bruno@clisp.org>
45927
45928         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
45929         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
45930         Reported by Mark Junker <mjscod@gmx.de>.
45931
45932 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
45933
45934         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
45935         Use implementation from Albert Chin, with some
45936         comments/corrections by Stepan Kasal and myself.
45937
45938 2005-12-02  Bruno Haible  <bruno@clisp.org>
45939
45940         * gnulib-tool (func_import): Accept GPLed build tool modules when
45941         --lgpl is given.
45942         * modules/csharpcomp-script: New file.
45943         * modules/csharpcomp: Depend on it.
45944         * modules/javacomp-script: New file.
45945         * modules/javacomp: Depend on it.
45946         Suggested by Simon Josefsson.
45947
45948 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
45949
45950         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
45951         statement, to work around an HP-UX 10.20 compiler bug reported by
45952         Peter O'Gorman.
45953
45954 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
45955
45956         * modules/savedir (Depends-on): Add openat.
45957
45958 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
45959
45960         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
45961         (uintmax_t) [defined uintmax_t]: Do not declare.
45962         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
45963         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
45964         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
45965         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
45966         sake of portability to weird hosts that C allows (though we don't
45967         know of any practical examples).
45968
45969         * lib/savedir.h (fdsavedir): New decl.
45970         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
45971         contains most of the former guts of savedir.
45972         (savedir): Use savedirstream.
45973         Include "openat.h".
45974
45975 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
45976
45977         * modules/obstack (Files): Add m4/ulonglong.m4.
45978         Problem reported by Davide Angelocola.
45979
45980 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45981
45982         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
45983         coreutils no longer futzes with rounding modes.
45984
45985 2005-11-14  Jim Meyering  <jim@meyering.net>
45986
45987         * lib/mkstemp-safer.c: Include <config.h>, required for possible
45988         replacement of mkstemp.
45989
45990 2005-11-10  Simon Josefsson  <jas@extundo.com>
45991
45992         * lib/readline.c: Remove EOL.
45993
45994 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45995
45996         * modules/gethrxtime (Depends-on): Add gettime.
45997
45998 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45999
46000         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
46001         or gettimeofday; no longer needed.
46002
46003 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46004
46005         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
46006         time business.
46007         (gethrxtime) [! (HAVE_NANOUPTIME
46008         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
46009         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
46010         our own approximation.
46011
46012 2005-11-08  Eric Blake  <ebb9@byu.net>
46013
46014         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46015
46016 2005-11-08  Eric Blake  <ebb9@byu.net>
46017
46018         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46019
46020 2005-11-04  Bruno Haible  <bruno@clisp.org>
46021
46022         * gnulib-tool: Implement --update mode.
46023
46024 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46025
46026         Fix porting problem reported by Theodoros V. Kalamatianos.
46027         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
46028         Don't assume that futimes failing means we must fail.
46029
46030 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46031
46032         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
46033         variables to suggest the intended function of the PATH_MAX check.
46034
46035 2005-10-30  Kean Johnston  <jkj@sco.com>
46036
46037         Trivial changes to support SCO systems.
46038         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
46039         as PATH_MAX.
46040         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
46041         where __ptr is null when no I/O is pending.
46042
46043 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
46044
46045         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
46046         leave errno alone.  Problem reported by Dmitry V. Levin.
46047
46048 2005-10-28  Simon Josefsson  <jas@extundo.com>
46049
46050         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
46051         Test more.
46052
46053         * tests/test-gc-md2.c, tests/test-md2.c: New files.
46054
46055         * modules/md2, modules/md2-tests: New files.
46056
46057 2005-10-28  Simon Josefsson  <jas@extundo.com>
46058
46059         * m4/inet_ntop.m4: More tests.
46060
46061         * m4/gc-md2.m4, md2.m4: New file.
46062
46063 2005-10-28  Simon Josefsson  <jas@extundo.com>
46064
46065         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
46066         "restrict" keywords, as per POSIX.  Protect the function
46067         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
46068         Don't use K&R prototypes.  Check the sprintf return values.
46069         Re-define EAFNOSUPPORT if not present.  Indent.
46070
46071         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
46072         suggested by Bruno Haible <bruno@clisp.org>.
46073
46074         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
46075
46076         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
46077
46078         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
46079         libgcrypt).
46080
46081         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
46082
46083         * lib/md2.h, lib/md2.c: New files.
46084
46085 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
46086
46087         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
46088         errno alone.  Problem reported by Frederic Jolliton.
46089
46090 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46091
46092         * modules/verify (License): Change from GPL to LGPL.  This is a
46093         tiny module and there are apparently near-equivalents that are
46094         under the BSD license.
46095
46096 2005-10-24  Simon Josefsson  <jas@extundo.com>
46097
46098         * modules/sha1: Relicense to LGPL.
46099
46100 2005-10-24  Simon Josefsson  <jas@extundo.com>
46101
46102         * lib/md4.h: Shrink buffer size, now that we changed the type.
46103
46104 2005-10-23  Simon Josefsson  <jas@extundo.com>
46105
46106         * gnulib-tool (func_import): Fix --tests-base.
46107
46108 2005-10-22  Simon Josefsson  <jas@extundo.com>
46109
46110         * modules/arcfour (Depends-on): Need stdint.
46111
46112 2005-10-22  Simon Josefsson  <jas@extundo.com>
46113
46114         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
46115         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
46116
46117 2005-10-22  Simon Josefsson  <jas@extundo.com>
46118
46119         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
46120         suggested by Bruno Haible <bruno@clisp.org>.
46121
46122 2005-10-22  Simon Josefsson  <jas@extundo.com>
46123
46124         * lib/crc.h: Include stddef.h, for size_t.
46125
46126 2005-10-22  Simon Josefsson  <jas@extundo.com>
46127
46128         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
46129         arcfour_context struct (simplify test vector testing in GNU
46130         Shishi).
46131
46132 2005-10-21  Simon Josefsson  <jas@extundo.com>
46133
46134         * modules/des, modules/des-tests: New files.
46135
46136         * modules/gc-des, modules/gc-des-tests: New files.
46137
46138         * tests/test-des.c, tests/test-gc-des.c: New file.
46139
46140 2005-10-21  Simon Josefsson  <jas@extundo.com>
46141
46142         * modules/arctwo, modules/arctwo-tests: New files.
46143
46144         * tests/test-arctwo.c: New file.
46145
46146         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
46147
46148         * tests/test-gc-arctwo.c: New file.
46149
46150 2005-10-21  Simon Josefsson  <jas@extundo.com>
46151
46152         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
46153         Bruno Haible <bruno@clisp.org>.
46154
46155         * m4/gc-des.m4: New file.
46156
46157 2005-10-21  Simon Josefsson  <jas@extundo.com>
46158
46159         * m4/arctwo.m4: New file.
46160
46161         * m4/gc-arctwo.m4: New file.
46162
46163 2005-10-21  Simon Josefsson  <jas@extundo.com>
46164
46165         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
46166         block.
46167
46168 2005-10-21  Simon Josefsson  <jas@extundo.com>
46169
46170         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
46171         <bruno@clisp.org>.
46172
46173         * lib/hmac-sha1.c (hmac_sha1): Likewise.
46174
46175         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
46176         Bruno Haible <bruno@clisp.org>.
46177
46178         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
46179         <bruno@clisp.org>.
46180
46181 2005-10-21  Simon Josefsson  <jas@extundo.com>
46182
46183         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
46184
46185 2005-10-21  Simon Josefsson  <jas@extundo.com>
46186
46187         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
46188
46189 2005-10-21  Simon Josefsson  <jas@extundo.com>
46190
46191         * lib/des.h, lib/des.c: New files.
46192
46193         * lib/gc-gnulib.c: Support DES.c
46194
46195 2005-10-21  Simon Josefsson  <jas@extundo.com>
46196
46197         * lib/arctwo.h, lib/arctwo.c: New files.
46198
46199         * lib/gc-gnulib.c: Support ARCTWO.
46200
46201 2005-10-21  Simon Josefsson  <jas@extundo.com>
46202
46203         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
46204         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46205
46206 2005-10-21  Simon Josefsson  <jas@extundo.com>
46207
46208         * gnulib-tool (func_import, func_create_testdir): Define automake
46209         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
46210         Makefile.am snippet),
46211         suggested by Bruno Haible <bruno@clisp.org>.
46212
46213         * modules/gc (Makefile.am): Use it.
46214
46215 2005-10-21  Bruno Haible  <bruno@clisp.org>
46216
46217         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
46218         patch.
46219
46220 2005-10-19  Simon Josefsson  <jas@extundo.com>
46221
46222         * tests/test-gc-rijndael.c: New file.
46223
46224         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
46225
46226 2005-10-19  Simon Josefsson  <jas@extundo.com>
46227
46228         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
46229         interface too.
46230
46231 2005-10-19  Simon Josefsson  <jas@extundo.com>
46232
46233         * tests/test-gc-arcfour.c: New file.
46234
46235         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
46236
46237 2005-10-19  Simon Josefsson  <jas@extundo.com>
46238
46239         * modules/gc-md4, modules/gc-md4-tests: New file.
46240
46241         * tests/test-gc-md4.c: New file.
46242
46243 2005-10-19  Simon Josefsson  <jas@extundo.com>
46244
46245         * m4/gc-md4.m4: New file.
46246
46247 2005-10-19  Simon Josefsson  <jas@extundo.com>
46248
46249         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
46250         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
46251         <kasal@ucw.cz>.
46252
46253 2005-10-19  Simon Josefsson  <jas@extundo.com>
46254
46255         * m4/gc-arcfour.m4: New file.
46256
46257         * m4/gc-rijndael.m4: New file.
46258
46259 2005-10-19  Simon Josefsson  <jas@extundo.com>
46260
46261         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
46262
46263 2005-10-19  Simon Josefsson  <jas@extundo.com>
46264
46265         * lib/gc-gnulib.c: Support ARCFOUR.
46266
46267 2005-10-19  Simon Josefsson  <jas@extundo.com>
46268
46269         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
46270         support.
46271
46272         * lib/gc.h: Add ECB enum type.
46273
46274         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
46275
46276 2005-10-18  Simon Josefsson  <jas@extundo.com>
46277
46278         * tests/test-md5.c: New file.
46279
46280         * modules/md5-tests: New file.
46281
46282 2005-10-18  Simon Josefsson  <jas@extundo.com>
46283
46284         * tests/test-md4.c: New file.
46285
46286         * modules/md4, modules/md4-tests: New files.
46287
46288 2005-10-18  Simon Josefsson  <jas@extundo.com>
46289
46290         * m4/md4.m4: New file.
46291
46292 2005-10-18  Simon Josefsson  <jas@extundo.com>
46293
46294         * lib/md4.h, lib/md4.c: New files, based on md5.?.
46295
46296 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
46297
46298         * gnulib-tool (func_create_testdir): Omit the second check whether
46299         BUILT_SOURCES in nonempty.
46300
46301 2005-10-17  Simon Josefsson  <jas@extundo.com>
46302
46303         * tests/test-rijndael.c: New file.
46304
46305 2005-10-17  Simon Josefsson  <jas@extundo.com>
46306
46307         * modules/sha1: Depend on stdint instead of md5.
46308
46309         * modules/md5: Depend on stdint, remove uint32_t.
46310
46311 2005-10-17  Simon Josefsson  <jas@extundo.com>
46312
46313         * modules/gc-sha1-tests: New file.
46314
46315         * tests/test-gc-sha1.c: New file.
46316
46317 2005-10-17  Simon Josefsson  <jas@extundo.com>
46318
46319         * m4/md5.m4: Remove call to uint32_t.m4.
46320
46321 2005-10-17  Simon Josefsson  <jas@extundo.com>
46322
46323         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
46324
46325         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
46326         md5.h.
46327
46328         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
46329
46330         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
46331
46332 2005-10-17  Simon Josefsson  <jas@extundo.com>
46333
46334         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
46335
46336 2005-10-17  Simon Josefsson  <jas@extundo.com>
46337
46338         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
46339
46340 2005-10-17  Simon Josefsson  <jas@extundo.com>
46341
46342         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
46343
46344         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
46345
46346 2005-10-17  Bruno Haible  <bruno@clisp.org>
46347
46348         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
46349         that it can also be used in a test.
46350
46351 2005-10-16  Bruno Haible  <bruno@clisp.org>
46352
46353         * gnulib-tool (func_emit_tests_Makefile_am): Also define
46354         TESTS_ENVIRONMENT, so that individual tests can augment it.
46355
46356         * gnulib-tool (func_create_testdir): Use an intermediate target for
46357         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
46358         macros, like $(ALLOCA_H), which cannot be passed through the command
46359         line.
46360
46361 2005-10-15  Simon Josefsson  <jas@extundo.com>
46362
46363         * modules/rijndael-tests: New file.
46364
46365         * modules/rijndael: New file.
46366
46367 2005-10-15  Simon Josefsson  <jas@extundo.com>
46368
46369         * m4/rijndael.m4: New file.
46370
46371 2005-10-15  Simon Josefsson  <jas@extundo.com>
46372
46373         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
46374
46375         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
46376
46377 2005-10-14  Simon Josefsson  <jas@extundo.com>
46378
46379         * tests/test-arcfour.c: New file.
46380
46381         * modules/arcfour, modules/arcfour-tests: New files.
46382
46383 2005-10-14  Simon Josefsson  <jas@extundo.com>
46384
46385         * m4/arcfour.m4: New file.
46386
46387 2005-10-14  Simon Josefsson  <jas@extundo.com>
46388
46389         * lib/arcfour.h, lib/arcfour.c: New files.
46390
46391 2005-10-14  Roland McGrath  <roland@redhat.com>
46392
46393         Import from libc.  [BZ #1331]
46394         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
46395         macro argument.
46396         Reported by Matej Vela <vela@debian.org>.
46397
46398 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46399
46400         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
46401         include <wchar.h>; no longer needed.
46402
46403 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46404
46405         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
46406
46407 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
46408         and  Ulrich Drepper  <drepper@redhat.com>
46409
46410         Import from libc.
46411         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
46412         instead of inline stream orientation test and two separate
46413         function calls.  Pay no attention to USE_IN_LIBIO.
46414
46415 2005-10-13  Simon Josefsson  <jas@extundo.com>
46416
46417         * modules/gc-hmac-md5-tests: New file.
46418
46419         * tests/test-gc-hmac-sha1.c: New file.
46420
46421         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
46422
46423         * modules/gc-hmac-md5-tests: New file.
46424
46425         * tests/test-gc-md5.c: New file.
46426
46427         * modules/gc-md5-tests: New file.
46428
46429 2005-10-13  Simon Josefsson  <jas@extundo.com>
46430
46431         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
46432         Move memory allocation outside of loop.
46433
46434 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
46435
46436         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
46437         intermediate directory is in a read-only file system.  Problem
46438         reported by Eric Blake.
46439
46440 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
46441
46442         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
46443
46444 2005-10-12  Simon Josefsson  <jas@extundo.com>
46445
46446         * tests/test-hmac-sha1.c: New file.
46447
46448         * modules/hmac-sha1-tests: New file.
46449
46450         * modules/hmac-sha1: New file.
46451
46452 2005-10-12  Simon Josefsson  <jas@extundo.com>
46453
46454         * modules/gc-sha1: New file.
46455
46456 2005-10-12  Simon Josefsson  <jas@extundo.com>
46457
46458         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
46459
46460         * tests/test-gc-pbkdf2-sha1.c: New file.
46461
46462 2005-10-12  Simon Josefsson  <jas@extundo.com>
46463
46464         * modules/gc-md5, modules/gc-hmac-md5: New files.
46465
46466         * modules/gc (Files): Remove md5, memxor and hmac files.
46467
46468 2005-10-12  Simon Josefsson  <jas@extundo.com>
46469
46470         * m4/gc-pbkdf2-sha1.m4: New file.
46471
46472         * m4/gc-hmac-sha1.m4: New file.
46473
46474         * m4/gc-sha1: New file.
46475
46476         * m4/hmac-sha1.m4: New file.
46477
46478 2005-10-12  Simon Josefsson  <jas@extundo.com>
46479
46480         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
46481
46482         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
46483
46484 2005-10-12  Simon Josefsson  <jas@extundo.com>
46485
46486         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
46487         suggested by Bruno Haible <bruno@clisp.org>.
46488
46489 2005-10-12  Simon Josefsson  <jas@extundo.com>
46490
46491         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
46492
46493 2005-10-12  Simon Josefsson  <jas@extundo.com>
46494
46495         * lib/gc-pbkdf2-sha1.c: New file.
46496
46497         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
46498
46499 2005-10-12  Simon Josefsson  <jas@extundo.com>
46500
46501         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
46502
46503         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
46504
46505 2005-10-12  Simon Josefsson  <jas@extundo.com>
46506
46507         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
46508         GC_USE_HMAC_MD5, respectively.
46509
46510         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
46511         (gc_md5): Fix typo.
46512
46513         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
46514
46515         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
46516
46517         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
46518
46519 2005-10-12  Bruno Haible  <bruno@clisp.org>
46520
46521         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
46522         Reported by Stepan Kasal <kasal@ucw.cz>.
46523
46524 2005-10-11  Simon Josefsson  <jas@extundo.com>
46525
46526         * tests/test-crc.c: New file.
46527
46528         * modules/crc, modules/crc-tests: New files.
46529
46530 2005-10-11  Simon Josefsson  <jas@extundo.com>
46531
46532         * m4/crc.m4: New file.
46533
46534 2005-10-11  Simon Josefsson  <jas@extundo.com>
46535
46536         * lib/gc.h: Add gc_hash and gc_hash_buffer.
46537
46538         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
46539
46540         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
46541
46542 2005-10-11  Simon Josefsson  <jas@extundo.com>
46543
46544         * lib/crc.h, lib/crc.c: New files.
46545
46546         * lib/gc.h (gc_hash_buffer): Add doc.
46547
46548 2005-10-11  Bruno Haible  <bruno@clisp.org>
46549
46550         * modules/c-strcasestr: New file.
46551         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
46552
46553 2005-10-11  Bruno Haible  <bruno@clisp.org>
46554
46555         * modules/c-strcase: New file.
46556         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
46557
46558 2005-10-11  Bruno Haible  <bruno@clisp.org>
46559
46560         * lib/strcasecmp.c: Include limits.h.
46561         (strcasecmp): Avoid integer overflow on exotic platforms.
46562         * lib/strncasecmp.c: Include limits.h.
46563         (strncasecmp): Avoid integer overflow on exotic platforms.
46564         Reported by Paul Eggert.
46565
46566 2005-10-11  Bruno Haible  <bruno@clisp.org>
46567
46568         * lib/c-strcasestr.h: New file, from GNU gettext.
46569         * lib/c-strcasestr.c: New file, from GNU gettext.
46570
46571 2005-10-11  Bruno Haible  <bruno@clisp.org>
46572
46573         * lib/c-strcase.h: New file, from GNU gettext.
46574         * lib/c-strcasecmp.c: New file, from GNU gettext.
46575         * lib/c-strncasecmp.c: New file, from GNU gettext.
46576
46577 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
46578
46579         * modules/mempcpy (License): GPL -> LGPL.
46580         * modules/strchrnul (License): Likewise.
46581         * modules/sysexits (License): Likewise.
46582
46583 2005-10-08  Simon Josefsson  <jas@extundo.com>
46584
46585         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
46586
46587 2005-10-07  Simon Josefsson  <jas@extundo.com>
46588
46589         * m4/memxor.m4: Remove gl_C_RESTRICT call.
46590
46591 2005-10-06  Simon Josefsson  <jas@extundo.com>
46592
46593         * tests/test-hmac-md5.c: New file.
46594
46595         * modules/hmac-md5-tests: New file.
46596
46597         * modules/hmac-md5: New file.
46598
46599 2005-10-06  Simon Josefsson  <jas@extundo.com>
46600
46601         * m4/hmac-md5.m4: New file.
46602
46603         * m4/memxor.m4: Require gl_C_RESTRICT.
46604
46605 2005-10-06  Simon Josefsson  <jas@extundo.com>
46606
46607         * lib/memxor.c (memxor): Avoid casts and warnings.
46608
46609 2005-10-06  Simon Josefsson  <jas@extundo.com>
46610
46611         * lib/hmac-md5.c: New file.
46612
46613         * lib/hmac.h: New file.
46614
46615 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
46616
46617         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
46618         promotes to int, not unsigned int, to catch the AIX 5.3
46619         compiler bug.
46620
46621 2005-10-05  Simon Josefsson  <jas@extundo.com>
46622
46623         * modules/memxor: New file.
46624
46625         * modules/iconv (Files): Move config.rpath to havelib, it is used
46626         there.
46627
46628         * modules/havelib (Files): Add config.rpath.
46629
46630 2005-10-05  Simon Josefsson  <jas@extundo.com>
46631
46632         * m4/memxor.m4: New file.
46633
46634 2005-10-05  Simon Josefsson  <jas@extundo.com>
46635
46636         * lib/memxor.c (memxor): Fix compiler error.
46637
46638         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
46639         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
46640
46641         * lib/memxor.h, lib/memxor.c: New files.
46642
46643         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
46644         we assume all systems have it, suggested by Jim Meyering
46645         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
46646         any systems lack sys/socket.h; mingw32 is known to lack it, but we
46647         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
46648         same reasons.
46649
46650 2005-10-05  Simon Josefsson  <jas@extundo.com>
46651
46652         * config/srclist.txt: Add glibc bug 1423 for md5.h.
46653
46654 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46655
46656         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
46657         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
46658         needed, since the source code now assumes these .h files.
46659
46660 2005-10-05  Derek Price  <derek@ximbiot.com>
46661
46662         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
46663
46664 2005-10-05  Bruno Haible  <bruno@clisp.org>
46665
46666         * modules/stdint (License): Change to LGPL.
46667
46668 2005-10-04  Simon Josefsson  <jas@extundo.com>
46669
46670         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
46671         D. Baushke" <mdb@gnu.org>.
46672
46673 2005-10-04  Bruno Haible  <bruno@clisp.org>
46674
46675         * lib/verify.h (verify_true): Provide alternative definition for C++.
46676
46677 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
46678
46679         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
46680         (SSIZE_MAX): New macro, if not already defined.
46681         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
46682         than 2 GiB.
46683
46684 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
46685
46686         Sync from coreutils.
46687         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
46688         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
46689         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
46690         ULLONG_MAX doesn't work with 2.7.2.1.
46691
46692 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
46693
46694         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
46695         From Ben Pfaff.
46696
46697         * modules/exclude (Depends-on): Depend on verify.
46698         * modules/strtoimax (Depends-on): Likewise.
46699         * modules/utimecmp (Depends-on): Likewise.
46700
46701 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
46702
46703         * lib/exclude.c: Include verify.h.
46704         (verify): Remove.  All callers changed to use verify.h's version.
46705         * lib/strtoimax.c: Likewise.
46706         * lib/utimecmp.c: Likewis.e
46707
46708         Sync from coreutils.
46709         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
46710         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
46711         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
46712         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
46713         bother returning ENOSYS if settimeofday or stime fails; just let
46714         them return whatever errno they want to return.
46715         * lib/utimens.c: Include unistd.h, for dup2.
46716         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
46717         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
46718
46719 2005-10-02  Jim Meyering  <jim@meyering.net>
46720
46721         Sync from coreutils.
46722         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
46723         from glibc-2.2.5 that fails for read-only files.
46724
46725 2005-10-02  Jim Meyering  <jim@meyering.net>
46726
46727         Sync from coreutils.
46728         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
46729         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
46730         `#if HAVE_CONFIG_H'.
46731         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
46732         Remove AT_FDCWD test.
46733         Do not consume the fd unless successful.
46734         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
46735         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
46736         block, so that we don't even try to compile it if settimeofday is
46737         available.  This works around a compilation failure on OSF1 V5.1,
46738         due to stime requiring a `long int*' while tv_sec is `int'.
46739
46740 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
46741
46742         Sync from coreutils.
46743         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
46744         against `yes', rather than just testing for nonempty.
46745
46746 2005-10-01  Simon Josefsson  <jas@extundo.com>
46747
46748         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
46749         and Darwin.
46750
46751         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
46752         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
46753         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
46754         freeaddrinfo and gai_strerror are declared by the POSIX headers.
46755         Check if struct addrinfo is declared.
46756
46757 2005-10-01  Simon Josefsson  <jas@extundo.com>
46758
46759         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
46760         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
46761         AI_* and EAI_* definitions.  Protect function declarations.
46762
46763 2005-10-01  Jim Meyering  <jim@meyering.net>
46764
46765         Sync from coreutils.
46766
46767         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
46768         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
46769         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
46770         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
46771         in the inet and nsl libraries.  Required on Solaris 5.7.
46772
46773 2005-10-01  Jim Meyering  <jim@meyering.net>
46774
46775         Sync from coreutils.
46776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
46777         in the inet and nsl libraries.  Required on Solaris 5.7.
46778
46779 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
46780
46781         * lib/getdelim.c (getdelim): Remove unused variables.
46782
46783 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
46784
46785         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
46786         so that the code works even with ancient cpp.  Portability problem
46787         with GCC 2.7.2.1 reported by Thomas M.Ott.
46788
46789 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
46790
46791         * modules/regex (Depends-on): Add strcase.
46792
46793         * modules/gethostname (Licence): Change from GPL to LGPL, since
46794         gethostname.c is a trivial implementation of a standard library
46795         function.
46796         * modules/poll (License): Change from GPL to LGPL, since it's
46797         derived from LGPL code.
46798
46799 2005-09-27  Jim Meyering  <jim@meyering.net>
46800
46801         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
46802         HAVE_CONFIG_H.
46803
46804         * lib/intprops.h (signed_type_or_expr__): Define.
46805         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
46806         for unsigned types.
46807
46808 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46809
46810         * lib/verify.h (verify_expr): Remove, replacing with:
46811         (verify_true): New macro that returns true instead of void.
46812         (verify_type__): Remove.
46813         (verify): Use verify_true rather than verify_type__.
46814
46815 2005-09-26  Bruno Haible  <bruno@clisp.org>
46816
46817         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
46818         is necessary.
46819         (lib_SOURCES): Remove mbchar.c.
46820         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
46821         (Files): Add m4/mbrtowc.m4.
46822         * modules/mbiter: Likewise.
46823         * modules/mbuiter: Likewise.
46824
46825 2005-09-26  Bruno Haible  <bruno@clisp.org>
46826
46827         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
46828         compile mbchar.c if they are not both present.
46829         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
46830         * m4/mbiter.m4 (gl_MBITER): Likewise.
46831         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
46832         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
46833         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
46834
46835 2005-09-25  Jim Meyering  <jim@meyering.net>
46836
46837         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
46838         also uses socklen_t.
46839
46840 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
46841
46842         * lib/utimens.c (ENOSYS): Define if not already defined.
46843         (futimens): Support having a null PATH if the file descriptor
46844         is nonnegative.
46845
46846         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
46847         Remove.
46848         (__attribute): Define to empty unless GCC 3.1 or later.
46849         This works around a core dump on OpenBSD 3.4, which has GCC
46850         2.95.3, which dumps core when given __attribute__(()).  It also
46851         simplifies other tests, since we really don't want to bother with
46852         worrying about which ancient version of GCC supported what.
46853         Original problem reported by Yoann Vandoorselaere, with part of
46854         the fix suggested by Derek Price.
46855
46856 2005-09-24  Jim Meyering  <jim@meyering.net>
46857
46858         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
46859         so we can once again use a positive bitfield width of 1 -- now we
46860         don't have to explain why we were using a bitfield width of 2.
46861
46862 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46863
46864         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
46865         and similarly for the other external symbols.  Problem reported
46866         by James Gallager.
46867
46868         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
46869         bug reported by Jim Meyering.
46870
46871         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
46872         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
46873         not needed, since socklen is a prerequisite module.
46874
46875 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46876
46877         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
46878         Problem reported by Eric Blake.
46879         (getaddrinfo): Initialize se so that it's not garbage.
46880         Redo internal storage allocation so that it doesn't make unportable
46881         assumptions about alignment.
46882         Fix a memory leak.
46883
46884         * lib/utimens.c (futimens): Use futimesat if available.
46885         Prefer it to futimes since it doesn't have the futimes bug.
46886
46887         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
46888         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
46889         Instead, declare a function that returns a pointer to an array,
46890         and use verify_type__ to declare the size of the array.
46891         Problem and germ of a solution reported by Bruno Haible.
46892         (verify_type__): Use 2, not 1, for bitfield size, to avoid
46893         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
46894
46895 2005-09-23  Jim Meyering  <jim@meyering.net>
46896
46897         Sync from coreutils.
46898         Correct build failure (socklen_t not defined) on at least
46899         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
46900         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
46901
46902 2005-09-23  Jim Meyering  <jim@meyering.net>
46903
46904         * modules/getaddrinfo (Depends-on): Add socklen.
46905
46906 2005-09-23  Bruno Haible  <bruno@clisp.org>
46907
46908         * tests/test-verify.c: New file.
46909
46910 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46911
46912         Sync from coreutils.
46913
46914         * modules/argmatch (Depends-on): Add verify.
46915         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
46916         unistd-safer.
46917         * modules/save-cwd (Depends-on): Likewise.
46918
46919         * modules/openat (Files): Add lib/openat-die.c.
46920         (Depends-on): Remove error, exitfail.
46921         Add dirname.
46922
46923         * modules/verify: New file.
46924         * MODULES.html.sh (Diagnostics <assert.h>): New section,
46925         with "verify" module.
46926
46927 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46928
46929         Sync from coreutils.
46930
46931         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
46932         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
46933         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
46934         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
46935         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
46936         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
46937         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
46938         Don't bother checking for string.h, stdlib.h, unistd.h.
46939         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
46940         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
46941         module's job.
46942         * m4/jm-macros.m4 (gl_MACROS): Likewise.
46943         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
46944
46945         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
46946         (gl_GETDATE): Use it.
46947
46948         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
46949
46950 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46951
46952         Sync from coreutils.
46953
46954         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
46955         stat-time.h.
46956         * lib/argmatch.h: Include verify.h
46957         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
46958         (ARGMATCH_ASSERT): Remove; unused.
46959         * lib/canonicalize.c: Assume STDC_HEADERS.
46960         * lib/exclude.c: Include "strcase.h".
46961         * lib/regex_internal.h [!defined _LIBC]: Likewise.
46962         * lib/getusershell.c: Include stdio--.h rather than stdio.h
46963         and stdio-safer.h.
46964         (getusershell): Call fopen, not fopen_safer.
46965         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
46966         Do not include unistd-safer.h.
46967         (save_cwd): Don't call fd_safer; no longer needed
46968         now that we include fcntl--.h.
46969
46970         * lib/getdate.y (relative_time): New type.
46971         (RELATIVE_TIME_0): New constant.
46972         (parser_control): Use relative_time instead of doing it ourselves.
46973         (%union): Add new relative_time rel member.
46974         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
46975         Now typeless.
46976         (relunit, relunit_snumber): Now of type rel.
46977         (zone, rel, relunit, get_date): Adjust to above changes.
46978
46979         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
46980         Do not include unistd-safer.h.
46981         (getloadavg): Don't call fd_safer; no longer needed
46982         now that we include fcntl--.h.
46983
46984         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
46985         (make_dir_parents): Treat ENOSYS like EEXIST.
46986
46987         Improve quality of diagnostics on restore_cwd failure.
46988         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
46989         (make_dir_parents): Last arg is now int * (for errno), not bool *.
46990         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
46991         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
46992         each time through the loop.  Do not diagnose restore_cwd failure;
46993         that is the caller's job (and perhaps the caller does not care).
46994
46995         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
46996         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
46997         If the file already exists but is not a directory, don't bother
46998         to try to make its parents.
46999         Close potential file descriptor leak if we can't chdir("/") (!).
47000         Don't always return true if chdir($PWD) fails; return true only
47001         if the requested action was done successfully (except for the
47002         chdir($PWD)).
47003         Don't log final directory unless we actually made it.
47004         Refactor to avoid duplicate code to fix up permissions.
47005         Don't attempt to fix up parent permissions if chdir($PWD) fails.
47006
47007         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
47008         to make it a bit faster and (I hope) clearer.
47009         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
47010         Fix bug in formats like %2N.
47011
47012         * lib/verify.h: New file.
47013
47014 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47015
47016         Sync from coreutils.
47017         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
47018
47019 2005-09-22  Jim Meyering  <jim@meyering.net>
47020
47021         Sync from coreutils.
47022
47023         * m4/lstat.m4 (gl_FUNC_LSTAT):
47024         Use AC_LIBSOURCES to require lstat.c and lstat.h.
47025         Remove obsolete comment.
47026         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
47027         * m4/xstrtod.m4: Likewise.
47028
47029         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
47030
47031 2005-09-22  Jim Meyering  <jim@meyering.net>
47032
47033         Sync from coreutils.
47034
47035         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
47036
47037         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
47038         the .tm_year member, since otherwise gcc-4.0 would now warn about
47039         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
47040
47041         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
47042         order to avoid an unsuppressible warning from gcc on 64-bit systems.
47043
47044         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
47045         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
47046         when run in a time zone for which daylight savings time is in effect
47047         for the starting date.
47048
47049         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
47050         stop us from restricting permissions of just-created absolute-named
47051         directories.
47052         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
47053         to restore initial working directory.
47054         * lib/mkdir-p.c (make_dir_parents): New parameter:
47055         different_working_dir, to tell caller if/when we change the working
47056         directory and are unable to return to the initial one.
47057         * lib/mkdir-p.h (make_dir_parents): Update prototype.
47058         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
47059         `return false'.  This fixes a bug introduced on 2004-07-30.
47060
47061         * lib/openat.c (fdopendir): Be sure to close the supplied
47062         file descriptor before returning.  This makes our replacement
47063         implementation a little closer to Solaris's, where fdopendir
47064         ties the file descriptor to the returned DIR* pointer.
47065         * lib/openat.c (unlinkat): New function.
47066         * lib/openat.h (unlinkat): Add prototype.
47067         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
47068         (openat_restore_fail): Rename from openat_restore_die.
47069         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
47070
47071         Provide an alternative to exiting immediately upon save_cwd or
47072         restore_cwd failure.  Now, an application can arrange e.g.,
47073         to perform a longjump in that case.
47074         * lib/openat.c: Include dirname.h.
47075         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
47076         (rpl_openat, fdopendir, fstatat): Call openat_save_die
47077         and openat_restore_die rather than calling error directly.
47078         Don't include "error.h" or "exitfail.h"; they're no longer needed.
47079
47080         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
47081         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
47082         define.
47083
47084         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
47085         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
47086                             int utc, int nanoseconds);
47087         Background:
47088         date should not have to allocate a megabyte of virtual memory to
47089         handle a format argument like +%1048575T.  When implemented with
47090         strftime, it must allocate such a buffer, use strftime to fill it
47091         in, print it, then free it.
47092         With fprintftime, it simply prints everything and exits.
47093         With no need for memory allocation, that's one fewer way to fail.
47094         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
47095         optional field width, not before, so we accept %9:z, not %:9z.
47096         (my_strftime): Be sure to use L_('x') for literals.
47097
47098         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
47099         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
47100         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
47101         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
47102         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
47103         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
47104         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
47105         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
47106         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
47107         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
47108         * lib/xgethostname.c, lib/xreadlink.c:
47109         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
47110
47111         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
47112         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
47113         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
47114         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
47115         and don't include <sys/file.h>).
47116
47117 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
47118
47119         Sync from coreutils.
47120
47121         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
47122         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
47123         [!LDAV_DONE]: Avoid unused variable warning.
47124
47125 2005-09-21  Bruno Haible  <bruno@clisp.org>
47126
47127         * lib/unicodeio.h (unicode_to_mb): New declaration.
47128
47129 2005-09-20  Derek Price  <derek@ximbiot.com>
47130
47131         * lib/getaddrinfo.c: Don't include <netdb.h> included from
47132         getaddrinfo.h.
47133
47134 2005-09-20  Bruno Haible  <bruno@clisp.org>
47135
47136         * gnulib-tool: Remove trailing slashes from the values specified for
47137         --source-base, --m4-base, --tests-base, --aux-dir.
47138         Suggested by Simon Josefsson <jas@extundo.com>.
47139
47140 2005-09-20  Bruno Haible  <bruno@clisp.org>
47141
47142         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
47143         func_modules_to_filelist, func_import, func_create_testdir): Make all
47144         sorting results locale-independent, so that gnulib-cache.m4 doesn't
47145         change when gnulib-tool is invoked in a different locale.
47146
47147 2005-09-19  Simon Josefsson  <jas@extundo.com>
47148
47149         * m4/socklen.m4: Fix typo.
47150
47151 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47152
47153         Use a consistent style for including <config.h>.
47154         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
47155         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
47156         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
47157         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
47158         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
47159         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
47160         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
47161         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
47162         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
47163         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
47164         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
47165         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
47166         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
47167         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
47168         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
47169         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
47170         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
47171         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
47172         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
47173         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
47174         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
47175         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
47176         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
47177         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
47178         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
47179         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
47180         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
47181         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
47182         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
47183         lib/xstrtoumax.c, lib/yesno.c:
47184         Standardize inclusion of config.h.
47185         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
47186         lib/inttostr.h:  Removed inclusion of config.h from header files.
47187         * lib/inttostr.c:  Adjusted in-tree users.
47188         * lib/timespec.h: Remove superfluous warning to include config.h.
47189         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
47190         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
47191         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
47192         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
47193         config.h with HAVE_CONFIG_H.
47194
47195 2005-09-19  Jim Meyering  <jim@meyering.net>
47196
47197         * modules/pathmax (License): Change to LGPL.
47198
47199 2005-09-19  Derek Price  <derek@ximbiot.com>
47200
47201         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
47202
47203 2005-09-19  Bruno Haible  <bruno@clisp.org>
47204
47205         * gnulib-tool (import): Provide default for --tests-base.
47206
47207 2005-09-19  Bruno Haible  <bruno@clisp.org>
47208
47209         * doc/quote.texi: New file, extracted from gnulib.texi.
47210         * doc/ctime.texi: New file, extracted from gnulib.texi.
47211         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
47212         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
47213         * doc/gnulib.texi: Include them.
47214
47215 2005-09-18  Bruno Haible  <bruno@clisp.org>
47216
47217         Portability fix.
47218         * gnulib-tool (func_readlink): New function.
47219         (func_ln_if_changed): Use it.
47220
47221 2005-09-18  Bruno Haible  <bruno@clisp.org>
47222
47223         * gnulib-tool: Support --with-tests also with --import.
47224         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
47225         (func_import): Use variables $testsbase and $inctests. Emit a
47226         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
47227         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
47228         SUBDIRS += $testsdir.
47229         (func_create_testdir): Update.
47230
47231 2005-09-18  Bruno Haible  <bruno@clisp.org>
47232
47233         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
47234         instead of $dry_run.
47235         (func_cp_if_changed, func_mv_if_changed): Remove functions.
47236         (func_ln_if_changed): Don't handle dry-run here.
47237         (func_import): In dry-run mode, detect more precisely which actions
47238         would be performed, and don't use "...ing" verbs.
47239
47240 2005-09-18  Bruno Haible  <bruno@clisp.org>
47241
47242         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
47243         (func_import): Use join on two temporary files instead of three nested
47244         loops, in order to determine which files are new or old.
47245
47246 2005-09-18  Bruno Haible  <bruno@clisp.org>
47247
47248         * gnulib-tool (func_import): Comment out code that spits out the
47249         new files with --dry-run.
47250
47251 2005-09-18  Bruno Haible  <bruno@clisp.org>
47252
47253         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
47254
47255 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47256
47257         * lib/stat-time.h: New file.
47258         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
47259         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
47260         in a different way.
47261         (timespec_cmp): New function.
47262         * lib/utimecmp.c: Include stat-time.h.
47263         (SYSCALL_RESOLUTION): Depend on whether various struct stat
47264         members exist, not on the obsolescent ST_MTIM_NSEC.
47265         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
47266
47267 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47268
47269         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
47270
47271 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47272
47273         * MODULES.html.sh (File system functions): Add stat-time.
47274         * modules/stat-time: New file.
47275         * modules/timespec (Files): Remove m4/st_mtim.m4; this
47276         is now done in a different way, by the stat-time module.
47277         * modules/utimecmp (Depends-on): Add stat-time.
47278
47279 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47280
47281         * m4/st_mtim.m4: Remove.  Superseded by...
47282         * m4/stat-time.m4: New file.
47283         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
47284         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
47285
47286 2005-09-15  Derek Price  <derek@ximbiot.com>
47287
47288         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
47289
47290 2005-09-15  Derek Price  <derek@ximbiot.com>
47291
47292         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
47293         * lib/regex_internal.c: Ditto, using this...
47294         (__GNUC_PREREQ): ...new macro.
47295         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
47296         using...
47297         (__GNUC_PREREQ): ...this new macro.
47298
47299         * lib/strstr.h: Include string.h. Define strstr as a macro here.
47300
47301 2005-09-15  Derek Price  <derek@ximbiot.com>
47302             Paul Eggert  <eggert@cs.ucla.edu>
47303
47304         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
47305         changes, consolidating in...
47306         * lib/regex_internal.h: ...this file.
47307
47308 2005-09-13  Jim Meyering  <jim@meyering.net>
47309
47310         * lib/canon-host.c: Filter through gnu indent and reword comments
47311         slightly.
47312         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
47313
47314 2005-09-13  Derek Price  <derek@ximbiot.com>
47315
47316         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
47317         failure.
47318         Reported by Jim Meyering  <jim@meyering.net>.
47319
47320 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47321
47322         * lib/base64.c: Typo.
47323         (base64_encode): Put b64str in initialized data section.
47324
47325 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
47326
47327         Merge glibc and coreutils changes into gnulib, plus a few
47328         extra fixes.
47329         * lib/md5.c: Use #error rather than a string.
47330         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
47331         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
47332         (__attribute__): Define to empty for non recent-GCC.
47333         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
47334         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
47335         Renamed from their non-__ counterparts, with new macros replacing
47336         them if not _LIBC.  Add __THROW attribute.
47337         (rol): Remove.
47338         (struct md5_ctx): Align buffer if using GCC.
47339         * lib/sha1.h (struct sha1_ctx): Likewise.
47340         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
47341         The old name was backwards.
47342         (NOTSWAP): Remove; not used.
47343         (rol): New macro, moved here from md5.h.
47344         (sha1_process_block): Remove a FIXME that doesn't make sense.
47345
47346 2005-09-12  Derek Price  <derek@ximbiot.com>
47347
47348         Return usable errors from canon-host.
47349         * lib/canon-host.h: New file.
47350         * lib/canon-host.c (canon_host): Wrap...
47351         (canon_host_r): ...this new function, which now relies exclusively on
47352         getaddrinfo.
47353         (ch_strerror): New function.
47354         (last_cherror): New global.
47355         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
47356         interface.
47357         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
47358         void *.
47359         (freeaddrinfo): Free ai->ai_canonname when set.
47360
47361 2005-09-12  Derek Price  <derek@ximbiot.com>
47362
47363         Make canon-host require getaddrinfo.
47364         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
47365         AC_LIBSOURCE canon-host.h.  Call...
47366         (gl_PREREQ_CANON_HOST): ...this new function, which requires
47367         gl_GETADDRINFO.
47368         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
47369
47370 2005-09-12  Derek Price  <derek@ximbiot.com>
47371
47372         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
47373         LGPL.
47374         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
47375
47376 2005-09-12  Derek Price  <derek@ximbiot.com>
47377
47378         * lib/gai_strerror.c: Include config.h when available.  Include
47379         getaddrinfo.h before other headers to test interface.
47380         Reported by Larry Jones <lawrence.jones@ugs.com>.
47381
47382 2005-09-12  Derek Price  <derek@ximbiot.com>
47383             Paul Eggert  <eggert@cs.ucla.edu>
47384
47385         * modules/glob (Files): Add glob-libc.h.
47386
47387 2005-09-12  Derek Price  <derek@ximbiot.com>
47388             Paul Eggert  <eggert@cs.ucla.edu>
47389
47390         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
47391         glob_.h, glob-libc.h.
47392         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
47393
47394 2005-09-12  Derek Price  <derek@ximbiot.com>
47395             Paul Eggert  <eggert@cs.ucla.edu>
47396
47397         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
47398         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
47399         protecting things that should be done only in gnulib contexts.
47400         * lib/glob_.h: New file, containing only the glob things needed for
47401         gnulib.
47402         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
47403         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
47404         (glob, globfree, glob_pattern_p): Now defined simply in terms of
47405         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
47406         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
47407         and to respect the namespace rules better.
47408
47409 2005-09-08  Simon Josefsson  <jas@extundo.com>
47410
47411         * modules/socklen: New file.
47412
47413 2005-09-08  Simon Josefsson  <jas@extundo.com>
47414
47415         * m4/socklen.m4: New file.
47416
47417 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47418
47419         * modules/utimens (Files): Add m4/utimbuf.m4, since
47420         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
47421         Reported by Sergey Poznyakoff.
47422
47423 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47424
47425         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
47426         definitions, since that's the preferred style in glibc.
47427         Fix a minor spacing issue, and update copyright notice to match
47428         glibc's.
47429
47430 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47431
47432         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
47433
47434 2005-09-06  Simon Josefsson  <jas@extundo.com>
47435
47436         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
47437         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
47438
47439 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47440
47441         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
47442         warning.
47443
47444 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47445
47446         * config/srclist.txt: Add glibc bug 1302.
47447
47448 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
47449
47450         Change bitset word type from unsigned int to unsigned long int,
47451         as this has better performance on typical 64-bit hosts.
47452         Port bitset code to hosts with unusual word sizes.
47453         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
47454         (build_collating_symbol):
47455         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
47456         argument is a bitset.  This is merely a style issue, but it makes
47457         it clearer that an entire array is expected.
47458         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
47459         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
47460         Port to the case where bitset_word is not the same as unsigned int.
47461         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
47462         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
47463         Likewise.
47464         * lib/regexec.c (check_dst_limits_calc_pos_1,
47465         check_subexp_matching_top):
47466         (build_trtable, group_nodes_into_DFAstates):
47467         Likewise.
47468         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
47469         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
47470         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
47471         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
47472         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
47473         * lib/regcomp.c (optimize_subexps, lower_subexp):
47474         Work even if bitset_word has holes in its bitwise representation.
47475         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
47476         * lib/regexec.c (check_dst_limits_calc_pos_1,
47477         check_subexp_matching_top):
47478         Likewise.
47479         * lib/regex_internal.c (re_string_reconstruct):
47480         Don't assume UCHAR_MAX == 255.
47481         * lib/regex_internal.h (bitset_set_all): Likewise.
47482         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
47483         All uses changed.
47484         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
47485         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
47486         All uses changed.
47487         (BITSET_WORD_MAX): New macro.
47488         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
47489         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
47490         (bitset_empty, bitset_copy):
47491         Prefer sizeof (bitset) to multiplying it out ourselves.
47492         (bitset_not_merge): Remove; unused.
47493         (bitset_contain): Return bool, not unsigned int with one bit on.
47494         All callers changed.
47495         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
47496         alignment than re_node_set; do this by defining a new internal
47497         type struct dests_alloc and using it to allocate memory.
47498
47499 2005-09-05  Bruno Haible  <bruno@clisp.org>
47500
47501         * gnulib-tool (func_import): Fix comparison in handling of symbolic
47502         links.
47503
47504 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
47505
47506         * modules/size_max (Makefile.am): Add size_max.h
47507
47508 2005-09-04  Derek Price  <derek@ximbiot.com>
47509
47510         * gnulib-tool (func_import): Fix reversed $symbolic logic.
47511
47512 2005-09-03  Simon Josefsson  <jas@extundo.com>
47513
47514         * gnulib-tool: Fix typo.
47515
47516 2005-09-03  Simon Josefsson  <jas@extundo.com>
47517
47518         * config/srclist.txt: Add glibc bug 1293.
47519
47520 2005-09-03  Derek Price  <derek@ximbiot.com>
47521
47522         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
47523         From Larry Jones <lawrence.jones@ugs.com>.
47524
47525 2005-09-02  Simon Josefsson  <jas@extundo.com>
47526
47527         * modules/socklen: New file.
47528
47529 2005-09-02  Simon Josefsson  <jas@extundo.com>
47530
47531         * modules/havelib: New module.
47532
47533         * modules/gettext, modules/iconv, modules/lock, modules/readline:
47534         Use havelib.
47535
47536 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
47537
47538         Check for arithmetic overflow when calculating sizes, to prevent
47539         some buffer-overflow issues.  These patches are conservative, in the
47540         sense that when I couldn't determine whether an overflow was possible,
47541         I inserted a run-time check.
47542         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
47543         macros.
47544         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
47545         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
47546         (re_xnrealloc, re_x2nrealloc): New inline functions.
47547         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
47548         parse_bracket_exp):
47549         (build_equiv_class, build_charclass): Check for arithmetic overflow
47550         in size expression calculations.
47551         * lib/regex_internal.c (re_string_realloc_buffers):
47552         (build_wcs_upper_buffer, re_node_set_add_intersect):
47553         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
47554         (re_dfa_add_node, register_state): Likewise.
47555         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
47556         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
47557         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
47558         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
47559
47560 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
47561
47562         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
47563         m4/ulonglong.m4.  Problem reported by Martin Lambers.
47564
47565 2005-09-02  Bruno Haible  <bruno@clisp.org>
47566
47567         Support for lib vs. lib64 distinction on biarch platforms.
47568         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
47569         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
47570         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
47571
47572 2005-09-02  Bruno Haible  <bruno@clisp.org>
47573
47574         * gnulib-tool (import): In the other first-use case, provide defaults
47575         as well.
47576
47577 2005-09-02  Bruno Haible  <bruno@clisp.org>
47578
47579         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
47580         patches not yet found in the latest gettext release.
47581
47582 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47583
47584         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
47585         to avoid a collision with bits/local_lim.h in glibc.
47586         All uses changed.  Problem reported by Dmitry V. Levin in
47587         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
47588
47589         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
47590         bugs in int versus size_t comparisons.
47591         (re_string_context_at): Fix bug where the code assumed that
47592         Idx is signed.
47593
47594         Use bool where appropriate.
47595         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
47596         All callers changed.
47597         (calc_eclosure_iter): Likewise, for ROOT arg.
47598         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
47599         (build_charclass_op): Likewise, for NON_MATCH arg.
47600         * lib/regex_internal.c (re_string_allocate, re_string_construct):
47601         (re_string_construct_common): Likewise, for ICASE arg.
47602         * lib/regexec.c (re_search_2_stub, re_search_stub):
47603         Likewise, for RET_LEN arg.
47604         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
47605         (set_regs): Likewise, for FL_BACKTRACK arg.
47606         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
47607         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
47608         (calc_eclosure_iter, parse_bracket_exp):
47609         Use bool for internal variables that are booleans.
47610         * lib/regexec.c (re_search_internal, check_matching,
47611         proceed_next_node):
47612         (set_regs, build_sifted_states, sift_states_bkref):
47613         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
47614         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47615         (find_collation_sequence_value):
47616         Likewise.
47617         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
47618         (re_node_set_compare):
47619         Return bool, not int. All callers changed.
47620         * lib/regexec.c (check_halt_node_context, check_dst_limits):
47621         (build_trtable, check_node_accept): Likewise.
47622         * lib/regex_internal.h: Include stdbool.h.
47623
47624         Fix bugs uncovered when converting to bool.
47625         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
47626         failure instead of charging ahead blindly.
47627         * lib/regex_internal.c (register_state): Likewise.
47628         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
47629         for freeing internal storage.
47630         (group_nodes_into_DFA_states): Use unsigned int, not int, for
47631         bitset pieces used as boolean, to avoid undefined behavior
47632         on hosts that do int overflow checking.
47633
47634 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47635
47636         * config/srclist.txt: Add glibc bugs 1285-1287.
47637
47638 2005-09-01  Jim Meyering  <jim@meyering.net>
47639
47640         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
47641         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
47642         Require gl_STAT_MACROS, too.
47643
47644 2005-09-01  Bruno Haible  <bruno@clisp.org>
47645
47646         * gnulib-tool (import): In the first-use case, provide defaults.
47647
47648 2005-09-01  Bruno Haible  <bruno@clisp.org>
47649
47650         * gnulib-tool (func_import): Remove the .tmp files.
47651
47652 2005-09-01  Bruno Haible  <bruno@clisp.org>
47653
47654         * gnulib-tool (func_import): Fix handling of symbolic links.
47655
47656 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47657
47658         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
47659         old glibc regex code mishandles strings longer than 2**31 bytes.
47660         This patch fixes this when the regex code is used in gnulib
47661         (i.e., outside glibc).
47662
47663         This patch should not affect the use of the regex code inside
47664         glibc.  No doubt this problem also needs to be handled for glibc
47665         as well, but the result will be an incompatible change to the
47666         glibc ABI, and the old ABI will have to be supported too.  That
47667         can be the the subject for another patch.
47668
47669         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
47670         governing whether the rest of this patch is active.  By default,
47671         the macro is disabled and the patch has no effect.
47672         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
47673         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
47674         (struct re_pattern_buffer, re_search, re_search_2, re_match):
47675         (re_match_2, re_set_registers): Use the new types.
47676         * lib/regex_internal.h (Idx, re_hashval_t): New types.
47677         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
47678         New macros.
47679         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
47680         (re_string_context_at, bin_tree_t, re_dfastate_t):
47681         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
47682         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
47683         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
47684         (re_string_char_size_at, re_string_wchar_at):
47685         (re_string_elem_size_at):
47686         Use the new types and macros to port to 64-bit hosts.
47687         Use unsigned types for internal values, so that the code
47688         mostly works even for arrays larger than SSIZE_MAX.
47689         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
47690         (search_duplicated_node, calc_eclosure_iter, fetch_number):
47691         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
47692         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
47693         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
47694         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
47695         (calc_inveclosure, parse_dup_op, build_range_exp):
47696         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
47697         (fetch_number, create_token_tree, mark_opt_subexp):
47698         Likewise.
47699         * lib/regex_internal.c (re_string_construct_common,
47700         create_ci_newstate):
47701         (create_cd_newstate, re_string_allocate, re_string_construct):
47702         (re_string_realloc_buffers, build_wcs_upper_buffer):
47703         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47704         (re_string_reconstruct, re_string_peek_byte_case):
47705         (re_string_fetch_byte_case, re_string_context_at):
47706         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47707         (re_node_set_init_copy, re_node_set_add_intersect):
47708         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47709         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47710         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47711         (re_acquire_state, re_acquire_state_context, register_state):
47712         Likewise.
47713         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
47714         search_cur_bkref_entry):
47715         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
47716         (re_search_internal, re_search_2_stub, re_search_stub)
47717         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
47718         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
47719         (update_cur_sifted_state, check_dst_limits):
47720         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
47721         (check_subexp_limits, sift_states_bkref, merge_state_array):
47722         (check_subexp_matching_top, get_subexp, get_subexp_sub):
47723         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
47724         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47725         (expand_bkref_cache, check_node_accept_bytes):
47726         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
47727         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
47728         (acquire_init_state_context, check_halt_node_context):
47729         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
47730         (sift_states_backward, clean_state_log_if_needed):
47731         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
47732         (find_recover_state, transit_state_sb, transit_state_mb):
47733         (transit_state_bkref, build_trtable, match_ctx_clean):
47734         Likewise.
47735         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
47736         to work around an assumption that REG_MISSING is negative.
47737
47738         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
47739         (seek_collating_symbol_entry) [defined _LIBC]:
47740         (lookup_collation_sequence_value) [defined _LIBC]:
47741         (build_range_exp, build_collating_symbol) [defined _LIBC]:
47742         Use prototypes rather than old-style function definitions.
47743         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
47744         (transit_state_sb) [0]:
47745         (find_collation_sequence_value) [defined _LIBC]: Likewise.
47746
47747         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
47748         rm_eo.
47749
47750         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
47751         (optimize_subexps, lower_subexp):
47752         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
47753         since the signed shift might overflow.  Use 1u<<31 instead.
47754         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
47755         Likewise.
47756         * lib/regexec.c (check_dst_limits_calc_pos_1,
47757         check_subexp_matching_top): Likewise.
47758
47759         * lib/regcomp.c (optimize_subexps, lower_subexp):
47760         Use CHAR_BIT rather than 8, for clarity.
47761         * lib/regexec.c (check_dst_limits_calc_pos_1):
47762         (check_subexp_matching_top): Likewise.
47763         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
47764         have to worry about portability issues when shifting it left.
47765         Remove no-longer-needed test for table_size > 0.
47766         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
47767         in a word, as the resulting behavior is undefined.
47768         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
47769         in one case, a <= should have been an <, and in another case the
47770         whole test was missing.
47771         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
47772         the standard name CHAR_BIT.
47773         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
47774         this is not true on one's complement and signed-magnitude hosts.
47775
47776         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
47777         next_last_offset.
47778         (struct re_dfa_t): Remove unused member states_alloc.
47779         * lib/regcomp.c (init_dfa): Don't initialize unused members.
47780
47781 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47782
47783         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
47784         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
47785         and large-file glibc and in 32-bit large-file Solaris.
47786
47787 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47788
47789         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
47790         lengths fit in regoff_t; this isn't true if regoff_t is the same
47791         width as size_t.
47792         * lib/regex.c (re_search_internal): 5th arg is LAST_START
47793         (= START + RANGE) instead of RANGE.  This avoids overflow
47794         problems when regoff_t is the same width as size_t.
47795         All callers changed.
47796         (re_search_2_stub): Check for overflow when adding the
47797         sizes of the two strings.
47798         (re_search_stub): Check for overflow when adding START
47799         to RANGE; if it occurs, substitute the extreme value.
47800
47801 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47802
47803         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
47804
47805 2005-08-31  Jim Meyering  <jim@meyering.net>
47806
47807         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
47808         a pointer-to-const.
47809         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
47810         (register_state): Likewise.
47811         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
47812         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
47813         (group_nodes_into_DFAstates): Likewise.
47814
47815 2005-08-31  Jim Meyering  <jim@meyering.net>
47816
47817         * check-module: Add a FIXME comment.
47818
47819 2005-08-31  Eric Blake  <ebb9@byu.net>
47820
47821         * modules/unistd-safer (Files): Add unistd--.h.
47822         * modules/stdio-safer (Files): Add stdio--.h.
47823
47824 2005-08-31  Derek Price  <derek@ximbiot.com>
47825
47826         * lib/getdelim.c (getdelim): Return EOF on EOF.
47827         Reported by Larry Jones <lawrence.jones@ugs.com>.
47828
47829 2005-08-31  Bruno Haible  <bruno@clisp.org>
47830
47831         Avoid unnecessary diffs in the generated lib/Makefile.am.
47832         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
47833         the generated files.
47834         (func_import): Don't set cmd.
47835
47836 2005-08-31  Bruno Haible  <bruno@clisp.org>
47837
47838         * lib/strstr.c: Include <stddef.h>, for NULL.
47839         * lib/strcasestr.c: Likewise.
47840         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47841
47842 2005-08-31  Bruno Haible  <bruno@clisp.org>
47843
47844         * gnulib-tool: New option --macro-prefix.
47845         (func_import): Use macro_prefix.
47846         (import): Handle option --macro-prefix.
47847
47848 2005-08-31  Bruno Haible  <bruno@clisp.org>
47849
47850         * gnulib-tool (import): Rename most ac_* variables to cached_*.
47851         Also use new variables cached_lgpl, cached_libtool.
47852
47853 2005-08-31  Bruno Haible  <bruno@clisp.org>
47854
47855         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
47856         always instantiating them.
47857
47858 2005-08-31  Bruno Haible  <bruno@clisp.org>
47859
47860         * gnulib-tool (func_import): Read the previous cached settings
47861         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
47862         earlier added by gnulib but are now dropped. Warn when a gnulib file
47863         overwrites a non-gnulib file.
47864
47865 2005-08-31  Bruno Haible  <bruno@clisp.org>
47866
47867         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
47868         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
47869         projects that don't keep autogenerated files in CVS. Put into
47870         actioncmd only the specified modules, not the transitive closure.
47871
47872 2005-08-31  Bruno Haible  <bruno@clisp.org>
47873
47874         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
47875         Create directories that shall be filled.
47876         (import): Don't look for gl_* macros in configure.ac. Recurse across
47877         all directories containing a gnulib-cache.m4 files, if meaningful.
47878
47879 2005-08-31  Bruno Haible  <bruno@clisp.org>
47880
47881         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
47882         (import): Set seen_libtool when we see gl_LIBTOOL.
47883
47884 2005-08-31  Bruno Haible  <bruno@clisp.org>
47885
47886         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
47887         declaration macro definitions from generated gnulib.m4.
47888
47889 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
47890
47891         * lib/iconvme.h: Add prototype for iconv_alloc.
47892
47893 2005-08-29  Simon Josefsson  <jas@extundo.com>
47894
47895         * lib/iconvme.c: Fix errno.
47896
47897 2005-08-29  Bruno Haible  <bruno@clisp.org>
47898
47899         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
47900         that it works when the directory contains spaces.
47901
47902 2005-08-29  Bruno Haible  <bruno@clisp.org>
47903
47904         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
47905
47906 2005-08-29  Bruno Haible  <bruno@clisp.org>
47907
47908         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
47909         Emit more advice.
47910
47911 2005-08-29  Bruno Haible  <bruno@clisp.org>
47912         and Stepan Kasal  <kasal@ucw.cz>
47913
47914         * check-module: If more parameters are given, check each of them
47915         separately; add more exceptions, as noted by Jim Meyering.
47916         (check_module): New procedure.
47917         (%exempt_header): Now contains all exceptions.
47918
47919 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
47920
47921         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
47922
47923 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
47924
47925         * lib/iconvme.c: Split iconv_string into iconv_alloc.
47926
47927 2005-08-28  Bruno Haible  <bruno@clisp.org>
47928
47929         * m4/gnulib-tool.m4: New file.
47930
47931 2005-08-27  Jim Meyering  <jim@meyering.net>
47932
47933         * modules/unistd-safer (Files): Add pipe-safer.c.
47934         * modules/fcntl-safer (Files): Add creat-safer.c.
47935
47936 2005-08-27  Jim Meyering  <jim@meyering.net>
47937
47938         * m4/stdlib-safer.m4: New file.  From coreutils.
47939         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
47940         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
47941         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
47942         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
47943         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
47944
47945 2005-08-27  Jim Meyering  <jim@meyering.net>
47946
47947         * lib/fopen-safer.c: Merge minor changes from coreutils.
47948         * lib/dup-safer.c: Likewise.
47949         * lib/fd-safer.c: Likewise.
47950
47951         Merge from coreutils.
47952         * lib/stdio--.h: New file.
47953         * lib/stdlib--.h: New file.
47954         * lib/mkstemp-safer.c: New file.
47955
47956         GNU tar needs these.
47957         * lib/pipe-safer.c: New file.
47958         * lib/creat-safer.c: New file.
47959         * lib/fcntl--.h (creat): Define to creat_safer.
47960         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
47961         * lib/unistd--.h (pipe): Define to pipe_safer.
47962         * lib/unistd-safer.h: Declare pipe_safer.
47963
47964 2005-08-26  Simon Josefsson  <jas@extundo.com>
47965
47966         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
47967         Haible <bruno@clisp.org>.
47968
47969 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
47970
47971         * lib/regex_internal.h: Remove all references to
47972         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
47973         or better.
47974         (bitset_not, bitset_merge, bitset_not_merge):
47975         (bitset_mask, re_string_allocate, re_string_construct):
47976         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
47977         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
47978         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
47979         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
47980         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47981         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47982         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
47983         (re_acquire_state_context):
47984         Remove unnecessary forward decls.
47985         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
47986         Put __attribute at function definition,
47987         now that the function decl has been removed.
47988         * lib/regex_internal.c (re_string_peek_byte_case):
47989         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
47990         Likewise.
47991
47992 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
47993
47994         * m4/regex.m4: Add AC_PREREQ(2.50).
47995         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
47996
47997 2005-08-25  Simon Josefsson  <jas@extundo.com>
47998
47999         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
48000         __fsetlocking.
48001
48002 2005-08-25  Simon Josefsson  <jas@extundo.com>
48003
48004         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
48005         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
48006         GLIBC specific code.
48007
48008 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48009
48010         Make regex safe for g++.  This fixes one real bug (an "err"
48011         that should have been "*err").  g++ problem reported by
48012         Sam Steingold.
48013         * lib/regex_internal.h (re_calloc): New macro, consistent with
48014         re_malloc etc.  All callers of calloc changed to use re_calloc.
48015         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
48016         not int.  All callers changed.
48017         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
48018         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
48019         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
48020         (find_recover_state): Change "err" to "*err"; this fixes what
48021         appears to be a real bug.
48022         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
48023         versus int.
48024
48025 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48026
48027         * modules/regex (Depends-on): Add malloc, since the code
48028         assumes that !malloc(0) means failure.
48029
48030 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48031
48032         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
48033
48034         alloca modernization/simplification for regex.
48035         * lib/regex.c: Remove portability cruft for alloca.  This no longer
48036         needs to be at the start of the file, and can be moved into
48037         regex_internal.h and simplified.
48038         * lib/regex_internal.h: Include <alloca.h>.
48039         (__libc_use_alloca) [!defined _LIBC]: New macro.
48040         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
48041         now works outside glibc.
48042
48043 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48044
48045         * config/srclist.txt: Add glibc bugs 1241, 1245.
48046
48047 2005-08-25  Jim Meyering  <jim@meyering.net>
48048
48049         * lib/open-safer.c: Include <config.h>.
48050         Otherwise, we'd lose LARGEFILE support in any file using
48051         e.g. "fcntl--.h"
48052
48053 2005-08-25  Bruno Haible  <bruno@clisp.org>
48054
48055         * m4/minmax.m4: Require autoconf 2.52.
48056         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
48057         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
48058         alternatives of translit over the alphabet.
48059         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
48060
48061 2005-08-24  Simon Josefsson  <jas@extundo.com>
48062
48063         * tests/test-getpass.c: New file.
48064
48065 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48066
48067         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
48068         for GNU regex features.
48069
48070 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48071
48072         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
48073         * lib/regex.h (regerror): Likewise.
48074
48075         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
48076         requires this.  (The code never needed it.)
48077
48078         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
48079         All uses of recently-renamed identifiers changed to use the new,
48080         POSIX-compliant names.  The code will build and run just fine
48081         without these changes, but it's better to eat our own dog food
48082         and use the standard-conforming names.
48083
48084         * lib/regex.h: Fix a multitude of POSIX name space violations.
48085         These changes have an effect only for programs that define
48086         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
48087         do not change anything for programs compiled in the normal way.
48088         Also, there is no effect on the ABI.
48089
48090         (_REGEX_SOURCE): New macro.
48091         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
48092         defined and _GNU_SOURCE is not; this fixes a name space violation.
48093
48094         Rename the following macros to obey POSIX requirements.
48095         The old names are still visible as macros if _REGEX_SOURCE is defined.
48096         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
48097         RE_BACKSLASH_ESCAPE_IN_LISTS.
48098         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
48099         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
48100         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
48101         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
48102         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
48103         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
48104         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
48105         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
48106         (REG_INTERVALS): renamed from RE_INTERVALS.
48107         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
48108         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
48109         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
48110         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
48111         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
48112         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
48113         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
48114         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
48115         RE_UNMATCHED_RIGHT_PAREN_ORD.
48116         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
48117         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
48118         (REG_DEBUG): renamed from RE_DEBUG.
48119         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
48120         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
48121         unusual, since we can't clash with the POSIX REG_ICASE.
48122         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
48123         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
48124         (REG_NO_SUB): renamed from RE_NO_SUB.
48125         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
48126         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
48127         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
48128         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
48129         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
48130         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
48131         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
48132         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
48133         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
48134         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
48135         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
48136         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
48137         RE_SYNTAX_POSIX_MINIMAL_BASIC.
48138         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
48139         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
48140         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
48141         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
48142         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
48143         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
48144         (REG_FIXED): Renamed from REGS_FIXED.
48145         (REG_NREGS): Renamed from RE_NREGS.
48146
48147         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
48148         of other REG_* macros, since POSIX says the user is allowed to
48149         #undef these macros selectively.
48150
48151         (reg_errcode_t): Update comment stating what other tables need
48152         to be consistent.
48153
48154         Rename the following enum values to obey POSIX requirements.
48155         The old names are still visible as macros.
48156         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
48157         is not defined, since GNU is supposed to be a superset of POSIX as
48158         much as possible, and since we want reg_errcode_t to be a signed
48159         type for implementation consistency.
48160         (_REG_NOERROR): Renamed from REG_NOERROR.
48161         (_REG_NOMATCH): Renamed from REG_NOMATCH.
48162         (_REG_BADPAT): Renamed from REG_BADPAT.
48163         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
48164         (_REG_ECTYPE): Renamed from REG_ECTYPE.
48165         (_REG_EESCAPE): Renamed from REG_EESCAPE.
48166         (_REG_ESUBREG): Renamed from REG_ESUBREG.
48167         (_REG_EBRACK): Renamed from REG_EBRACK.
48168         (_REG_EPAREN): Renamed from REG_EPAREN.
48169         (_REG_EBRACE): Renamed from REG_EBRACE.
48170         (_REG_BADBR): Renamed from REG_BADBR.
48171         (_REG_ERANGE): Renamed from REG_ERANGE.
48172         (_REG_ESPACE): Renamed from REG_ESPACE.
48173         (_REG_BADRPT): Renamed from REG_BADRPT.
48174         (_REG_EEND): Renamed from REG_EEND.
48175         (_REG_ESIZE): Renamed from REG_ESIZE.
48176         (_REG_ERPAREN): Renamed from REG_ERPAREN.
48177         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
48178         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
48179         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
48180         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
48181
48182         (_REG_RE_NAME, _REG_RM_NAME): New macros.
48183         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
48184         changed.  But support the old name if the new one is not defined
48185         and if _REGEX_SOURCE.
48186
48187         Change the following member names in struct re_pattern_buffer.
48188         The old names are still supported if !_REGEX_SOURCE.
48189         The new names are always supported, regardless of _REGEX_SOURCE.
48190         (re_buffer): Renamed from buffer.
48191         (re_allocated): Renamed from allocated.
48192         (re_used): Renamed from used.
48193         (re_syntax): Renamed from syntax.
48194         (re_fastmap): Renamed from fastmap.
48195         (re_translate): Renamed from translate.
48196         (re_can_be_null): Renamed from can_be_null.
48197         (re_regs_allocated): Renamed from regs_allocated.
48198         (re_fastmap_accurate): Renamed from fastmap_accurate.
48199         (re_no_sub): Renamed from no_sub.
48200         (re_not_bol): Renamed from not_bol.
48201         (re_not_eol): Renamed from not_eol.
48202         (re_newline_anchor): Renamed from newline_anchor.
48203
48204         Change the following member names in struct re_registers.
48205         The old names are still supported if !_REGEX_SOURCE.
48206         The new names are always supported, regardless of _REGEX_SOURCE.
48207         (rm_num_regs): Renamed from num_regs.
48208         (rm_start): Renamed from start.
48209         (rm_end): Renamed from end.
48210
48211         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
48212         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
48213         Prepend __ to parameter names.
48214
48215         Undo yesterday's changes.
48216
48217 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48218
48219         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
48220         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
48221         lib/regex.c.
48222
48223 2005-08-24  Jim Meyering  <jim@meyering.net>
48224
48225         Sync from coreutils.
48226         * m4/fcntl-safer.m4: New file.
48227
48228         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
48229         and object files for this module.
48230
48231 2005-08-24  Jim Meyering  <jim@meyering.net>
48232
48233         Sync from coreutils.
48234         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
48235
48236 2005-08-24  Jim Meyering  <jim@meyering.net>
48237
48238         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
48239         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
48240
48241 2005-08-24  Jim Meyering  <jim@meyering.net>
48242
48243         * modules/fcntl-safer: New module.
48244         * modules/fts (Depends-on): Add fcntl-safer.
48245         * MODULES.html.sh (File descriptor based Input/Output):
48246         Add fcntl-safer.
48247
48248 2005-08-24  Bruno Haible  <bruno@clisp.org>
48249
48250         Support for unit test modules.
48251         * modules/README: Mention tests modules.
48252         * modules/TEMPLATE-TESTS: New file.
48253         * gnulib-tool: New options --extract-tests-module, --with-tests and
48254         --tests-base (unused for the moment).
48255         (testsbase, inctests): New variables.
48256         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
48257         (func_verify_module): Exclude TEMPLATE-TESTS.
48258         (func_verify_nontests_module, func_verify_tests_module): New functions.
48259         (func_get_dependencies): Add implicit dependency for tests modules.
48260         (func_get_tests_module): New function.
48261         (func_modules_transitive_closure): When --with-tests was specified,
48262         include the unit tests as well, unless explicitly avoided.
48263         (func_emit_lib_Makefile_am): Ignore the tests modules here.
48264         (func_emit_tests_Makefile_am): New function.
48265         (func_create_testdir): When --with-tests was specified, emit a
48266         tests/ directory.
48267         * MODULES.html.sh (Future developments): Update.
48268
48269 2005-08-24  Bruno Haible  <bruno@clisp.org>
48270
48271         * modules/tls-tests: New file.
48272         * tests/test-tls.c: New file, from GNU gettext.
48273
48274 2005-08-24  Bruno Haible  <bruno@clisp.org>
48275
48276         * modules/lock-tests: New file.
48277         * tests/test-lock.c: New file, from GNU gettext.
48278
48279 2005-08-24  Bruno Haible  <bruno@clisp.org>
48280
48281         * lib/lock.h: Add multiple inclusion guard.
48282         * lib/tls.h: Add multiple inclusion guard.
48283
48284 2005-08-24  Bruno Haible  <bruno@clisp.org>
48285
48286         * gnulib-tool: Add support for the --aux-dir option to
48287         --create-testdir, --create-megatestdir, --test, --megatest.
48288         (func_create_testdir, func_create_megatestdir): Optionally emit a
48289         AC_CONFIG_AUX_DIR directive.
48290         (create-testdir, create-megatestdir, test, megatest): Provide a
48291         default value for $auxdir.
48292
48293 2005-08-24  Bruno Haible  <bruno@clisp.org>
48294
48295         * gnulib-tool (import): Use compound statement instead of subshell
48296         where possible.
48297
48298 2005-08-24  Bruno Haible  <bruno@clisp.org>
48299
48300         * gnulib-tool (import): Change --aux-dir default to "build-aux".
48301
48302 2005-08-24  Bruno Haible  <bruno@clisp.org>
48303
48304         * gnulib-tool (func_version): Update.
48305
48306 2005-08-24  Bruno Haible  <bruno@clisp.org>
48307
48308         * gnulib-tool (func_import, func_create_testdir,
48309         func_create_megatestdir): Quote all autoconf macro arguments.
48310
48311 2005-08-24  Bruno Haible  <bruno@clisp.org>
48312
48313         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
48314         option --force, because --force causes the aclocal.m4 of each
48315         subdirectory to be newer than the corresponding config.h.in.
48316
48317 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48318
48319         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
48320         All contents moved to gl_REGEX.
48321         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
48322         assume that it does.
48323
48324 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48325
48326         * lib/regex.h (REG_NOSYS)
48327         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
48328         Define, since POSIX requires it as of 2001.
48329         (_REG_ENOSYS)
48330         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
48331         New private symbol, used to keep the enum signed in all cases.
48332         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
48333         Youngman in
48334         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
48335
48336         * lib/regex_internal.c (re_string_skip_chars, register_state):
48337         (calc_state_hash):
48338         Remove forward decls; no longer needed now that we use prototypes.
48339         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
48340         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
48341         (clean_state_log_if_needed): Likewise.
48342
48343 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48344
48345         * config/srclist.txt: Add glibc bugs 1231-1233.
48346
48347 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48348
48349         Fix problems reported by Sam Steingold in
48350         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
48351         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
48352         assumed that reg_errcode_t is a signed type, which is not
48353         necessarily true if _XOPEN_SOURCE is not defined.
48354         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
48355         since some compilers warn about it otherwise.
48356
48357 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48358
48359         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
48360         (init_word_char, create_initial_state, duplicate_node_closure):
48361         (fetch_token, peek_token_bracket, build_range_exp):
48362         (build_collating_symbol): Remove forward decls; no longer needed
48363         now that we use prototypes.
48364
48365         * lib/regcomp.c:
48366         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
48367         (re_compile_fastmap_iter, regcomp, regerror, regfree):
48368         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
48369         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
48370         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
48371         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
48372         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
48373         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
48374         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
48375         (build_range_exp, build_collating_symbol, parse_bracket_exp):
48376         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
48377         (build_charclass, build_charclass_op, fetch_number, create_tree):
48378         (create_token_tree, mark_opt_subexp, duplicate_tree):
48379         Use prototypes rather than old-style definitions.
48380
48381         * lib/regex_internal.c:
48382         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
48383         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
48384         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48385         (re_string_reconstruct, re_string_peek_byte_case):
48386         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
48387         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48388         (re_node_set_init_copy, re_node_set_add_intersect):
48389         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48390         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48391         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48392         (re_acquire_state, re_acquire_state_context, register_state):
48393         (create_ci_newstate, create_cd_newstate, free_state):
48394         Likewise.
48395         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
48396         re_search_2):
48397         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
48398         (re_search_internal, prune_impossible_nodes):
48399         (acquire_init_state_context, check_matching, static):
48400         (check_halt_node_context, check_halt_state_context, proceed_next_node):
48401         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
48402         (update_regs, sift_states_backward, build_sifted_states):
48403         (clean_state_log_if_needed, merge_state_array):
48404         (update_cur_sifted_state, add_epsilon_src_nodes):
48405         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
48406         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
48407         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
48408         (find_recover_state, check_subexp_matching_top, transit_state_mb):
48409         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
48410         (check_arrival, check_arrival_add_next_nodes):
48411         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48412         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48413         (check_node_accept_bytes, check_node_accept, extend_buffers):
48414         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
48415         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
48416         (sift_ctx_init):
48417         Likewise.
48418
48419         * lib/regex_internal.h:
48420         (re_string_allocate, re_string_construct, re_string_reconstruct):
48421         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
48422         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
48423         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
48424         (re_string_context_at, re_string_peek_byte_case):
48425         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
48426         is defined, since we now use prototypes always.
48427
48428         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
48429         C89 or better.  All uses removed.
48430
48431 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48432
48433         * config/srclist.txt: Add glibc bugs 1220-1227.
48434
48435 2005-08-20  Jim Meyering  <jim@meyering.net>
48436
48437         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
48438         of unused local, dfa.
48439
48440 2005-08-20  Bruno Haible  <bruno@clisp.org>
48441
48442         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
48443
48444 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48445
48446         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
48447         (re_node_set_insert_last, re_dfa_add_node):
48448         Rename local variables to avoid GCC shadowing warnings.
48449
48450 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48451
48452         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
48453         [defined lint]: Suppress bogus uninitialized-variable warnings.
48454
48455         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
48456         and let the caller return REG_ESPACE if out of space.  This
48457         removes an uninitialied-variable warning with GCC 4.0.1, and also
48458         avoids taking the address of a local variable.  All callers
48459         changed.
48460
48461 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48462
48463         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
48464         $LIBCSRC/posix/regexec.c.
48465         Add glibc bug 1217 for regcomp.c.
48466
48467 2005-08-19  Jim Meyering  <jim@meyering.net>
48468
48469         * lib/regexec.c (proceed_next_node): Redo local variables to
48470         avoid GCC shadowing warnings.
48471
48472 2005-08-18  Bruno Haible  <bruno@clisp.org>
48473
48474         * lib/strstr.c (strstr): Fix return value in multibyte case.
48475         * lib/strcasestr.c (strcasestr): Likewise.
48476
48477 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48478
48479         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
48480
48481 2005-08-17  Jim Meyering  <jim@meyering.net>
48482
48483         Make the %s format (seconds since the epoch) work for a negative
48484         number and when used with a zero-padded field width, e.g. %015s.
48485
48486         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
48487         label so that it precedes the code to set `digits'.  Otherwise,
48488         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
48489         print `00-22'.  Now, it prints `-0022', as it should.
48490
48491 2005-08-17  Bruno Haible  <bruno@clisp.org>
48492
48493         * modules/strstr (Files): Add m4/mbrtowc.m4.
48494         (Depends-on): Add mbuiter.
48495
48496 2005-08-17  Bruno Haible  <bruno@clisp.org>
48497
48498         * modules/strcasestr: New file.
48499         * MODULES.html.sh (String handling, based on ANSI C 89): Add
48500         strcasestr.
48501
48502 2005-08-17  Bruno Haible  <bruno@clisp.org>
48503
48504         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
48505
48506 2005-08-17  Bruno Haible  <bruno@clisp.org>
48507
48508         * modules/mbuiter: New file.
48509         * MODULES.html.sh (Extended multibyte and wide character utilities):
48510         Add mbuiter.
48511
48512 2005-08-17  Bruno Haible  <bruno@clisp.org>
48513
48514         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
48515         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
48516
48517 2005-08-17  Bruno Haible  <bruno@clisp.org>
48518
48519         * m4/strcasestr.m4: New file.
48520
48521 2005-08-17  Bruno Haible  <bruno@clisp.org>
48522
48523         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
48524         * lib/strstr.c: Completely rewritten, with multibyte locale support.
48525
48526 2005-08-17  Bruno Haible  <bruno@clisp.org>
48527
48528         * lib/strcasestr.h: New file.
48529         * lib/strcasestr.c: New file.
48530
48531 2005-08-17  Bruno Haible  <bruno@clisp.org>
48532
48533         * lib/strcasecmp.c: Use mbuiter.h.
48534
48535 2005-08-17  Bruno Haible  <bruno@clisp.org>
48536
48537         * lib/mbuiter.h: New file.
48538
48539 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
48540
48541         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
48542         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
48543         and gl_GETOPT are both invoked via different paths (as happens
48544         with GNU tar CVS because it uses both argp and getopt), the former
48545         wins.
48546
48547 2005-08-16  Bruno Haible  <bruno@clisp.org>
48548
48549         * modules/tls: New file.
48550         * MODULES.html.sh (Multithreading): Add tls.
48551
48552 2005-08-16  Bruno Haible  <bruno@clisp.org>
48553
48554         * modules/strnlen1: New file.
48555         * MODULES.html.sh (String handling): Add strnlen1.
48556
48557 2005-08-16  Bruno Haible  <bruno@clisp.org>
48558
48559         * modules/strcase (Files): Add m4/mbrtowc.m4.
48560         (Depends-on): Add strnlen1, mbchar.
48561
48562 2005-08-16  Bruno Haible  <bruno@clisp.org>
48563
48564         * modules/mbiter: New file.
48565         * MODULES.html.sh (Extended multibyte and wide character utilities):
48566         Add mbiter.
48567
48568 2005-08-16  Bruno Haible  <bruno@clisp.org>
48569
48570         * modules/mbfile: New file.
48571         * MODULES.html.sh (Extended multibyte and wide character utilities):
48572         Add mbfile.
48573
48574 2005-08-16  Bruno Haible  <bruno@clisp.org>
48575
48576         * modules/mbchar: New file.
48577         * MODULES.html.sh (Extended multibyte and wide character utilities):
48578         New section.
48579
48580 2005-08-16  Bruno Haible  <bruno@clisp.org>
48581
48582         * m4/tls.m4: New file, from GNU gettext.
48583
48584 2005-08-16  Bruno Haible  <bruno@clisp.org>
48585
48586         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
48587         always.
48588         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
48589
48590 2005-08-16  Bruno Haible  <bruno@clisp.org>
48591
48592         * m4/mbiter.m4: New file.
48593
48594 2005-08-16  Bruno Haible  <bruno@clisp.org>
48595
48596         * m4/mbfile.m4: New file.
48597
48598 2005-08-16  Bruno Haible  <bruno@clisp.org>
48599
48600         * m4/mbchar.m4: New file.
48601
48602 2005-08-16  Bruno Haible  <bruno@clisp.org>
48603
48604         * lib/tls.h: New file, from GNU gettext.
48605         * lib/tls.c: New file, from GNU gettext.
48606
48607 2005-08-16  Bruno Haible  <bruno@clisp.org>
48608
48609         * lib/strnlen1.h: New file.
48610         * lib/strnlen1.c: New file.
48611
48612 2005-08-16  Bruno Haible  <bruno@clisp.org>
48613
48614         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
48615         (mbi_init): Update.
48616         (mbi_avail, mbi_advance): Let the iteration end before the terminating
48617         NUL byte, not after it.
48618
48619 2005-08-16  Bruno Haible  <bruno@clisp.org>
48620
48621         * lib/strcase.h (strcasecmp): Add note in comments.
48622         * lib/strncasecmp.c: Use code from strcasecmp.c.
48623         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
48624         (strcasecmp): Work correctly in multibyte locales.
48625
48626 2005-08-16  Bruno Haible  <bruno@clisp.org>
48627
48628         * lib/mbiter.h: New file.
48629
48630 2005-08-16  Bruno Haible  <bruno@clisp.org>
48631
48632         * lib/mbfile.h: New file.
48633
48634 2005-08-16  Bruno Haible  <bruno@clisp.org>
48635
48636         * lib/mbchar.h: New file.
48637         * lib/mbchar.c: New file.
48638
48639 2005-08-16  Bruno Haible  <bruno@clisp.org>
48640
48641         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
48642         the valid ones. Makes the comparison operations transitive:
48643         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
48644         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
48645
48646 2005-08-15  Simon Josefsson  <jas@extundo.com>
48647
48648         * modules/ssize_t (License): Change to 'unlimited'.
48649
48650         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
48651
48652 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48653
48654         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
48655         Add comments for each pending glibc patch.
48656
48657 2005-08-15  Bruno Haible  <bruno@clisp.org>
48658
48659         * lib/regex.h (__restrict_arr): Don't define to __restrict if
48660         __cplusplus is defined.
48661
48662 2005-08-14  Jim Meyering  <jim@meyering.net>
48663
48664         Sync from coreutils.
48665
48666         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
48667         Use the hash-table-based cycle-detection code not just when
48668         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
48669         Reported by James Youngman in
48670         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
48671         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
48672         FTS_TIGHT_CYCLE_CHECK.
48673         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
48674         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
48675         once again.
48676         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
48677         * lib/fts.c (fd_safer): Remove decl.
48678         Include fcntl--.h rather than unistd-safer.h
48679         (fts_safe_changedir): Don't call fd_safer; no longer needed
48680         now that we include fcntl--.h.
48681
48682 2005-08-12  Simon Josefsson  <jas@extundo.com>
48683
48684         * modules/getndelim2: Use ssize_t module.
48685         * modules/getnline: Likewise.
48686         * modules/safe-read: Likewise.
48687         * modules/xreadlink: Likewise.
48688
48689         * modules/ssize_t: New file.
48690
48691 2005-08-12  Simon Josefsson  <jas@extundo.com>
48692
48693         * m4/readline.m4: Look for termcap, curses or ncurses if required.
48694
48695 2005-08-12  Simon Josefsson  <jas@extundo.com>
48696
48697         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48698         ssize_t.
48699
48700 2005-08-12  Simon Josefsson  <jas@extundo.com>
48701
48702         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
48703         readline, getdelim and check_version.
48704         (Support for systems lacking ISO C 99: Sizes of integer types):
48705         Add size_max.
48706
48707 2005-08-12  Bruno Haible  <bruno@clisp.org>
48708
48709         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
48710
48711 2005-08-11  Simon Josefsson  <jas@extundo.com>
48712
48713         * modules/readline: New file.
48714
48715         * modules/strnlen (Files): Add strnlen.h.
48716
48717 2005-08-11  Simon Josefsson  <jas@extundo.com>
48718
48719         * m4/readline.m4: New file.
48720
48721 2005-08-11  Simon Josefsson  <jas@extundo.com>
48722
48723         * lib/readline.h, readline.c: New file.
48724
48725 2005-08-11  Simon Josefsson  <jas@extundo.com>
48726
48727         * doc/gnulib.texi (Initial import, Finishing touches): Mention
48728         gl_AVOID.
48729
48730 2005-08-11  Bruno Haible  <bruno@clisp.org>
48731
48732         * lib/strnlen.h (strnlen): Change parameter name to match comment.
48733
48734 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
48735
48736         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
48737
48738 2005-08-10  Simon Josefsson  <jas@extundo.com>
48739
48740         * tests/test-iconvme.c: New file.
48741
48742 2005-08-10  Simon Josefsson  <jas@extundo.com>
48743
48744         * m4/strnlen.m4: New file.
48745
48746         * m4/strndup.m4: Don't check for strnlen declaration, done in
48747         strnlen.m4.
48748
48749 2005-08-10  Simon Josefsson  <jas@extundo.com>
48750
48751         * lib/strndup.c: Use strnlen.h.
48752
48753         * lib/strnlen.h: New file.
48754
48755 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48756
48757         * README: Typos.
48758
48759 2005-08-02  Simon Josefsson  <jas@extundo.com>
48760
48761         * modules/readline: New file.
48762
48763 2005-08-02  Simon Josefsson  <jas@extundo.com>
48764
48765         * modules/getdelim: New file.
48766
48767         * modules/getline: Rewrite, don't use getndelim2.
48768
48769 2005-08-02  Simon Josefsson  <jas@extundo.com>
48770
48771         * m4/getline.m4: Separate out getdelim stuff into separate module.
48772
48773         * m4/getdelim.m4: New file.
48774
48775 2005-08-02  Simon Josefsson  <jas@extundo.com>
48776
48777         * lib/getline.h, getline.c: Rewrite.
48778
48779         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
48780
48781 2005-07-31  Bruno Haible  <bruno@clisp.org>
48782
48783         * lib/lock.h (gl_lock_initializer): New macro.
48784         (gl_lock_define_initialized): Use it.
48785         (gl_rwlock_initializer): New macro.
48786         (gl_rwlock_define_initialized): Use it.
48787         (gl_recursive_lock_initializer): New macro.
48788         (gl_recursive_lock_define_initialized): Use it.
48789
48790 2005-07-30  Karl Berry  <karl@gnu.org>
48791
48792         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
48793         Report from Ben Pfaff, regarding getopt.
48794
48795 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
48796
48797         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
48798         normal way.
48799         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
48800         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
48801         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
48802         (gl_GETOPT): Use the new macros.  Most of the implementation
48803         is moved to the new macros.  This is for programs like Emacs
48804         that don't want all the functionality of gl_GETOPT.
48805
48806 2005-07-26  Bruno Haible  <bruno@clisp.org>
48807
48808         * m4/lock.m4: Update from GNU gettext.
48809
48810 2005-07-26  Bruno Haible  <bruno@clisp.org>
48811
48812         * lib/lock.h: Update from GNU gettext.
48813         * lib/lock.c: Update from GNU gettext.
48814
48815 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
48816
48817         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
48818         obsolescent AC_TRY_RUN.  Include the default includes files, for
48819         'exit'.
48820
48821 2005-07-24  Bruno Haible  <bruno@clisp.org>
48822
48823         * modules/visibility: New file.
48824         * MODULES.html.sh (Misc): Add visibility.
48825
48826 2005-07-24  Bruno Haible  <bruno@clisp.org>
48827
48828         * m4/visibility.m4: New file.
48829
48830 2005-07-24  Bruno Haible  <bruno@clisp.org>
48831
48832         * doc/visibility.texi: New file.
48833
48834 2005-07-22  Bruno Haible  <bruno@clisp.org>
48835
48836         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
48837         $(ALLOCA_H), redundant through BUILT_SOURCES.
48838         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
48839         redundant through BUILT_SOURCES.
48840         * modules/byteswap (Makefile.am): Remove explicit dependency on
48841         $(BYTESWAP_H), redundant through BUILT_SOURCES.
48842         * modules/fnmatch (Makefile.am): Remove explicit dependency on
48843         $(FNMATCH_H), redundant through BUILT_SOURCES.
48844         * modules/getopt (Makefile.am): Remove explicit dependency on
48845         $(GETOPT_H), redundant through BUILT_SOURCES.
48846         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
48847         redundant through BUILT_SOURCES.
48848         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
48849         redundant through BUILT_SOURCES.
48850         * modules/stdbool (Makefile.am): Remove explicit dependency on
48851         $(STDBOOL_H), redundant through BUILT_SOURCES.
48852         * modules/stdint (Makefile.am): Remove explicit dependency on
48853         $(STDINT_H), redundant through BUILT_SOURCES.
48854         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
48855         Remove explicit dependency on $(SYSEXITS_H).
48856         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
48857
48858 2005-07-18  Simon Josefsson  <jas@extundo.com>
48859
48860         * lib/check-version.c (check_version): Accept identical versions too.
48861
48862 2005-07-18  Bruno Haible  <bruno@clisp.org>
48863
48864         * modules/lock: New file.
48865         * MODULES.html.sh (Multithreading): New section.
48866
48867 2005-07-18  Bruno Haible  <bruno@clisp.org>
48868
48869         * m4/lock.m4: New file, from GNU gettext.
48870
48871 2005-07-18  Bruno Haible  <bruno@clisp.org>
48872
48873         * lib/lock.h: New file, from GNU gettext.
48874         * lib/lock.c: New file, from GNU gettext.
48875
48876 2005-07-18  Bruno Haible  <bruno@clisp.org>
48877
48878         * lib/lock.h (gl_once_t): New type.
48879         (gl_once_define, gl_once): New macros.
48880         * lib/lock.c (fresh_once): New variable.
48881         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
48882         functions.
48883
48884 2005-07-16  Simon Josefsson  <jas@extundo.com>
48885
48886         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
48887         workaround, suggested by Bruno.
48888
48889 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
48890
48891         * modules/xalloc (Depends-on): Add xalloc-die.
48892         * modules/xvasprintf (Depends-on): Add xalloc-die.
48893
48894 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
48895
48896         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
48897         with a minor change.
48898
48899 2005-07-15  Bruno Haible  <bruno@clisp.org>
48900
48901         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
48902         When using lib/poll.c, define poll as rpl_poll.
48903
48904 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
48905
48906         * modules/argp (Depends-on): Remove unlocked-io.
48907
48908 2005-07-14  Derek Price  <derek@ximbiot.com>
48909
48910         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
48911         for glob symlink bug.
48912
48913 2005-07-14  Bruno Haible  <bruno@clisp.org>
48914
48915         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
48916         Instead, test for *_unlocked function declarations directly.
48917
48918 2005-07-11  Simon Josefsson  <jas@extundo.com>
48919
48920         * modules/size_max: New file.
48921
48922         * modules/xsize: Depend on size_max module for size_max.m4.
48923
48924 2005-07-11  Simon Josefsson  <jas@extundo.com>
48925
48926         * lib/size_max.h: New file.
48927
48928 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
48929
48930         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
48931         copyright symbol and the year.
48932         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
48933         (version_etc_va): Use parameterized copyright notice.
48934         Reword to conform to the current GNU coding standards.
48935
48936 2005-07-11  Karl Berry  <karl@gnu.org>
48937
48938         * doc/gnulib.texi (Quoting): new node.
48939         (Initial import): more info, from Patrice.
48940
48941 2005-07-11  Bruno Haible  <bruno@clisp.org>
48942
48943         * gnulib-tool (func_usage): Document option --avoid.
48944         (Command line options): Handle --avoid.
48945         (func_acceptable): New function.
48946         (func_modules_transitive_closure): Use it.
48947
48948 2005-07-11  Bruno Haible  <bruno@clisp.org>
48949
48950         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
48951         Reported by Jim Meyering.
48952
48953 2005-07-10  Bruno Haible  <bruno@clisp.org>
48954
48955         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
48956         Needed when size_t is smaller than 'unsigned int'.
48957         Reported by Paul Eggert.
48958
48959 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48960
48961         * modules/argp (Depends-on): Add unlocked-io
48962
48963 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48964
48965         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
48966         block of defines.
48967
48968 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48969
48970         * config/srclist.txt: Comment out regcomp.c, since we have a porting
48971         fix now.
48972
48973 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
48974         and Paul Eggert  <eggert@cs.ucla.edu>
48975
48976         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
48977         in wint_t, not wchar_t.  Remove now-unnecessary cast.
48978
48979 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48980
48981         * modules/regex (Files): Add lib/regex_internal.c,
48982         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
48983         (Depends-on): Add extensions.
48984         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
48985
48986 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48987
48988         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
48989         pathconf.
48990         * m4/same.m4 (gl_SAME): Likewise.
48991         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
48992
48993         * m4/regex.m4: Adjust to new libc regex implementation.
48994         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
48995         all the .c and .h parts of (the new) regex.
48996         Quote the m4 stuff better.
48997         Check for RE_ICASE bug of old gnulib.
48998         Check for REG_STARTEND of recent libc.
48999         Rename local variables from jm_* to gl_*.
49000         Quote operand of "test -f".
49001         Say "recent enough" version of libc, not "version 2".
49002         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
49003         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
49004         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
49005         Remove check for btowc, isascii.
49006         Require AM_LANGINFO_CODESET.
49007
49008 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49009
49010         * lib/regex.c, regex.h: Sync from libc.
49011         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
49012         * lib/regexec.c:
49013         New files, synced from libc, except that regex_internal.h
49014         currently has a small porting fix.
49015
49016 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49017
49018         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
49019         regex_internal.c, regexec.c.
49020         Add regex_internal.h too, but as a comment, since the libc version
49021         is currently broken in gnulib mode.
49022
49023 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49024
49025         Support programs like Emacs that use gnulib but not gettext.
49026         * MODULES.html.sh (Internationalization functions): Add gettext-h.
49027         * modules/gettext-h: New file.
49028         * modules/gettext (Files): Remove lib/gettext.h.
49029         (Depends-on): Add gettext-h.
49030         (Makefile.am): Remove lib_SOURCES.
49031         * modules/argmatch, modules/c-stack, modules/closeout:
49032         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
49033         * modules/execute, modules/file-type, modules/getaddrinfo:
49034         * modules/getopt, modules/human, modules/javacomp:
49035         * modules/javaexec, modules/mkdir-p, modules/obstack:
49036         * modules/openat, modules/pagealign_alloc, modules/pipe:
49037         * modules/quotearg, modules/regex, modules/rpmatch:
49038         * modules/unicodeio, modules/userspec, modules/version-etc:
49039         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
49040         * modules/xsetenv:
49041         Depend on gettext-h, not gettext.
49042
49043 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49044
49045         * gnulib-tool (func_import): Add support for 'public domain' license.
49046         * modules/alloca, modules/atexit, modules/memmove:
49047         Now public domain, not GPL.
49048         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
49049         * modules/realloc, modules/strerror, modules/strtod:
49050         Now LGPL, not GPL.
49051
49052 2005-07-05  Bruno Haible  <bruno@clisp.org>
49053
49054         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
49055         autoconf CVS. Needed for mingw.
49056
49057 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49058
49059         Remove the dependency of the strftime module on the tzset module.
49060         * modules/strftime (Depends-on): Remove dependency on tzset.
49061
49062 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49063
49064         Remove the dependency of the strftime module on the tzset module.
49065         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
49066         gl_FUNC_TZSET_CLOBBER.
49067
49068 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49069
49070         Remove the dependency of the strftime module on the tzset module.
49071         * lib/strftime.c (my_strftime)
49072         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
49073         Copy the input structure, to work around some of the bug with
49074         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
49075         Solaris releases, you should also use the tzset module, but we won't
49076         require it as a dependency any more since we don't want LGPLed code
49077         to depend on GPLed code.
49078
49079 2005-07-02  Jim Meyering  <jim@meyering.net>
49080
49081         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
49082         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
49083         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
49084         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
49085
49086 2005-07-02  Jim Meyering  <jim@meyering.net>
49087
49088         * lib/backupfile.c (backup_args): Change a `0' to NULL.
49089
49090 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49091
49092         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
49093         declares only 'struct timespec;' (!).
49094
49095 2005-07-01  Jim Meyering  <jim@meyering.net>
49096
49097         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
49098         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
49099         * lib/save-cwd.c, tempname.c:
49100         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49101         and don't include <sys/file.h>).
49102
49103 2005-06-29  Jim Meyering  <jim@meyering.net>
49104
49105         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
49106         type name.  Use the variable name instead.
49107         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
49108         Likewise.
49109
49110 2005-06-28  Simon Josefsson  <jas@extundo.com>
49111
49112         * modules/check-version (Files): Add check-version.m4.
49113
49114 2005-06-28  Simon Josefsson  <jas@extundo.com>
49115
49116         * m4/check-version.m4: New file, suggested by Jim Meyering
49117         <jim@meyering.net>.
49118
49119 2005-06-28  Simon Josefsson  <jas@extundo.com>
49120
49121         * lib/check-version.h, lib/check-version.c: New files.
49122
49123 2005-06-28  Simon Josefsson  <jas@extundo.com>
49124
49125         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
49126         collision with global variable.  Better indentation.  Don't
49127         increment buffer pointer beyond buffer end.  Based on comments
49128         from Paul Eggert <eggert@cs.ucla.edu>.
49129
49130         * lib/base64.h: Indent.
49131
49132 2005-06-28  Simon Josefsson  <jas@extundo.com>
49133
49134         * doc/gnulib.texi (Library version handling): New section.
49135
49136 2005-06-28  Jim Meyering  <jim@meyering.net>
49137
49138         * check-module (find_included_lib_files): Hard-code another
49139         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
49140         but modules/fts-lgpl (correctly) does not list those files.
49141
49142         * modules/canonicalize (Files): Add lib/pathmax.h.
49143
49144 2005-06-25  Simon Josefsson  <jas@extundo.com>
49145
49146         * modules/check-version: New file.
49147
49148 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
49149
49150         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
49151         initializer of struct addrinfo, as an indication that we don't
49152         care how many members the structure has.
49153
49154 2005-06-24  Derek Price  <derek@ximbiot.com>
49155         and Bruno Haible  <bruno@clisp.org>
49156
49157         Remove stat module & update lstat.
49158         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
49159         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49160         * m4/stat.m4: Remove this file.
49161
49162 2005-06-24  Derek Price  <derek@ximbiot.com>
49163         and Bruno Haible  <bruno@clisp.org>
49164
49165         Remove stat module & update lstat.
49166         * lib/stat.c: Remove this file...
49167         (slash_aware_lstat): ...moving this content and its support...
49168         * lib/lstat.c (rpl_lstat): ...into here.
49169         * lib/lstat.h: New file.
49170
49171 2005-06-24  Derek Price  <derek@ximbiot.com>
49172         and Bruno Haible  <bruno@clisp.org>
49173
49174         Remove stat module & update lstat.
49175         * config/srclist.txt (libc sources): Remove stat.
49176
49177 2005-06-24  Derek Price  <derek@ximbiot.com>
49178         and Bruno Haible  <bruno@clisp.org>
49179
49180         Remove stat module & update lstat.
49181         * MODULES.html.sh (stat): Remove.
49182         * MODULES.html: Regenerated.
49183         * modules/lstat (Description): Correct function name.
49184         (Files): Add "lstat.h".
49185         (Depends-on): Remove stat, add xalloc, stat-macros.
49186         * modules/stat: Remove this file.
49187         (Include): Add "lstat.h", remove <sys/stat.h>.
49188
49189 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49190
49191         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
49192         (ranged_convert): Don't save conversion in a temporary struct.
49193         This causes a warning with GCC 4.0.0, and anyway in the typical
49194         case it's not worth the extra 100 bytes or so of code.
49195         (ranged_convert, __mktime_internal): When calling a function via a
49196         pointer P, use P () rather than (*P) (), as we now assume C89 or
49197         better.
49198
49199 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49200
49201         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
49202         "who -r" failed to give output.  Problem reported by Tim Waugh.
49203
49204         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
49205         (xcalloc): Use it to avoid needless tests.
49206         Problem reported by Jim Meyering.
49207
49208 2005-06-20  Derek Price  <derek@ximbiot.com>
49209
49210         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
49211         unnecessary for Autoconfs > 2.59c.
49212
49213 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49214
49215         * lib/argp.h (__option_is_short): Check upper limit of
49216         __key. Isprint() requires its argument to have the value
49217         of an unsigned char or EOF.
49218
49219 2005-06-16  Jim Meyering  <jim@meyering.net>
49220
49221         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
49222         when either N or S is zero.
49223
49224 2005-06-16  Derek Price  <derek@ximbiot.com>
49225
49226         * m4/bison.m4: Declare YACC & YFLAGS precious.
49227
49228 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
49229
49230         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
49231         multibyte string or pattern, fall back on unibyte matching.
49232         Problem reported by James Youngman.
49233
49234 2005-06-08  Bruno Haible  <bruno@clisp.org>
49235
49236         * modules/csharpcomp: New file.
49237         * MODULES.html.sh (C#): Add csharpcomp.
49238
49239 2005-06-08  Bruno Haible  <bruno@clisp.org>
49240
49241         * m4/csharpcomp.m4: New file, from GNU gettext.
49242
49243 2005-06-08  Bruno Haible  <bruno@clisp.org>
49244
49245         * lib/csharpcomp.h: New file, from GNU gettext.
49246         * lib/csharpcomp.c: New file, from GNU gettext.
49247         * lib/csharpcomp.sh.in: New file, from GNU gettext.
49248
49249 2005-06-08  Bruno Haible  <bruno@clisp.org>
49250
49251         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
49252         warning on mingw.
49253
49254 2005-06-07  Derek Price  <derek@ximbiot.com>
49255
49256         Sync from CVS.
49257         * lib/glob_.h: Indent nested #ifdef.
49258
49259 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49260
49261         Sync from coreutils.
49262         Use "file name" when talking about file names, instead of "filename"
49263         or "path", as per the GNU coding standards.
49264         * lib/mkdir-p.c: Renamed from makepath.c.
49265         (make_dir_parents): Renamed from make_path.  All callers changed.
49266         * lib/mkdir-p.h: Likewise.  All includers changed.
49267         * lib/filenamecat.c: Renamed from path-concat.c.
49268         (file_name_concat): Renamed from path_concat.  All callers changed.
49269         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
49270         * lib/filenamecat.h: Likewise.  All includers changed.
49271         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
49272         in comments or local variable names.
49273         * lib/basename.c: Likewise.
49274         * lib/canonicalize.c, canonicalize.h: Likewise.
49275         * lib/dirname.c, dirname.h: Likewise.
49276         * lib/euidaccess.c: Likewise.
49277         * lib/exclude.c: Likewise
49278         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
49279         * lib/fsusage.c, fsuage.h: Likewise.
49280         * lib/fts.c, fts_.h: Likewise.
49281         * lib/getcwd.c: Likewise.
49282         * lib/getloadavg.c: Likewise.
49283         * lib/mkstemp.c: Likewise.
49284         * lib/mountlist.c, mountlist.h: Likewise.
49285         * lib/openat.c, openat.h: Likewise.
49286         * lib/readlink-stub.c: Likewise.
49287         * lib/readutmp.c, readutmp.h: Likewise.
49288         * lib/rename.c: Likewise.
49289         * lib/rmdir.c: Likewise.
49290         * lib/same.c: Likewise.
49291         * lib/savedir.c: Likewise.
49292         * lib/stripslash.c: Likewise.
49293         * lib/tempname.c: Likewise.
49294         * lib/xreadlink.c: Likewise.
49295         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
49296         All uses changed.
49297         * lib/exclude.h: Likewise.
49298
49299         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
49300         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49301         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
49302         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49303         * lib/pathmax.h: Include <limits.h> unconditionally, since other
49304         files have been getting away with it for years (MORE/BSD 4.3
49305         is extinct now).
49306         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
49307         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49308
49309         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
49310         Define to 256, not 255, as per modern POSIX.
49311
49312 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49313
49314         Sync from coreutils.
49315         Use "file name" when talking about file names, instead of "filename"
49316         or "path", as per the GNU coding standards.
49317         * MODULES.html.sh: mkdir-p renamed from makepath.
49318         filenamecat renamed from path-concat.
49319         * modules/filenamecat: Renamed from modules/path-concat.
49320         (Files): filenamecat.h and filenamecat.c renamed from
49321         path-concat.h and path-concat.c.
49322         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
49323         (Include): filenamecat.h, not path-concat.h.
49324         * modules/mkdir-p: Renamed from modules/makepath.
49325         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
49326         makepath.c.
49327         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
49328         (Include): mkdir-p.h, not makepath.h.
49329
49330 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49331
49332         Sync from coreutils.
49333         * m4/mkdir-p.m4: Renamed from makepath.m4.
49334         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
49335         Rename files from makepath.c to mkdir-p.c, and from
49336         makepath.h to mkdir-p.h.
49337         * m4/filenamecat.m4: Renamed from path-concat.m4.
49338         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
49339         Rename files from path-concat.c to filenamecat.c,
49340         and from path-concat.h to filenamecat.h.
49341         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
49342         "file name" in local variables or comments.
49343         * m4/rename.m4: Likewise.
49344
49345 2005-06-01  Bruno Haible  <bruno@clisp.org>
49346
49347         * modules/csharpexec: New file.
49348         * MODULES.html.sh (C#): New section.
49349
49350 2005-06-01  Bruno Haible  <bruno@clisp.org>
49351
49352         * m4/csharp.m4: New file, from GNU gettext.
49353         * m4/csharpexec.m4: New file, from GNU gettext.
49354
49355 2005-06-01  Bruno Haible  <bruno@clisp.org>
49356
49357         * lib/csharpexec.h: New file, from GNU gettext.
49358         * lib/csharpexec.c: New file, from GNU gettext.
49359         * lib/csharpexec.sh.in: New file, from GNU gettext.
49360
49361 2005-05-31  Derek Price  <derek@ximbiot.com>
49362             Paul Eggert  <eggert@cs.ucla.edu>
49363
49364         Sync from cvs.
49365         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
49366
49367 2005-05-31  Derek Price  <derek@ximbiot.com>
49368             Paul Eggert  <eggert@cs.ucla.edu>
49369
49370         Sync from cvs.
49371         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
49372
49373 2005-05-29  Derek Price  <derek@ximbiot.com>
49374
49375         * config/srclist.txt (glob_.h, glob.c): Add these files.
49376
49377 2005-05-29  Derek Price  <derek@ximbiot.com>
49378
49379         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
49380         * modules/glob: New file.
49381         * modules/getlogin_r: Add link to POSIX spec in description.
49382
49383 2005-05-29  Derek Price  <derek@ximbiot.com>
49384             Paul Eggert  <eggert@cs.ucla.edu>
49385
49386         * m4/glob.m4: New file.
49387
49388 2005-05-29  Derek Price  <derek@ximbiot.com>
49389             Paul Eggert  <eggert@cs.ucla.edu>
49390
49391         * lib/glob_.h, lib/glob.c: New files.
49392
49393 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
49394
49395         * modules/fts (Files): Remove m4/inttypes-pri.m4.
49396         * modules/fts-lgpl (Depends-on): Remove gettext.
49397
49398 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
49399
49400         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
49401         and don't require gt_INTTYPES_PRI.
49402
49403 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
49404
49405         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
49406
49407         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
49408         the configuration hassle isn't worth it.
49409         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
49410         (LONGEST_MODIFIER, PRIuMAX): Remove.
49411
49412 2005-05-27  Bruno Haible  <bruno@clisp.org>
49413
49414         * lib/getlogin_r.h: Remove second include of <stddef.h>.
49415
49416 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
49417
49418         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
49419         _POSIX_PTHREAD_SEMANTICS for Solaris.
49420
49421 2005-05-25  Derek Price  <derek@ximbiot.com>
49422
49423         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
49424
49425 2005-05-25  Derek Price  <derek@ximbiot.com>
49426             Paul Eggert  <eggert@cs.ucla.edu>
49427
49428         * modules/getlogin_r, m4/getlogin_r.m4: New files.
49429         * lib/getlogin_r.c, getlogin_r.h: New files.
49430
49431 2005-05-25  Bruno Haible  <bruno@clisp.org>
49432             Derek Price  <derek@ximbiot.com>
49433
49434         * lib/getlogin_r.h: Simplify API documentation.
49435
49436 2005-05-23  Derek Price  <derek@ximbiot.com>
49437
49438         * modules/minmax (Files): Add m4/minmax.m4.
49439         (configure.ac): Add gl_MINMAX.
49440
49441 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49442
49443         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
49444         so that unistd-safer.h (GPL'ed code) need not be included.
49445
49446 2005-05-22  Bruno Haible  <bruno@clisp.org>
49447
49448         * m4/minmax.m4: New file.
49449         Based on a patch by Derek Price <derek@ximbiot.com>.
49450
49451 2005-05-22  Bruno Haible  <bruno@clisp.org>
49452
49453         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
49454         (INT64_MIN): Fix definition.
49455         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
49456
49457         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
49458         NEED_SIGNED_INT_TYPES.
49459
49460         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
49461         HAVE_SYSTEM_INTTYPES.
49462
49463 2005-05-22  Bruno Haible  <bruno@clisp.org>
49464
49465         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
49466         Also include <sys/param.h> if it defines MIN, MAX.
49467         Based on a patch by Derek Price <derek@ximbiot.com>.
49468
49469 2005-05-21  Jim Meyering  <jim@meyering.net>
49470
49471         * modules/fts (Files): Add m4/inttypes-pri.m4.
49472         (Depends-on): Add lstat and remove gettext.  Alphabetize.
49473
49474 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
49475
49476         New fts module.
49477         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
49478         (setup_dir, free_dir): New functions.
49479         (enter_dir, leave_dir): Define trivial
49480         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
49481         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
49482         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
49483         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
49484         Move to fts-cycle.c.
49485         (fts_open): Use setup_dir.
49486         (fts_close): Use free_dir.
49487         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
49488         This adds a label and some gotos, but the alternatives were messier.
49489         Check for memory allocation failure when entering a dir.
49490         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
49491         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
49492         (FTS): New member fts_cycle, that is a union that contains the
49493         old active_dir_ht and cycle_state.  All uses changed to mention
49494         fts_cycle.ht and fts_cycle.state.
49495         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
49496         fts.c, with the following changes:
49497         (setup_dir, free_dir): New functions.
49498         (enter_dir): Now returns bool.  Return true if successful, false
49499         if memory exhausted.  All callers changed.
49500         Do not bother partly cleaning up on
49501         memory allocation failure; that is free_dir's job.
49502         However, free ad if hash_insert fails, to avoid memory leak.
49503         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
49504         fts->fts_options to see which union member to use.
49505
49506 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
49507
49508         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
49509         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
49510
49511 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
49512
49513         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
49514
49515 2005-05-20  Jim Meyering  <jim@meyering.net>
49516
49517         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
49518         Now a macro, to pacify GCC.
49519
49520 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
49521
49522         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
49523         of -1.
49524
49525 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
49526
49527         * lib/chown.c (rpl_chown): Return -1 on failure.
49528
49529 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
49530
49531         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
49532         Don't check for stddef.h.
49533         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
49534         don't use its results.
49535         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
49536         since we include them unconditionally.  Don't require
49537         AM_STDBOOL_H, since stdbool is a prerequisite.
49538         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
49539         since we assume C89 or better.
49540         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
49541         as we don't use their results.
49542         Don't check for fchdir, memmove, memset, strrchr, as we use
49543         them unconditionally.
49544         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
49545         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
49546
49547 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
49548
49549         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
49550         Include <stddef.h> unconditionally, since we assume C89 now.
49551         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
49552         * lib/fts.c: Include fts_.h first, to check interface.
49553         Do not include intprops.h; no longer needed.
49554         Include cycle-check.h and hash.h, since fts_.h no longer does.
49555         Remove unnecessary casts of closedir to void.
49556         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
49557         decide whether to decrement nlinks.
49558         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
49559         (FTS): Use struct hash_table * instead of Hash_table, so that
49560         we no longer need to include hash.h here.
49561
49562 2005-05-18  Jim Meyering  <jim@meyering.net>
49563
49564         * modules/dirfd (License): Change to LGPL.  Most of the code
49565         is already in the public domain.
49566
49567 2005-05-18  Jim Meyering  <jim@meyering.net>
49568
49569         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
49570         Reported by Yoann Vandoorselaere.
49571
49572 2005-05-17  Jim Meyering  <jim@meyering.net>
49573
49574         * m4/fts.m4: New file, from coreutils.
49575
49576 2005-05-17  Jim Meyering  <jim@meyering.net>
49577
49578         * lib/fts.c, lib/fts_.h: New files, from coreutils.
49579
49580 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
49581
49582         Sync from coreutils.
49583         * m4/unlinkdir.m4: New file.
49584
49585 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
49586
49587         Sync from coreutils.
49588         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
49589         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
49590         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
49591         White space changes only.
49592         * lib/makepath.c (make_path): Port to hosts where leading "//" is
49593         special.
49594         * lib/yesno.c: Include getline.h, not ctype.h.
49595         (yesno): Don't remove leading white space; POSIX doesn't allow it.
49596         Use getline to remove arbitrary restriction on response length.
49597
49598 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
49599
49600         * config/srclist-update: Spell out "Street" in FSF postal
49601         mail address; this is the style the FSF seems to prefer.
49602
49603         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
49604         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
49605         this updates FSF postal mail address.
49606
49607         Sync from coreutils.
49608         * modules/unlinkdir: New file.
49609         * modules/yesno (Depends-on): Add getline.
49610         * MODULES.html.sh (File system functions): Add unlinkdir.
49611
49612 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
49613
49614         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
49615         lib/strsep.h:
49616         Change the initial comment to refer to GPL, not LGPL.
49617         gnulib-tool will change it to LGPL as needed.
49618
49619         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
49620         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
49621         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
49622         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
49623         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
49624         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
49625         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
49626         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
49627         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
49628         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
49629         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
49630         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
49631         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
49632         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
49633         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
49634         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
49635         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
49636         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
49637         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
49638         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
49639         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
49640         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
49641         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
49642         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
49643         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
49644         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
49645         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
49646         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
49647         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
49648         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
49649         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
49650         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
49651         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
49652         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
49653         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
49654         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
49655         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
49656         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
49657         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
49658         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
49659         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
49660         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
49661         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
49662         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
49663         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
49664         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
49665         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
49666         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
49667         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
49668         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
49669         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
49670         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
49671         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
49672         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
49673         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
49674         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
49675         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
49676         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
49677         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
49678         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
49679         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
49680         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
49681         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
49682         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
49683         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
49684         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
49685         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
49686         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
49687         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
49688         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
49689         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
49690         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
49691         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
49692         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
49693         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
49694         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
49695         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
49696         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
49697         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
49698         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
49699         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
49700         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
49701         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
49702         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
49703         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
49704         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
49705         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
49706         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
49707         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
49708         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
49709         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
49710         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
49711         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
49712         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
49713         lib/yesno.c, lib/yesno.h:
49714         Update FSF postal mail address.
49715
49716 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
49717
49718         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
49719         tests/test-memmem.c, tests/test-stpncpy.c:
49720         Update FSF postal mail address.
49721
49722 2005-05-13  Bruno Haible  <bruno@clisp.org>
49723
49724         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
49725         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
49726         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
49727         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
49728         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
49729         Add support for 64-bit integers in the MSVC compiler.
49730
49731 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49732
49733         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
49734
49735 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
49736
49737         * gnulib-tool (func_import): Sort and uniquify recommended includes.
49738
49739 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
49740
49741         * doc/getdate.texi (General date syntax): Don't say that date
49742         date --iso-8601=ns generates acceptable dates; it doesn't yet.
49743         Problem reported by Nic Ferrier.
49744
49745 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49746
49747         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
49748         specified in ai_socktype. Fix invalid ai_protocol
49749         check. ai_protocol is usually set to 0 or depending on
49750         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
49751         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
49752         ai_socktype / ai_protocol in the returned addrinfo structure.
49753
49754 2005-05-10  Simon Josefsson  <jas@extundo.com>
49755
49756         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
49757         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49758
49759 2005-05-10  Karl Berry  <karl@gnu.org>
49760
49761         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
49762         (from http://www.gnu.org/licenses).
49763         * doc/COPYING.LIB: also rename to COPYING.LESSER.
49764         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
49765         fdl.texi suffices.
49766
49767 2005-05-10  Karl Berry  <karl@gnu.org>
49768
49769         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
49770         (COPYING.DOC): remove.
49771
49772         * config/srclist-update: new FSF address.
49773
49774 2005-05-10  Derek Price  <derek@ximbiot.com>
49775
49776         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
49777         possible.
49778
49779 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49780             Bruno Haible  <bruno@clisp.org>
49781
49782         * modules/inet_ntop: New file.
49783         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49784         inet_ntop.
49785
49786 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49787             Bruno Haible  <bruno@clisp.org>
49788
49789         * m4/inet_ntop.m4: New file.
49790
49791 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49792             Bruno Haible  <bruno@clisp.org>
49793
49794         * lib/inet_ntop.h: New file.
49795         * lib/inet_ntop.c: New file, from glibc with modifications.
49796
49797 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
49798
49799         * modules/time_r (License): Change to LGPL.
49800         * modules/extensions (License): Change to LGPL.  Actually,
49801         the license is more permissive than that, but currently gnulib-tool
49802         doesn't know how to handle more-permissive licenses.
49803
49804         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
49805         Problem reported by Dave Love.
49806
49807 2005-05-08  Jim Meyering  <jim@meyering.net>
49808
49809         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
49810         blank.
49811
49812 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
49813
49814         * modules/argmatch (Depends-on): Add stdbool.
49815         * modules/backupfile (Depends-on): Likewise.
49816         * modules/chdir-long (Depends-on): Likewise.
49817         * modules/closeout (Depends-on): Likewise.
49818         * modules/cycle-check (Depends-on): Likewise.
49819         * modules/dirname (Depends-on): Likewise.
49820         * modules/fnmatch (Depends-on): Likewise.
49821         * modules/fsusage (Depends-on): Likewise.
49822         * modules/fwriteerror (Depends-on): Likewise.
49823         * modules/getcwd (Depends-on): Likewise.
49824         * modules/getloadavg (Depends-on): Likewise.
49825         * modules/hard-locale (Depends-on): Likewise.
49826         * modules/makepath (Depends-on): Likewise.
49827         * modules/mountlist (Depends-on): Likewise.
49828         * modules/nanosleep (Depends-on): Likewise.
49829         * modules/posixtm (Depends-on): Likewise.
49830         * modules/quotearg (Depends-on): Likewise.
49831         * modules/readtokens (Depends-on): Likewise.
49832         * modules/readtokens0 (Depends-on): Likewise.
49833         * modules/readutmp (Depends-on): Likewise.
49834         * modules/save-cwd (Depends-on): Likewise.
49835         * modules/strftime (Depends-on): Likewise.
49836         * modules/userspec (Depends-on): Likewise.
49837         * modules/utimecmp (Depends-on): Likewise.
49838         * modules/xgetcwd (Depends-on): Likewise.
49839         * modules/xnanosleep (Depends-on): Likewise.
49840         * modules/xstrtod (Depends-on): Likewise.
49841         * modules/yesno (Depends-on): Likewise.
49842
49843 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
49844
49845         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
49846         needless checks.
49847
49848 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49849
49850         Merge from coreutils.  Among other things,
49851         add bulletproofing for cases where stdin, stdout, or stderr are closed.
49852         * lib/fd-safer.c: New file.
49853         * lib/fcntl-safer.h, open-safer.c: Remove.
49854         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
49855         * lib/dup-safer.c: Include unistd-safer.h first.
49856         Don't include errno.h.
49857         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
49858         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
49859         * lib/file-type.c: Rely on file-type.h change.
49860         * lib/getloadavg.c: Include unistd-safer.h.
49861         (getloadavg): Use safer open.
49862         * lib/getusershell.c: Include "stdio-safer.h".
49863         (getusershell): Use safer fopen.
49864         * lib/long-options.c (long_options): Use NULL rather than 0.
49865         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
49866         'free'.
49867         * lib/modechange.c: Likewise.
49868         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
49869         (MODE_DONE): New constant.
49870         (struct mode_change): Remove 'next' member.
49871         (make_node_op_equals): New function; like the old one of the
49872         same name, except it allocates an array.
49873         (mode_compile, mode_create_from_ref): Use it.
49874         (mode_compile): Allocate result as an array, not a linked list.
49875         Parse octal string ourself, so that we catch mistakes like "+0".
49876         (mode_adjust): Arg is an array, not a linked list.
49877         * lib/modechange.c: Include stat-macros.h, xalloc.h.
49878         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
49879         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
49880         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
49881         Remove.  This is now stat-macros.h's job.
49882         (talloc): Remove.  All callers replaced by xalloc, so that
49883         our invokers don't have to worry about reporting memory failures.
49884         (make_node_op_equals): Remove.
49885         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49886         New constants.
49887         (struct mode_change): Moved here from modechange.h.
49888         (mode_append_entry): Remove.
49889         (mode_compile): Remove MASKED_OPS arg, since it encouraged
49890         apps to have incorrect behavior.  Use simpler algorithm for head
49891         and tail.  Don't futz with umask; that's now the job of mode_adjust.
49892         Detect more invalid usages rather than having somewhat-random behavior.
49893         Don't insert an "a=" action, as that leads to incorrect behavior.
49894         (mode_compile, mode_create_from_ref): Return NULL on error instead
49895         of an enum, since now there's only one way to have an error.  All
49896         callers changed.
49897         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
49898         at the correct time.  Simplify calculation of "+u" and its ilk.
49899         Don't mishandle "+X".
49900         (mode_free): Remove "register" and localize decls.
49901         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49902         (struct mode_change): Move to modechange.c; callers don't
49903         need to see this stuff.
49904         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
49905         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
49906         (mode_change, mode_adjust): Reflect the new signatures noted above.
49907         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
49908         that might redefine system include files.
49909         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
49910         (my_usleep): Use NULL rather than (void *) 0.
49911         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
49912         Use siginterrupt to specify that system calls should be interrupted.
49913         (rpl_nanosleep): Move initialization of suspended closer to call of
49914         my_usleep.
49915         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
49916         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
49917         (desirable_utmp_entry): New function.
49918         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
49919         using x2nrealloc, to simplify logic.
49920         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
49921         size calculation.  Do not assume utmp file is a regular file.
49922         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
49923         (READ_UTMP_CHECK_PIDS): New constant.
49924         * lib/save-cwd.c: Include unistd-safer.h.
49925         (save_cwd): Use fd_safer.
49926         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
49927         [!_LIBC] Include "stat-macros.h" instead.
49928         * lib/unistd-safer.h (fd_safer): New decl.
49929
49930 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49931
49932         * modules/getloadavg (Depends-on): Add unistd-safer.
49933         * modules/getusershell (Depends-on): Add stdio-safer.
49934         * modules/lstat (Depends-on): Remove xalloc.
49935         * modules/mkstemp (Depends-on): Add stat-macros.
49936         * modules/modechange (Depends-on): Remove xstrtol.
49937         Add stat-macros, xalloc.
49938         * modules/save-cwd (Depends-on): Add unistd-safer.
49939         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
49940         * modules/unistd-safer (Files): Add lib/fd-safer.c
49941         (Makefile.am): Remove lib_SOURCES.
49942
49943         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
49944         Remove fcntl-safer; unistd-safer supersedes it.
49945
49946 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49947
49948         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
49949         AC_HEADER_STAT.
49950         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
49951         (gl_PREREQ_CHOWN): Remove.
49952         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
49953         it.  Don't require AC_HEADER_STAT.
49954         (gl_PREREQ_LSTAT): Remove.
49955         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
49956         Don't require AC_HEADER_STAT.
49957         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
49958         (gl_PREREQ_RMDIR): Remove.
49959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
49960         mention stat-macros.h or AC_HEADER_STAT, since we'll make
49961         the stat-macros module a prerequisite.
49962         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
49963         * m4/filemode.m4 (gl_FILEMODE): Likewise.
49964         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
49965         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
49966         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
49967         variable names.
49968         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
49969         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
49970         variable prefixes.
49971         * m4/fcntl-safer.m4: Remove.
49972         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
49973         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
49974         Invoke gl_PREREQ_FD_SAFER.
49975         (gl_PREREQ_FD_SAFER): New macro.
49976         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
49977         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
49978         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
49979         Remove duplicate call to AC_LIBOBJ(readutmp).
49980         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
49981
49982         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
49983         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
49984
49985 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49986
49987         * MODULES.html.sh (Misc): Add byteswap.
49988
49989 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49990
49991         * modules/getcwd (Depends-on): Add extensions.
49992         * modules/openat (Depends-on): Likewise.
49993
49994 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49995
49996         * modules/byteswap: New file.
49997
49998 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49999
50000         * m4/byteswap.m4: New file.
50001
50002 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50003
50004         * lib/byteswap_.h: New file.
50005
50006 2005-04-25  Karl Berry  <karl@gnu.org>
50007
50008         * m4/gettext.m4: Update from GNU gettext 0.14.4.
50009
50010 2005-04-25  Albert Chin  <china@thewrittenword.com>
50011
50012         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
50013         Toolkit C bug.
50014
50015 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
50016
50017         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
50018         (func_ln_if_changed) Remove forcibly for no error message
50019         in case file does not exist.
50020
50021 2005-04-19  Simon Josefsson  <jas@extundo.com>
50022
50023         * gnulib-tool (Options): Make --symlink mean --symbolic.
50024
50025 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
50026
50027         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
50028
50029 2005-04-16  Simon Josefsson  <jas@extundo.com>
50030
50031         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
50032
50033 2005-04-15  Simon Josefsson  <jas@extundo.com>
50034
50035         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
50036
50037 2005-04-15  Simon Josefsson  <jas@extundo.com>
50038
50039         * gnulib-tool: Rename --symlink to --symbolic.
50040
50041 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
50042
50043         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
50044         symbolic links to files instead of copying/moving.  Add --aux-dir,
50045         specifying directory relative --dir where auxiliary build tools
50046         are placed.
50047
50048 2005-04-14  Bruno Haible  <bruno@clisp.org>
50049
50050         * modules/allocsa (License): Change to LGPL.
50051         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50052
50053 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50054
50055         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
50056         that "UTC +1 second" continues to work.  Problem reported
50057         by Dmitry V. Levin.
50058         (relunit_snumber): New rule.
50059         (relunit): Use it.
50060
50061 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
50062
50063         * lib/getdate.y (universal_time_zone_table): New constant.
50064         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
50065         universal_time_zone_table.
50066         (lookup_zone): Prefer universal_time_zone_table to
50067         local_time_zone_table, so that "GMT" time stamps are allowed in
50068         London during the summer.  Problem reported by Ian Abbott.
50069
50070 2005-04-12  Jim Meyering  <jim@meyering.net>
50071
50072         * lib/human.c (humblock): Set *options even when returning due to
50073         xstrtoumax conversion failure.  Thanks to a used-uninitialized
50074         warning from gcc-4.
50075
50076 2005-04-09  Jim Meyering  <jim@meyering.net>
50077
50078         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
50079         -Wuninitialized: initialize tm0.tm_year.
50080
50081 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50082
50083         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
50084         count, since there's no maximum.  All uses changed.
50085         Add member dsts_seen.
50086         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
50087         not being INT_MAX.
50088         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
50089         Use pc_rels_seen to decide whther a date is absolute.
50090
50091         * lib/getdate.y (number): Don't overwrite year.
50092         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
50093         check.
50094
50095 2005-04-02  Simon Josefsson  <jas@extundo.com>
50096
50097         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
50098         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
50099
50100 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
50101
50102         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
50103         where no absolute path name can be longer than PATH_MAX.
50104
50105 2005-03-27  Jim Meyering  <jim@meyering.net>
50106
50107         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
50108
50109 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
50110
50111         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
50112         "one's complement" -> "ones' complement" in comment, as per Knuth.
50113         "value of type" -> "type or expression" in comment.
50114         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
50115
50116 2005-03-26  Jim Meyering  <jim@meyering.net>
50117
50118         Comment nits.
50119         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
50120         Correct typos: s/or/of/.
50121
50122 2005-03-26  Jim Meyering  <jim@meyering.net>
50123
50124         * modules/check-include-files: Move to ../ and rename to...
50125         * check-module: ...this.
50126
50127 2005-03-25  Jim Meyering  <jim@meyering.net>
50128
50129         * modules/xvasprintf (Files): Add xalloc.h.
50130
50131 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50132
50133         * modules/gettext (Files): config/config.rpath ->
50134         build-aux/config.rpath
50135         * modules/iconv (Files): Likewise.
50136         Problem reported by Oskar Liljeblad.
50137
50138 2005-03-23  Jim Meyering  <jim@meyering.net>
50139
50140         * modules/check-include-files: New script to check for
50141         missing dependencies, multiple includes, etc.
50142
50143         * modules/c-strtold (Depends-on): Add xalloc.
50144         * modules/c-strtod (Depends-on): Add xalloc.
50145         * modules/hash (Depends-on): Add xalloc.
50146         (Files): Remove lib/xalloc.h.
50147
50148         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
50149         * modules/userspec (Files): Add lib/inttostr.h.
50150
50151 2005-03-23  Jim Meyering  <jim@meyering.net>
50152
50153         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
50154
50155 2005-03-22  Jim Meyering  <jim@meyering.net>
50156
50157         * modules/stat-macros: New module.
50158         * modules/canonicalize, modules/euidaccess, modules/file-type,
50159         * modules/filemode, modules/lchown, modules/makepath,
50160         * modules/rmdir, modules/stat: Depend on new stat-macros module
50161         rather than listing lib/stat-macros.h manually.
50162         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
50163
50164 2005-03-22  Jim Meyering  <jim@meyering.net>
50165
50166         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
50167
50168 2005-03-22  Bruno Haible  <bruno@clisp.org>
50169
50170         * config/srclist.txt: Replace target directory 'config' with
50171         'build-aux'.
50172         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
50173         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
50174         ../build-aux/.
50175
50176 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
50177
50178         * modules/chdir-long (Depends-on): Add mempcpy.
50179
50180         * modules/acl, modules/backupfile, modules/c-strtod,
50181         modules/c-strtold, modules/canon-host, modules/canonicalize,
50182         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
50183         modules/exclude, modules/exitfail, modules/file-type,
50184         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
50185         modules/getdate, modules/getline, modules/getpagesize,
50186         modules/getpass, modules/getugroups, modules/group-member,
50187         modules/hard-locale, modules/hash, modules/human, modules/idcache,
50188         modules/inttostr, modules/long-options, modules/makepath,
50189         modules/md5, modules/memcasecmp, modules/memcoll,
50190         modules/modechange, modules/mountlist, modules/path-concat,
50191         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
50192         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
50193         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
50194         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
50195         modules/strftime, modules/strndup, modules/strverscmp,
50196         modules/timespec, modules/unlocked-io, modules/userspec,
50197         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
50198         modules/yesno:
50199         Remove lib_SOURCES line from Makefile.am section, as this is now
50200         done automatically by the corresponding Autoconf macro.
50201
50202 2005-03-21  Jim Meyering  <jim@meyering.net>
50203
50204         Changes imported from coreutils.
50205
50206         * lib/cycle-check.c: Don't include xalloc.h.
50207
50208         * lib/path-concat.c: Don't include assert.h.
50209         (path_concat): Remove assertion that would have triggered
50210         for ABASE starting with more than one slash.
50211         Reported by Andreas Schwab.
50212
50213         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
50214         properly when ABASE is an absolute file name.
50215         Correct the description of this function.
50216         Include <assert.h>.
50217         Add an assertion and a test driver.
50218         This fixes a bug introduced on 2004-07-02.
50219         Andreas Schwab reported the resulting failure of cp --parents:
50220         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
50221
50222 2005-03-21  Jim Meyering  <jim@meyering.net>
50223
50224         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
50225         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
50226
50227 2005-03-21  Jim Meyering  <jim@meyering.net>
50228         and  Paul Eggert  <eggert@cs.ucla.edu>
50229
50230         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
50231         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
50232         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
50233         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
50234         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
50235         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
50236         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
50237         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
50238         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
50239         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
50240         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
50241         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
50242         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
50243         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
50244         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
50245         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
50246         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
50247         for these modules.
50248
50249 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
50250
50251         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
50252         (which shouldn't happen), generate nothing instead of returning 0
50253         immediately, so that nstrftime (NULL, ...) doesn't return 0.
50254
50255 2005-03-16  Bruno Haible  <bruno@clisp.org>
50256
50257         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
50258         HAVE_LONGLONG_64BIT.
50259
50260 2005-03-16  Bruno Haible  <bruno@clisp.org>
50261
50262         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
50263         HAVE_LONGLONG_64BIT.
50264
50265 2005-03-16  Bruno Haible  <bruno@clisp.org>
50266
50267         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
50268         HAVE_LONGLONG_64BIT.
50269
50270 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
50271
50272         * lib/strftime.c (my_strftime): Prepend space to format so that we can
50273         reliably distinguish strftime failure from empty output on POSIX
50274         hosts.
50275
50276 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
50277
50278         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
50279         (iconv_string): Don't guess a size-zero buffer, as that might cause
50280         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
50281         result would be 'too large', where 'too large' is (heuristically)
50282         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
50283         overflow concerns.  This will prevent some unwanted malloc failures
50284         when the inputs are very large.
50285
50286 2005-03-15  Karl Berry  <karl@gnu.org>
50287
50288         * config/srclist.txt (config.rpath): from gettext.
50289         * config/config.rpath: update.
50290
50291 2005-03-15  Bruno Haible  <bruno@clisp.org>
50292
50293         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
50294         to 'negate'.
50295
50296         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
50297         variable.
50298
50299         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
50300         results.
50301
50302 2005-03-14  Simon Josefsson  <jas@extundo.com>
50303
50304         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
50305         <fx@gnu.org>.
50306
50307 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
50308
50309         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
50310         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
50311         intprops.h.
50312         * lib/strtol.c: Likewise.
50313
50314 2005-03-14  Jim Meyering  <jim@meyering.net>
50315
50316         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
50317         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
50318         to be nonzero so that we (and caller) can detect the difference
50319         between a valid zero-length expansion and an error return, even
50320         when the underlying strftime fails before writing anything into
50321         that location.
50322
50323 2005-03-14  Bruno Haible  <bruno@clisp.org>
50324
50325         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
50326         Update from GNU gettext 0.14.3.
50327
50328 2005-03-10  Jim Meyering  <jim@meyering.net>
50329
50330         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
50331
50332 2005-03-10  Jim Meyering  <jim@meyering.net>
50333
50334         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
50335         so that this module works on systems without fchdir.
50336
50337 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
50338
50339         Factor int-properties macros into a single file, except for
50340         glibc-related files.
50341         * lib/intprops.h: New file.
50342         * lib/getloadavg.c: Include it instead of limits.h.
50343         (INT_STRLEN_BOUND): Remove.
50344         * lib/human.c: Include intprops.h.
50345         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
50346         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
50347         302/1000.
50348         * lib/inttostr.h: Include intprops.h instead of limits.h.
50349         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
50350         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
50351         for consistency with intprops.h.
50352         (time_t_is_integer, twos_complement_arithmetic): Use them.
50353         * lib/sig2str.h: Include <signal.h>, intprops.h.
50354         (INT_STRLEN_BOUND): Remove.
50355         * lib/strftime.c (TYPE_SIGNED): Remove.
50356         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
50357         * lib/strtol.c: Adjust comments to match intprops.h.
50358         * lib/userspec.c: Include intprops.h.
50359         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
50360         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
50361         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
50362         instead of rolling our own expressions.
50363         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
50364
50365         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
50366         instead of int.
50367         (my_strftime): Do not mishandle years close to INT_MAX, by doing
50368         the right thing even if adding 1900 would overflow.  Similarly
50369         for tm_mon + 1 and tm_yday + 1.
50370         Make %Y always equivalent to %C%y, and similarly for %G and %g.
50371         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
50372         (DO_SIGNED_NUMBER): New macro.
50373         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
50374
50375 2005-03-07  Bruno Haible  <bruno@clisp.org>
50376
50377         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
50378
50379 2005-03-07  Bruno Haible  <bruno@clisp.org>
50380
50381         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
50382
50383 2005-03-04  Derek R. Price  <derek@ximbiot.com>
50384
50385         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
50386         (func_import): Only replace files via --import when they have actually
50387         changed.
50388
50389 2005-03-03  Derek R. Price  <derek@ximbiot.com>
50390
50391         * m4/mmap-anon.m4: New file.
50392         * m4/pagealign_alloc.m4: New file.
50393
50394 2005-03-03  Derek R. Price  <derek@ximbiot.com>
50395             Bruno Haible  <bruno@clisp.org>
50396
50397         * modules/pagealign_alloc: New file.
50398         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
50399
50400 2005-03-03  Derek R. Price  <derek@ximbiot.com>
50401             Bruno Haible  <bruno@clisp.org>
50402
50403         * lib/pagealign_alloc.h: New file.
50404         * lib/pagealign_alloc.c: New file.
50405
50406 2005-03-03  Bruno Haible  <bruno@clisp.org>
50407
50408         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
50409         Use an all-permissive copyright notice, recommended by RMS.
50410
50411 2005-03-02  Bruno Haible  <bruno@clisp.org>
50412
50413         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
50414         of AIX, the replacement has to be done only after <string.h> is
50415         included, therefore not in config.h. stpncpy.h does the replacement,
50416         and stpncpy.c uses it.
50417
50418 2005-03-02  Bruno Haible  <bruno@clisp.org>
50419
50420         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
50421         stpncpy.c uses it.
50422
50423 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50424
50425         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
50426         The workaround isn't strictly needed for POSIX conformance, and
50427         it's too much of a pain to configure and maintain.  We'll ask
50428         people to fix their kernels instead.
50429         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
50430         (NANOSLEEP_BUG_WORKAROUND): Remove.
50431         (xnanosleep): Remove the workaround.
50432
50433 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50434
50435         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
50436         Reported by Derek Price.
50437         (Include): Add "timespec.h".
50438
50439         * modules/xnanosleep (Depends-on): Remove gethrxtime.
50440
50441 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50442
50443         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
50444         to detect nanosleep bug.
50445
50446 2005-03-01  Bruno Haible  <bruno@clisp.org>
50447
50448         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
50449
50450 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50451
50452         * modules/gethrxtime: New file.
50453         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
50454         (Depends-on): Add gethrxtime.
50455         (configure.ac): Add gl_XNANOSLEEP.
50456         (Makefile.am): Remove lib_SOURCES line.
50457
50458 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50459
50460         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
50461         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
50462
50463 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50464
50465         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
50466         * lib/timespec.h (gettime): Return void, since it always
50467         succeeds now.  All uses changed.
50468         * lib/gettime.c (gettime) Likewise.
50469         [HAVE_NANOTIME]: Prefer nanotime.
50470         Assume gettimeofday succeeds, as POSIX requires.
50471         Assime time () succeeds, since other code already does.
50472         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
50473         (timespec_subtract): Remove.
50474         (NANOSLEEP_BUG_WORKAROUND): New constant.
50475         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
50476         things considerably.  Use it only on GNU/Linux hosts, since the
50477         workaround shouldn't be needed elsewhere.
50478
50479 2005-02-24  Bruno Haible  <bruno@clisp.org>
50480
50481         * modules/gettext (Files): Add m4/glibc2.m4.
50482
50483 2005-02-24  Bruno Haible  <bruno@clisp.org>
50484
50485         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
50486         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
50487         * m4/progtest.m4:
50488         Update from GNU gettext 0.14.2.
50489         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
50490
50491 2005-02-24  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/localcharset.c: Update from GNU gettext 0.14.2.
50494         * lib/config.charset: Update from GNU gettext 0.14.2.
50495
50496 2005-02-24  Bruno Haible  <bruno@clisp.org>
50497
50498         * lib/gettext.h: Update from GNU gettext 0.14.2.
50499
50500 2005-02-23  Simon Josefsson  <jas@extundo.com>
50501
50502         * m4/iconvme.m4: New file.
50503
50504 2005-02-23  Jim Meyering  <jim@meyering.net>
50505
50506         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
50507         change.
50508         Thanks to Bruno Haible for catching it.
50509
50510 2005-02-22  Simon Josefsson  <jas@extundo.com>
50511
50512         * modules/iconvme: New file.
50513
50514         * MODULES.html.sh: Add iconvme.
50515
50516 2005-02-22  Simon Josefsson  <jas@extundo.com>
50517
50518         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
50519
50520 2005-02-22  Simon Josefsson  <jas@extundo.com>
50521
50522         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
50523
50524 2005-02-22  Jim Meyering  <jim@meyering.net>
50525
50526         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
50527         s/ifndef/ifdef/.
50528
50529 2005-02-20  Neil Conway  <neilc@samurai.com>
50530
50531         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
50532         returned by OSX/Darwin if the specified buffer is not large
50533         enough for the hostname.
50534
50535 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50536
50537         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
50538         pass it to _help, otherwise the latter coredumps trying to
50539         dereference state.root_argp.
50540
50541 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
50542
50543         * modules/chdir-long (Depends-on): Add memrchr.
50544         * modules/memrchr (Files): Add lib/memrchr.h.
50545         (Include): "memrchr.h".
50546
50547 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
50548
50549         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
50550
50551 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
50552
50553         * lib/memrchr.h: New file.
50554         * lib/chdir-long.c: Include it.
50555         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
50556         Don't bother including stddef.h.
50557
50558 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
50559
50560         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
50561         inclusion.
50562         Include <sys/types.h>, for dev_t.
50563         (ME_DUMMY, ME_REMOTE): Move from here....
50564         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
50565         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
50566         Dmitry V. Levin.
50567         Include mountlist.h first, to test the interface.
50568
50569 2005-01-29  Bruno Haible  <bruno@clisp.org>
50570
50571         * lib/progname.c (program_name): Initialize.
50572         Needed when linking statically on MacOS X.
50573
50574 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
50575
50576         Sync from coreutils.
50577         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
50578         (Depends-on): Add c-strtod.
50579         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
50580
50581 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
50582
50583         Sync from coreutils.
50584         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
50585
50586         Remove files that are specific to coreutils.
50587         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
50588
50589 2005-01-28  Bruno Haible  <bruno@clisp.org>
50590
50591         * modules/javacomp: New file.
50592         * MODULES.html.sh (Java): Add javacomp.
50593
50594 2005-01-28  Bruno Haible  <bruno@clisp.org>
50595
50596         * m4/javacomp.m4: New file, from GNU gettext.
50597
50598 2005-01-28  Bruno Haible  <bruno@clisp.org>
50599
50600         * lib/javacomp.sh.in: New file, from GNU gettext.
50601         * lib/javacomp.h: New file, from GNU gettext.
50602         * lib/javacomp.c: New file, from GNU gettext.
50603
50604 2005-01-26  Simon Josefsson  <jas@extundo.com>
50605
50606         * lib/gai_strerror.c: Use GPL in header.
50607
50608 2005-01-26  Bruno Haible  <bruno@clisp.org>
50609
50610         * modules/javaexec: New file.
50611         * MODULES.html.sh (Java): Add javaexec.
50612
50613 2005-01-26  Bruno Haible  <bruno@clisp.org>
50614
50615         * m4/javaexec.m4: New file, from GNU gettext.
50616
50617 2005-01-26  Bruno Haible  <bruno@clisp.org>
50618
50619         * lib/javaexec.sh.in: New file, from GNU gettext.
50620         * lib/javaexec.h: New file, from GNU gettext.
50621         * lib/javaexec.c: New file, from GNU gettext.
50622
50623 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50624
50625         * modules/lchown (Depends-on): Remove lchown.h
50626
50627 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50628
50629         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
50630         must be defined if the header file was not found, in order
50631         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
50632
50633 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50634
50635         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
50636         initializers for struct pentry_state.
50637         (__argp_error): Check return value of __asprintf
50638         (__argp_failure): Translate error message
50639
50640         * lib/argp-parse.c: Removed braces around the expansion of N_()
50641
50642 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50643
50644         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
50645         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
50646         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
50647         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
50648         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
50649         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
50650         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
50651         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
50652         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
50653         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
50654         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
50655         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
50656         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
50657         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
50658         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
50659         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
50660         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
50661         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
50662         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
50663         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
50664         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
50665         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
50666         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
50667         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
50668         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
50669         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
50670         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
50671         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
50672         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
50673         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
50674         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
50675         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
50676         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
50677         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
50678         xstrtol.m4, xstrtoumax.m4, yesno.m4:
50679         Use an all-permissive copyright notice, recommended by RMS.
50680
50681 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
50682
50683         * modules/chdir-long (Depends-on): Remove mempcpy.
50684
50685 2005-01-21  Jim Meyering  <jim@meyering.net>
50686
50687         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
50688         same value as for Solaris 9.
50689
50690         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
50691         component length.  This included changing the parameter to be
50692         of type `char *' rather than `char const *'.
50693         * lib/chdir-long.h (chdir_long): Update prototype.
50694
50695         * lib/openat.c (fdopendir, fstatat): New functions.
50696         * lib/openat.h: Include headers required for use of DIR and struct
50697         stat.
50698         [AT_SYMLINK_NOFOLLOW]: Define.
50699         (fdopendir, fstatat): Add prototypes.
50700
50701 2005-01-21  Bruno Haible  <bruno@clisp.org>
50702
50703         * modules/classpath: New file.
50704         * MODULES.html.sh (Java): Add classpath.
50705
50706 2005-01-21  Bruno Haible  <bruno@clisp.org>
50707
50708         * lib/classpath.h: New file, from GNU gettext.
50709         * lib/classpath.c: New file, from GNU gettext.
50710
50711 2005-01-20  Simon Josefsson  <jas@extundo.com>
50712
50713         * modules/version-etc-fsf: New file.
50714
50715 2005-01-20  Simon Josefsson  <jas@extundo.com>
50716
50717         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
50718         * lib/version-etc.c: Remove version_etc_copyright.
50719         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
50720         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
50721
50722 2005-01-20  Simon Josefsson  <jas@extundo.com>
50723
50724         * lib/base64.h (isbase64): Add.
50725
50726         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
50727         using a unsigned prototype, don't inline.
50728         (base64_decode): Use it.
50729
50730 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
50731
50732         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
50733         it.
50734
50735 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
50736
50737         * lib/save-cwd.c (save_cwd): Remove code to support the case
50738         where fchdir is missing or flaky.
50739
50740 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
50741
50742         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
50743
50744 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
50745
50746         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
50747         AC_LIBSOURCES now does this.
50748         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
50749         with new ullong_max module.
50750
50751 2005-01-19  Bruno Haible  <bruno@clisp.org>
50752
50753         * modules/sh-quote: New file.
50754         * MODULES.html.sh (Executing programs): Add sh-quote.
50755
50756 2005-01-19  Bruno Haible  <bruno@clisp.org>
50757
50758         * lib/sh-quote.h: New file, from GNU gettext.
50759         * lib/sh-quote.c: New file, from GNU gettext.
50760
50761 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50762
50763         Merge from coreutils.
50764         * m4/ullong_max.m4: New file.
50765         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
50766         (gl_MACROS): Assume localeconv exists.
50767
50768 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50769
50770         Merge changes from coreutils, as described below in several
50771         changelogs dated today.
50772
50773         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
50774         (O_DIRECTORY): Remove; not needed here, since "." must be
50775         a directory.  All uses removed.
50776         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
50777         universal on Suns, and we also need to test for IRIX.
50778         Revamp code to use 'if' rather than '#if'.
50779         Avoid unnecessary comparison of cwd->desc to 0.
50780
50781         * lib/utimens.c (futimens): Robustify the previous patch, by checking
50782         for known valid error numbers rather than observed invalid ones.
50783
50784 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50785
50786         * modules/ullong_max: New file.
50787
50788         * modules/chdir-long, modules/openat: New files.
50789         * modules/save-cwd (Depends-on): Depend on chdir-long.
50790         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
50791
50792 2005-01-18  Jim Meyering  <jim@meyering.net>
50793
50794         Merge from coreutils.
50795         * m4/chdir-long.m4, m4/openat.m4: New files.
50796         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
50797         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
50798         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
50799         is sane and DOES follow symlinks.  Besides, testing 20 different
50800         systems found no broken chown implementations.
50801         Prompted by a change in rsync's copy of this macro.
50802         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
50803
50804         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
50805
50806         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
50807         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
50808         NULL-means-set-to-current-time semantics.
50809         Remove temporary file immediately, rather than waiting
50810         for configure's at-exit trap code to do it.
50811
50812 2005-01-18  Jim Meyering  <jim@meyering.net>
50813
50814         * lib/version-etc.c (version_etc_copyright): Update copyright date.
50815
50816         * lib/utimens.c (futimens): Account for the fact that futimes
50817         can also fail with errno == ENOSYS or errno == ENOENT.
50818         Patch from Dmitry V. Levin.
50819
50820         Change the name of the robust chdir function from chdir to chdir_long.
50821         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
50822         (restore_cwd): Use chdir_long, not chdir.
50823         * lib/chdir-long.c: Renamed from chdir.c.
50824         * lib/chdir-long.h: Renamed from chdir.h.
50825         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
50826         Hurd.
50827
50828 2005-01-18  Bruno Haible  <bruno@clisp.org>
50829
50830         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
50831         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
50832         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
50833         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
50834         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
50835         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
50836         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
50837         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
50838         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
50839         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
50840         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
50841         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
50842         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
50843         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
50844         Use an all-permissive copyright notice, recommended by RMS.
50845
50846 2005-01-18  Bob Proulx  <bob@proulx.com>
50847
50848         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
50849         simplify offsetof() macro construct to avoid compile failure with
50850         native HP-UX 11.0 ANSI C compiler.
50851
50852 2005-01-17  Bruno Haible  <bruno@clisp.org>
50853
50854         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
50855         redundant because stpncpy.m4 takes care of it.
50856
50857 2005-01-17  Bruno Haible  <bruno@clisp.org>
50858
50859         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
50860
50861 2005-01-17  Bruno Haible  <bruno@clisp.org>
50862
50863         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
50864         used.
50865
50866 2005-01-17  Bruno Haible  <bruno@clisp.org>
50867
50868         * lib/fwriteerror.h (fwriteerror): Change specification to include
50869         fclose.
50870         * lib/fwriteerror.c: Include <stdbool.h>.
50871         (fwriteerror): At the end, close the file stream. Record whether
50872         stdout was already closed.
50873
50874 2005-01-17  Bruno Haible  <bruno@clisp.org>
50875
50876         * lib/execute.c (environ): Declare if needed.
50877         * lib/pipe.c (environ): Likewise.
50878         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
50879
50880 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50881
50882         * modules/argp: Depend on vsnprintf
50883
50884 2005-01-10  Jim Meyering  <jim@meyering.net>
50885
50886         * modules/closeout (Depends-on): Add atexit.
50887
50888 2005-01-06  Bruno Haible  <bruno@clisp.org>
50889
50890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
50891
50892 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
50893
50894         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
50895         definitions to be after all include files, to avoid collisions.
50896         Problem reported by Bob Proulx.
50897
50898 2005-01-04  Jim Meyering  <jim@meyering.net>
50899
50900         Changes imported from coreutils.
50901         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
50902         as the mkstemp template, use a temporary directory and an
50903         8.3-friendly template to avoid trouble on systems like DJGPP.
50904         Reported by Juan M. Guerrero via Stepan Kasal.
50905         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
50906         close. Remove the temporary directory right away, rather than waiting
50907         for configure's at-exit trap code to do it.
50908         Suggestion from Stepan Kasal.
50909
50910 2005-01-01  Simon Josefsson  <jas@extundo.com>
50911
50912         * gnulib-tool: Print #include directives when --import'ing.
50913
50914 2004-12-28  Simon Josefsson  <jas@extundo.com>
50915
50916         * tests/test-base64.c: Include required header files.  Remove
50917         unused variables.
50918
50919 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50920
50921         * modules/error (Depends-on): Remove gettext.
50922
50923 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50924
50925         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
50926         not needed.  This removes a dependency on the gettext module.
50927         [defined _LIBC]: Do not include <libintl.h>; not needed.
50928
50929 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
50930
50931         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
50932         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
50933
50934 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
50935
50936         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
50937         HAVE_DECL_STRTOLD.
50938
50939 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50940
50941         * modules/getdate (Depends-on): Remove alloca-opt.
50942
50943 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50944
50945         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
50946
50947 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50948
50949         * lib/argp-parse.c: Include <stddef.h>.
50950         (alignof, alignto): New macros.
50951         (parser_init): Don't assume that void * is aligned sufficiently
50952         for struct option.
50953
50954         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
50955         need to extend the stack.
50956         (YYINITDEPTH): New macro, so that the initial stack isn't overly
50957         large.
50958
50959 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50960
50961         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
50962
50963 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
50964
50965         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
50966         (2004-10-24) change.  Apparently this was a false alarm.
50967
50968         * modules/getdate: Depend on alloca-opt, not alloca.
50969
50970 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
50971
50972         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
50973         Remove now-obsolete comment about AIX.
50974         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
50975         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
50976         (YYMAXDEPTH): New macro.
50977
50978 2004-12-18  Simon Josefsson  <jas@extundo.com>
50979
50980         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
50981
50982 2004-12-18  Bruno Haible  <bruno@clisp.org>
50983
50984         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
50985
50986 2004-12-18  Bruno Haible  <bruno@clisp.org>
50987
50988         * lib/fatal-signal.c (fatal_signals): Make non-const.
50989         (init_fatal_signals): New function.
50990         (uninstall_handlers, install_handlers): Ignore signals that were set to
50991         SIG_IGN.
50992         (at_fatal_signal): Call init_fatal_signals.
50993         (init_fatal_signal_set): Likewise. Ignore signals that were set to
50994         SIG_IGN.
50995         Reported by Paul Eggert.
50996
50997 2004-12-18  Bruno Haible  <bruno@clisp.org>
50998
50999         * doc/alloca.texi: New file.
51000         * doc/alloca-opt.texi: New file.
51001
51002 2004-12-17  Jim Meyering  <jim@meyering.net>
51003
51004         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
51005         Otherwise, install-sh could exit with improper exit status when
51006         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
51007
51008 2004-12-16  Simon Josefsson  <jas@extundo.com>
51009
51010         * tests/test-base64.c: Add license.
51011
51012 2004-12-15  Stepan Kasal  <address@hidden>
51013
51014         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
51015
51016 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
51017
51018         * modules/getcwd (Files): Add m4/d-ino.m4.
51019         Suggested by Mark D. Baushke.
51020
51021 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51022
51023         * lib/getdate.y (textint): New member "negative".
51024         (time_zone_hhmm): New function.
51025         Expect 14 shift-reduce conflicts, not 13.
51026         (o_colon_minutes): New rule.
51027         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
51028         (yylex): Set the "negative" member of signed numbers.
51029
51030 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51031
51032         * doc/getdate.texi (Time of day items, Time zone items):
51033         Describe new formats +00:00, UTC+00:00.
51034
51035 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51036
51037         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
51038         spurious "-l"s.  Problem reported by Stepan Kasal.
51039
51040 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
51041
51042         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
51043         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
51044
51045 2004-12-04  Simon Josefsson  <jas@extundo.com>
51046
51047         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
51048         Vandoorselaere <yoann@prelude-ids.org>.
51049
51050 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51051
51052         Changes imported from coreutils.
51053         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
51054         exist.
51055         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
51056
51057 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51058
51059         Changes imported from coreutils.
51060         * lib/hard-locale.c: Assume <locale.h> exists.
51061         Include "strdup.h".
51062         (GLIBC_VERSION): New macro.
51063         (hard_locale): Assume setlocale exists.
51064         Rewrite to avoid #ifdef.
51065         Use strdup rather than malloc + strcpy.
51066         * lib/human.c: Assume <locale.h> exists.
51067         (human_readable): Assume localeconv exists.
51068
51069 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51070
51071         * modules/hard-locale (Depends-on): Add strdup.
51072
51073 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51074
51075         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
51076         convert T2, not T.  (Imported from libc.)
51077
51078 2004-11-30  Simon Josefsson  <jas@extundo.com>
51079
51080         * modules/restrict (License): Change to LGPL.
51081
51082 2004-11-30  Simon Josefsson  <jas@extundo.com>
51083
51084         * m4/restrict.m4: Add copyright and copying conditions.
51085
51086 2004-11-30  Simon Josefsson  <jas@extundo.com>
51087
51088         * m4/base64.m4: New file.
51089
51090 2004-11-30  Simon Josefsson  <jas@extundo.com>
51091
51092         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
51093         base64.
51094
51095         * tests/test-base64.c: New file.
51096
51097         * modules/base64: New file.
51098
51099 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51100
51101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
51102         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
51103
51104         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
51105
51106 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51107
51108         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
51109         (__getcwd.c): Don't restore errno; glibc doesn't.
51110         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
51111         first, falling back to our code only if its results look suspicious.
51112         Ensure that the resulting buffer is only as large as necessary.
51113
51114         * lib/readutmp.c: Include readutmp.h first.
51115         Include <errno.h>, since readutmp.h no longer does that.
51116         * lib/readutmp.h: Don't include <errno.h>,
51117         <sys/param.h>, <time.h>; not needed to establish interface.
51118         (errno): Remove decl.
51119         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
51120         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
51121         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
51122
51123 2004-11-28  Simon Josefsson  <jas@extundo.com>
51124
51125         * lib/base64.h, base64.c: New file.
51126
51127 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51128
51129         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
51130
51131 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51132
51133         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
51134         (Depends-on): Remove pathmax, same.  Add mempcpy.
51135         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
51136         (Makefile.am): Append getcwd.h to lib_SOURCES.
51137         (Include): Add getcwd.h.
51138         (Maintainer): Change from Jim Meyering to "all, glibc",
51139         since getdate now uses intended-for-glibc code.
51140         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
51141         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
51142
51143 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51144
51145         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
51146         HP's ANSI C compiler.
51147         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
51148         Declaring int functions causes warnings on some modern systems and
51149         shouldn't be needed to compile on ancient ones.
51150         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
51151         defined.
51152
51153         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
51154         with the following changes.
51155         (__set_errno): Parenthesize properly.
51156         Include <stdbool.h>.
51157         (MIN, MAX, MATCHING_INO): New macros.
51158         (__getcwd): Define with prototype, not K&R form.
51159         Use heuristics to allocate default buffer on stack if possible.
51160         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
51161         behavior, and to avoid the PATH_MAX limit when computing
51162         ../../../../...
51163         Use MATCHING_INO to compare inode number to file.
51164         Check for arithmetic overflow in size calculations.
51165         Fix bug in reallocation of dot array that caused getcwd to fail
51166         on directories nested deeper than 75.
51167         Be more careful about saving errno on error.
51168         Do not use realloc; use only free+malloc, as this is a bit
51169         more flexible and avoids a needless copy operation.
51170         Do not inspect st_dev and st_ino for symbolic links; POSIX
51171         doesn't specify the latter.
51172         Check for closedir errors.
51173         Avoid needless casts.
51174         Use "#ifdef weak_alias" around weak_alias, to be like other
51175         glibc code.
51176         The following changes to getcwd.c have effect only when used in
51177         gnulib; they have no effect inside glibc proper.
51178         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
51179         as alloca isn't used.
51180         (alloca, __alloca): Likewise.
51181         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
51182         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
51183         unconditionally, as gnulib assumes C89 or better.
51184         Do not include <sys/param.h>.
51185         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
51186         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
51187         better.
51188         (NULL) [!defined NULL]: Remove; we assume C89 or better.
51189         Include <dirent.h> in a way that is compatible with modern Autoconf.
51190         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
51191         New macros, if not already defined.
51192         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
51193         Use "_LIBC", not "defined _LIBC", for consistency.
51194         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
51195         a mempcpy module.
51196         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
51197         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
51198         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
51199         credit only to Jim Meyering and adjust the copyright dates.
51200         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
51201         <stdlib.h>, <unistd.h>, "pathmax.h".
51202         Instead, include "xgetcwd.h" (first) and "getcwd.h".
51203         (INITIAL_BUFFER_SIZE): Remove.
51204         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
51205
51206 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51207
51208         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
51209         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
51210         Use the _ONCE methods, for efficiency.
51211         Check for fcntl.h.  In test program, include <errno.h>
51212         and <fcntl.h> if available.  Remove old K&R cruft from
51213         test program.  Check for common errors in GNU/Linux,
51214         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
51215         don't do AC_LIBOBJ, as that's getcwd.m4's job.
51216         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
51217         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
51218         name accordingly.
51219         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
51220         accommodate new getcwd.c.
51221         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
51222         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
51223         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
51224         that's all we need now.
51225
51226 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51227
51228         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
51229         argp-parse.c depends on getopt internals, that means we should
51230         always use our getopt, to be on the safe side.
51231         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
51232         order not to spoil the result of an eventual previous invocation
51233         of gl_GETOPT_SUBSTITUTE.
51234
51235 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51236
51237         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
51238         redefinition warnings. To avoid them, include the defines
51239         in `#if !defined __need_getopt ... #endif'. The only place
51240         where __getopt_argv_const is used is in definitions
51241         of getopt_long and getopt_long_only below, which are as well
51242         protected by `#ifndef __need_getopt'.
51243         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
51244         __need_getopt after including <stdio.h> and <unistd.h> These
51245         headers might have defined it.
51246
51247 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
51248
51249         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
51250
51251 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
51252
51253         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
51254         (futimens): New function, which uses futimes if available.
51255         (futimens, utimens): Support timespec==NULL, with same semantics
51256         as utime and utimens.
51257         * lib/utimens.h (futimens): New decl.
51258
51259 2004-11-23  Jim Meyering  <jim@meyering.net>
51260
51261         * lib/getopt_.h: Remove trailing blanks.
51262
51263 2004-11-23  Jim Meyering  <jim@meyering.net>
51264
51265         * lib/__fpending.c: Add comment.
51266
51267 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
51268
51269         * modules/canonicalize (Depends-on): Add xreadlink.
51270         Problem reported by James Youngman.
51271
51272 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51273
51274         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
51275         New macros.
51276         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
51277         optopt): Use them instead of invoking ## directly; otherwise, the
51278         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
51279
51280 2004-11-19  Bruno Haible  <bruno@clisp.org>
51281
51282         * lib/strtok_r.c: Move comments from here...
51283         * lib/strtok_r.h: ... to here.
51284
51285 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51286
51287         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
51288         implementations that mishandle size_t overflow.
51289
51290 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51291
51292         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
51293         might fail.  Problem reported by Yoann Vandoorselaere.
51294         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
51295         implementations that mishandle size_t overflow.
51296
51297 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51298
51299         * modules/canon-host (Depends-on): Add strdup.
51300
51301 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51302
51303         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
51304
51305 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51306
51307         * lib/canon-host.c: Include "strdup.h".
51308         (canon_host): Use getaddrinfo if available, so that IPv6 works.
51309         Use strdup instead of malloc/strcpy to duplicate strings.
51310
51311         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
51312         (human_space_before_unit): New constant.
51313         * lib/human.c (human_readable): Support it.
51314
51315         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
51316         (xgetcwd): Set errno correctly when failing.
51317         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
51318         the failure is actually due to a PATH_MAX problem.
51319
51320         Further getopt changes to make it more likely that glibc will
51321         buy the changes back.
51322         * lib/getopt.c (POSIXLY_CORRECT): New constant.
51323         (getopt): Use it, so to preserve glibc semantic
51324         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
51325         when compiling for libc.
51326         * lib/getopt_.h (__getopt_argv_const): Bring it back.
51327         (getopt_long, getopt_long_only): Use it.
51328
51329         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
51330         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
51331         (getopt): Argv is now char * const *, as per standard.
51332         (_getopt_internal_r, _getopt_internal): Argv is now char **,
51333         not char *__getopt_argv_const *.
51334         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
51335         _getopt_long_only_r): Likewise.
51336         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
51337         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
51338         _getopt_long_r, _getopt_long_only_r): Likewise.
51339         * lib/getopt_.h (__getopt_argv_const): Remove.
51340         (getopt): Argv is now char * const *, as per standard.
51341
51342         * lib/getdate.y (tORDINAL): New token.
51343         (day, relunit): Allow it for relative times.
51344         (relative_time_table): Use tORDINAL for ordinals.
51345
51346 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51347
51348         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
51349         Document that "second" isn't allowed as an ordinal number.
51350
51351 2004-11-16  Jim Meyering  <jim@meyering.net>
51352
51353         * modules/closeout (Depends-on): Add fpending.
51354
51355 2004-11-15  Jim Meyering  <jim@meyering.net>
51356
51357         * lib/closeout.c: Include "__fpending.h" once again.
51358         Include <stdbool.h>.
51359         (close_stdout): Don't fail just because stdout was closed initially,
51360         since some programs don't write to stdout in the normal course of
51361         operation (other than --version and --help), and we don't want this
51362         function to make e.g. `touch file >&-' fail.
51363         But do fail if it was closed and someone has tried to write to it.
51364         E.g., `printf foo >&-' must fail.
51365
51366 2004-11-13  Jim Meyering  <jim@meyering.net>
51367
51368         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
51369
51370 2004-11-12  Simon Josefsson  <jas@extundo.com>
51371
51372         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
51373         small doc fix is still pending.
51374
51375 2004-11-11  Simon Josefsson  <jas@extundo.com>
51376
51377         * modules/strtok_r: New file.
51378
51379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51380         strtok_r.
51381
51382 2004-11-11  Simon Josefsson  <jas@extundo.com>
51383
51384         * m4/strtok_r.m4: New file.
51385
51386         * m4/getopt.m4: Replace opterr.
51387
51388 2004-11-11  Simon Josefsson  <jas@extundo.com>
51389
51390         * lib/strtok_r.h, strtok_r.c: New file.
51391
51392 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
51393
51394         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
51395         of replacing opterr, getopt, etc.  This should handle the
51396         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
51397
51398 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
51399
51400         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
51401         we can stop lying to compilers about the constness of argv when we
51402         are compiled outside glibc.
51403         (getopt, getopt_long, getopt_long_only): Use it.
51404         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
51405         _getopt_internal, getopt): Likewise.
51406         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
51407         _getopt_long_only_r): Likewise.
51408         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
51409         _getopt_long_r, _getopt_long_only_r): Likewise.
51410
51411         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
51412         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
51413         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
51414         the other external symbols.
51415         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
51416         declaration, since the above renaming now works around collisions.
51417
51418 2004-11-11  Jim Meyering  <jim@meyering.net>
51419
51420         * lib/linebreak.c: Remove trailing blanks.
51421         * lib/alloca_.h: Likewise.
51422         * lib/acosl.c: Likewise.
51423         * lib/euidaccess.c: Likewise.
51424         * lib/allocsa.h: Likewise.
51425
51426 2004-11-10  Simon Josefsson  <jas@extundo.com>
51427
51428         * m4/getaddrinfo.m4: New file.
51429
51430 2004-11-10  Simon Josefsson  <jas@extundo.com>
51431
51432         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
51433
51434 2004-11-10  Simon Josefsson  <jas@extundo.com>
51435
51436         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51437         getaddrinfo.
51438
51439         * modules/getaddrinfo: New file.
51440
51441 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51442
51443         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
51444
51445 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51446
51447         * lib/mktime.c (SHR): New macro, which is a portable
51448         substitute for >> that should work even on Crays.
51449         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
51450         Problem reported by Mark D. Baushke in
51451         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
51452         * lib/getdate.y (SHR): Likewise.
51453         (tm_diff): Use it.
51454         * lib/strftime.c (SHR): Likewise.
51455         (tm_diff): Use it.
51456         * lib/quotearg.c (struct quoting_options): Use unsigned int for
51457         quote_these_too, so that right shifts are well defined.  All uses
51458         changed.
51459
51460 2004-11-10  Jim Meyering  <jim@meyering.net>
51461
51462         Ensure that no close failure goes unreported.
51463         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
51464         return early when it seems there's nothing to flush.
51465         Don't include __fpending.h.
51466
51467 2004-11-10  Jim Meyering  <jim@meyering.net>
51468
51469         * modules/closeout (Depends-on): Remove fpending.
51470
51471 2004-11-10  Jim Meyering  <jim@meyering.net>
51472
51473         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
51474
51475 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51476
51477         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
51478         gl_FUNC_STRFTIME.
51479         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
51480         and AC_REQUIRE when possible, to avoid duplicate checks.
51481         Check for <wchar.h>.
51482
51483 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51484
51485         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
51486
51487 2004-11-09  Bruno Haible  <bruno@clisp.org>
51488
51489         * m4/sockpfaf.m4: New file.
51490
51491 2004-11-05  Bruno Haible  <bruno@clisp.org>
51492
51493         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
51494         Reported by Mark D. Baushke <mdb@cvshome.org>.
51495
51496 2004-11-04  Bruno Haible  <bruno@clisp.org>
51497
51498         2004-09-11  Bruno Haible  <bruno@clisp.org>
51499                 * allocsa.valgrind: New file.
51500         2004-02-06  Bruno Haible  <bruno@clisp.org>
51501                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
51502                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
51503                 Reported by Christopher Seip <chris.seip@hp.com>.
51504
51505 2004-11-04  Bruno Haible  <bruno@clisp.org>
51506
51507         * modules/allocsa (Files): Add lib/allocsa.valgrind.
51508         (Makefile.am): Distribute it.
51509
51510 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
51511
51512         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
51513         with errno == ERANGE if the buffer is too small.
51514         Problem reported by Mark D. Baushke.
51515
51516 2004-11-03  Albert Chin  <china@thewrittenword.com>
51517             Paul Eggert  <eggert@cs.ucla.edu>
51518
51519         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
51520         equivalent, substitute $ac_type for equivalent type rather than
51521         blindly using uint32_t *always* which won't work if uint32_t is not
51522         available.  Define _UINT32_T to work around typedef of uint32_t if
51523         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
51524         2.5.1.
51525
51526 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
51527
51528         * m4/jm-macros.m4: Sync from coreutils.
51529         (gl_MACROS): Check for mbrlen, for pathchk.
51530         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
51531
51532 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
51533
51534         * lib/xreadlink.c (MAXSIZE): New macro.
51535         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
51536         size does not exceed MAXSIZE.  Avoid cast.
51537         As suggested by Mark D. Baushke in
51538         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
51539         if readlink fails with buffer size just under MAXSIZE, try again
51540         with MAXSIZE.
51541
51542 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
51543
51544         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
51545
51546 2004-11-02  Derek R. Price  <derek@ximbiot.com>
51547         and  Paul Eggert  <eggert@cs.ucla.edu>
51548
51549         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
51550         (get_date): Overparenthesize to avoid GCC warning.
51551
51552 2004-11-02  Bruno Haible  <bruno@clisp.org>
51553
51554         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
51555         returns void.
51556
51557 2004-11-02  Bruno Haible  <bruno@clisp.org>
51558
51559         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
51560         function returns void.
51561
51562 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51563
51564         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
51565         fflush_unlocked, flockfile, funlockfile, funlockfile,
51566         fputs_unlocked, putc_unlocked.
51567
51568 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51569
51570         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
51571         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
51572         already declared.
51573
51574 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
51575
51576         * modules/getdate (Files): Add doc/getdate.texi.
51577         (Depends-on): Add setenv, xalloc.
51578
51579 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         * lib/getdate.y: Add support for TZ="foo" within a date string.
51582         Fix some bugs near time_t boundaries.  Reject dates with
51583         out-of-range components, e.g., "Sept 31".
51584         Include <stdlib.h>, "setenv.h", "xalloc.h".
51585         (ISDIGIT_LOCALE): Remove; unused.
51586         Note that the TZ and time functions used here are not reentrant.
51587         (mktime_ok, get_tz): New functions.
51588         (TZBUFSIZE): New constant.
51589         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
51590         This requires that we sometimes generate our own TZ="XXX..." setting.
51591
51592 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
51593
51594         * doc/getdate.texi: New file, from coreutils with modifications for
51595         the new TZ parsing.
51596
51597 2004-10-27  Derek R. Price  <derek@ximbiot.com>
51598
51599         * lib/mktime.c (not_equal_tm): Remove redundant check.
51600
51601 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51602
51603         * modules/regex (lib_SOURCES): Add regex.c.
51604         Reported by James Youngman in
51605         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
51606
51607 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51608
51609         * lib/getdate.y: Use Bison 1.875 features, and some minor
51610         code cleanups.  This change does not affect semantics.
51611         Don't include <stdlib.h>; no longer needed.
51612         Don't include unlocked-io.h; only the "#if TEST" code uses
51613         stdio, and performance isn't crucial there.
51614         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
51615         Bison 1.875 features as described below.
51616         All uses of "PC." replaced by "pc->".
51617         (YYSTYPE): Add a forward declaration.
51618         (yylex, yyerror): Use full prototypes in forward decls.
51619         Use "%pure-parser" rather than obsolescent "%pure_parser".
51620         Use %parse-param and %lex-param instead of obsolescent
51621         YYPARSE_PARAM and YYLEX_PARAM.
51622         (meridian_table, month_and_day_table, time_units_table,
51623         relative_time_table, time_zone_table, military_table,
51624         lookup_zone, lookup_word, get_date):
51625         Use NULL instead of 0 where appropriate.
51626         (to_hour): Avoid abort (), to avoid a dependency on
51627         stdlib.h.
51628         (yyerror, yylex): Now accepts parser_control * arg.
51629         (main) [TEST]: Use '\0' rather than 0 for char.
51630
51631 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51632
51633         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
51634
51635 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51636
51637         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
51638         It's now the caller's responsibility to handle the case where
51639         !HAVE_GETPAGESIZE && !defined getpagesize.
51640
51641         * lib/mktime.c (leapyear): Arg is long int, not int.
51642
51643 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
51644
51645         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
51646
51647 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51648
51649         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
51650         missing.  Problem reported by James Youngman.
51651
51652 2004-10-16  Simon Josefsson  <jas@extundo.com>
51653
51654         * gnulib-tool: Fix comments.  Fix parse problem.
51655         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
51656
51657 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
51658
51659         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
51660         implementation of getopt_long.  Problem reported by Alexander Taler in:
51661         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
51662
51663 2004-10-15  Bruno Haible  <bruno@clisp.org>
51664
51665         * gnulib-tool: Untabify. Initialize supplied_libname.
51666         (func_usage): More homogenous output.
51667         (func_modules_transitive_closure, func_modules_to_filelist,
51668         func_emit_lib_Makefile_am): New functions.
51669         (func_import): New function, extracted from big case statement. Use
51670         func_get_license, func_modules_transitive_closure,
51671         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
51672         opt_lgpl. Don't use test -a, as it's not portable.
51673         (func_create_testdir): Use func_modules_transitive_closure,
51674         func_modules_to_filelist, func_emit_lib_Makefile_am.
51675
51676 2004-10-15  Bruno Haible  <bruno@clisp.org>
51677
51678         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
51679
51680 2004-10-15  Bruno Haible  <bruno@clisp.org>
51681
51682         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
51683         the portions belonging to each module.
51684         Suggested by Derek Robert Price <derek@ximbiot.com>.
51685
51686 2004-10-12  Simon Josefsson  <jas@extundo.com>
51687
51688         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
51689         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
51690         to real functions.
51691
51692 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51693
51694         * modules/vsnprintf: New file.
51695
51696 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51697
51698         * m4/vsnprintf.m4: New file.
51699
51700 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51701
51702         * lib/vsnprintf.h: New file.
51703         * lib/vsnprintf.c: New file.
51704
51705 2004-10-11  Bruno Haible  <bruno@clisp.org>
51706
51707         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
51708         vsnprintf.
51709
51710 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
51711
51712         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
51713
51714 2004-10-07  Bruno Haible  <bruno@clisp.org>
51715
51716         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
51717         fits into the provided buffer.
51718
51719 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
51720
51721         * lib/diacrit.c, diacrit.h: Add GPL notice.
51722
51723         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
51724         notice.
51725         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
51726         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
51727         This avoids a potential constant-folding bug.
51728
51729 2004-10-05  Bruno Haible  <bruno@clisp.org>
51730
51731         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
51732         for the declaration of strsep.
51733
51734 2004-10-05  Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
51737
51738 2004-10-04  Simon Josefsson  <jas@extundo.com>
51739
51740         * modules/memmem: New file.
51741         * tests/test-memmem.c: New file.
51742         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
51743
51744 2004-10-04  Simon Josefsson  <jas@extundo.com>
51745
51746         * m4/memmem.m4: New file.
51747
51748 2004-10-04  Simon Josefsson  <jas@extundo.com>
51749
51750         * lib/memmem.h: New file.
51751         * lib/memmem.c: New file, taken from glibc.
51752
51753 2004-10-04  Simon Josefsson  <jas@extundo.com>
51754
51755         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
51756         '#ifdef USE_UNLOCKED_IO'.
51757
51758 2004-10-04  Simon Josefsson  <jas@extundo.com>
51759
51760         * config/srclist.txt: Add memmem from glibc.
51761
51762 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
51763
51764         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
51765
51766         * modules/argmatch, modules/argp, modules/closeout, modules/error,
51767         modules/exclude, modules/getdate, modules/getline,
51768         modules/getndelim2, modules/getpass, modules/getpass-gnu,
51769         modules/getusershell, modules/linebuffer, modules/md5,
51770         modules/mountlist, modules/posixtm, modules/readtokens,
51771         modules/readutmp, modules/regex, modules/sha1,
51772         modules/version-etc, modules/yesno:
51773         Remove dependency on unlocked-io.
51774
51775 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
51776
51777         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
51778
51779         * m4/unlocked-io.m4: Add copyright notice.
51780         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
51781
51782 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
51783
51784         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
51785         * lib/xmalloc.c (xmemdup): Likewise.
51786         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
51787         XFREE): Remove these long-obsolescent macros.
51788         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
51789         * lib/xstrdup.c: Remove.
51790
51791         * lib/regex.c (re_comp): Cast gettext return value to char *,
51792         Problem reported by Martin Neitzel via Mark D. Baushke.
51793
51794 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
51795
51796         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
51797         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
51798         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
51799         regex.c, sha1.c, version-etc.c, yesno.c:
51800         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
51801         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
51802         the includer's responsibility.
51803
51804         Sync from coreutils.
51805
51806         * lib/modechange.c (mode_compile): Don't decrement a pointer that
51807         points to the start of a string, as the C Standard says the
51808         resulting behavior is undefined.
51809
51810         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
51811         simple -> simple_backups, numbered_existing ->
51812         numbered_existing_backups, numbered -> numbered_backups
51813         to avoid shadowing problems.  All uses changed.
51814         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
51815         * lib/backupfile.c (check_extension, numbered_backup):
51816         Rename locals to avoid shadowing 'basename'.
51817         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
51818         once.
51819
51820         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
51821         * lib/.cvsignore: Add getopt.h.
51822
51823 2004-10-04  Bruno Haible  <bruno@clisp.org>
51824
51825         * modules/README: New file.
51826         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
51827         not a module.
51828
51829 2004-10-02  Jim Meyering  <jim@meyering.net>
51830
51831         * lib/dirfd.h, getpagesize.h: Add copyright notice.
51832
51833 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51834
51835         * modules/strsep: New file.
51836
51837 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51838
51839         * m4/strsep.m4: New file.
51840
51841 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51842
51843         * lib/strsep.h: New file.
51844         * lib/strsep.c: New file.
51845
51846 2004-10-01  Simon Josefsson  <jas@extundo.com>
51847
51848         * lib/snprintf.c (snprintf): Handle size==0.
51849
51850 2004-10-01  Simon Josefsson  <jas@extundo.com>
51851             Bruno Haible  <bruno@clisp.org>
51852
51853         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
51854         (snprintf): Declare 'args'.
51855
51856 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
51857
51858         * lib/snprintf.c: Remove comments as to why each header is needed.
51859
51860 2004-10-01  Bruno Haible  <bruno@clisp.org>
51861
51862         * MODULES.html.sh: Add strsep.
51863
51864 2004-09-30  Simon Josefsson  <jas@extundo.com>
51865
51866         * modules/snprintf: New file.
51867
51868 2004-09-30  Simon Josefsson  <jas@extundo.com>
51869
51870         * m4/snprintf.m4: New file.
51871
51872 2004-09-30  Simon Josefsson  <jas@extundo.com>
51873
51874         * lib/snprintf.h, lib/snprintf.c: New files.
51875
51876 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51877
51878         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
51879         (hol_entry_help): Never translate an empty string.
51880         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
51881         * lib/argp.h (OPTION_NO_TRANS): New option.
51882
51883 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
51884
51885         * modules/argp (Maintainer): Replace Simon Josefsson
51886         by Sergey Poznyakoff.
51887
51888 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
51889
51890         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
51891         changes merged back into glibc.
51892
51893 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
51894
51895         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
51896
51897 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51898
51899         * lib/xvasprintf.c: Include xalloc.h.
51900         (xvasprintf): Use xalloc_die, not xmalloc_die.
51901
51902 2004-09-29  Bruno Haible  <bruno@clisp.org>
51903
51904         * modules/alloca-opt: New file, derived from modules/alloca.
51905         * modules/allocsa: Depend on alloca-opt instead of alloca.
51906         * modules/setenv: Likewise.
51907         * modules/vasnprintf: Likewise.
51908         * MODULES.html.sh: Add alloca-opt.
51909
51910 2004-09-28  Simon Josefsson  <jas@extundo.com>
51911
51912         * gnulib-tool: New parameter --lgpl, to asseert that modules are
51913         LGPL, and to replace license template from GPL to LGPL.
51914
51915 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
51916
51917         * modules/dummy: Change license to LGPL.
51918
51919 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
51920
51921         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
51922
51923 2004-09-24  Simon Josefsson  <jas@extundo.com>
51924
51925         * modules/minmax (License): Change from GPL to LGPL.
51926
51927 2004-09-23  Simon Josefsson  <jas@extundo.com>
51928
51929         * gnulib-tool (--import): Typo.
51930
51931 2004-09-23  Simon Josefsson  <jas@extundo.com>
51932
51933         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
51934
51935 2004-09-22  Bruno Haible  <bruno@clisp.org>
51936
51937         * modules/*: Add 'License' field.
51938         * gnulib-tool: Accept --extract-license option.
51939         (func_get_license): New function.
51940
51941 2004-09-21  Bruno Haible  <bruno@clisp.org>
51942
51943         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
51944         Reported by Simon Josefsson.
51945
51946 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51947
51948         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
51949         gl_AC_TYPE_LONG_LONG.
51950
51951 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51952
51953         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
51954
51955 2004-09-18  Simon Josefsson  <jas@extundo.com>
51956         and  Paul Eggert  <eggert@cs.ucla.edu>
51957
51958         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
51959         calls with autoreconf.  Define GL_LIB.
51960
51961 2004-09-14  Karl Berry  <karl@gnu.org>
51962
51963         * config/srclist.txt: unsync setenv.c, sigh.
51964
51965 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51966
51967         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
51968         Problem reported by Bruno Haible in:
51969         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
51970
51971 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51972
51973         * config/srclist.txt: Comment out argp-pvh.c.
51974
51975 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
51976
51977         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
51978         in case some system header has #define'd it.  Problem reported by
51979         Soeren D. Schulze in
51980         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
51981
51982 2004-09-09  Karl Berry  <karl@gnu.org>
51983
51984         * regex.[ch]: delete from the root.  These were supposed to be
51985                 synced with emacs cvs, but this has not happened for about
51986                 a year, and anyway nothing else uses emacs regex.[ch].
51987                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
51988                 lib/regex[.ch] is untouched.
51989
51990 2004-09-09  Bruno Haible  <bruno@clisp.org>
51991
51992         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
51993
51994 2004-09-09  Bruno Haible  <bruno@clisp.org>
51995
51996         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
51997         modifications.
51998         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
51999
52000 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52001
52002         * modules/xvasprintf: New file.
52003         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
52004
52005 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52006
52007         * lib/xvasprintf.h: New file.
52008         * lib/xvasprintf.c: New file.
52009         * lib/xasprintf.c: New file.
52010
52011 2004-09-08  Bruno Haible  <bruno@clisp.org>
52012
52013         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
52014
52015 2004-09-08  Bruno Haible  <bruno@clisp.org>
52016
52017         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
52018         length is > INT_MAX.
52019         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
52020         more.
52021
52022 2004-09-08  Bruno Haible  <bruno@clisp.org>
52023
52024         * lib/stdint_.h: New file, taken from GNU clisp.
52025
52026 2004-09-08  Bruno Haible  <bruno@clisp.org>
52027             Oskar Liljeblad  <oskar@osk.mine.nu>
52028
52029         * modules/stdint: New file.
52030         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
52031
52032 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52033
52034         Import from coreutils.
52035         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
52036         strings on unbounded length.  alloca's performance benefits aren't
52037         that important here.
52038         (V_STRDUP): Remove.
52039         (parse_with_separator): New function, with most of the internals
52040         of the old parse_user_spec.  Allow user to omit both user and group,
52041         for compatibility with FreeBSD.
52042         Clone only the user name, not the entire spec.
52043         Do not set *uid, *gid unless entirely successful.
52044         Avoid memory leak in some failing cases.
52045         Fix regression for USER.GROUP reported by Dmitry V. Levin in
52046         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
52047         (parse_user_spec): Rewrite to use parse_with_separator.
52048
52049 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52050
52051         * modules/userspec: Don't depend on alloca.
52052
52053 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52054
52055         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
52056
52057 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52058
52059         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
52060         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
52061         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
52062
52063 2004-08-16  Simon Josefsson  <jas@extundo.com>
52064
52065         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
52066         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
52067         Add --dry-run for --import.
52068         Let user provided command line parameters override configure.ac
52069         settings.
52070
52071 2004-08-12  Simon Josefsson  <jas@extundo.com>
52072
52073         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
52074         as discussed with Paul Eggert in threads rooted at
52075         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
52076         and
52077         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
52078         Before, the test was empty, and relied on ELIDE_CODE in source
52079         code.)
52080         (gl_PREREQ_GETOPT): New macro.
52081         (gl_GETOPT): Use them.
52082
52083 2004-08-12  Simon Josefsson  <jas@extundo.com>
52084
52085         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
52086         * lib/getopt_.h: Renamed from getopt.h.
52087
52088 2004-08-12  Simon Josefsson  <jas@extundo.com>
52089
52090         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
52091         Change default library name from libfoo to libgnu.
52092         Now, if you have a configure.ac that says:
52093                 gl_SOURCE_BASE(gl)
52094                 gl_M4_BASE(gl/m4)
52095                 gl_MODULES(error getopt etcetera)
52096                 gl_INIT
52097         you can import all you need by running:
52098                 ../gnulib/gnulib-tool --import
52099
52100         * modules/getopt (Files): Rename getopt.h to getopt_.h.
52101         (Makefile.am): Rewrite, use logic from argz.
52102         (Include): Use <getopt.h> instead of "getopt.h".
52103
52104 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52105
52106         * modules/argp (Files): Add m4/unlocked-io.m4.
52107         (Depends-on): Add extensions.
52108
52109 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52110
52111         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
52112         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
52113         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
52114         Check for program_invocation_name, program_invocation_short_name,
52115         flockfile, funlockfile, features.h, _getopt_long_only_r.
52116
52117 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52118
52119         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
52120         its complicated substitute.
52121         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
52122         and program_invocation_name.
52123         (__argp_basename) [!_LIBC]: Remove; the only use was
52124         replaced by its body.
52125         (__argp_short_program_name): Change condition from
52126         !defined __argp_short_program_name to
52127         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
52128         to match argp-namefrob.h.
52129         (__argp_failure): Don't assume strerror_r returns char *.
52130         * lib/argp-parse.c (N_): Define unconditionally.
52131         (argp_default_options): Fill out initializers with 0 to avoid
52132         gcc warnings.
52133
52134 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52135
52136         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
52137         getopt1.c.
52138
52139 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52140
52141         Merge from coreutils.
52142
52143         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
52144
52145         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
52146         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
52147
52148 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52149
52150         Merge from coreutils.
52151
52152         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
52153         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
52154         for Reliant Unix 5.43.
52155
52156         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
52157         (union fooround): Use uintmax_t, not long int.
52158         The rest is a merge from libc:
52159         [defined _LIBC]: Include <shlib-compat.h>.
52160         (_obstack) [defined _LIBC]: Remove after 2.3.4.
52161
52162         * lib/settime.c (settime): Recode to avoid warning with
52163         Sun Forte C 6U2.
52164
52165         * lib/strverscmp.c: Convert to UTF-8.
52166
52167 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52168
52169         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
52170         m4/uintmax_t.m4.
52171
52172 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52173
52174         * modules/xalloc-die: New file.
52175         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
52176
52177         * modules/md5 (Files): Add m4/uint32_t.m4.
52178         * modules/sha1: Renamed from modules/sha.
52179         (Files):
52180         Rename lib/sha.h to lib/sha1.h.
52181         Rename lib/sha.c to lib/sha1.c.
52182         Rename m4/sha.m4 to m4/sha1.m4.
52183         (lib_SOURCES): Likewise.
52184         (configure.ac): Rename gl_SHA to gl_SHA1.
52185         (Include): sha.h -> sha1.h.
52186
52187 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52188
52189         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
52190         * m4/sha1.m4: Renamed from sha.m4.
52191         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
52192
52193 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52194
52195         * lib/obstack.h (obstack_empty_p):
52196         Don't assume that chunk->contents is suitably aligned.
52197         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
52198         Likewise. Problem reported by Benno in
52199         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
52200
52201         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
52202         readable.  This could be improved further but it'd take some work.
52203
52204 2004-08-08  Simon Josefsson  <jas@extundo.com>
52205
52206         * modules/xgethostname (Depends-on): Remove exit and error (not
52207         used).
52208
52209         * modules/getpass-gnu: Add getpass.h.
52210         (Depends-on): Add stdbool.
52211         * modules/getpass: Add getpass.h.
52212
52213 2004-08-08  Simon Josefsson  <jas@extundo.com>
52214
52215         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
52216         Check getpass declaration.
52217
52218 2004-08-08  Simon Josefsson  <jas@extundo.com>
52219
52220         * lib/xgethostname.c: Don't include error.h (not used).
52221
52222         * lib/getpass.h: Add.
52223         * lib/getpass.c: Include getpass.h first.
52224
52225 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
52226
52227         * lib/xalloc-die.c: New file.
52228         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
52229         All uses removed.
52230         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
52231         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
52232         xalloc-die.c.
52233         (_, N_, xalloc_die): Move to xalloc-die.c.
52234         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
52235         so that we needn't mess with xalloc_msg_memory_exhausted.
52236
52237         * lib/sha1.h: Renamed from sha.h.
52238         (SHA1_H): Renamed from _SHA_H.
52239         (sha1_ctx): Renamed from sha_ctx.
52240         (sha1_init_ctx): Renamed from sha_init_ctx.
52241         (sha1_process_block): Renamed from sha_process_block.
52242         (sha1_process_bytes): Renamed from sha_process_bytes.
52243         (sha1_finish_ctx): Renamed from sha_finish_ctx.
52244         (sha1_read_ctx): Renamed from sha_read_ctx.
52245         (sha1_stream): Renamed from sha_stream.
52246         (sha1_buffer): Renamed from sha_buffer.
52247         * lib/sha1.c: Likewise; renamed from sha.c.
52248         Do not include <sys/types.h>.
52249         Include <stddef.h> rather than <stdlib.h>.
52250
52251 2004-08-08  Bruno Haible  <bruno@clisp.org>
52252
52253         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
52254         FILESYSTEM_PREFIX_LEN.
52255         * lib/progreloc.c: Likewise.
52256         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
52257
52258 2004-08-06  Simon Josefsson  <jas@extundo.com>
52259
52260         * modules/progname (Depends-on): Don't depend on stdbool.
52261
52262 2004-08-06  Simon Josefsson  <jas@extundo.com>
52263
52264         * modules/getsubopt: New file.
52265         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52266         getsubopt.
52267
52268 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52269
52270         More merge from coreutils.
52271
52272         * m4/utimens.m4, m4/utimecmp.m4: New files.
52273         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
52274         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
52275         prereq.m4, sha.m4: Import changes from coreutils.
52276
52277 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52278
52279         More merge from coreutils.
52280         * modules/raise, modules/readtokens0, modules/utimens:
52281         * modules/utimecmp, module/xnanosleep: New files.
52282         * modules/strftime: Add lib/strftime.h.
52283         Change include from <time.h> to "strftime.h".
52284         * modules/yesno: Add lib/yesno.h.
52285         * modules/backupfile: Remove lib/addext.c.
52286         * modules/euidaccess: Add stat-macros.h.
52287         * modules/canonicalize, modules/euidaccess,
52288         modules/filemode, modules/lchown, modules/makepath,
52289         modules/rmdir, modules/stat: Likewise.
52290
52291 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52292
52293         Merge from tar.
52294         * lib/argp-help.c (make_hol, hol_append): Don't assume that
52295         SIZE_MAX is a valid preprocessor constant.
52296         (__argp_basename): Change from "#ifndef _LIBC"
52297         to "#ifndef __argp_short_program_name", so that
52298         we don't compile these functions for tar.
52299
52300         More merges from coreutils.
52301         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
52302         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
52303         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
52304         * lib/addext.c: Remove; no longer needed.
52305         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
52306         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
52307         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
52308         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
52309         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
52310         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
52311         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
52312         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
52313         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
52314         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52315         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
52316         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
52317         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
52318         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
52319         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
52320         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
52321         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
52322         Import changes from coreutils.
52323
52324 2004-08-05  Simon Josefsson  <jas@extundo.com>
52325
52326         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
52327
52328 2004-08-05  Simon Josefsson  <jas@extundo.com>
52329
52330         * m4/getsubopt.m4: New file.
52331
52332 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
52333
52334         Merge from coreutils.
52335
52336         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
52337         * m4/getcwd-path-max.m4: New files.
52338
52339         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
52340         FILESYSTEM_PREFIX_LEN ->
52341         FILE_SYSTEM_PREFIX_LEN.
52342         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
52343         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
52344         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
52345         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
52346
52347         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
52348         prerequisite modules now handle the DOS stuff.
52349         Don't check for unistd.h.
52350
52351 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
52352
52353         Merge from coreutils.
52354
52355         * lib/.gdb-history: Remove; this doesn't belong here.
52356
52357         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
52358         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
52359         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
52360         * lib/getcwd.c: New files.
52361
52362         * lib/dirname.h: Include <stdbool.h>.
52363         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
52364         for consistency with POSIX terminology.  All uses changed.
52365         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
52366         (strip_trailing_slashes): Use bool for booleans.
52367         * lib/stripslash.c (strip_trailing_slashes): Likewise.
52368
52369         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
52370         sometimes returns a positive errno value even when it succeeds.
52371         (print_errno_message) [!LIBC]: Fall back on strerror if
52372         __strerror_r fails.
52373
52374         * lib/path-concat.c (mempcpy): Don't define if a system header defines
52375         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
52376         (longest_relative_suffix): New function.
52377         (path_concat): Use it.  Assume first argument is not NULL.
52378         Port to DOS.  Omit redundant separators.
52379         Report an error instead of returning NULL.
52380         Use mempcpy instead of memcpy.
52381         (xpath_concat): Remove: not declared or used.
52382
52383         * lib/same.h: Include <stdbool.h>
52384         (same_name): Return bool, not int.
52385         * lib/same.c (same_name): Likewise.
52386         (errno): Don't declare; we assume C89 or better now.
52387
52388         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
52389         if not already defined.
52390
52391         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
52392         * lib/dup-safer.c (errno): Likewise.
52393
52394 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
52395
52396         Merge from coreutils.
52397         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
52398         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
52399         * modules/path-concat: Don't depend on strdup.
52400
52401 2004-08-03  Simon Josefsson  <jas@extundo.com>
52402
52403         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
52404         * lib/progname.h: Don't include stdbool.h.
52405
52406 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
52407
52408         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
52409         * MODULES.html.sh (func_all_modules): Remove fatal.
52410
52411 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
52412
52413         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
52414
52415 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
52416
52417         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
52418         working.
52419
52420 2004-08-02  Simon Josefsson  <jas@extundo.com>
52421
52422         * lib/getsubopt.h: New file, with comments from Bruno Haible.
52423         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
52424         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
52425
52426 2004-08-01  Simon Josefsson  <jas@extundo.com>
52427
52428         * lib/xgetdomainname.c: Include stdlib.h, for free().
52429
52430 2004-07-19  Bruno Haible  <bruno@clisp.org>
52431
52432         * MODULES.html.sh (func_all_modules): Add dummy.
52433
52434 2004-07-16  Simon Josefsson  <jas@extundo.com>
52435
52436         * modules/dummy: New file.
52437
52438 2004-07-16  Simon Josefsson  <jas@extundo.com>
52439
52440         * lib/dummy.c: New file.
52441
52442 2004-07-16  Bruno Haible  <bruno@clisp.org>
52443
52444         * lib/backupfile.h: Add extern "C" for C++.
52445         * lib/closeout.h: Likewise.
52446         * lib/copy-file.h: Likewise.
52447         * lib/findprog.h: Likewise.
52448         * lib/full-write.h: Likewise.
52449         * lib/pathname.h: Likewise.
52450         * lib/progname.h: Likewise.
52451         * lib/stpcpy.h: Likewise.
52452         * lib/stpncpy.h: Likewise.
52453         * lib/strcase.h: Likewise.
52454         * lib/strstr.h: Likewise.
52455         * lib/xalloc.h: Likewise.
52456
52457         * lib/mbswidth.h: Add extern "C" for C++.
52458         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
52459
52460 2004-07-13  Robert Millan  <robertmh@gnu.org>
52461
52462         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
52463
52464 2004-07-09  Simon Josefsson  <jas@extundo.com>
52465
52466         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
52467         failed without this.)
52468
52469 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52470
52471         * modules/chown (Files): Add lib/fchown-stub.c, since
52472         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
52473
52474 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52475
52476         * lib/fchown-stub.c: New file.
52477
52478 2004-06-24  Jim Meyering  <jim@meyering.net>
52479
52480         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
52481
52482 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52483
52484         * modules/argz: Omit "#include".
52485
52486         * MODULES.html.sh (func_all_modules): Add calloc, to match
52487         2004-06-01 addition of calloc module.
52488
52489 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52490
52491         * m4/argz.m4: New file, which is autoupdated from libtool.
52492
52493 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52494
52495         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
52496         libtool.
52497
52498 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52499
52500         * config/srclist-update: Don't insist on "USA." before the
52501         close-comment, as libtool omits the period and puts the */ on a
52502         separate line.
52503         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
52504         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
52505
52506 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
52507
52508         * modules/argz: New file.
52509         * MODULES.html.sh (func_all_modules): Add argz.
52510
52511 2004-06-12  Jim Meyering  <jim@meyering.net>
52512         and  Paul Eggert  <eggert@cs.ucla.edu>
52513
52514         * modules/hash (Files): Add lib/xalloc.h.
52515         * modules/pipe (Depends-on): Add wait-process.
52516         * modules/stat (Depends-on): Add xalloc.
52517         * modules/userspec (Files): Add lib/userspec.h.
52518         * modules/xstrto
52519
52520         Upgrade from gettext-0.13.
52521         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
52522         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
52523         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
52524
52525 2004-06-10  Jim Meyering  <jim@meyering.net>
52526
52527         * lib/calloc.c: New file.
52528
52529 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
52530
52531         * lib/getdate.y (yylex): Allow space between sign and number.
52532         Problem reported by Dan Jacobson.
52533
52534 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
52535
52536         Merge from coreutils CVS.
52537
52538         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
52539         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
52540         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
52541         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
52542         xstrtol.m4: Fix copyright date and/or serial number.
52543
52544         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
52545         See if we need an fchown replacement.
52546         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
52547         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
52548         and use the replacement function if we detect either defect.
52549
52550         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
52551         gl_UTIMECMP.
52552
52553 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
52554         and  Jim Meyering  <jim@meyering.net>
52555
52556         Merge from coreutils CVS.
52557
52558         * lib/stat-macros.h: New file, with contents from file-type.h
52559         and coreutils' system.h.
52560         * lib/file-type.c: Include "stat-macros.h".
52561         * lib/file-type.h (file_type): Move all macro definitions to new file,
52562         stat-macros.h.
52563
52564         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
52565         Wrap old code with this conditional.
52566         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
52567         function that does not dereference symlinks.
52568         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
52569
52570         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
52571         dependency problems.
52572         (xreadlink): Accept new arg SIZE, for efficiency.
52573         All decls and uses changed.
52574         * lib/xreadlink.h: Include <stddef.h>, for size_t.
52575
52576         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
52577         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
52578
52579         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
52580         sysexits.h.
52581
52582 2004-06-01  Jim Meyering  <jim@meyering.net>
52583
52584         * m4/calloc.m4: New file.
52585
52586 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
52587
52588         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
52589         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
52590         Also, fix a typo in a diagnostic.
52591
52592 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
52593
52594         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
52595         or AC_FUNC_REALLOC.
52596
52597 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
52598
52599         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
52600         macros to be defined.
52601         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
52602         the allocator returns NULL because the requested size is zero.
52603
52604 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52605
52606         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
52607         var.  Add comment explaining why libc still defines it.  This
52608         merges the following patch from glibc:
52609         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
52610
52611 2004-05-20  Andreas Schwab  <schwab@suse.de>
52612
52613         * m4/free.m4: Replace free if it not known to work, not the other
52614         way round.
52615
52616 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52617
52618         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
52619         present in glibc since revision 1.1 of this file.
52620         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
52621         obstack_alignment_mask, obstack_alloc, obstack_base,
52622         obstack_blank, obstack_blank_fast, obstack_chunk_size,
52623         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
52624         obstack_grow0, obstack_init, obstack_int_grow,
52625         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
52626         obstack_next_free, obstack_object_size, obstack_ptr_grow,
52627         obstack_ptr_grow_fast, obstack_room): Remove declarations of
52628         nonexistent functions.
52629
52630 2004-05-18  Karl Berry  <karl@gnu.org>
52631
52632         * config/srclist.txt: break link for vasnprintf.c.
52633
52634 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52635
52636         Port obstack to the AS/400, where pointers are 16 bytes wide and
52637         you cannot cast an integer to a valid pointer.  This patch is
52638         currently waiting to be integrated into glibc; see
52639         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
52640
52641         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
52642         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
52643         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
52644         (struct obstack): temp member is now a union of a pointer and
52645         an integer, instead of an integer.  All integer uses changed.
52646         This does not affect the physical layout of struct obstack,
52647         except on hosts (like the AS/400) where the size or alignment of
52648         void * is greater than that of ptrdiff_t.
52649         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
52650         __STDC__)]: Store temporary in pointer member of union, not
52651         integer member.
52652         * lib/obstack.c: Include <stddef.h>, for offsetof.
52653         (struct fooalign): Remove; it doesn't need a name.
52654         (union fooround): Change double to long double, and add void *.
52655         (DEFAULT_ALIGNMENT): Use offsetof to compute.
52656         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
52657         not a macro.  Hence the values are always int; so remove all
52658         casts-to-int in uses.
52659
52660 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52661
52662         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
52663         we can get this patch merged into glibc.
52664
52665 2004-05-17  Derek R. Price  <derek@ximbiot.com>
52666             Paul Eggert  <eggert@cs.ucla.edu>
52667
52668         * m4/argp: Depend on alloca.
52669
52670 2004-05-17  Derek R. Price  <derek@ximbiot.com>
52671             Paul Eggert  <eggert@cs.ucla.edu>
52672
52673         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
52674         freecoding.
52675
52676 2004-05-17  Bruno Haible  <bruno@clisp.org>
52677
52678         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
52679         precision that consists of a '.' followed by an empty digit string.
52680         Patch by Tor Lillqvist <tml@iki.fi>.
52681
52682 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52683
52684         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
52685         for backward compatibility with older code.  We need our own
52686         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
52687         it under some other name, and our alloca.h will define it.
52688
52689 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52690             Derek Price  <derek@ximbiot.com>
52691
52692         * lib/alloca.c: Include <alloca.h>, to get our interface.
52693         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
52694         include <alloca.h> first.  Use C89 prototype for alloca; this
52695         requires including <stddef.h> for size_t.  Use extern "C" if C++.
52696         Use #elif for simplicity, since we can assume C89 now.
52697         Don't try to source the system alloca.h since it will not be found
52698         and to prevent recursively including its replacement.
52699         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
52700         * lib/regex.c: Likewise.
52701
52702 2004-05-16  Derek Price  <derek@ximbiot.com>
52703             Paul Eggert  <eggert@cs.ucla.edu>
52704
52705         getline cleanup.  This changes the getndelim2 API: both order of
52706         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
52707         no delimiter).
52708
52709         * lib/getline.c: Don't include stddef.h or stdio.h, since our
52710         interface does that.
52711         (getline): Always use getdelim, so that we don't have two
52712         copies of this code.
52713         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
52714         if available.
52715         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
52716         (GETNDELIM2_MAXIMUM): New macro.
52717         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
52718         instead of the old practice of delim2==0.  All callers changed.
52719         Return -1 on overflow, instead of returning junk.
52720         Do not set *linesize unless allocation succeeds.
52721         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
52722         that we include sys/types.h.
52723         * lib/getnline.h: Likewise.
52724         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
52725         (getndelim2): Reorder arguments.
52726         * lib/getnline.c (getnline, getndelim):
52727         Don't discard the NMAX argument.
52728         (getnline): Invoke getndelim, to avoid code duplication.
52729         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
52730         of (size_t) -1 by callers of the getnline family.
52731
52732 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52733
52734         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
52735         Check for gettimeofday.
52736         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
52737         Check for settimeofday, stime.
52738
52739 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52740
52741         * lib/nanosleep.c (suspended): Change its type from int to
52742         sig_atomic_t volatile.
52743         (first_call): Make it private to rpl_nanosleep, and have it
52744         be zero initially as that's a bit faster.
52745         (my_usleep): Round up fractional times instead of truncating them,
52746         as this is the usual meaning for 'sleep'.
52747
52748         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
52749         doesn't work.
52750         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
52751         (ENOSYS): Define if not defined.
52752         (settime): Fall back on stime if it exists and settimeofday fails.
52753         But don't bother with fallbacks if a method fails with errno == EPERM.
52754
52755 2004-05-11  Jim Meyering  <jim@meyering.net>
52756
52757         Prior to this change, the save_cwd caller required read access to the
52758         current directory on most systems (ones with the fchdir function).
52759
52760         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
52761         fails, try write-only, and finally, resort to using xgetcwd.
52762
52763 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52764
52765         * lib/obstack.c, obstack.h: Import changes from libc.
52766
52767 2004-04-28  Bruno Haible  <bruno@clisp.org>
52768
52769         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
52770         also implicitly appends .exe to executables.
52771         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
52772         accepts Windows pathnames.
52773         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
52774         Treat Cygwin like Windows, since it now accepts Windows pathnames.
52775         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
52776         Treat Cygwin like Windows, since it now accepts Windows pathnames.
52777         Reported by Derek Robert Price <derek@ximbiot.com>.
52778
52779 2004-04-21  Karl Berry  <karl@gnu.org>
52780
52781         * config/srclist.txt (localcharset.c): break sync.
52782
52783 2004-04-20  Paul Eggert  <eggert@twinsun.com>
52784
52785         * m4/host-os.m4: Add a copyright notice.
52786
52787 2004-04-20  Jim Meyering  <jim@meyering.net>
52788
52789         Change UTILS_ to gl_ in AC_DEFINE'd names.
52790         Change utils_- and jm_-prefixed variables, too.
52791         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
52792         UTILS_FUNC_MKDIR_TRAILING_SLASH.
52793         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
52794
52795         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
52796         Don't emit trailing blanks.
52797         Also rename jm_-prefixed variables to have gl_ prefix.
52798
52799         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
52800         Also rename jm_-prefixed variables to have gl_ prefix.
52801
52802         * m4/jm-macros.m4: Reflect the renamings.
52803         * m4/prereq.m4: Likewise.
52804
52805 2004-04-20  Jim Meyering  <jim@meyering.net>
52806
52807         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
52808         memory.
52809
52810 2004-04-20  Jim Meyering  <jim@meyering.net>
52811             Bruno Haible  <bruno@clisp.org>
52812
52813         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
52814         memory when realloc fails.
52815
52816 2004-04-19  Jim Meyering  <jim@meyering.net>
52817
52818         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
52819         now that readutmp.c may call `free (0)'.
52820
52821 2004-04-19  Bruno Haible  <bruno@clisp.org>
52822
52823         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
52824         * m4/inttypes_h.m4: Likewise.
52825         * m4/stdint_h.m4: Likewise.
52826         * m4/intmax_t.m4: Likewise.
52827         * m4/uintmax_t.m4: Likewise.
52828
52829 2004-04-18  Jim Meyering  <jim@meyering.net>
52830
52831         * m4/prereq.m4: Don't forbid jm_ prefix.
52832
52833         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
52834         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
52835         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
52836         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
52837         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
52838         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
52839         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
52840         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
52841         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
52842         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
52843         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
52844         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
52845         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
52846         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
52847         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
52848         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
52849         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
52850         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
52851         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
52852
52853 2004-04-18  Jim Meyering  <jim@meyering.net>
52854
52855         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
52856         failure, don't leak memory and do call END_UTMP_ENT.
52857
52858 2004-04-16  Jim Meyering  <jim@meyering.net>
52859
52860         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
52861         coreutils' stat program.
52862         (gl_PREREQ): Don't require jm_PREREQ_STAT.
52863
52864 2004-04-11  Paul Eggert  <eggert@twinsun.com>
52865
52866         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
52867         C89.
52868         (CHAR_BIT): Remove, since we assume C89.
52869         Include <stdint.h> if available, as per current Autoconf CVS advice.
52870
52871 2004-03-31  Jim Meyering  <jim@meyering.net>
52872
52873         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
52874         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
52875         * m4/xalloc.m4: Likewise.
52876
52877 2004-03-30  Paul Eggert  <eggert@twinsun.com>
52878
52879         Merge from coreutils.
52880
52881         * m4/inttostr.m4: New file.
52882         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
52883         Require AM_STDBOOL_H and gl_TIMESPEC instead.
52884         Require gl_CLOCK_TIME.
52885         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
52886
52887 2004-03-30  Paul Eggert  <eggert@twinsun.com>
52888
52889         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
52890         not bool, to be more consistent with Unix conventions.
52891         Suggested by Bruno Haible.
52892
52893         Merge from coreutils.
52894
52895         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
52896         * lib/umaxtostr.c: New files.
52897
52898         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
52899         the usual <time.h> dance.
52900         (get_date): Change signature to support fractional time stamps.
52901         All callers changed.
52902         * lib/getdate.y: Include "getdate.h" first, as we can now
52903         assume C89 and don't need to worry about 'const'.
52904         Similarly, include "unlocked-io.h" near start, not in middle.
52905         Include <limits.h>.
52906         (textint.value): Use long int rather than int.
52907         (textint.digits): Use size_t rather than int.
52908         (BILLION, LOG10_BILLION): New constants.
52909         (parser_control): New member rel_ns.  Members day_ordinal,
52910         time_zone, month, day, hour, minutes, rel_year, rel_month,
52911         rel_day, rel_hour, rel_minutes, rel_seconds
52912         are now long int, not int.  Member seconds is now struct timespec,
52913         not int.  New member timespec_seen.  Members dates_seen, days_seen,
52914         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
52915         not int.
52916         (%union.intval): Now long int, not int.
52917         New member timespec.
52918         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
52919         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
52920         (spec): Now is a timespec or an item list.
52921         (timespec, items): New nonterminals.
52922         (time, rel, relunit, number, get_date):
52923         Add support for fractional seconds.
52924         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
52925         (gmtime, localtime, mktime): Remove decls; not needed with C89.
52926         (to_hour): First arg is now long int, not int.
52927         (to_year): Returns long int, not int.
52928         Don't treat year -70 like 70.
52929         (tm_diff): Returns long int, not int.
52930         (lookup_word): Use bool instead of int when appropriate.
52931         (yylex): Use size_t for count, not int.
52932         Detect overflow when parsing large integer constants.
52933         Add support for fractions.
52934         (get_date): Make pointers 'const' if possible.
52935         Use more-portable code to detect integer overflow.
52936         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
52937         Don't use ctime; it's not reliable if the year has >4 digits.
52938
52939         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
52940         This is for compatibility with BSD.
52941
52942         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
52943         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
52944         From coreutils' system.h.
52945
52946         * lib/userspec.c: Don't include "posixver.h".
52947         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
52948         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
52949         compatible extension.  Simplify code by removing a boolean int
52950         that was always nonzero if a string was nonnull.
52951
52952 2004-03-30  Jim Meyering  <jim@meyering.net>
52953
52954         Merge from coreutils.
52955
52956         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
52957         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
52958         on some systems one must include <grp.h> before it.
52959         Reported by Christian Krackowizer.
52960
52961 2004-03-30  Jim Meyering  <jim@meyering.net>
52962
52963         Merge from coreutils.
52964
52965         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
52966
52967         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
52968         an empty input stream.
52969
52970         * lib/readtokens.c: Include <stdbool.h>.
52971         (readtoken): Use `size_t' rather than int/long.
52972         All callers adjusted.
52973         Use `bool' rather than `int' where appropriate.
52974         Use memset rather than an explicit loop.
52975         Use x2nrealloc rather than xrealloc.
52976         Allow the use of `\0' as a delimiter.
52977         (readtokens): Likewise.
52978         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
52979
52980 2004-03-30  Jim Meyering  <jim@meyering.net>
52981
52982         * m4/realloc.m4: Remove file, since now it does no more than
52983         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
52984         the `configure.ac' section of module/realloc.
52985         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
52986
52987 2004-03-30  Bruno Haible  <bruno@clisp.org>
52988
52989         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
52990         nonnull.
52991
52992 2004-03-29  Paul Eggert  <eggert@twinsun.com>
52993
52994         Merge changes to getloadavg.c from coreutils and Emacs.
52995
52996         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
52997         Define to an expression, not to the empty string.
52998         Include cloexec.h and xalloc.h.
52999         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
53000         Use set_cloexec_flag rather than rolling our own.
53001         * lib/cloexec.c, lib/cloexec.h: New files.
53002
53003 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53004
53005         * m4/cloexec.m4: New file.
53006
53007 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53008
53009         * lib/getopt.h: Sync with libc CVS.
53010
53011 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53012             Bruno Haible  <bruno@clisp.org>
53013
53014         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
53015         mbswidth.
53016
53017 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53018             Bruno Haible  <bruno@clisp.org>
53019
53020         * lib/mbswidth.h: Include <wchar.h> only if
53021         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
53022         <wchar.h>.
53023         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
53024
53025 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53026
53027         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
53028         Sync with libc CVS.
53029         * lib/getopt_int.h: New file, also synced from libc.
53030
53031 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53032
53033         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
53034         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
53035         Bring back getopt.c, getopt.h, getopt1.c.
53036
53037 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53038
53039         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
53040         All uses changed.  Check for sa_sigaction member; this fixes
53041         a bug first reported by Jason Andrade in
53042         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53043
53044 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53045
53046         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
53047         '#if' expressions.  Unlike the code it replaces, it does not
53048         depend on (defined _SC_PAGESIZE).  However, it does depend on
53049         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
53050         first reported by Jason Andrade in
53051         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53052
53053 2004-02-25  Simon Josefsson  <jas@extundo.com>
53054
53055         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
53056
53057 2004-02-25  Simon Josefsson  <jas@extundo.com>
53058
53059         * lib/strdup.h: New file.
53060         * lib/strdup.c: Include it.
53061         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
53062         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
53063
53064 2004-02-23  Karl Berry  <karl@gnu.org>
53065
53066         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
53067         (from fencepost.gnu.org:/gd/gnuorg).
53068
53069 2004-02-23  Karl Berry  <karl@gnu.org>
53070
53071         * config/srclistvars.sh (GNUORG) [karl]: redefine.
53072         * config/srclist.txt: add maintain/standards documents.
53073
53074 2004-02-18  Bruno Haible  <bruno@clisp.org>
53075
53076         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
53077         Reported by Derek Robert Price <derek@ximbiot.com>.
53078
53079 2004-02-16  Karl Berry  <karl@gnu.org>
53080
53081         * config/mkinstalldirs, install-sh: update from automake.
53082
53083 2004-02-06  Karl Berry  <karl@gnu.org>
53084
53085         * m4/po.m4: update from gettext 0.14.1.
53086
53087 2004-02-06  Karl Berry  <karl@gnu.org>
53088
53089         * lib/config.charset: update from gettext 0.14.1.
53090
53091 2004-02-05  Paul Eggert  <eggert@twinsun.com>
53092
53093         Add comments and code, prompted by suggestions from Bruno Haible
53094         for sh-quote.
53095         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
53096         describing the enum quoting_style values.
53097         * lib/quotearg.c (quotearg_alloc): New function.
53098         (quotearg_buffer_restyled): Treat lone { and } as special.
53099         Treat = as special.  Work around bug with older shells
53100         that "see" a '\' that is really the 2nd byte of a multibyte char.
53101         Quote empty string with shell_quoting_style.
53102
53103 2004-02-03  Bruno Haible  <bruno@clisp.org>
53104
53105         * m4/pipe.m4: New file, from GNU gettext.
53106
53107 2004-02-03  Bruno Haible  <bruno@clisp.org>
53108
53109         * lib/pipe.h: New file, from GNU gettext.
53110         * lib/pipe.c: New file, from GNU gettext.
53111
53112 2004-01-27  Bruno Haible  <bruno@clisp.org>
53113
53114         * m4/execute.m4: New file, from GNU gettext.
53115
53116 2004-01-27  Bruno Haible  <bruno@clisp.org>
53117
53118         * lib/execute.h: New file, from GNU gettext.
53119         * lib/execute.c: New file, from GNU gettext.
53120         * lib/w32spawn.h: New file, from GNU gettext.
53121
53122 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53123
53124         Merge from diffutils.
53125
53126         * lib/file-type.c (file_type): Add typed memory objects.
53127         * lib/file-type.h (S_TYPEISTMO): New macro.
53128
53129         * lib/c-stack.h (c_stack_action): Remove argv argument.
53130         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
53131         (die): Don't calculate message unless segv_action returns.
53132         (get_stack_location, min_address_from_argv, max_address_from_argv,
53133         volatile stack_base, volatile_stack_size): Remove.
53134         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
53135         that every segmentation violation is a stack overflow.  (Ouch!)
53136         See Debian bug 136249 (still outstanding) for more info about why
53137         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
53138
53139 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53140
53141         Exit-status fix from coreutils.
53142
53143         Use exit_failure consistently in place of EXIT_FAILURE,
53144         so that program exit statuses are consistent on failure.
53145
53146         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
53147         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
53148         * lib/argmatch.h: Comment fix to match the above.
53149         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
53150         Now a macro referring to exit_failure, instead of a separate
53151         variable.  Include "exitfail.h" to get it.
53152         * lib/xstrtol.h: Include "exitfail.h".
53153         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
53154
53155         * lib/long-options.c (parse_long_options): Use prototype
53156         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
53157         for clarity.
53158
53159 2004-01-21  Jim Meyering  <jim@meyering.net>
53160
53161         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
53162         so as not to conflict with a different-sized __mktime_internal
53163         function in GNU libc.
53164         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
53165         Problem building statically-linked `ls' reported by Michael Brunnbauer.
53166
53167 2004-01-20  Karl Berry  <karl@gnu.org>
53168
53169         * config/config.guess: update from config.
53170
53171         * config/srclistvars.sh: GNUWWWLICENSES for karl.
53172
53173 2004-01-20  Bruno Haible  <bruno@clisp.org>
53174
53175         Safer stack allocation.
53176         * lib/setenv.c: Include allocsa.h.
53177         (alloca): Remove fallback definition.
53178         (freea): Remove macro.
53179         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
53180         instead of freea.
53181
53182 2004-01-20  Bruno Haible  <bruno@clisp.org>
53183
53184         * m4/eealloc.m4: New file, from GNU gettext.
53185
53186 2004-01-20  Bruno Haible  <bruno@clisp.org>
53187
53188         * m4/allocsa.m4: New file, from GNU gettext.
53189
53190 2004-01-20  Bruno Haible  <bruno@clisp.org>
53191
53192         * lib/xallocsa.h: New file, from GNU gettext.
53193         * lib/xallocsa.c: New file, from GNU gettext.
53194
53195 2004-01-20  Bruno Haible  <bruno@clisp.org>
53196
53197         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
53198
53199 2004-01-20  Bruno Haible  <bruno@clisp.org>
53200
53201         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
53202         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
53203         specially.
53204
53205 2004-01-20  Bruno Haible  <bruno@clisp.org>
53206
53207         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
53208         patch.
53209
53210 2004-01-20  Bruno Haible  <bruno@clisp.org>
53211
53212         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
53213
53214 2004-01-20  Bruno Haible  <bruno@clisp.org>
53215
53216         * lib/eealloc.h: New file.
53217
53218 2004-01-20  Bruno Haible  <bruno@clisp.org>
53219
53220         * lib/binary-io.h: Avoid warnings on Cygwin.
53221
53222 2004-01-20  Bruno Haible  <bruno@clisp.org>
53223
53224         * lib/allocsa.h: New file, from GNU gettext.
53225         * lib/allocsa.c: New file, from GNU gettext.
53226
53227 2004-01-18  Karl Berry  <karl@gnu.org>
53228
53229         * doc/gpl.texi, doc/lgpl.texi: new files.
53230
53231 2004-01-18  Karl Berry  <karl@gnu.org>
53232
53233         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
53234         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
53235
53236 2004-01-15  Paul Eggert  <eggert@twinsun.com>
53237
53238         Merge from coreutils.
53239
53240         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
53241         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
53242         (gl_DEFAULT_POSIX2_VERSION): Move
53243         the documentation from 'configure' into 'config.hin',
53244         so that 'configure --help' isn't burdened by it and
53245         we don't have to worry about its formatting there.
53246         Reword the documentation so that it's more succinct
53247         and can be run together into a single paragraph.
53248         * m4/same.m4 (gl_SAME): Check for pathconf.
53249
53250 2004-01-15  Paul Eggert  <eggert@twinsun.com>
53251
53252         Merge from coreutils.
53253
53254         * lib/posixver.c: Include posixver.h.
53255
53256         * lib/same.c: Include <stdbool.h>, <limits.h>.
53257         (_POSIX_NAME_MAX): Define if not defined.
53258         (MIN): New macro.
53259         (same_name): If file names are silently truncated, report
53260         that the file names are the same if they are the same after
53261         the silent truncation.
53262
53263         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
53264         conversion function.
53265         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
53266         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
53267         longer needed.
53268
53269 2004-01-15  Jim Meyering  <jim@meyering.net>
53270
53271         Merge from coreutils.
53272
53273         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
53274         if no library is required.
53275         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
53276         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
53277         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
53278         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
53279         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
53280         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
53281         value, $ac_cv_search_crypt, if it's "none required".
53282         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
53283         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
53284         not gl_FUNC_GETLOADAVG.
53285         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
53286         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
53287
53288 2004-01-15  Jim Meyering  <jim@meyering.net>
53289
53290         Merge from coreutils.
53291
53292         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
53293         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
53294         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
53295
53296         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
53297         optional configure-time default.
53298
53299         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53300
53301         * lib/xreadlink.c (xreadlink): Correct outdated comment.
53302
53303 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
53304
53305         Merge from coreutils.
53306
53307         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
53308         value, $ac_cv_search_nanosleep, if it's "none required".
53309
53310 2004-01-14  Paul Eggert  <eggert@twinsun.com>
53311
53312         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
53313         with like-named macro in fnmatch.c.
53314         (EXT): Use an internal constant instead.
53315
53316         Merge fnmatch patches from glibc.
53317         * lib/fnmatch.c (mbsinit): Remove define.
53318         Add libc_hidden_ver (__fnmatch, fnmatch).
53319         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
53320         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
53321
53322 2004-01-14  Karl Berry  <karl@gnu.org>
53323
53324         * config/install-sh: update from automake.
53325
53326 2004-01-13  Karl Berry  <karl@gnu.org>
53327
53328         * config/install-sh: update from automake.
53329
53330 2004-01-09  Karl Berry  <karl@gnu.org>
53331
53332         * config/install-sh: update from automake.
53333
53334 2004-01-05  Karl Berry  <karl@gnu.org>
53335
53336         * config/config.{sub,guess}: update from config.
53337
53338 2003-12-31  Karl Berry  <karl@gnu.org>
53339
53340         * config/depcomp: update from automake.
53341
53342 2003-12-14  Karl Berry  <karl@gnu.org>
53343
53344         * lib/config.charset: update from gettext-runtime.
53345
53346 2003-12-03  Paul Eggert  <eggert@twinsun.com>
53347
53348         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
53349         Bug reported by Alfred M. Szmidt.
53350
53351 2003-12-03  Bruno Haible  <bruno@clisp.org>
53352
53353         * m4/gettext.m4: Upgrade from gettext-0.13.
53354         * m4/po.m4: Upgrade from gettext-0.13.
53355         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
53356         * m4/intmax.m4: New file, from gettext-0.13.
53357         * m4/printf-posix.m4: New file, from gettext-0.13.
53358
53359 2003-11-29  Karl Berry  <karl@gnu.org>
53360
53361         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
53362
53363 2003-11-25  Paul Eggert  <eggert@twinsun.com>
53364             Bruno Haible  <bruno@clisp.org>
53365
53366         * lib/printf-parse.h: Don't include sys/types.h.
53367         (ARG_NONE): New macro.
53368         (char_directive): Change type of *arg_index fields to size_t.
53369         * lib/printf-parse.c: Don't include sys/types.h.
53370         (SSIZE_MAX): Remove macro.
53371         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
53372         Remove unnecessary overflow check.
53373         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
53374         fields.
53375
53376 2003-11-25  Bruno Haible  <bruno@clisp.org>
53377
53378         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
53379
53380 2003-11-25  Bruno Haible  <bruno@clisp.org>
53381
53382         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
53383         gt_TYPE_SSIZE_T.
53384
53385 2003-11-24  Paul Eggert  <eggert@twinsun.com>
53386
53387         * modules/alloca: Remove dependency on xalloc.
53388
53389 2003-11-24  Paul Eggert  <eggert@twinsun.com>
53390
53391         * lib/alloca.c: Remove dependency on xalloc module.
53392         (xalloc_die): Remove.
53393         (memory_full) [!defined emacs]: New macro.
53394         [!defined emacs]: Don't include xalloc.h.
53395         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
53396         address arithmetic overflows.  Change datatypes a bit to avoid
53397         unnecessary casts.
53398
53399 2003-11-22  Jim Meyering  <jim@meyering.net>
53400
53401         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
53402         s/size/size_t/.
53403
53404 2003-11-21  Karl Berry  <karl@gnu.org>
53405
53406         * config/config.{sub,guess}: update from config.
53407
53408 2003-11-18  Karl Berry  <karl@gnu.org>
53409
53410         * config/config.{sub,guess}: update from config.
53411
53412         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
53413
53414 2003-11-17  Paul Eggert  <eggert@twinsun.com>
53415
53416         * README: Mention that S+T cannot overflow if S is the size of
53417         an existing object and T is sufficiently small.
53418
53419 2003-11-17  Jim Meyering  <jim@meyering.net>
53420
53421         On systems without utime and without a utimes function capable of
53422         dealing with a NULL struct utimbuf* argument, this utime replacement
53423         could -- in unusual circumstances -- leak a file descriptor.
53424         * lib/utime.c: Include <unistd.h> and <errno.h>.
53425         (utime_null): Be sure to close `fd' and to preserve errno.
53426         Reported by Geoff Collyer via Arnold Robbins.
53427
53428 2003-11-17  Bruno Haible  <bruno@clisp.org>
53429
53430         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
53431         (Depends-on): Add xsize.
53432
53433 2003-11-17  Bruno Haible  <bruno@clisp.org>
53434
53435         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
53436
53437 2003-11-17  Bruno Haible  <bruno@clisp.org>
53438
53439         * lib/vasnprintf.c (alloca): Remove fallback definition.
53440         (freea): Remove definition.
53441         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
53442         Reported by Paul Eggert.
53443
53444 2003-11-16  Paul Eggert  <eggert@twinsun.com>
53445             Bruno Haible  <bruno@clisp.org>
53446
53447         Protect against address arithmetic overflow.
53448         * lib/printf-args.h: Include stddef.h.
53449         (arguments): Change type of field 'count' to size_t.
53450         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
53451         'unsigned int' where appropriate.
53452         * lib/printf-parse.h: Include sys/types.h.
53453         (char_directive): Change type of *arg_index fields to ssize_t.
53454         (char_directives): Change type of fields 'count', max_*_length to
53455         size_t.
53456         * lib/printf-parse.c: Include sys/types.h and xsize.h.
53457         (SSIZE_MAX): Define fallback value.
53458         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
53459         instead of 'int' where appropriate. Check a_allocated, d_allocated
53460         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
53461         * lib/vasnprintf.c: Include xsize.h.
53462         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
53463         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
53464         overflow. Avoid wraparound when converting a width or precision from
53465         decimal to binary.
53466
53467 2003-11-16  Bruno Haible  <bruno@clisp.org>
53468
53469         Update from GNU gettext.
53470         * lib/printf-parse.c: Generalize to it can be compiled for wide
53471         strings.
53472         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
53473         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
53474         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
53475         SNPRINTF): New macros.
53476         Don't include <alloca.h> if the file is used inside libintl.
53477         (local_wcslen): New function, for Solaris 2.5.1.
53478         (VASNPRINTF): Use it instead of wcslen.
53479
53480 2003-11-16  Bruno Haible  <bruno@clisp.org>
53481
53482         * lib/xsize.h (xmax): New function.
53483         (xsum, xsum3, xsum4): Declare as "pure" functions.
53484
53485 2003-11-12  Paul Eggert  <eggert@twinsun.com>
53486
53487         * modules/xalloc (Files): Undo latest change, since xalloc.h
53488         no longer needs SIZE_MAX or PTRDIFF_MAX.
53489
53490 2003-11-12  Paul Eggert  <eggert@twinsun.com>
53491
53492         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
53493         gl_PTRDIFF_MAX.
53494
53495 2003-11-12  Paul Eggert  <eggert@twinsun.com>
53496
53497         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
53498         "return", to pacify some unknown compiler.  Problem reported
53499         by Joerg Schilling.
53500
53501 2003-11-12  Paul Eggert  <eggert@twinsun.com>
53502
53503         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
53504         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
53505         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
53506         heuristic is just as accurate as far as we know, and it removes a
53507         dependency on size_max.m4 and ptrdiff_max.m4.
53508
53509 2003-11-11  Bruno Haible  <bruno@clisp.org>
53510
53511         * modules/xsize (Files): Add m4/size_max.m4.
53512         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
53513
53514 2003-11-11  Bruno Haible  <bruno@clisp.org>
53515
53516         * m4/size_max.m4: New file.
53517         * m4/ptrdiff_max.m4: New file.
53518         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
53519         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
53520         (gl_XALLOC): Invoke it.
53521
53522 2003-11-11  Bruno Haible  <bruno@clisp.org>
53523
53524         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
53525         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
53526         defined.
53527
53528 2003-11-10  Paul Eggert  <eggert@twinsun.com>
53529
53530         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
53531         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
53532         rejected some allocations of exactly SIZE_MAX - 2 bytes.
53533         From Bruno Haible.
53534         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
53535         not (size_t) -1, since it's defined here.
53536
53537 2003-11-09  Karl Berry  <karl@gnu.org>
53538
53539         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
53540
53541 2003-11-06  Paul Eggert  <eggert@twinsun.com>
53542
53543         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
53544         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
53545         Reject sizes of exactly SIZE_MAX bytes.
53546         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
53547         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
53548
53549 2003-11-05  Bruno Haible  <bruno@clisp.org>
53550
53551         * lib/xsize.h: Include limits.h, to avoid a possible collision with
53552         SIZE_MAX defined in <limits.h> on Solaris.
53553
53554 2003-11-04  Jim Meyering  <jim@meyering.net>
53555
53556         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
53557         variable names, rather than @VAR@.
53558         * modules/poll: Likewise.
53559
53560 2003-11-04  Bruno Haible  <bruno@clisp.org>
53561
53562         * modules/xsize: New file.
53563         * modules/linebreak: Depend on xsize.
53564         * MODULES.html.sh (func_all_modules): Add xsize.
53565
53566 2003-11-04  Bruno Haible  <bruno@clisp.org>
53567
53568         * m4/xsize.m4: New file.
53569
53570 2003-11-04  Bruno Haible  <bruno@clisp.org>
53571
53572         * lib/xsize.h: New file.
53573         * lib/linebreak.c: Include xsize.h.
53574         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
53575         argument for overflow.
53576         Suggested by Paul Eggert.
53577
53578 2003-11-03  Karl Berry  <karl@gnu.org>
53579
53580         * config/config.{guess,sub}: update from config.
53581
53582 2003-11-03  Jim Meyering  <jim@meyering.net>
53583
53584         * modules/userspec (lib_SOURCES): Add userspec.h.
53585         (Include): Add "userspec.h".
53586         Improve description.
53587
53588 2003-11-03  Jim Meyering  <jim@meyering.net>
53589
53590         * lib/userspec.c: Include "userspec.h".
53591         * lib/userspec.h: New file.
53592
53593 2003-11-03  Bruno Haible  <bruno@clisp.org>
53594
53595         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
53596
53597 2003-11-03  Bruno Haible  <bruno@clisp.org>
53598
53599         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
53600         available, to avoid (extremely rare) race condition.
53601         Suggested by Paul Eggert.
53602
53603 2003-11-02  Karl Berry  <karl@gnu.org>
53604
53605         * config/srclist.txt (vasprintf.c): sync broken, sigh.
53606
53607 2003-10-31  Paul Eggert  <eggert@twinsun.com>
53608
53609         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
53610         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
53611         (read_filesystem_list): Set and use me_type_malloced.
53612         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
53613         whatever the type happens to be), for brevity and consistency.
53614         Check for size calculation overflow on Alphas running OSF/1.
53615
53616 2003-10-31  Jim Meyering  <jim@meyering.net>
53617
53618         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
53619
53620         * lib/linebuffer.c: Include <string.h> for declaration of memset.
53621
53622 2003-10-30  Paul Eggert  <eggert@twinsun.com>
53623             Bruno Haible  <bruno@clisp.org>
53624
53625         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
53626         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
53627
53628 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53629
53630         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
53631         netbsd*-gnu*.  Suggested by Robert Millan.
53632
53633 2003-10-29  Paul Eggert  <eggert@twinsun.com>
53634
53635         * modules/group-member: Depend on stdbool.
53636
53637 2003-10-29  Paul Eggert  <eggert@twinsun.com>
53638
53639         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
53640
53641 2003-10-29  Paul Eggert  <eggert@twinsun.com>
53642
53643         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
53644         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
53645         after the 'gnu' in these cases.  This fixes some bugs in the
53646         previous change, and is based on suggestions by Robert Millan.
53647
53648 2003-10-29  Paul Eggert  <eggert@twinsun.com>
53649
53650         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
53651         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
53652         no longer needed.
53653         * lib/quotearg.c (quotearg_n_options): Use it.
53654         * lib/group-member.c: Include <stdbool.h>.
53655         (free_group_info): Arg is now const *; don't free arg.
53656         (get_group_info): Now returns bool and accepts struct group_info *,
53657         rather than returning a malloc'ed struct group_info *.
53658         All uses changed.  Check for overflow in internal size calculation.
53659
53660         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
53661         rather than xmalloc/xrealloc.
53662         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
53663         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
53664         conformance bug: the old code used a pointer after freeing the
53665         storage that it addressed.
53666         * lib/hash.c (hash_initialize): Simplify the code by using
53667         xalloc_oversized rather than doing it by hand.
53668         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
53669         the buffer preserved.  Use free and xmalloc instead.
53670         * lib/quotearg.c (quotearg_n_options): Likewise.
53671         Use a simpler test for size overflow.  Don't use xalloc_oversized
53672         because unsigned int might be wider than size_t (!); this suggests
53673         that we should switch from unsigned int to size_t for slot numbers.
53674
53675 2003-10-28  Paul Eggert  <eggert@twinsun.com>
53676
53677         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
53678         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
53679         NetBSD kernels.  Requested by Richard Stallman.
53680
53681 2003-10-27  Paul Eggert  <eggert@twinsun.com>
53682
53683         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
53684         to allocate the returned structure.  Do not allocate a subarray,
53685         as x2nrealloc will do that.
53686         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
53687         instead of xnrealloc.
53688         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
53689
53690 2003-10-27  Bruno Haible  <bruno@clisp.org>
53691
53692         * lib/stdbool_.h: Better support for BeOS.
53693
53694 2003-10-26  Paul Eggert  <eggert@twinsun.com>
53695
53696         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
53697         now uses inline.
53698
53699 2003-10-26  Paul Eggert  <eggert@twinsun.com>
53700
53701         * lib/xalloc.h (xalloc_oversized): New static inline function, for
53702         callers that want to do their own size-overflow checking.  Include
53703         <stdbool.h>, since xalloc_oversized returns bool.
53704         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
53705         to use xalloc_oversized.
53706
53707         Add two functions x2realloc, x2nrealloc, for programs that grow
53708         arrays dynamically by doubling their sizes.
53709         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
53710         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
53711         New functions.
53712
53713         Port to C99 semantics for 'inline' of external functions.
53714         Bug reported by Bruno Haible.
53715         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
53716         with the old contents of xnmalloc.
53717         (xnmalloc, xmalloc): Use it.
53718         (xnrealloc_inline): New static inline function,
53719         with the old contents of xnrealloc.
53720         (xnrealloc, xrealloc): Use it.
53721
53722         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
53723         that.
53724
53725 2003-10-26  Karl Berry  <karl@gnu.org>
53726
53727         * config/srclist.txt (COPYING.DOC): no longer available from
53728         /gd/gnuorg; don't know where the ultimate source is.
53729
53730 2003-10-25  Paul Eggert  <eggert@twinsun.com>
53731
53732         Fix several address-calculation bugs in the hash modules,
53733         plus some minor code cleanup.
53734
53735         * lib/hash.h: Include <stdbool.h>, for bool.
53736         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
53737         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
53738         hash_get_n_entries, hash_get_max_bucket_length,
53739         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
53740         hash_rehash): Use size_t rather than unsigned.
53741         * lib/hash.c (struct hash_table, hash_get_n_buckets,
53742         hash_get_n_buckets_used, hash_get_n_entries,
53743         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
53744         hash_get_entries, hash_do_for_each, hash_string, is_prime,
53745         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
53746         Likewise.
53747         (SIZE_MAX): Define if not defined.
53748         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
53749         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
53750         hash_print):
53751         Use const * when possible.
53752         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
53753         (check_tuning): Fix bug: if tuning parameters were very close to
53754         0 or 1, rounding errors could have caused subscript violations.
53755         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
53756         (hash_initialize): Add 'fail:' label
53757         to free table and return NULL, and use it to simplify code.
53758         Use calloc rather than clearing the storage ourself.
53759         (hash_initialize, hash_rehash): Check for arithmetic overflow in
53760         buffer size calculations.
53761         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
53762         Include <stddef.h>, for size_t.
53763         * lib/hash-pjw.c (hash_pjw): Likewise.
53764         Switch to method described by Bruno Haible.
53765         Include <limits.h>, for CHAR_BIT.
53766         (SIZE_BITS): New macro.
53767
53768 2003-10-23  Paul Eggert  <eggert@twinsun.com>
53769
53770         * m4/getline.m4 (AM_FUNC_GETLINE):
53771         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
53772         hosts.  Problem reported by Derek Robert Price in
53773         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
53774         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
53775         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
53776
53777 2003-10-21  Paul Eggert  <eggert@twinsun.com>
53778
53779         * lib/getndelim2.c (getndelim2): When size calculation overflows,
53780         ceiling the allocation at NMAX bytes rather than silently
53781         discarding input bytes before NMAX is reached.  This makes
53782         a difference only if NMAX exceeds SIZE_MAX / 2.
53783
53784         * lib/obstack.c: Merge from glibc.
53785         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
53786         Add libc_hidden_def (_obstack_newchunk).
53787         (_obstack_free) [! defined _LIBC]: Remove.
53788         [defined _LIBC]: Make a strong alias from obstack_free, rather than
53789         a clone of the function body.
53790         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
53791         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
53792
53793         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
53794         glibc.
53795         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
53796         arg to memcpy.
53797
53798         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
53799         (obstack_ptr_grow_fast, obstack_int_grow_fast):
53800         Don't use lvalue casts, as GCC plans to remove support for them
53801         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
53802         was also present in the non-GCC version, indicating that this
53803         code had always been buggy and had never been widely used.
53804         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
53805         Use the fast variant of each macro, rather than copying the
53806         definiens of the fast variant; that way, we'll be more likely to
53807         catch future bugs in the fast variants.
53808
53809 2003-10-20  Bruno Haible  <bruno@clisp.org>
53810
53811         * modules/wait-process: New file.
53812         * MODULES.html.sh (func_all_modules): Add wait-process.
53813
53814 2003-10-20  Bruno Haible  <bruno@clisp.org>
53815
53816         * m4/wait-process.m4: New file.
53817
53818 2003-10-20  Bruno Haible  <bruno@clisp.org>
53819
53820         * lib/wait-process.h: New file, from GNU gettext.
53821         * lib/wait-process.c: New file, from GNU gettext.
53822
53823 2003-10-19  Jim Meyering  <jim@meyering.net>
53824
53825         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
53826         HPUX 10.20.
53827
53828 2003-10-18  Karl Berry  <karl@gnu.org>
53829
53830         * config/config.guess: update from config.
53831
53832 2003-10-16  Paul Eggert  <eggert@twinsun.com>
53833
53834         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
53835         (getgroups): First arg is int, not size_t.
53836         Don't let 'free' mangle errno.
53837
53838 2003-10-16  Paul Eggert  <eggert@twinsun.com>
53839
53840         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
53841
53842 2003-10-16  Karl Berry  <karl@gnu.org>
53843
53844         * config/config.{guess,sub}: update from config.
53845
53846 2003-10-16  Jim Meyering  <jim@meyering.net>
53847
53848         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
53849         memcpy.
53850
53851 2003-10-15  Paul Eggert  <eggert@twinsun.com>
53852
53853         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
53854         (SIZE_MAX): Remove.
53855         (new_exclude, add_exclude_file): Initial size no longer needs to
53856         be a power of 2.
53857         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
53858         our own address arithmetic overflow checking.
53859
53860         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
53861         (fnmatch): Do not alloca more than 2000 wide characters;
53862         instead, use malloc for large buffers.
53863         Check for address arithmetic overflow, and return -1
53864         with errno set to ENOMEM in that case.
53865         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
53866         (NEW_PATTERN): Do not alloca more than 8000 bytes;
53867         instead, return -1.  Check for address arithmetic overflow.
53868
53869 2003-10-14  Paul Eggert  <eggert@twinsun.com>
53870
53871         Handle invalid suffixes and overflow independently, so that
53872         callers can treat them independently as needed.  Fix some bugs in
53873         suffix handling, e.g., "100k@" was not diagnosed as an invalid
53874         suffix for a human-readable blocksize.  The major caller-visible
53875         change is the addition of a new
53876         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
53877         that both overflow and suffix chars were found.
53878
53879         * lib/human.c (humblock): Don't check separately for invalid suffix
53880         char; that is xstrtoumax's job (now that its bug is fixed).
53881         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
53882         INTMAX_MAX]: New macros.
53883         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
53884         TYPE_MAXIMUM): New macros.
53885         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
53886         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
53887         if overflow occurs, as it's what __strtol does and it's more useful
53888         in practice.
53889         (__xstrtol): If __strtol reports some error other than ERANGE,
53890         reflect it to the caller as LONGINT_INVALID.  If it reports
53891         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
53892         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
53893         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
53894         value.
53895         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
53896         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
53897         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
53898         [defined UINTMAX_MAX]: New macros.
53899
53900 2003-10-14  Bruno Haible  <bruno@clisp.org>
53901
53902         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
53903
53904 2003-10-14  Bruno Haible  <bruno@clisp.org>
53905
53906         * m4/sig_atomic_t: New file, from GNU gettext.
53907         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
53908
53909 2003-10-14  Bruno Haible  <bruno@clisp.org>
53910
53911         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
53912         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
53913         Also use volatile where needed.
53914
53915 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53916
53917         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
53918         Change maintainer from Bruno Haible to 'all'.
53919
53920 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53921
53922         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
53923
53924 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53925
53926         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
53927         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
53928         and define in terms of the other primitives.
53929         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
53930         (SIZE_MAX): Define if not already defined.
53931         (array_size_overflow): New function.
53932         (xalloc_die): Abort instead of exiting if 'error' returns.
53933         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
53934         (xmalloc, xrealloc): Use them.
53935         (xcalloc): Check for address arithmetic overflow.
53936         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
53937         a bit faster than strcpy.
53938
53939 2003-10-10  Simon Josefsson  <jas@extundo.com>
53940
53941         * modules/argp (Depends-on): Add restrict and strcase.
53942
53943 2003-10-10  Simon Josefsson  <jas@extundo.com>
53944
53945         * m4/argp.m4: Add AC_C_INLINE.
53946
53947 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53948
53949         Merge getpass from libc, plus a few fixes.
53950
53951         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
53952         Include <stdbool.h>.
53953         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
53954         __fsetlocking to empty.
53955         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
53956         do include <bits/libc-lock.h>.
53957         Do not include <fcntl.h>; not needed.
53958         [_LIBC]: Include <wchar.h>.
53959         (NOTCANCEL_MODE): New macro.
53960         (flockfile, funlockfile) [_LIBC]: New macros.
53961         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
53962         [!_LIBC]: New macros.
53963         (call_fclose): New function.
53964         (getpass): Use it.  Save tty stream separately; this simplifies the
53965         code and makes it more reliable if stdin happens to equal stdout.
53966         Invoke __fsetlocking on tty.
53967         Handle thread cancellation if needed.
53968         Namespace cleanup (use __tcgetattr, __getline).
53969         Use bool for Booleans.
53970         [USE_IN_LIBIO]: Handle wide streams.
53971         [!_LIBC]: Unconditionally do the fseek, since we don't know what
53972         stream might go where.
53973
53974         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
53975         doesn't have to include <stdio.h> before us.
53976         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
53977         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
53978         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
53979         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
53980         if not declared, so that we can use getpass.c code from libc without
53981         rewriting it.
53982         (flockfile, ftrylockfile, funlockfile): New macros.
53983
53984 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53985
53986         * modules/getpass: Depend on stdbool.
53987
53988 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53989
53990         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
53991
53992 2003-10-07  Karl Berry  <karl@gnu.org>
53993
53994         * config/config.{guess,sub}: update from config.
53995
53996 2003-10-06  Jim Meyering  <jim@meyering.net>
53997             Bruno Haible  <bruno@clisp.org>
53998
53999         This lets translators provide better translations for the
54000         "Written by ..." part of --version output.
54001         * lib/version-etc.h: Include stdarg.h.
54002         (version_etc_copyright): Declare as readonly.
54003         (version_etc): Make this function variadic with a NULL-terminated list
54004         of author name strings.
54005         (version_etc_va): New declaration.
54006         * lib/version-etc.c: Include stdarg.h, stdlib.h.
54007         (version_etc_copyright): Declare as readonly.
54008         (version_etc_va): New function. Provide a different translatable string
54009         for each possible number of authors < 10. Abbreviate when there are 10
54010         authors or more.
54011         (version_etc): Make this function variadic. Call version_etc_va.
54012         Suggestion from Gary V. Vaughan.
54013
54014         * lib/long-options.h (parse_long_options): Change prototype: the
54015         authors string is moved to the end and becomes variadic.
54016         * lib/long-options.c: Include stdarg.h.
54017         (parse_long_options): Make this function variadic, too.
54018         Call version_etc_va, not version_etc.
54019
54020 2003-10-06  Bruno Haible  <bruno@clisp.org>
54021
54022         * modules/version-etc-2: Remove file.
54023         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
54024
54025 2003-10-06  Bruno Haible  <bruno@clisp.org>
54026
54027         * modules/fatal-signal: New file.
54028         * MODULES.html.sh (func_all_modules): Add fatal-signal.
54029
54030 2003-10-06  Bruno Haible  <bruno@clisp.org>
54031
54032         * m4/fatal-signal.m4: New file.
54033         * m4/signalblocking.m4: New file, from GNU gettext.
54034
54035 2003-10-06  Bruno Haible  <bruno@clisp.org>
54036
54037         * lib/version-etc-2.h: Remove file.
54038         * lib/version-etc-2.c: Remove file.
54039
54040 2003-10-06  Bruno Haible  <bruno@clisp.org>
54041
54042         * lib/fatal-signal.h: New file, from GNU gettext.
54043         * lib/fatal-signal.c: New file, from GNU gettext.
54044
54045 2003-10-05  Paul Eggert  <eggert@twinsun.com>
54046
54047         * README: Rework advice for preventing empty .o files.
54048         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
54049         not <sys/types.h>.
54050
54051 2003-10-04  Karl Berry  <karl@gnu.org>
54052
54053         * lib/argp*: update from libc.
54054
54055 2003-10-04  Karl Berry  <karl@gnu.org>
54056
54057         * config/config.{guess,sub}: update from config.
54058
54059 2003-10-02  Bruno Haible  <bruno@clisp.org>
54060
54061         * modules/lchown (Include): Add lchown.h.
54062         * modules/time_r (Include): Use "..." syntax.
54063         * modules/xgetdomainname (Include): Add xgetdomainname.h.
54064
54065 2003-10-01  Simon Josefsson  <jas@extundo.com>
54066
54067         * MODULES.html.sh (func_all_modules): Move gethostname from section
54068         'based on' to section 'lacking' POSIX:2001.
54069
54070 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
54071
54072         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
54073         to output mode on the same stream.
54074
54075 2003-09-29  Paul Eggert  <eggert@twinsun.com>
54076
54077         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
54078         Fix arg typo in previous patch.
54079
54080 2003-09-28  Jim Meyering  <jim@meyering.net>
54081
54082         * lib/error.c: Correct cpp indentation.
54083
54084 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54085
54086         * modules/free: New file.
54087
54088 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54089
54090         * m4/free.m4: New file.
54091
54092 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54093
54094         * lib/minmax.h (MIN, MAX)
54095         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
54096         Omit the special code that used __typeof__, since we worry that
54097         it could be more trouble than it's worth.  See:
54098         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
54099         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
54100
54101         * lib/free.c: New file.
54102
54103 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
54104
54105         Trivial fixes to Makefile.am parts of module listings.
54106         * modules/strstr: Append strstr.h to lib_SOURCES.
54107         * modules/strcase: Likewise, for strcase.h.
54108
54109 2003-09-27  Karl Berry  <karl@gnu.org>
54110
54111         * config/mkinstalldirs: update from automake.
54112
54113 2003-09-26  Paul Eggert  <eggert@twinsun.com>
54114
54115         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
54116         (error_tail): Do not loop, reallocating temporary buffer, since
54117         the output cannot contain more wide characters than the input
54118         contains bytes, the size must be big enough already.  This avoids
54119         one potential size overflow calculation.  Check for size overflow
54120         when calculating temporary buffer size.  Free temporary buffer
54121         when done, if it was allocated with malloc; this plugs a memory
54122         leak.  Remove casts from void * to pointers, that are no longer
54123         needed now that we're assuming C89 or better.
54124
54125         Merge error changes from glibc.
54126
54127         * lib/error.c, error.h: Update copyright notice header to match glibc.
54128         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
54129         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
54130         Disable cancellation while printing error.
54131         * lib/error.h: Prepend __ to parameter names.
54132
54133 2003-09-26  Jim Meyering  <jim@meyering.net>
54134
54135         * lib/error.c (error_tail): Move some declarations
54136         into inner scope where the local variables are used.
54137
54138 2003-09-26  Bruno Haible  <bruno@clisp.org>
54139
54140         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
54141         stpncpy().
54142         Don't define stpncpy through config.h; it's now done through stpncpy.h.
54143
54144 2003-09-26  Bruno Haible  <bruno@clisp.org>
54145
54146         * lib/stpncpy.h (gnu_stpncpy): New declaration.
54147         (stpncpy): Define as alias for gnu_stpncpy.
54148         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
54149
54150 2003-09-25  Simon Josefsson  <jas@extundo.com>
54151
54152         * lib/xgetdomainname.h: New file.
54153         * lib/xgetdomainname.c: New file.
54154
54155 2003-09-25  Simon Josefsson  <jas@extundo.com>
54156             Bruno Haible  <bruno@clisp.org>
54157
54158         * modules/getdomainname: New file.
54159         * modules/xgetdomainname: New file.
54160         * MODULES.html.sh (func_all_modules): Add getdomainname,
54161         xgetdomainname.
54162
54163 2003-09-25  Simon Josefsson  <jas@extundo.com>
54164             Bruno Haible  <bruno@clisp.org>
54165
54166         * m4/getdomainname.m4: New file.
54167
54168 2003-09-25  Simon Josefsson  <jas@extundo.com>
54169             Bruno Haible  <bruno@clisp.org>
54170
54171         * lib/getdomainname.h: New file.
54172         * lib/getdomainname.c: New file.
54173
54174 2003-09-25  Karl Berry  <karl@gnu.org>
54175
54176         * lib/argp-fmtstream.c, argp-help.c: update from libc.
54177
54178 2003-09-25  Karl Berry  <karl@gnu.org>
54179
54180         * config/install-sh: update from automake.
54181
54182 2003-09-25  Bruno Haible  <bruno@clisp.org>
54183
54184         * modules/version-etc-2: New file, from modules/version-etc with
54185         modifications.
54186         * MODULES.html.sh (func_all_modules): Add version-etc-2.
54187
54188 2003-09-25  Bruno Haible  <bruno@clisp.org>
54189
54190         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
54191         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
54192
54193 2003-09-24  Simon Josefsson  <jas@extundo.com>
54194
54195         * modules/xgethostname: Add xgethostname.h.
54196
54197 2003-09-24  Paul Eggert  <eggert@twinsun.com>
54198
54199         * lib/linebuffer.c (freebuffer): Don't free the argument, just
54200         the buffer associated with the argument.  Bug reported by
54201         Simon Josefsson.
54202
54203 2003-09-24  Paul Eggert  <eggert@twinsun.com>
54204
54205         * README: Document assumptions that 'int' is at least 32 bits
54206         wide, that integer arithmetic is 2's complement without overflow,
54207         that there are no holes in integer values, that adding sizes of
54208         two nonoverlapping objects can't overflow, and that all-bits-zero
54209         yields scalar zero.  Fix spelling and capitalization typos.
54210
54211 2003-09-19  Karl Berry  <karl@gnu.org>
54212
54213         * lib/argp.h: update from libc.
54214
54215 2003-09-17  Paul Eggert  <eggert@twinsun.com>
54216
54217         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
54218         to avoid spurious warnings like "AC_RUN_IFELSE was called before
54219         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
54220
54221 2003-09-17  Paul Eggert  <eggert@twinsun.com>
54222
54223         * gnulib-tool: Use "test -h", not "test -L", for portability
54224         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
54225         (tags_regexp): Remove, since \| doesn't conform to POSIX.
54226         (sed_extract_prog): Issue s commands one-by-one, rather than
54227         using \| in one s command.
54228
54229 2003-09-16  Paul Eggert  <eggert@twinsun.com>
54230
54231         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
54232         input error, instead of returning NULL the next time we are called
54233         (and therefore losing track of errno).
54234
54235 2003-09-16  Bruno Haible  <bruno@clisp.org>
54236
54237         * gnulib-tool (func_create_testdir): Warn about duplicated
54238         dependencies.
54239
54240 2003-09-15  Paul Eggert  <eggert@twinsun.com>
54241
54242         * modules/argmatch, modules/fatal, modules/obstack,
54243         modules/xalloc, modules/xgethostname: Sort dependencies by
54244         importance, not alphabetically.
54245
54246 2003-09-15  Paul Eggert  <eggert@twinsun.com>
54247
54248         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
54249         fails, so that the caller gets the proper errno.
54250
54251         * lib/readutmp.c (read_utmp): Likewise.
54252         Check for fstat error.  Close stream and free storage
54253         when failing.
54254
54255 2003-09-14  Karl Berry  <karl@gnu.org>
54256
54257         * config/srclist.txt (strdup.c): disable for c89 changes.
54258
54259 2003-09-14  Jim Meyering  <jim@meyering.net>
54260
54261         * lib/getloadavg.c: Correct cpp indentation.
54262         * lib/strdup.c: Likewise.
54263         * lib/vasnprintf.c: Likewise.
54264
54265 2003-09-14  Bruno Haible  <bruno@clisp.org>
54266
54267         * modules/fwriteerror: New file.
54268         * MODULES.html.sh (func_all_modules): Add fwriteerror.
54269
54270 2003-09-14  Bruno Haible  <bruno@clisp.org>
54271
54272         * lib/fwriteerror.h: New file.
54273         * lib/fwriteerror.c: New file.
54274
54275 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54276
54277         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
54278         modules/xgethostname, modules/xalloc: Depend on exit.
54279
54280 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54281
54282         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
54283
54284         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
54285         and AC_MINIX, too, so that their extensions are available.
54286
54287         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
54288         This macro has been superseded by gl_BACKUPFILE.
54289
54290         More patches to assume C89 or better.
54291
54292         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
54293
54294         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
54295         unconditionally.
54296         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
54297         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
54298         Include <string.h>, <stdlib.h> unconditionally.
54299         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
54300         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
54301         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
54302         headers or for string.h.
54303         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
54304         or strtoul.
54305
54306         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
54307         headers.
54308         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
54309         * m4/userspec.m4 (gl_USERSPEC): Likewise.
54310         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
54311         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
54312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54313         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
54314         memcpy, memset.
54315         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
54316         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
54317         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
54318         strtol.
54319         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
54320         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
54321         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
54322         strtoul.
54323
54324 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54325
54326         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
54327         * lib/obstack.c [!defined _LIBC]: Likewise.
54328         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
54329         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
54330         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
54331
54332         More changes to assume C89 or better.
54333
54334         * lib/error.c (error_tail): Assume vprintf.
54335
54336         * lib/argmatch.c (getenv): Remove decl.
54337         * lib/progreloc.c (get_full_program_name): Define via prototype.
54338         * lib/setenv.c (clearenv): Likewise.
54339         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
54340         needed.
54341         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
54342         (malloc, memcpy): Remove decls.
54343         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
54344         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
54345         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
54346         (memcpy): Remove macro.
54347         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
54348         (__P): Remove.  All uses removed.
54349         (PTR): Remove.  All uses changed to void *.
54350         (CHAR_BIT, NULL): Remove.
54351         (spaces, zeros, memset_space, memset_zero)
54352         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
54353         Remove.
54354         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
54355         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
54356         Define with prototype.
54357         Remove now-unnecessary prototype decl.
54358         (extra_args_spec): Assume ANSI C.  All uses changed.
54359         (extra_args_spec_iso): Remove.
54360         (my_strftime, emacs_strftimeu): Define via prototype.
54361         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
54362         unconditionally.
54363         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
54364         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
54365         (strtoul, strtol): Remove decls.
54366         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
54367         LONG_MAX): Remove.
54368         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
54369         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
54370         (LOCALE_PARAM_PROTO): New macro.
54371         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
54372         (INTERNAL (strtol), strtol): Define with a prototype.
54373         (PARAMS): Remove.  All uses removed.
54374         * lib/tempname.c: Include <string.h> unconditionally.
54375         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
54376         * lib/xgethostname.c (main): Define with a prototype.
54377         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
54378         Include <stdlib.h> unconditionally.
54379         (calloc, malloc, realloc, free): Remove decls.
54380         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
54381         Include <stdlib.h> unconditionally.  Sort include file names.
54382         (strtod): Remove.
54383         (xstrtod): Define with a prototype.
54384         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
54385         (strtol, strtoul): Remove decls.
54386
54387 2003-09-11  Paul Eggert  <eggert@twinsun.com>
54388
54389         More patches to assume C89 or better.
54390         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
54391         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
54392         string.h, memchr, STDC_HEADERS.
54393
54394 2003-09-11  Paul Eggert  <eggert@twinsun.com>
54395
54396         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
54397         Include <stdlib.h>, <string.h> unconditionally.
54398         Remove now-unnecessary cast to char *.
54399         * lib/strnlen.c: Include <string.h> unconditionally.
54400         * lib/yesno.c (yesno): Define with a prototype.
54401
54402 2003-09-11  Bruno Haible  <bruno@clisp.org>
54403
54404         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
54405
54406 2003-09-10  Jim Meyering  <jim@meyering.net>
54407
54408         * lib/error.c: Correct indentation of cpp directives.
54409
54410 2003-09-10  Bruno Haible  <bruno@clisp.org>
54411
54412         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
54413         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
54414         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
54415         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
54416         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
54417         <stdlib.h> and <string.h> checks.
54418         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
54419         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
54420
54421 2003-09-10  Bruno Haible  <bruno@clisp.org>
54422
54423         * lib/strcspn.c: Include <string.h> unconditionally.
54424         * lib/strpbrk.c: Include <string.h> unconditionally.
54425         * lib/strstr.c: Include <string.h> unconditionally.
54426         * lib/unicodeio.c: Include <string.h> unconditionally.
54427         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
54428         * lib/unsetenv.c: Likewise.
54429         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
54430         * lib/yesno.c: Include <stdlib.h> unconditionally.
54431         (rpmatch): Add prototype.
54432
54433 2003-09-09  Paul Eggert  <eggert@twinsun.com>
54434
54435         More patches to assume C89 or better.
54436         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
54437         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
54438         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
54439         or for string.h.
54440         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
54441         stdlib.h.
54442         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
54443         C headers.
54444         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
54445         string.h.
54446         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
54447         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
54448         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
54449         or for string.h.
54450         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
54451         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
54452         C headers.
54453         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
54454         memcpy.
54455         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
54456         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
54457         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
54458         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
54459         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
54460         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
54461         string.h, free.
54462         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
54463         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
54464         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
54465         C headers, or for string.h.
54466         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
54467         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
54468         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
54469         headers, memory.h, stdlib.h, string.h, strings.h.
54470         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
54471         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
54472         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
54473         strchr.
54474         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
54475         headers, memory.h, string.h.
54476         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
54477         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
54478         free.
54479         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
54480         headers.
54481         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
54482         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
54483         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
54484         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
54485         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
54486
54487 2003-09-09  Paul Eggert  <eggert@twinsun.com>
54488
54489         More K&R removal.
54490
54491         * lib/acosl.c (main): Use a prototype.
54492         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
54493         tanl.c: Likewise.
54494
54495         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
54496
54497         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
54498         (getopt, etopt_long, getopt_long_only, _getopt_internal)
54499         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
54500         with a prototype.
54501         * lib/getopt.c (const): Remove macro.
54502         Include <string.h> unconditionally.
54503         (my_index): Remove; all uses changed to strchr.
54504         (strlen): Remove decl.
54505         (exchange): Remove forward decl; no longer needed.
54506         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
54507         Define with prototype.
54508         * lib/getopt1.c (const): Remove macro.
54509         (getopt_long, getopt_long_only, main): Define with prototype.
54510
54511         * lib/getugroups.c: Include <string.h> unconditionally.
54512
54513         * lib/getusershell.c: Include <stdlib.h> unconditionally.
54514         (getusershell, setusershell, endusershell, readname, main):
54515         Define with prototypes.
54516
54517         * lib/group-member.c: Include group-member.h first.
54518         Include <stdlib.h> unconditionally.
54519
54520         * lib/hard-locale.c: Include hard-locale.h first.
54521         Include <stdlib.h>, <string.h> unconditionally.
54522
54523         * lib/hash.c (free, malloc): Remove decls.
54524         Include <stdlib.h> unconditionally.
54525
54526         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
54527         (getenv): Do not declare.
54528
54529         * lib/idcache.c: Include <string.h> unconditionally.
54530
54531         * lib/long-options.c: Include long-options.h first, to test interface.
54532         Include <stdlib.h> unconditionally.
54533
54534         * lib/makepath.c: Include makepath.h first, to test interface.
54535         Include <stdlib.h> and <string.h> unconditionally.
54536
54537         * lib/linebuffer.c: Include <stdlib.h>.
54538         (free): Remove decl.
54539
54540         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
54541         stddef.h. rpl_malloc returns void *, not char *.
54542         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
54543         prototype.
54544
54545         * lib/md5.h: Include <limits.h> unconditionally.
54546         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
54547         (__P): Remove; all uses removed.
54548         * lib/md5.c: Include "md5.h" first.
54549         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
54550         md5_buffer, md5_process_bytes, md5_process_block):
54551         Define with prototypes.
54552         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
54553         * lib/sha.c: Include "sha.h" first.
54554         Include <stdlib.h>, <string.h> unconditionally.
54555
54556         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
54557         * lib/memcmp.c (__ptr_t): Likewise.
54558         * lib/memrchr.c (__ptr_t): Likewise.
54559         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
54560         Include <string.h> unconditionally.
54561         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
54562         * lib/memchr.c: Include <stdlib.h> unconditionally.
54563         * lib/memchr.c (LONG_MAX): Remove.
54564         * lib/memrchr.c (LONG_MAX): Likewise.
54565         * lib/memchr.c (__memchr): Define via a prototype.
54566         * lib/memrchr.c (__memrchr): Likewise.
54567         * lib/memcmp.c (__P): Remove, and remove all uses.
54568         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
54569         Remove forward decls; no longer needed.
54570         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
54571         Use types required by C89 in prototype.
54572
54573         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
54574         * lib/savedir.c: Likewise.
54575         * lib/mkdir.c (free): Remove decl.
54576         * lib/rmdir.c (rmdir): Define with a prototype.
54577         * lib/savedir.c: Include savedir.h first, to test interface.
54578
54579         * lib/mktime.c (STDC_HEADERS): Remove.
54580         Include <stdlib.h>, <string.h> unconditionally.
54581
54582         * lib/modechange.c: Include <stdlib.h> unconditionally.
54583         (malloc): Remove decl.
54584
54585         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
54586         (free): Remove decl.
54587
54588         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
54589         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
54590         (This type really should be intptr_t, but that's a C99ism.)
54591         (_obstack_memcpy): Remove: all uses changed to memcpy.
54592         Include <string.h> unconditionally.
54593         (struct obstack): Assume __STDC__ for types of members
54594         chunkfun, freefun, extra_arg.
54595         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
54596         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
54597         obstack_begin, obstack_specify_allocation,
54598         obstack_specify_allocation_with_arg, obstack_chunkfun,
54599         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
54600         Remove unprototyped decls and the macros that use them.
54601         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
54602         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
54603         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
54604         (defined __STDC__ && __STDC__)]:
54605         Remove nonprototyped code.
54606         Include <stdlib.h> unconditionally.
54607         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
54608         _obstack_allocated_p, _obstack_free, obstack_free,
54609         _obstack_memory_used, print_and_abort):
54610         Define using prototypes.
54611         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
54612         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
54613         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
54614         obstack_next_free, obstack_object_size, obstack_room) [0]:
54615         Remove unused, unprototyped code.
54616
54617         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
54618
54619         * lib/physmem.c (physmem_total, physmem_available, main): Define
54620         with prototypes.
54621
54622         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
54623         (main): Define with a prototype.
54624
54625         * lib/posixver.c (getenv): Remove decl.
54626
54627         * lib/putenv.c (malloc): Returns void *, not char *.
54628         Include <string.h> unconditionally.
54629         (strchr, memcpy, NULL): Do not define.
54630
54631         * lib/readtokens.c: Include readtokens.h first, to test interface.
54632         Include <stdlib.h>, <string.h> unconditionally.
54633         (init_tokenbuffer): Define with a prototype.
54634
54635         * lib/regex.c (PARAMS): Remove.  All uses removed.
54636         All uses of _RE_ARGS removed, too.
54637         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54638         unconditionally.
54639         (bzero): Assume memset exists.
54640         (memcmp, memcpy, NULL): Remove.
54641         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
54642         char, or assignments to local vars of type signed char.
54643         (init_syntax_once, PREFIX(extract_number_and_incr),
54644         PREFIX(print_partial_compiled_pattern),
54645         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
54646         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
54647         PREFIX(regex_grow_registers), PREFIX(regex_compile),
54648         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
54649         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
54650         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
54651         wcs_compile_range, byte_compile_range, truncate_wchar,
54652         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
54653         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
54654         count_mbs_length, wcs_re_match_2_internal,
54655         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
54656         PREFIX(alt_match_null_string_p),
54657         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
54658         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
54659         regfree, PREFIX(extract_number)): Define with prototype.  Remove
54660         now-unnecessary declaration, if any.
54661         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
54662         regcomp, regexec):
54663         Remove now-unnecessary casts among pointer types.
54664         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
54665
54666         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
54667         (free): Remove decl.
54668
54669         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
54670
54671         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
54672         (free): Remove decl.
54673
54674         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
54675         * lib/xgetcwd.c: Likewise.
54676
54677         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
54678         (free): Remove decl.
54679
54680         * lib/strchrnul.c (strchrnul): Define with a prototype.
54681         Fix bug: c_in was not converted to char before searching.
54682
54683         The following changes are not K&R related:
54684
54685         * lib/group-member.h: Include <sys/types.h>, so that this file is
54686         self-contained.
54687         * lib/makepath.h: Likewise.
54688
54689         * lib/getusershell.c (readname, default_index, line_size, readname):
54690         Use size_t, not int, for sizes.
54691         (readname): If the size overflows, report an error instead of
54692         looping forever.
54693
54694 2003-09-09  Paul Eggert  <eggert@twinsun.com>
54695
54696         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
54697         libc.
54698
54699 2003-09-09  Paul Eggert  <eggert@twinsun.com>
54700
54701         * README: New section: portability guidelines.
54702
54703 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
54704
54705         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
54706         C89 spec.
54707
54708 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
54709
54710         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
54711
54712 2003-09-08  Paul Eggert  <eggert@twinsun.com>
54713
54714         Assume C89 or better; remove K&R cruft.
54715         A few of these changes were first proposed by Derek Robert Price
54716         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
54717
54718         * lib/addext.c: Include <string.h> unconditionally.
54719         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
54720         Don't declare getenv or malloc.
54721
54722         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
54723         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
54724         (NULL): Remove.
54725         (find_stack_direction, alloca): Use prototypes.
54726
54727         * lib/atexit.c (atexit): Define using a prototype.
54728
54729         * lib/basename.c, dirname.c, stripslash.c:
54730         Include <string.h> unconditionally.
54731
54732         * lib/bcopy.c: Include <stddef.h>.
54733         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
54734
54735         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
54736
54737         * lib/error.h (error, error_at_line, error_print_progname)
54738         [! (defined (__STDC__) && __STDC__)]: Remove decls.
54739         * lib/error.c: Include error.h first, to check interface.
54740         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
54741         (VA_START): Remove; all uses changeed to va_start.
54742         (exit, strerror): Remove decls.
54743         (error_print_progname): Prototype uncondionally.
54744         Don't include <errno.h>; no longer needed.
54745         (private_strerror): Remove.
54746         (error_tail): Always define.
54747         (error, error_at_line): Assume C89 or better; always use prototypes.
54748         * lib/fatal.c: Include "fatal.h" first, to test interface.
54749         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
54750         (VA_START): Remove; all uses changed to va_start.
54751         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
54752         this case.
54753         (exit): Remove decl.
54754         (fatal): Prototype unconditionally.  Assume va_start works.
54755         Abort at end, to pacify gcc.
54756
54757         * lib/euidaccess.c (main): Define with a prototype.
54758
54759         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
54760
54761         * lib/exitfail.c: Include <stdlib.h> unconditionally.
54762
54763         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
54764         prototypes.
54765         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
54766         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
54767         (getenv): Remove decl.
54768         (fnmatch): Define using a prototype.
54769         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
54770         (FCT): Define using a prototype.
54771
54772         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
54773
54774         * lib/gethostname.c: Include <stddef.h>.
54775         (gethostname): Define with prototype.  Length is size_t, not int.
54776
54777 2003-09-08  Paul Eggert  <eggert@twinsun.com>
54778
54779         Assume C89 or better; remove K&R cruft.
54780         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
54781         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
54782         string.h, getenv, malloc.
54783         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
54784         headers.
54785         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
54786         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
54787         do not check for strerror.
54788         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
54789         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
54790         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
54791         do not check for doprnt or vprintf.
54792         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
54793         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
54794
54795 2003-09-08  Paul Eggert  <eggert@twinsun.com>
54796
54797         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
54798         getversion.c should have been removed then, but was accidentally
54799         preserved.
54800
54801         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
54802         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
54803
54804 2003-09-08  Karl Berry  <karl@gnu.org>
54805
54806         * config/config.sub, config.guess, srclistvars.sh: update from savannah
54807                 config, forget about prep.
54808
54809         * config/depcomp, missing: update from automake.
54810
54811 2003-09-07  Paul Eggert  <eggert@twinsun.com>
54812
54813         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
54814         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
54815
54816 2003-09-07  Paul Eggert  <eggert@twinsun.com>
54817
54818         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
54819         copy_tm_result.  Bug reported by Simon Josefsson in
54820         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
54821
54822 2003-09-06  Paul Eggert  <eggert@twinsun.com>
54823
54824         * m4/time_r.m4: New file.
54825         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
54826         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
54827         is. Check for timegm declaration.
54828         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
54829         Do not check for gmtime_r.
54830         Replace mktime if __mktime_internal does not exist and if mktime
54831         hasn't been replaced already.
54832
54833 2003-09-06  Paul Eggert  <eggert@twinsun.com>
54834
54835         * lib/time_r.c, lib/time_r.h: New files.
54836
54837         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
54838         __localtime_r.
54839         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
54840         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
54841
54842         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
54843         __gmtime_r.
54844         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
54845         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
54846         Include <time_r.h>.
54847
54848         * lib/timegm.c: Switch to glibc implementation, with the following
54849         changes:
54850         [defined HAVE_CONFIG_H]: Include <config.h>.
54851         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
54852         (__mktime_internal) [!defined _LIBC]: New decl.
54853         (__gmtime_r) [!defined _LIBC]: New macro and function.
54854         (timegm): Use a prototype, since gnulib assumes C89.
54855         Do not bother declaring tmp to be const, as it's not really usefu.
54856         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
54857         (timegm): Declare only if HAVE_DECL_TIMEGM.
54858
54859 2003-09-06  Paul Eggert  <eggert@twinsun.com>
54860
54861         * MODULES.html.sh (func_all_modules): Add time_r.
54862         * modules/time_r: New file.
54863         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
54864         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
54865
54866 2003-09-03  Paul Eggert  <eggert@twinsun.com>
54867
54868         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
54869         Bug reported by Lute Kamstra in
54870         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
54871
54872         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
54873         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
54874         course with correspondingly smaller numbers for tomorrow and
54875         yesterday.  From Tadayoshi Funaba.  Originally installed into
54876         sh-utils on 1999-08-07, but the patch got lost (I guess during the
54877         coreutils merge?).
54878
54879 2003-08-31  Simon Josefsson  <jas@extundo.com>
54880
54881         * modules/timegm: New file.
54882         * MODULES.html.sh (func_all_modules): Add timegm.
54883
54884 2003-08-31  Simon Josefsson  <jas@extundo.com>
54885
54886         * m4/timegm.m4: New file.
54887
54888 2003-08-31  Simon Josefsson  <jas@extundo.com>
54889
54890         * lib/timegm.h: New file.
54891         * lib/timegm.c: New file.  Based on
54892         wget-1.8.2/src/http.c:mktime_from_utc.
54893
54894 2003-08-31  Karl Berry  <karl@gnu.org>
54895
54896         * lib/argp.h: update from libc.
54897
54898 2003-08-28  Bruno Haible  <bruno@clisp.org>
54899
54900         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
54901         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
54902         followed by '#define fnmatch fnmatch_posix' gives an error.
54903
54904 2003-08-28  Bruno Haible  <bruno@clisp.org>
54905
54906         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
54907         warning on QNX, which defines O_BINARY to 000000.
54908
54909 2003-08-27  Jim Meyering  <jim@meyering.net>
54910
54911         * m4/mkstemp.m4: Require that the system mkstemp be able to create
54912         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
54913         would fail after 32.  Reported by Danny Levinson.  Details here:
54914         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
54915
54916 2003-08-24  Bruno Haible  <bruno@clisp.org>
54917
54918         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
54919         MSVC7 <stdio.h> is included later.
54920
54921 2003-08-22  Simon Josefsson  <jas@extundo.com>
54922
54923         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
54924
54925 2003-08-20  Karl Berry  <karl@gnu.org>
54926
54927         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
54928
54929 2003-08-20  Bruno Haible  <bruno@clisp.org>
54930
54931         * modules/progname: New file.
54932         * MODULES.html.sh (func_all_modules): Add progname.
54933
54934 2003-08-20  Bruno Haible  <bruno@clisp.org>
54935
54936         * lib/progname.h: New file, from GNU gettext.
54937         * lib/progname.c: New file, from GNU gettext.
54938         * lib/progreloc.c: New file, from GNU gettext.
54939
54940 2003-08-19  Jim Meyering  <jim@meyering.net>
54941
54942         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
54943         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
54944
54945 2003-08-19  Bruno Haible  <bruno@clisp.org>
54946
54947         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
54948         more.
54949
54950 2003-08-19  Bruno Haible  <bruno@clisp.org>
54951
54952         * lib/xstrdup.c: Assume <string.h> exists.
54953
54954 2003-08-18  Paul Eggert  <eggert@twinsun.com>
54955
54956         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
54957         in makefile rules.
54958
54959 2003-08-18  Jim Meyering  <jim@meyering.net>
54960
54961         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
54962         * m4/lib-ld.m4: Likewise.
54963
54964 2003-08-18  Jim Meyering  <jim@meyering.net>
54965
54966         * lib/setenv.h: Indent nested cpp directive.
54967         * lib/vasnprintf.c: Remove trailing blanks.
54968
54969 2003-08-17  Simon Josefsson  <jas@extundo.com>
54970
54971         * modules/xstrndup: New file.
54972         * MODULES.html.sh (func_all_modules): Add xstrndup.
54973
54974 2003-08-17  Simon Josefsson  <jas@extundo.com>
54975
54976         * modules/argp: Fix autoconf macro name. Add more dependencies.
54977
54978 2003-08-17  Simon Josefsson  <jas@extundo.com>
54979
54980         * m4/xstrndup.m4: New file.
54981
54982 2003-08-17  Simon Josefsson  <jas@extundo.com>
54983
54984         * m4/argp.m4: New file.
54985
54986 2003-08-17  Simon Josefsson  <jas@extundo.com>
54987             Bruno Haible  <bruno@clisp.org>
54988
54989         * lib/xstrndup.h: New file.
54990         * lib/xstrndup.c: New file.
54991
54992 2003-08-17  Bruno Haible  <bruno@clisp.org>
54993
54994         * modules/strndup (Files, Include): Add lib/strndup.h.
54995
54996 2003-08-17  Bruno Haible  <bruno@clisp.org>
54997
54998         * modules/euidaccess (Files): Add lib/euidaccess.h.
54999
55000 2003-08-17  Bruno Haible  <bruno@clisp.org>
55001
55002         * lib/strndup.h: New file.
55003
55004 2003-08-17  Bruno Haible  <bruno@clisp.org>
55005
55006         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
55007         like AC_GNU_SOURCE.
55008         * modules/extensions (configure.ac): Comment out the invocation of
55009         gl_USE_SYSTEM_EXTENSIONS.
55010
55011 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55012
55013         Merges from coreutils, etc.
55014         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
55015         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
55016         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
55017         fixing a typo.
55018         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
55019         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
55020
55021 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55022
55023         Document merge from coreutils.
55024         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
55025         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
55026         * modules/utime: Add m4/utimes-null.m4.
55027
55028 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55029
55030         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
55031         space, undoing this 2003-08-12 change:
55032         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55033
55034 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55035
55036         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
55037         strtoul.c from libc, undoing this 2003-08-12 change:
55038         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55039
55040 2003-08-16  Jim Meyering  <jim@meyering.net>
55041
55042         Merges from coreutils.
55043         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
55044         prefix.  Adjust cache variables similarly.  Create 500 rather than
55045         just 300 files, to exercise bug on Darwin6.5, too.
55046         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
55047         $missing_dir.
55048         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
55049         AM_SYS_POSIX_TERMIOS.
55050         Reported by mkc@mathdogs.com.
55051         Also change use of $am_cv_sys_posix_termios
55052         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
55053         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
55054         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
55055         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
55056         in /proc/mounts until it finds one with matching device number.  This
55057         is unnecessary when the FILE argument *is* a mount point.  No stat call
55058         is necessary in that case.  So, disable the statvfs-testing code on
55059         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
55060         as RedHat bug# 84846.
55061         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55062         to 1MB, so as not to render systems with no stack size limit (e.g.,
55063         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55064         Include <unistd.h>.  On some systems,
55065         it is required for the definition of _SC_PAGESIZE.
55066
55067 2003-08-16  Jim Meyering  <jim@meyering.net>
55068
55069         Merge from coreutils.
55070         * lib/xstrtoimax.c: #else #if -> #elif.
55071         * lib/xstrtoumax.c: Likewise.
55072
55073 2003-08-16  Jim Meyering  <jim@meyering.net>
55074
55075         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
55076         * m4/utimes.m4: Removed.
55077         * m4/utimes-null.m4: Renamed from utimes.m4.
55078
55079         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55080         to 1MB, so as not to render systems with no stack size limit (e.g.,
55081         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55082         Include <unistd.h>.  On some systems,
55083         it is required for the definition of _SC_PAGESIZE.
55084
55085 2003-08-16  Jim Meyering  <jim@meyering.net>
55086         and Paul Eggert  <eggert@cs.ucla.edu>
55087
55088         Merges from coreutils, etc.
55089
55090         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
55091         using the latest version from cvs.  This avoids problems with #line
55092         directives using a vendor (Sun) compiler.
55093         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
55094         Don't set GETGROUPS_LIB here; now it's
55095         done via getgroups.m4's wrapper function.
55096         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
55097         rather than just in sh-util/configure.in, so that the
55098         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
55099         same.
55100         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
55101         AC_FUNC_GETLOADAVG where to find getloadavg.c.
55102         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
55103         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
55104         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
55105         Remove code that is now done by the newly-required macros.
55106         Append $(EXEEXT) to DF_PROG.
55107         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
55108         Do not invoke or require the following here,
55109         since prereq.m4 or some gnulib .m4 now does this for us:
55110         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
55111         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
55112         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
55113         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
55114         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
55115         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
55116         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
55117         AC_FUNC_OBSTACK.
55118         Do not replace the following functions, as this is now the job
55119         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
55120         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
55121         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
55122         atexit getpass, strdup, getpagesize.
55123         Replace 'raise'.
55124         Do not check for the following functions, as this is now the job
55125         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
55126         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
55127         setregid.
55128         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
55129         Check for sys/sysctl.h.
55130         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
55131         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
55132         of checking for ssize_t ourselves.
55133
55134         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
55135         Require every macro that gnulib/modules/* suggests for us.
55136         (jm_PREREQ_ADDEXT): New macro.
55137         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
55138         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
55139
55140         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
55141         (gl_PHYSMEM): Use it.
55142         Also check for `table' function.
55143         Check for new headers and functions.
55144         Add check for sys/sysmp.h.
55145         With suggestions from Kaveh Ghazi.
55146         Ignore headers that are present but cannot be compiled.  This
55147         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
55148         C 5.4.
55149
55150 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55151
55152         Document merge from coreutils.
55153         * modules/userspec: Depend on posixver.
55154         * modules/strftime: Depend on tzset.
55155
55156 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55157
55158         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
55159         rather than tab, after '#' in shell-script copyright notices.
55160         Suggested by Bruno Haible.
55161
55162 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55163
55164         * config/srclist-update: Use three spaces, rather than tab, after '#'
55165         in shell-script copyright notices.  Suggested by Bruno Haible.
55166         Remove unnecessary parenthesization in regular expression.
55167
55168 2003-08-15  Jim Meyering  <jim@meyering.net>
55169
55170         Merge from coreutils.
55171         * lib/xgethostname.c: Include <stdlib.h>.
55172         (xghostname): Don't exit for anything other than memory-related
55173         failure; just return NULL.
55174         * lib/userspec.c: Include "posixver.h".
55175         (parse_user_spec): Accept `.' as a separator only
55176         in pre-POSIX-200112 mode.
55177         * lib/strtoimax.c: Use #elif rather than #else #if.
55178         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
55179         Remove function, now that we can rely on a working tzset function.
55180         [!_LIBC]: Ensure that the required autoconf test has been run.
55181         [!defined _NL_CURRENT && HAVE_STRFTIME]:
55182         Use underlying_strftime for %r.
55183         * lib/sha.c: Merge in some clean-up and optimization changes from
55184         glibc.
55185         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
55186         Ensure that it is a multiple of 64.
55187         Rearrange loop exit tests so as to avoid performing an
55188         additional fread after encountering an error or EOF.
55189         * lib/realloc.c: Update copyright date.
55190
55191 2003-08-15  Jim Meyering  <jim@meyering.net>
55192         and Paul Eggert  <eggert@twinsun.com>
55193
55194         Merge from coreutils.
55195         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
55196         member but strut utmpx does not.  Needed for AIX 4.3.3.
55197         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
55198
55199 2003-08-15  Jim Meyering  <jim@meyering.net>
55200         and Paul Eggert  <eggert@cs.ucla.edu>
55201
55202         Merges from coreutils, etc.
55203         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
55204         Require gl_FUNC_TZSET_CLOBBER.
55205         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
55206         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
55207         members.
55208
55209 2003-08-14  Paul Eggert  <eggert@twinsun.com>
55210
55211         Help the merge from coreutils.
55212         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
55213         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
55214         * m4/tzset.m4: Use it too.
55215
55216 2003-08-14  Paul Eggert  <eggert@twinsun.com>
55217
55218         * modules/tzset: New file.
55219
55220 2003-08-14  Jim Meyering  <jim@meyering.net>
55221
55222         Merges from coreutils.
55223         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
55224         variable names, rather than @FNMATCH_H@.
55225         * modules/alloca: Likewise for $(ALLOCA_H).
55226
55227         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
55228         the three copies of the literal target, `fnmatch.h'.
55229         * modules/alloca (alloca.h): Likewise.
55230
55231 2003-08-14  Jim Meyering  <jim@meyering.net>
55232
55233         Merge from coreutils.
55234         * m4/tzset.m4: New file.
55235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
55236         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
55237         otherwise, AIX 5.1 systems would end up using the latter.
55238         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
55239         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
55240         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
55241         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
55242
55243 2003-08-14  Jim Meyering  <jim@meyering.net>
55244
55245         Merge from coreutils.
55246         * lib/obstack.h: Whitespace changes.
55247         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
55248         and xcalloc return values.
55249         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
55250         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
55251         hang on OSF/1 5.1 for DIR on both local and remote file systems.
55252         Reported by (and fix confirmed by) Nelson H. F. Beebe.
55253         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55254         error from mntctl.
55255         Use mntctl's return value to drive the entry-processing loop, since
55256         we can't rely on the value of the vmt_length member in the last
55257         entry.  On some systems doing so could result in exhausting
55258         virtual memory.  Based in part on a patch from Mike Jetzer.
55259
55260 2003-08-14  Jim Meyering  <jim@meyering.net>
55261         and Paul Eggert  <eggert@twinsun.com>
55262
55263         Merges from coreutils, plus other fixes.
55264         * lib/physmem.c: Merge in portability changes from gcc/libiberty
55265         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
55266         for credits and details.  Thanks to Kaveh Ghazi for helping
55267         to keep these files in sync.
55268         (ARRAY_SIZE): Define it.
55269         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
55270         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
55271         (memcasecmp): Don't assume size_t fits in unsigned int.
55272         Remove casts and duplicate code.
55273         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
55274         (memcpy): Remove definition.
55275         Merge in some clean-up and optimization changes from glibc.
55276         [BLOCKSIZE]: Move definition to top of file.
55277         Ensure that it is a multiple of 64.
55278         Rearrange loop exit tests so as to avoid performing an
55279         additional fread after encountering an error or EOF.
55280         * lib/md5.h (md5_uintptr): Define.
55281         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
55282         return to the initial working directory.  Preserve errno
55283         for caller.
55284         * lib/idcache.c: Include "xalloc.h".
55285         (xmalloc, xrealloc): Remove decls.
55286         (getuser): Remove casts no longer required in C89.
55287         * lib/human.c: Include stdio.h, for sprintf.
55288         * lib/group-member.c: Include "xalloc.h".
55289         (xmalloc, xrealloc): Remove decls.
55290         (get_group_info): Remove casts no longer required in C89.
55291         * lib/getusershell.c (readname): Remove casts no longer required in
55292         C89.
55293         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
55294         * lib/getline.c: Whitespace fix, from coreutils.
55295
55296 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55297
55298         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
55299         Check for isascii.
55300
55301         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
55302         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
55303         Undo previous (whitespace-only) change.
55304
55305 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55306
55307         * lib/exclude.c: Include <ctype.h>
55308         (IN_CTYPE_DOMAIN): New macro.
55309         (is_space): New fn.
55310         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
55311         and empty lines.
55312
55313         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
55314         Undo previous (whitespace-only) change.
55315
55316 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55317
55318         * config/srclist-update: Change update back to the old behavior,
55319         leaving whitespace alone.  Use one 'sed' command rather than a
55320         pipeline.
55321         (fixlicense): Now a variable, not a function.
55322         (remove_trailing_blanks): Remove.
55323         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
55324         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
55325         Undo previous (whitespace-only) change.
55326
55327 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55328
55329         Merge from coreutils.
55330         * modules/euidaccess: Add lib_SOURCES, include for new
55331         file euidaccess.h
55332
55333 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55334
55335         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
55336         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
55337         Normalize leading white space and remove trailing white space.
55338
55339         Merge from coreutils
55340         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
55341
55342         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
55343         0.12.1.  These files are now being upgraded automatically by
55344         ../config/srclist-update.
55345
55346 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55347
55348         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
55349         Normalize leading white space and remove trailing white space.
55350         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
55351         notice, as per ../config/srclist-update.
55352
55353         Merge from coreutils.
55354         * lib/euidaccess.h: New file.
55355         * lib/euidaccess.c: Include it.
55356         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
55357         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
55358         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
55359
55360 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55361
55362         * config/srclist-update: Add copyright notice.
55363         (remove_id_lines, remove_trailing_blanks): New constants.
55364         (fixfile): Use them to normalize spacing a bit in copied files.
55365         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
55366         Normalize leading white space and remove trailing white space.
55367
55368         * config/texinfo.tex: Sync with texinfo.
55369
55370         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
55371         strtoul.c from libc, to merge coreutils whitespace changes.
55372
55373         * config/srclist.txt: Get the following m4 files from gettext:
55374         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
55375         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
55376         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
55377         wint_t.m4.
55378
55379 2003-08-12  Karl Berry  <karl@gnu.org>
55380
55381         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
55382         been made.
55383
55384 2003-08-11  Paul Eggert  <eggert@twinsun.com>
55385
55386         * modules/gnu-source, m4/gnu-source.m4:
55387         Remove; we're assuming Autoconf 2.54 or later now.
55388         Suggested by Bruno Haible.
55389         * MODULES.html.sh (func_all_modules): Remove gnu-source.
55390
55391 2003-08-11  Bruno Haible  <bruno@clisp.org>
55392
55393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
55394
55395 2003-08-11  Bruno Haible  <bruno@clisp.org>
55396
55397         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
55398         (vasnprintf): Use it instead of wcslen.
55399
55400 2003-08-11  Bruno Haible  <bruno@clisp.org>
55401
55402         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
55403         value to ensure that _Bool promotes to int. Use #define for _Bool when
55404         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
55405
55406 2003-08-10  Karl Berry  <karl@gnu.org>
55407
55408         * lib/regex.h: update from libc (whitespace fix).
55409
55410 2003-08-09  Paul Eggert  <eggert@twinsun.com>
55411
55412         Merge some files from coreutils.  These changes were
55413         originally made by Jim Meyering.
55414         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
55415         many older Unixes require this.
55416         * lib/alloca.c (alloca): Remove cast to argument of free;
55417         no longer needed in C89.
55418         * lib/alloca_.h, regex.h: Fix white space to match
55419         what GNU indent does.
55420
55421 2003-08-09  Paul Eggert  <eggert@twinsun.com>
55422
55423         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
55424         apparently Emacs's Unicode mode got confused before my 2003-08-05
55425         checkin.
55426
55427 2003-08-08  Paul Eggert  <eggert@twinsun.com>
55428
55429         * m4/extensions.m4: New file.
55430         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
55431         Require gl_USE_SYSTEM_EXTENSIONS.
55432         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
55433         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
55434
55435 2003-08-08  Paul Eggert  <eggert@twinsun.com>
55436
55437         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
55438         * modules/extensions, modules/gnu-source: New files.
55439         * modules/timespec, modules/unlocked-io: Depend on extensions.
55440
55441 2003-08-07  Paul Eggert  <eggert@twinsun.com>
55442
55443         * modules/restrict: New file.
55444         * MODULES.html.sh (func_all_modules): Add restrict.
55445         * modules/regex: Depend on restrict.
55446
55447 2003-08-07  Paul Eggert  <eggert@twinsun.com>
55448
55449         * m4/restrict.m4: New file.
55450         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
55451
55452 2003-08-07  Bruno Haible  <bruno@clisp.org>
55453
55454         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
55455         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
55456
55457 2003-08-07  Bruno Haible  <bruno@clisp.org>
55458
55459         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
55460         makes the module 'getndelim2' compatible with the module 'getline'.
55461
55462 2003-08-05  Paul Eggert  <eggert@twinsun.com>
55463
55464         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
55465         byte with "\201" to avoid glitches when editing that source file
55466         with multi-gnome-terminal.
55467
55468 2003-08-05  Paul Eggert  <eggert@twinsun.com>
55469
55470         * lib/bumpalloc.h: Remove.
55471
55472 2003-08-05  Paul Eggert  <eggert@twinsun.com>
55473
55474         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
55475         * modules/bumpalloc: Remove.
55476
55477 2003-08-04  Paul Eggert  <eggert@twinsun.com>
55478
55479         * lib/getloadavg.c: Change copyright notice and spacing to conform to
55480         GNU coding style.
55481
55482         Merge from coreutils.
55483         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
55484         1. From glibc.
55485         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
55486         from Karl Berry, implemented by Jim Meyering.
55487         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
55488         from Dmitry V. Levin.
55489         Remove anachronistic cast of xrealloc.
55490         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
55491         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
55492         type. Otherwise, it wouldn't compile with at least /bin/cc on
55493         ymp-cray-unicos9.0.2.X.
55494         Combine two mostly-identical uses of alloca into one.
55495         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
55496
55497 2003-08-04  Dave Love  <d.love@dl.ac.uk>
55498
55499         [From Emacs.]
55500
55501         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
55502         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
55503         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
55504         obsolete NLIST_NAME_UNION.
55505         [__GNU__]: Undef BSD and FSCALE.
55506         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
55507
55508 2003-08-03  Paul Eggert  <eggert@twinsun.com>
55509
55510         * lib/stdbool_.h (_Bool): Make it signed char, instead of
55511         an enum type, so that it's guaranteed to promote to int.  See:
55512         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
55513
55514 2003-08-03  Karl Berry  <karl@gnu.org>
55515
55516         * config/depcomp: update from automake.
55517
55518 2003-07-31  Paul Eggert  <eggert@twinsun.com>
55519
55520         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
55521         (strerror): Don't assume that a printable int fits in 14 bytes.
55522
55523 2003-07-31  Bruno Haible  <bruno@clisp.org>
55524
55525         * modules/getpass-gnu: New file.
55526         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
55527
55528 2003-07-31  Bruno Haible  <bruno@clisp.org>
55529
55530         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
55531
55532 2003-07-24  Karl Berry  <karl@gnu.org>
55533
55534         * config/missing: update from automake.
55535
55536 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
55537             Bruno Haible  <bruno@clisp.org>
55538
55539         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
55540         * lib/getline.c (getline, getdelim): Likewise.
55541         Remove _GNU_SOURCE define; now it's defined in config.h through
55542         m4/getline.m4.
55543
55544 2003-07-23  Karl Berry  <karl@gnu.org>
55545
55546         * config/config.sub: update from prep.
55547
55548 2003-07-22  Paul Eggert  <eggert@twinsun.com>
55549
55550         * modules/xalloc (Depends-on): Add exitfail.
55551         * modules/xmemcoll: Likewise.
55552
55553 2003-07-22  Paul Eggert  <eggert@twinsun.com>
55554
55555         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
55556         over-parenthesization in macros.
55557
55558         Sync with coreutils.
55559
55560         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
55561         required by C99.
55562
55563         Use `exit_failure' for xalloc and xmemcoll instead of their own
55564         private exit-failure variables.
55565         * lib/xalloc.h (xalloc_exit_failure): Remove.
55566         * lib/xmalloc.c: Likewise.  Include exitfail.h.
55567         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
55568         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
55569         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
55570         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
55571
55572 2003-07-20  Jim Meyering  <jim@meyering.net>
55573
55574         * modules/closeout (Depends-on): Add exitfail.
55575         Suggestion from Bruno Haible.
55576
55577 2003-07-19  Karl Berry  <karl@gnu.org>
55578
55579         * config/config.sub: update from prep.
55580
55581 2003-07-18  Paul Eggert  <eggert@twinsun.com>
55582
55583         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
55584         Remove.
55585         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
55586         to test that it can stand by itself.  Include "exitfail.h".
55587         Clients should set exit_failure instead.
55588         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
55589
55590 2003-07-18  Bruno Haible  <bruno@clisp.org>
55591
55592         * modules/getndelim2: New file.
55593         * modules/getline: Share files with module getndelim2.
55594         * modules/getnline: Depend on getndelim2 instead of sharing files with
55595         it. Add getnline.c to lib_SOURCES.
55596         * MODULES.html.sh (func_all_modules): Add getndelim2.
55597
55598 2003-07-18  Bruno Haible  <bruno@clisp.org>
55599
55600         * m4/getndelim2.m4: New file.
55601         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
55602         invoke gl_PREREQ_GETNDELIM2.
55603         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
55604         gl_PREREQ_GETNDELIM2.
55605         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
55606         gl_GETNDELIM2.
55607
55608 2003-07-18  Bruno Haible  <bruno@clisp.org>
55609
55610         * lib/getndelim2.h: New file.
55611         * lib/getndelim2.c: Make into a module of its own. Include config.h,
55612         getndelim2.h.
55613         (getndelim2): Make non-static. Change return type to ssize_t.
55614         * lib/getline.h: Change argument names.
55615         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
55616         * lib/getnline.c: Include getndelim2.h.
55617
55618 2003-07-18  Andreas Schwab  <schwab@suse.de>
55619
55620         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
55621
55622 2003-07-17  Karl Berry  <karl@gnu.org>
55623
55624         * config/config.sub: update from prep.
55625
55626 2003-07-17  Bruno Haible  <bruno@clisp.org>
55627
55628         * modules/getnline: New file.
55629         * modules/getline: Add lib/getndelim2.c to source file list.
55630         * MODULES.html.sh (func_all_modules): Add getnline.
55631
55632 2003-07-17  Bruno Haible  <bruno@clisp.org>
55633
55634         * m4/getnline.m4: New file.
55635
55636 2003-07-17  Bruno Haible  <bruno@clisp.org>
55637
55638         * m4/Makefile.am.in: Remove file.
55639         * m4/Makefile.am: Remove file.
55640         * m4/Makefile.in: Remove file.
55641
55642 2003-07-17  Bruno Haible  <bruno@clisp.org>
55643
55644         * lib/getnline.h: New file.
55645         * lib/getnline.c: New file.
55646         * lib/getndelim2.c: New file, extracted from getline.c.
55647         (getndelim2): Renamed from getdelim2, with added nmax argument.
55648         * lib/getline.c: Include getndelim2.c.
55649         (getdelim2): Moved out to getndelim2.c.
55650         (getline, getdelim): Update.
55651
55652 2003-07-17  Bruno Haible  <bruno@clisp.org>
55653
55654         * lib/Makefile.am: Remove file.
55655         * lib/Makefile.in: Remove file.
55656
55657 2003-07-17  Bruno Haible  <bruno@clisp.org>
55658
55659         * configure.in: Remove file.
55660         * Makefile.in: Remove file.
55661
55662 2003-07-17  Bruno Haible  <bruno@clisp.org>
55663
55664         * MODULES.html.sh: Put the </BODY> right before </HTML>.
55665
55666 2003-07-16  Karl Berry  <karl@gnu.org>
55667
55668         * config/srclist-update: was running fixlicense twice, which caused
55669                 texinfo.tex to be nullified for some reason.  Simplify,
55670                 $gplsrc is no longer needed as far as I can see?
55671
55672 2003-07-16  Jim Meyering  <jim@meyering.net>
55673
55674         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
55675
55676 2003-07-15  Paul Eggert  <eggert@twinsun.com>
55677
55678         * config/srclist.txt: Get the following files from gettext-runtime/intl
55679         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
55680         ref-del.sin.  From Bruno Haible.
55681         * config/srclist-update (fixfile): Change grep pattern again, since the
55682         previous fix didn't work (there was another trailing $).  Use
55683         '[$]' to escape the $s.
55684
55685 2003-07-15  Karl Berry  <karl@gnu.org>
55686
55687         * lib/vasnprintf.c: update from gettext.
55688
55689 2003-07-15  Karl Berry  <karl@gnu.org>
55690
55691         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
55692         gets expanded when surrounded by '$'.
55693
55694 2003-07-15  Jim Meyering  <jim@meyering.net>
55695
55696         * modules/save-cwd: Don't depend on error.  From Derek Price.
55697
55698 2003-07-15  Jim Meyering  <jim@meyering.net>
55699
55700         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
55701
55702 2003-07-14  Simon Josefsson  <jas@extundo.com>
55703
55704         * modules/mempcpy: New file.
55705         * MODULES.html.sh (func_all_modules): Add mempcpy.
55706
55707 2003-07-14  Simon Josefsson  <jas@extundo.com>
55708
55709         * m4/mempcpy.m4: New file.
55710
55711 2003-07-14  Simon Josefsson  <jas@extundo.com>
55712
55713         * lib/mempcpy.h: New file.
55714         * lib/mempcpy.c: New file.
55715
55716 2003-07-14  Paul Eggert  <eggert@twinsun.com>
55717
55718         * modules/getdate, modules/posixtm: Depend on mktime.
55719
55720 2003-07-14  Paul Eggert  <eggert@twinsun.com>
55721
55722         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
55723         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
55724         unicodeio.c, unicodeio.h, unlocked-io.h:
55725         Switch from LGPL to GPL.
55726
55727 2003-07-14  Paul Eggert  <eggert@twinsun.com>
55728
55729         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
55730         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
55731         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
55732         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
55733         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
55734         updated automatically by ../config/srclist-update.  This changes
55735         their license from LPGL to GPL.
55736
55737 2003-07-14  Paul Eggert  <eggert@twinsun.com>
55738
55739         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
55740         assumed to refer to the root of the most recent stable gettext version.
55741         * config/srclistvars.sh: Add defaults for eggert.
55742         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
55743         Match "This program" as well as "The program".  This is needed
55744         for gettext.
55745
55746 2003-07-14  Jim Meyering  <jim@meyering.net>
55747
55748         Don't emit diagnostics.  Let callers do that.
55749         * lib/save-cwd.c: Don't include "error.h".
55750         (save_cwd): Don't call error.  Ensure that errno is valid
55751         when returning nonzero.
55752
55753         * lib/save-cwd.h (restore_cwd): Update prototype.
55754         * lib/save-cwd.c (restore_cwd): Remove two parameters.
55755         Simplify.  Don't call error upon failure.  Let callers do that.
55756         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
55757         when auditing is enabled.  But don't bother updating the #if.
55758
55759 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
55760
55761         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
55762         it breaks C++ compilation.
55763         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
55764
55765 2003-07-10  Simon Josefsson  <jas@extundo.com>
55766
55767         * modules/strchrnul (Makefile.am): Add strchrnul.h.
55768
55769 2003-07-10  Jim Meyering  <jim@meyering.net>
55770
55771         * m4/clock_time.m4: Remove trailing blank.
55772         * m4/intmax_t.m4: Likewise.
55773
55774 2003-07-10  Jim Meyering  <jim@meyering.net>
55775
55776         * lib/vasnprintf.c: Remove trailing blanks.
55777         Make cpp indentation consistent.
55778
55779 2003-07-09  Paul Eggert  <eggert@twinsun.com>
55780
55781         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
55782         posixver.c, strftime.c, strnlen.c, strverscmp.c:
55783         Switch from LGPL to GPL.
55784
55785 2003-07-09  Paul Eggert  <eggert@twinsun.com>
55786
55787         * config/srclist.txt: Sort sublists.  Add
55788         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
55789         that differ from gnulib for one reason or another; we'd like this list
55790         to be smaller but for now let's document what we have.
55791
55792 2003-07-08  Paul Eggert  <eggert@twinsun.com>
55793
55794         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
55795         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
55796         and sweeter "eval x=$x".
55797         * config/srclist.txt: Get lib/argp* from glibc.
55798
55799 2003-07-07  Paul Eggert  <eggert@twinsun.com>
55800
55801         * lib/mktime.c: Fix some boundary cases and remove need for floating
55802         point.
55803
55804         Issue a compile-time diagnostic if time_t is floating point, or if
55805         two's complement arithmetic is not in effect, or if arithmetic
55806         right shift does not propagate the sign.  These assumptions were
55807         all in the original code but they weren't checked.
55808
55809         (TIME_T_MIDPOINT, verify): New macros.
55810         (__isleap): Remove; it has integer overflow problems.
55811         (leapyear): New function, without those problems.
55812         (ydhms_tm_diff): Remove; splitting into two parts.
55813         (ydhms_diff): New function, containing the arithmetic part of
55814         the old ydhms_tm_diff function.  Issue a compile-time
55815         diagnostic if we are not using C99 integer division.
55816         Avoid casts when possible.
55817         (guess_time_tm): New function, containing the checking part of
55818         the old ydhms_tm_diff function.  Return the new value, rather than
55819         the difference between it and the old.  Accept a new argument T
55820         so that *T specifies the old value.  Check for overflow in the result.
55821
55822         (__mktime_internal): Use a time_t offset, not a long int offset.
55823         This undoes the 2003-06-04 change, which is no longer needed now
55824         that we have better overflow checking.
55825         (localtime_offset): Likewise.
55826
55827         (__mktime_internal): Avoid harmful overflow on hosts where time_t
55828         and long are 64-bit but int is only 32-bit.
55829         (ydhms_diff): Use long int to store year1 and yday1.
55830         Issue a compile-time diagnostic if long int is not wide enough.
55831
55832         (__mktime_internal): Use long int to store adjusted year and yday.
55833         Use plain C rather than preprocessor commands, if that doesn't
55834         affect efficiency.
55835         Check for overflow (and try to repair) after each probe
55836         rather than checking only at the very end.  This avoids some bugs
55837         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
55838         does not equal GMT offset at maximum time).
55839         Use integer to check for overflow rather than floating point; this
55840         is more portable to non-IEEE hosts, and is a tad faster.
55841         When we detect that we are oscillating between two values,
55842         don't check whether tm_isdst has the requested value, since
55843         we already know the answer.  When tm_isdst has the wrong value,
55844         use a different heuristic to find the right one, based on the
55845         extreme values actually observed in practice in tz2003a,
55846         rather than the (overly optimistic) "previous 3 calendar quarters".
55847
55848         (not_equal_tm, print_tm, check_result): Use "const T" rather than
55849         "T const" to accommodate glibc style.
55850         (check_result): Use less-confusing report format.  "long" -> "long int.
55851         (main): Likewise.
55852         Don't loop if the iteration overflows time_t.
55853         Allow a negative step in the iteration.
55854
55855 2003-07-06  Karl Berry  <karl@gnu.org>
55856
55857         * config/depcomp: update from automake.
55858         * config/config.sub: update from prep.
55859
55860 2003-07-03  Karl Berry  <karl@gnu.org>
55861
55862         * config/config.guess: update from prep.
55863
55864 2003-07-01  Paul Eggert  <eggert@twinsun.com>
55865
55866         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
55867         xreadlink.c now includes it unconditionally.
55868
55869 2003-07-01  Paul Eggert  <eggert@twinsun.com>
55870
55871         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
55872         having it depend on HAVE_SYS_TYPES_H.
55873
55874 2003-07-01  Bruno Haible  <bruno@clisp.org>
55875
55876         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
55877         <sys/types.h> should be sufficient.
55878         Reported by Paul Eggert.
55879
55880 2003-06-26  Karl Berry  <karl@gnu.org>
55881
55882         * config/depcomp: update from automake.
55883
55884 2003-06-26  Bruno Haible  <bruno@clisp.org>
55885
55886         * modules/human: Depend on module stdbool.
55887
55888 2003-06-25  Bruno Haible  <bruno@clisp.org>
55889
55890         * modules/readlink: New file.
55891         * modules/xreadlink: Depend on it.
55892         * MODULES.html.sh (func_all_modules): Add readlink.
55893
55894 2003-06-25  Bruno Haible  <bruno@clisp.org>
55895
55896         * m4/readlink.m4: New file.
55897
55898 2003-06-25  Bruno Haible  <bruno@clisp.org>
55899
55900         * lib/readlink.c: New file.
55901
55902 2003-06-22  Karl Berry  <karl@gnu.org>
55903
55904         * config/srclist.txt: update mkinstalldirs from automake.
55905         * config/mkinstalldirs: update.
55906
55907 2003-06-22  Bruno Haible  <bruno@clisp.org>
55908
55909         Portability to mingw32.
55910         * m4/ssize_t.m4: New file, from GNU gettext.
55911         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
55912         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
55913
55914 2003-06-22  Bruno Haible  <bruno@clisp.org>
55915
55916         * modules/safe-read: Add m4/ssize_t.m4.
55917         * modules/xreadlink: Add m4/ssize_t.m4.
55918
55919 2003-06-20  Bruno Haible  <bruno@clisp.org>
55920
55921         Assume C89, so PARAMS isn't needed.
55922         * lib/unicodeio.h (PARAMS): Remove.
55923         * lib/unicodeio.c: Don't use PARAMS.
55924
55925 2003-06-18  Karl Berry  <karl@gnu.org>
55926
55927         * config/config.{guess,sub}: update from prep.
55928
55929 2003-06-18  Jim Meyering  <jim@meyering.net>
55930
55931         Merge changes from coreutils.
55932         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
55933         Remove explicit declarations of xmalloc and realloc.
55934         Include xalloc.h.
55935         (read_utmp): Remove anachronistic cast of xmalloc.
55936
55937 2003-06-17  Paul Eggert  <eggert@twinsun.com>
55938
55939         Assume C89, so PARAMS isn't needed.
55940         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
55941         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
55942         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
55943         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
55944         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
55945         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
55946         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
55947         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
55948         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
55949         lib/xstrtod.h, lib/xstrtol.h: Likewise.
55950         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
55951         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
55952         no longer needed. Anyway, config.h should always be included before any
55953         other file.
55954
55955 2003-06-11  Simon Josefsson  <jas@extundo.com>
55956
55957         * modules/sysexits: New file.
55958         * MODULES.html.sh (func_all_modules): Add sysexits.
55959
55960 2003-06-11  Simon Josefsson  <jas@extundo.com>
55961
55962         * lib/sysexit_.h: New file.
55963
55964 2003-06-11  Derek Price  <derek@ximbiot.com>
55965
55966         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
55967         necessary.
55968
55969 2003-06-11  Bruno Haible  <bruno@clisp.org>
55970
55971         * m4/sysexits.m4: New file.
55972
55973 2003-06-10  Simon Josefsson  <jas@extundo.com>
55974
55975         * lib/argp.h: New file, from glibc.
55976         * lib/argp-ba.c: New file, from glibc.
55977         * lib/argp-eexst.c: New file, from glibc.
55978         * lib/argp-fmtstream.c: New file, from glibc.
55979         * lib/argp-fmtstream.h: New file, from glibc.
55980         * lib/argp-fs-xinl.c: New file, from glibc.
55981         * lib/argp-help.c: New file, from glibc.
55982         * lib/argp-namefrob.h: New file, from glibc.
55983         * lib/argp-parse.c: New file, from glibc.
55984         * lib/argp-pv.c: New file, from glibc.
55985         * lib/argp-pvh.c: New file, from glibc.
55986         * lib/argp-xinl.c: New file, from glibc.
55987
55988 2003-06-10  Simon Josefsson  <jas@extundo.com>
55989
55990         * modules/strchrnul: New file.
55991
55992 2003-06-10  Simon Josefsson  <jas@extundo.com>
55993
55994         * modules/argp: New file.
55995
55996 2003-06-10  Simon Josefsson  <jas@extundo.com>
55997
55998         * m4/strchrnul.m4: New file.
55999
56000 2003-06-10  Simon Josefsson  <jas@extundo.com>
56001
56002         * lib/strchrnul.h: New file.
56003         * lib/strchrnul.c: New file.
56004
56005 2003-06-10  Bruno Haible  <bruno@clisp.org>
56006
56007         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
56008
56009 2003-06-07  Karl Berry  <karl@gnu.org>
56010
56011         * config/config.{guess,sub}: update from prep.
56012
56013 2003-06-07  Jim Meyering  <jim@meyering.net>
56014
56015         * modules/strtod: Use $(...) notation, not @...@ for
56016         AC_REPLACE'd variables.
56017         * modules/localcharset: Likewise.
56018
56019 2003-06-07  Jim Meyering  <jim@meyering.net>
56020
56021         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
56022         in place of my name in the copyright comment.
56023         Remove definition and uses of __P.
56024
56025         From coreutils.
56026         * lib/stat.c: Don't declare xmalloc explicitly.
56027         Instead, include "xalloc.h".
56028         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
56029         xrealloc, and xcalloc return values.
56030         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
56031         Improve comment.
56032         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
56033
56034 2003-06-07  Bruno Haible  <bruno@clisp.org>
56035
56036         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
56037         avoid AC_CONFIG_LINKS.
56038         * modules/fnmatch (Makefile.am): Use explicit creation rule for
56039         fnmatch.h, to avoid AC_CONFIG_LINKS.
56040         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
56041
56042 2003-06-07  Bruno Haible  <bruno@clisp.org>
56043
56044         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
56045         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
56046         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56047         directory.
56048         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
56049         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56050         directory.
56051
56052 2003-06-06  Jim Meyering  <jim@meyering.net>
56053
56054         Merge from coreutils.
56055         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
56056         Consolidate declarations and initializations of *_base* locals.
56057
56058         Merge from coreutils.
56059         This avoids a core dump on systems without GNU putenv,
56060         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
56061         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
56062         (unsetenv): New static function, from GNU libc.
56063         (rpl_putenv): Use it.
56064
56065         * lib/modechange.c: Remove trailing blanks.
56066
56067         Merge from coreutils.
56068         * lib/fsusage.c: Remove declaration of statfs.
56069         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
56070
56071         * lib/posixtm.c: Include <stdbool.h> unconditionally.
56072
56073 2003-06-06  Jim Meyering  <jim@meyering.net>
56074
56075         * lib/stdbool_.h: Renamed from stdbool.h.in.
56076
56077 2003-06-06  Jim Meyering  <jim@meyering.net>
56078             Bruno Haible  <bruno@clisp.org>
56079
56080         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
56081         Adjust Makefile.am snippet not to redirect directly to target.
56082         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
56083
56084 2003-06-05  Paul Eggert  <eggert@twinsun.com>
56085
56086         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
56087         mismatch, look in future quarters as well as past.  This fixes a
56088         bug when processing fall-backwards gaps immediately after a long
56089         period of daylight-saving time.
56090
56091         * lib/mktime.c: Assume freestanding C89 or better.
56092         (HAVE_LIMITS_H): Remove.  Assume it's 1.
56093         (__P): Remove; not used.
56094         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
56095         (mktime, not_equal_tm, print_tm, check_result,
56096         main): Use prototypes.  Use const * where appropriate.
56097         (main): Fix typo in testing code that uncovered by above changes.
56098         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
56099
56100 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56101
56102         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
56103         locale.h, localeconv.  This merges changes from coreutils.
56104
56105         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
56106         It can be removed after the next Autoconf is released.
56107         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
56108         needed.
56109
56110 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56111
56112         * lib/mktime.c: Fix Debian bug 177940
56113         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
56114         (localtime_offset): Now long int, not time_t, because we want it
56115         to be guaranteed to be signed.  All uses changed.
56116         (__mktime_internal): If overflow would occur when adding offset,
56117         don't add it.
56118
56119         Merge 'human' changes from coreutils.  Rewrite to support
56120         locale-specific notations like thousands separators.
56121         * lib/human.c: Simplify authorship notice.
56122         Include human.h immediately after config.h.
56123         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
56124         <limits.h>: Do not include, since human.h does.
56125         (SIZE_MAX, UINTMAX_MAX): New macros.
56126         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
56127         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
56128         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
56129         (power_letter): Renamed from suffixes.
56130         (generate_suffix_backwards): Remove.
56131         (adjust_value): Now takes int style (because of human.h changes)
56132         and long double value (for greater precision on some platforms).
56133         (group_number): New function.
56134         (human_readable): Use it.  Use integer options, not enum.
56135         Put the options before the sizes in the arg list.
56136         Support all the new options.
56137         The old human_readable function has been removed;
56138         use inttostr.h instead.
56139         (human_readable, default_block_size, humblock):
56140         Use uintmax_t, not int, for block sizes.
56141         (human_readable_inexact, block_size_types): Remove.
56142         (block_size_opts): New constant.
56143         (human_options): Renamed from human_block_size, with new signature
56144         that allows block sizes up to UINTMAX_MAX.  All callers changed.
56145         * lib/human.h: Add copyright and authorship notice.
56146         Include <limits.h> and <stdbool.h> unconditionally.
56147         (PARAMS): Remove.  All uses removed.
56148         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
56149         (enum human_inexact_style): Remove tag; now a nameless enum.
56150         (human_floor, human_ceiling, human_round_to_even): Now have
56151         values 2, 0, 1 rather than -1, 1, 0.
56152         (human_group_digits, human_suppress_point_zero, human_autoscale,
56153         human_base_1024, human_SI, human_B): New constants.
56154         (human_readable_inexact, human_block_size): Remove.
56155         (human_readable): Size args are now uintmax_t, not int.
56156         (human_options): New decl.
56157
56158         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
56159         unnecessary now that we assume C89 or better.  This change
56160         imported from coreutils.
56161
56162         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56163         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
56164         in the 2003-05-30 sync from glibc.
56165
56166         .h files should stand alone, but we shouldn't include <sys/types.h>
56167         if we can get away with just <stddef.h>.
56168
56169         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
56170         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
56171         rather than <sys/types.h>, as we merely need size_t.
56172         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
56173         to get size_t.
56174         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
56175         Include <stdio.h>, to get FILE.
56176         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
56177         memcasecmp.h has included <stddef.h> and all we need is size_t.
56178         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
56179         our interface, instead of including <sys/types.h>
56180
56181 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56182
56183         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
56184         now, as glibc mktime is buggy on non-glibc systems.
56185
56186 2003-06-03  Karl Berry  <karl@gnu.org>
56187
56188         * config/config.sub: update from prep.
56189
56190 2003-06-02  Paul Eggert  <eggert@twinsun.com>
56191
56192         [from coreutils]
56193         Fix some minor time-related bugs with POSIX time arguments.
56194         Some valid time stamps were being rejected (notably -1, and
56195         time stamps before 1900 on 64-bit hosts).  And some invalid
56196         time stamps were being accepted, e.g. September 31.
56197
56198         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
56199         that we can return (time_t) -1 successfully.
56200         * lib/posixtm.c: Likewise.
56201         [HAVE_STDBOOL_H]: Include <stdbool.h>.
56202         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
56203         (t): Remove static var.
56204         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
56205         of static var.  All uses changed.
56206         (year): Do not reject years before 1900; they can occur with
56207         64-bit time_t.
56208         (posix_time_parse): Do not check for out-of-range components;
56209         that is now the caller's responsibility, since our checks were
56210         only approximations.
56211         (posixtime): Use mktime to check for out-of-range components,
56212         since it knows them exactly.
56213         If mktime returns (time_t) -1, check whether an error actually occurred
56214         by invoking localtime on -1.
56215         (main) [TEST_POSIXTIME]: Check for input data errors, and report
56216         posixtime failures better.
56217         Improve the test data (in comments only).
56218
56219 2003-06-02  Karl Berry  <karl@gnu.org>
56220
56221         * config/mkinstalldirs (version): new variable.
56222         (--version): new option.
56223         (usage): improve message.
56224
56225 2003-05-30  Karl Berry  <karl@gnu.org>
56226
56227         * lib/mktime.c: update from libc.
56228
56229 2003-05-30  Bruno Haible  <bruno@clisp.org>
56230
56231         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
56232         * config/config.rpath: Upgrade to gettext-0.12.1.
56233
56234 2003-05-30  Bruno Haible  <bruno@clisp.org>
56235
56236         * m4/gettext.m4: Upgrade to gettext-0.12.1.
56237         * m4/nls.m4: New file, from gettext-0.12.1.
56238         * m4/po.m4: New file, from gettext-0.12.1.
56239         * m4/progtest.m4: Upgrade to gettext-0.12.1.
56240
56241 2003-05-30  Bruno Haible  <bruno@clisp.org>
56242
56243         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
56244         * lib/localcharset.h: Likewise.
56245         * lib/localcharset.c: Likewise.
56246
56247 2003-05-29  Karl Berry  <karl@gnu.org>
56248
56249         * config/config.rpath: update from gettext.
56250
56251 2003-05-28  Paul Eggert  <eggert@twinsun.com>
56252
56253         Assume the headers required for C89 freestanding compilers.
56254         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
56255         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
56256         * m4/human.m4 (gl_HUMAN): Likewise.
56257         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
56258         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
56259         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56260         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
56261         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56262         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
56263
56264 2003-05-28  Paul Eggert  <eggert@twinsun.com>
56265
56266         Assume the headers required for C89 freestanding compilers.
56267         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
56268         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
56269         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
56270         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
56271         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
56272         define, since <limits.h> is guaranteed to do that.
56273         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
56274         * lib/exclude.c: Include <stdbool.h> unconditionally.
56275         * lib/tempname.c: Include <stddef.h> unconditionally.
56276         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
56277         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
56278         <stddef.h> does that.
56279         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
56280         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
56281         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
56282         needed.
56283         * lib/xstrtol.c: Likewise.
56284         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
56285         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
56286
56287         * lib/addext.c (addext): Use assignment rather than cast, to avoid
56288         warnings on some platforms.
56289
56290         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56291         arbitrarily.
56292
56293 2003-05-26  Jim Meyering  <jim@meyering.net>
56294
56295         Merge in a change from coreutils:
56296         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
56297         that is guaranteed to be `no'.  Use `no_such_member' to indicate
56298         that condition, rather than `-1' which is slightly misleading.
56299         Change the name of the cache variable to have the gl_ prefix.
56300         Prompted by a patch from Richard Dawe for DJGPP.
56301
56302 2003-05-24  Karl Berry  <karl@gnu.org>
56303
56304         * config/config.guess: update from prep.
56305
56306 2003-05-22  Karl Berry  <karl@gnu.org>
56307
56308         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
56309
56310 2003-05-20  Karl Berry  <karl@gnu.org>
56311
56312         * config/config.guess: update from prep.
56313
56314 2003-05-18  Karl Berry  <karl@gnu.org>
56315
56316         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
56317         might actually be set by the user.
56318
56319         * config/depcomp, install-sh, mdate-sh: update from automake.
56320
56321 2003-05-17  Bruno Haible  <bruno@clisp.org>
56322
56323         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
56324         invalid expansion for AC_EGREP_CPP.
56325         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
56326         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56327         Suggested by Akim Demaille <akim@epita.fr> in
56328         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
56329
56330 2003-05-12  Jim Meyering  <jim@meyering.net>
56331
56332         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
56333         the space-padded-by-default conversion specifiers, %e, %k, %l.
56334
56335 2003-05-12  Bruno Haible  <bruno@clisp.org>
56336
56337         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
56338         the string is longer than 4 KB.
56339
56340 2003-05-11  Karl Berry  <karl@gnu.org>
56341
56342         * config/config.{guess,sub}: update from prep.
56343
56344 2003-05-09  Bruno Haible  <bruno@clisp.org>
56345
56346         * modules/error: Add m4/strerror_r.m4 to file list.
56347
56348 2003-05-03  Bruno Haible  <bruno@clisp.org>
56349
56350         Upgrade to Unicode-4.0.
56351         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
56352         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
56353         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
56354         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
56355         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
56356         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
56357         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
56358         Change width of U+E0100..U+E01EF from 1 to 0.
56359
56360 2003-04-25  Jim Meyering  <jim@meyering.net>
56361
56362         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
56363         of type size_t, not int.
56364
56365 2003-04-25  Bruno Haible  <bruno@clisp.org>
56366
56367         * lib/copy-file.c: Include <stddef.h>, for size_t.
56368
56369 2003-04-21  Paul Eggert  <eggert@twinsun.com>
56370
56371         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
56372         code which expansion is under static control.  Patch imported from
56373         Akim Demaille's patch to Bison; see
56374         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
56375
56376 2003-04-14  Bruno Haible  <bruno@clisp.org>
56377
56378         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
56379
56380 2003-04-11  Jim Meyering  <jim@meyering.net>
56381
56382         Merge changes from Coreutils.
56383
56384         2003-03-22  Jim Meyering  <jim@meyering.net>
56385
56386         * lib/strftime.c (widen): Cast alloca return value to proper type.
56387
56388         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
56389
56390         From GNU libc.
56391         * lib/strftime.c (my_strftime): Handle very large width
56392         specifications for numeric values correctly.  Improve checks for
56393         overflow.
56394
56395         2003-01-19  Jim Meyering  <jim@meyering.net>
56396
56397         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
56398         definitions.
56399         (nl_get_alt_digit) [! defined my_strftime]: Define.
56400         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
56401         _nl_get_alt_digit and _nl_get_walt_digit.
56402
56403         * lib/strftime.c (my_strftime): Merge in locale-related changes from
56404         libc. These changes have no effect outside of _LIBC.
56405
56406 2003-04-10  Bruno Haible  <bruno@clisp.org>
56407
56408         * modules/findprog: New file.
56409         * MODULES.html.sh (func_all_modules): Add it.
56410
56411 2003-04-10  Bruno Haible  <bruno@clisp.org>
56412
56413         * m4/findprog.m4: New file.
56414         * m4/eaccess.m4: New file.
56415
56416 2003-04-10  Bruno Haible  <bruno@clisp.org>
56417
56418         * lib/findprog.h: New file, from GNU gettext.
56419         * lib/findprog.c: New file, from GNU gettext.
56420
56421 2003-04-05  Jim Meyering  <jim@meyering.net>
56422
56423         Merge changes from Coreutils.
56424
56425         * lib/exclude.h (PARAMS): Remove definition and uses.
56426         * lib/exclude.c: Remove uses of `PARAMS'.
56427
56428         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
56429         Add test-cases for DOS filenames. Declare program_name.
56430         (main): Set up program_name.  Patch by Rich Dawe.
56431
56432         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56433         error from mntctl.
56434         Use mntctl's return value to drive the entry-processing loop, since
56435         we can't rely on the value of the vmt_length member in the last
56436         entry.  On some systems doing so could result in exhausting
56437         virtual memory.  Based in part on a patch from Mike Jetzer.
56438
56439 2003-04-04  Bruno Haible  <bruno@clisp.org>
56440
56441         * modules/linebreak: New file.
56442         * MODULES.html.sh (func_all_modules): Add it.
56443
56444 2003-04-04  Bruno Haible  <bruno@clisp.org>
56445
56446         * m4/linebreak.m4: New file.
56447
56448 2003-04-04  Bruno Haible  <bruno@clisp.org>
56449
56450         * lib/linebreak.h: New file, from GNU gettext.
56451         * lib/linebreak.c: New file, from GNU gettext with slight
56452         modifications.
56453         * lib/lbrkprop.h: New file, from GNU gettext.
56454
56455 2003-04-03  Bruno Haible  <bruno@clisp.org>
56456
56457         * modules/utf8-ucs4: New file.
56458         * modules/utf16-ucs4: New file.
56459         * modules/ucs4-utf8: New file.
56460         * modules/ucs4-utf16: New file.
56461         * MODULES.html.sh (func_all_modules): Add them.
56462
56463 2003-04-03  Bruno Haible  <bruno@clisp.org>
56464
56465         * m4/utf-ucs4.m4: New file.
56466         * m4/ucs4-utf.m4: New file.
56467
56468 2003-04-03  Bruno Haible  <bruno@clisp.org>
56469
56470         * lib/utf8-ucs4.h: New file, from GNU gettext.
56471         * lib/utf16-ucs4.h: New file, from GNU gettext.
56472         * lib/ucs4-utf8.h: New file, from GNU gettext.
56473         * lib/ucs4-utf16.h: New file, from GNU gettext.
56474
56475 2003-04-02  Bruno Haible  <bruno@clisp.org>
56476
56477         * modules/binary-io: New file.
56478         * MODULES.html.sh (func_all_modules): Add it.
56479
56480 2003-04-02  Bruno Haible  <bruno@clisp.org>
56481
56482         * lib/binary-io.h: New file, from GNU gettext.
56483
56484 2003-04-01  Bruno Haible  <bruno@clisp.org>
56485
56486         * modules/pathname: New file.
56487         * MODULES.html.sh (func_all_modules): Add it.
56488
56489 2003-04-01  Bruno Haible  <bruno@clisp.org>
56490
56491         * lib/pathname.h: New file, from GNU gettext.
56492         * lib/concatpath.c: New file, from GNU gettext.
56493
56494 2003-03-30  Bruno Haible  <bruno@clisp.org>
56495
56496         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
56497
56498 2003-03-30  Bruno Haible  <bruno@clisp.org>
56499
56500         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
56501         function chown() doesn't exist.
56502
56503 2003-03-28  Bruno Haible  <bruno@clisp.org>
56504
56505         * modules/copy-file: New file.
56506         * MODULES.html.sh (func_all_modules): Add it.
56507
56508 2003-03-28  Bruno Haible  <bruno@clisp.org>
56509
56510         * m4/copy-file.m4: New file.
56511
56512 2003-03-28  Bruno Haible  <bruno@clisp.org>
56513
56514         * lib/copy-file.h: New file, from GNU gettext.
56515         * lib/copy-file.c: New file, from GNU gettext.
56516
56517 2003-03-18  Jim Meyering  <jim@meyering.net>
56518
56519         * lib/quote.c (quote_n): Fix typo in comment.
56520
56521 2003-03-18  Bruno Haible  <bruno@clisp.org>
56522
56523         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
56524         checking.
56525         * m4/onceonly_2_57.m4: Likewise.
56526
56527 2003-03-17  Bruno Haible  <bruno@clisp.org>
56528
56529         * m4/onceonly.m4: Require autoconf 2.54 or newer.
56530         (m4_quote): Remove macro.
56531         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
56532
56533 2003-03-14  Jim Meyering  <jim@meyering.net>
56534
56535         Merge changes from Coreutils.
56536         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
56537         to be const, in order to avoid warnings.
56538         (obstack_room): Likewise.
56539         (obstack_empty_p): Likewise.
56540
56541 2003-03-14  Bruno Haible  <bruno@clisp.org>
56542
56543         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
56544         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
56545
56546 2003-03-13  Paul Eggert  <eggert@twinsun.com>
56547
56548         Merge changes from Bison.
56549         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
56550         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
56551         when compiling Bison 1.875's `bitset bset = obstack_alloc
56552         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
56553         * lib/hash.c: Include <stdbool.h> unconditionally.
56554
56555 2003-03-13  Paul Eggert  <eggert@twinsun.com>
56556
56557         * m4/onceonly.m4 (m4_quote): New macro.
56558         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
56559         Quote AC_FOREACH variable-expansions properly.
56560
56561 2003-03-13  Paul Eggert  <eggert@twinsun.com>
56562
56563         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
56564
56565 2003-03-09  Paul Eggert  <eggert@twinsun.com>
56566
56567         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
56568         Reported by Bruce Becker; see:
56569         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
56570
56571 2003-03-03  Paul Eggert  <eggert@twinsun.com>
56572             Bruno Haible  <bruno@clisp.org>
56573
56574         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
56575         Reported by John Hughes, see
56576         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
56577
56578 2003-02-20  Bruno Haible  <bruno@clisp.org>
56579
56580         * MODULES.html.sh (func_all_modules): Add poll.
56581
56582 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
56583
56584         * modules/poll: New file.
56585
56586 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
56587
56588         * lib/poll_.h: New file.
56589         * lib/poll.c: New file.
56590
56591 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
56592
56593         * m4/poll.m4: New file.
56594
56595 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
56596
56597         * modules/mathl: New file.
56598
56599 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
56600
56601         * lib/mathl.h: New file.
56602         * lib/acosl.c: New file.
56603         * lib/asinl.c: New file.
56604         * lib/atanl.c: New file.
56605         * lib/ceill.c: New file.
56606         * lib/cosl.c: New file.
56607         * lib/expl.c: New file.
56608         * lib/floorl.c: New file.
56609         * lib/frexpl.c: New file.
56610         * lib/ldexpl.c: New file.
56611         * lib/logl.c: New file.
56612         * lib/sincosl.c: New file.
56613         * lib/sinl.c: New file.
56614         * lib/sqrtl.c: New file.
56615         * lib/tanl.c: New file.
56616         * lib/trigl.c: New file.
56617         * lib/trigl.h: New file.
56618
56619 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
56620
56621         * m4/mathl.m4: New file.
56622
56623 2003-02-18  Bruno Haible  <bruno@clisp.org>
56624
56625         * MODULES.html.sh (func_all_modules): Add mathl.
56626
56627 2003-02-17  Bruno Haible  <bruno@clisp.org>
56628
56629         * modules/mkdtemp: New module.
56630         * MODULES.html.sh (func_all_modules): Add it.
56631
56632 2003-02-17  Bruno Haible  <bruno@clisp.org>
56633
56634         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
56635
56636 2003-02-17  Bruno Haible  <bruno@clisp.org>
56637
56638         * lib/mkdtemp.h: New file, from GNU gettext.
56639         * lib/mkdtemp.c: New file, from GNU gettext.
56640
56641 2003-02-02  Jim Meyering  <jim@meyering.net>
56642
56643         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
56644         e.g. glibc-2.2.93.
56645
56646 2003-01-31  Bruno Haible  <bruno@clisp.org>
56647
56648         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
56649         'rpl_rename'.
56650         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
56651         'rpl_strnlen'.
56652         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
56653         'rpl_strtod'.
56654         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
56655         'rpl_utime'.
56656
56657 2003-01-31  Bruno Haible  <bruno@clisp.org>
56658
56659         * lib/rename.c: #undef rename before defining rpl_rename.
56660         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
56661
56662 2003-01-30  Bruno Haible  <bruno@clisp.org>
56663
56664         * modules/vasnprintf, modules/vasprintf: New modules.
56665         * MODULES.html.sh (func_all_modules): Add them.
56666
56667 2003-01-30  Bruno Haible  <bruno@clisp.org>
56668
56669         * m4/signed.m4: New file, from GNU gettext.
56670         * m4/longdouble.m4: New file, from GNU gettext.
56671         * m4/wchar_t.m4: New file, from GNU gettext.
56672         * m4/wint_t.m4: New file, from GNU gettext.
56673         * m4/vasnprintf.m4: New file.
56674         * m4/vasprintf.m4: New file.
56675
56676 2003-01-30  Bruno Haible  <bruno@clisp.org>
56677
56678         * lib/printf-args.h: New file, from GNU gettext.
56679         * lib/printf-args.c: New file, from GNU gettext.
56680         * lib/printf-parse.h: New file, from GNU gettext.
56681         * lib/printf-parse.c: New file, from GNU gettext.
56682         * lib/vasnprintf.h: New file, from GNU gettext.
56683         * lib/vasnprintf.c: New file, from GNU gettext.
56684         * lib/asnprintf.c: New file, from GNU gettext.
56685         * lib/vasprintf.h: New file, from GNU gettext with modifications.
56686         * lib/vasprintf.c: New file, from GNU gettext.
56687         * lib/asprintf.c: New file, from GNU gettext.
56688
56689 2003-01-29  Bruno Haible  <bruno@clisp.org>
56690
56691         * modules/stpncpy: New module.
56692         * MODULES.html.sh (func_all_modules): Add it.
56693
56694 2003-01-29  Bruno Haible  <bruno@clisp.org>
56695
56696         * m4/stpncpy.m4: New file.
56697
56698 2003-01-29  Bruno Haible  <bruno@clisp.org>
56699
56700         * lib/stpncpy.h: New file, from GNU gettext with modifications.
56701         * lib/stpncpy.c: New file, from GNU gettext with modifications.
56702
56703 2003-01-28  Bruno Haible  <bruno@clisp.org>
56704
56705         * modules/c-ctype: New module.
56706         * MODULES.html.sh (func_all_modules): Add it.
56707
56708 2003-01-28  Bruno Haible  <bruno@clisp.org>
56709
56710         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
56711         Paul Eggert.
56712         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
56713         Paul Eggert.
56714
56715 2003-01-27  Bruno Haible  <bruno@clisp.org>
56716
56717         * modules/xsetenv: New module.
56718         * MODULES.html.sh (func_all_modules): Add it.
56719
56720 2003-01-27  Bruno Haible  <bruno@clisp.org>
56721
56722         * lib/xsetenv.h: New file, from GNU gettext.
56723         * lib/xsetenv.c: New file, from GNU gettext.
56724
56725 2003-01-23  Jim Meyering  <jim@meyering.net>
56726
56727         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
56728         from working on systems without dirfd (at least Irix and OSF1/Tru64).
56729
56730 2003-01-23  Bruno Haible  <bruno@clisp.org>
56731
56732         * modules/minmax: New module.
56733         * MODULES.html.sh (func_all_modules): Add it.
56734
56735 2003-01-23  Bruno Haible  <bruno@clisp.org>
56736
56737         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
56738         Eggert.
56739
56740 2003-01-22  Bruno Haible  <bruno@clisp.org>
56741
56742         * modules/exit: New module.
56743         * MODULES.html.sh (func_all_modules): Add it.
56744
56745 2003-01-22  Bruno Haible  <bruno@clisp.org>
56746
56747         * lib/exit.h: New file, from GNU gettext.
56748
56749 2003-01-19  Bruno Haible  <bruno@clisp.org>
56750
56751         * gnulib-tool: Recognize option --extract-maintainer.
56752         (func_get_maintainer): New function.
56753         * modules/*: Add Maintainer entry.
56754
56755 2003-01-16  Jim Meyering  <jim@meyering.net>
56756
56757         * m4/regex.m4: The `regex' struct is both input and output.
56758         Initialize it before each use.  Patch by Tim Waugh.
56759
56760 2003-01-16  Bruno Haible  <bruno@clisp.org>
56761
56762         * MODULES.html.sh: Add a table of contents. Add the module name as
56763         leftmost column. Add hyperlinks.
56764
56765 2003-01-15  Bruno Haible  <bruno@clisp.org>
56766
56767         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
56768
56769 2003-01-15  Bruno Haible  <bruno@clisp.org>
56770
56771         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
56772         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
56773         suffix.
56774
56775 2003-01-15  Bruno Haible  <bruno@clisp.org>
56776
56777         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
56778
56779 2003-01-15  Bruno Haible  <bruno@clisp.org>
56780
56781         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
56782         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
56783
56784 2003-01-14  Jim Meyering  <jim@meyering.net>
56785
56786         * lib/same.c (same_name): Tweak a comment.
56787
56788 2003-01-14  Bruno Haible  <bruno@clisp.org>
56789
56790         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
56791         when a string comparison is sufficient.
56792
56793 2003-01-14  Bruno Haible  <bruno@clisp.org>
56794
56795         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
56796         'unsigned int'.
56797
56798 2003-01-14  Bruno Haible  <bruno@clisp.org>
56799
56800         * lib/hash-pjw.c: Add comment about low quality of this function.
56801
56802 2003-01-13  Bruno Haible  <bruno@clisp.org>
56803
56804         * modules/stpcpy: Distribute lib/stpcpy.h.
56805         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
56806
56807 2003-01-13  Bruno Haible  <bruno@clisp.org>
56808
56809         * modules/*: Add a description.
56810         * modules/strpbrk: Fix Makefile.am snippet.
56811         * modules/strtoimax: Fix dependencies.
56812         * modules/strtoumax: Likewise.
56813
56814 2003-01-13  Bruno Haible  <bruno@clisp.org>
56815
56816         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
56817         * modules/alloca (Makefile.am): All object files depend on alloca.h.
56818         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
56819
56820 2003-01-13  Bruno Haible  <bruno@clisp.org>
56821
56822         * gnulib-tool (func_create_testdir): Store config/* files in the main
56823         directory.
56824         * config.rpath: Move to ...
56825         * config/config.rpath: ... here.
56826         * modules/gettext: Contains config/config.rpath, not config.rpath.
56827         * modules/iconv: Likewise.
56828
56829 2003-01-12  Paul Eggert  <eggert@twinsun.com>
56830
56831         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56832         to avoid collisions with libcurses and libreadline.
56833
56834         * m4/getstr.m4: Remove.
56835         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
56836
56837 2003-01-12  Paul Eggert  <eggert@twinsun.com>
56838
56839         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56840         to avoid collisions with libcurses and libreadline.
56841
56842         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
56843         * lib/getstr.h, getstr.c: Remove.
56844         * lib/getline.c: Include "getline.h", to check interface.
56845         Move body of old getstr.c here: this defines MIN_CHUNK and
56846         declares getdelim2, which is renamed from getstr.
56847         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
56848
56849         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
56850         All uses changed.
56851         * lib/linebuffer.h: Likewise.
56852         (readline): Remove backward-compatibility macro.
56853
56854 2003-01-12  Paul Eggert  <eggert@twinsun.com>
56855
56856         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56857         to avoid collisions with libcurses and libreadline.
56858         * getstr: Remove.
56859         * MODULES.html.sh: Remove getstr.
56860         * modules/getline: Depend on unlocked-io, not getstr.
56861
56862 2003-01-12  Jim Meyering  <jim@meyering.net>
56863
56864         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
56865
56866 2003-01-10  Bruno Haible  <bruno@clisp.org>
56867
56868         * modules/alloca: Change Makefile.am requirements. Simplify Include
56869         requirements. Add lib/alloca_.h to file list.
56870
56871 2003-01-10  Bruno Haible  <bruno@clisp.org>
56872
56873         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
56874
56875 2003-01-10  Bruno Haible  <bruno@clisp.org>
56876
56877         * lib/alloca_.h: New file.
56878         * lib/getdate.y: Unconditionally include alloca.h.
56879         * lib/makepath.c: Likewise.
56880         * lib/setenv.c: Likewise.
56881         * lib/userspec.c: Likewise.
56882
56883 2003-01-09  Karl Berry  <karl@gnu.org>
56884
56885         * MODULES.html.sh: include `dirname $0` in PATH, to find
56886         gnulib-tool.
56887
56888 2003-01-09  Bruno Haible  <bruno@clisp.org>
56889
56890         * modules/stdbool: Change configure.ac, Makefile.am requirements.
56891         Simplify Include requirements. Add lib/stdbool.h.in to file list.
56892
56893 2003-01-09  Bruno Haible  <bruno@clisp.org>
56894
56895         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
56896
56897 2003-01-09  Bruno Haible  <bruno@clisp.org>
56898
56899         * lib/stdbool.h.in: New file.
56900
56901 2003-01-09  Bruno Haible  <bruno@clisp.org>
56902
56903         * gnulib-tool (func_all_modules): Ignore files ending in ~.
56904         * MODULES.html.sh: Likewise.
56905
56906 2003-01-08  Jim Meyering  <jim@meyering.net>
56907
56908         * lib/full-write.c: Undefine and define-away `const' after inclusion
56909         of errno.h, not before.  Suggestion from Bruno Haible.
56910
56911 2003-01-08  Bruno Haible  <bruno@clisp.org>
56912
56913         * modules/full-read: Depend on full-write.
56914
56915 2003-01-08  Bruno Haible  <bruno@clisp.org>
56916
56917         * lib/safe-read.c: Include specification header first, to ensure its
56918         selfcontainedness.
56919         * lib/full-write.c: Likewise.
56920
56921 2003-01-07  Jim Meyering  <jim@meyering.net>
56922
56923         * lib/full-write.c: Rework so that it may serve to define full_read,
56924         too.
56925         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
56926
56927 2003-01-07  Bruno Haible  <bruno@clisp.org>
56928
56929         * lib/strtoimax.c: Include <stdint.h> as an alternative to
56930         <inttypes.h>.
56931         * lib/xstrtol.h: Likewise.
56932         * lib/xstrtoimax.c: Likewise.
56933         * lib/xstrtoumax.c: Likewise.
56934         * lib/human.h: Likewise.
56935
56936         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
56937         on systems that have <inttypes.h> but not <stdint.h>.
56938
56939 2003-01-07  Bruno Haible  <bruno@clisp.org>
56940
56941         * MODULES.html.sh: Add copyright notice.
56942         (missed_files): Omit CVS directory entries.
56943         (func_module): Make it work with sed-3.02.
56944         * MODULES.txt: Remove file.
56945
56946 2003-01-06  Jim Meyering  <jim@meyering.net>
56947
56948         * lib/version-etc.c: Update year in translatable copyright string.
56949
56950 2003-01-03  Karl Berry  <karl@gnu.org>
56951
56952         * config/config.{guess,sub}: update from prep.
56953
56954 2003-01-02  Karl Berry  <karl@gnu.org>
56955
56956         * doc/COPYING.DOC: belatedly updated to 1.2.
56957
56958 2003-01-01  Karl Berry  <karl@gnu.org>
56959
56960         * gnulib-tool (func_verify_module): report module name $module in
56961         error message, not $1.
56962         * gnulib-tool (create-testdir): don't complain if destdir couldn't
56963         be created, only if it doesn't exist.
56964         * gnulib-tool (last_checkin_date): don't expand the $Date here.
56965
56966 2002-12-31  Paul Eggert  <eggert@twinsun.com>
56967
56968         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
56969
56970 2002-12-31  Paul Eggert  <eggert@twinsun.com>
56971
56972         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
56973         memcmp if strcoll doesn't work.
56974
56975 2002-12-31  Bruno Haible  <bruno@clisp.org>
56976
56977         * lib/utime.c (utime_null): No need to call ftruncate if the file was
56978         nonempty.
56979
56980 2002-12-31  Bruno Haible  <bruno@clisp.org>
56981
56982         * lib/memcoll.c (STRCOLL): New macro.
56983         (memcoll): Use it.
56984
56985 2002-12-31  Bruno Haible  <bruno@clisp.org>
56986
56987         * lib/localcharset.h: New file.
56988         * lib/localcharset.c: Include it.
56989         * lib/unicodeio.c: Likewise.
56990
56991 2002-12-31  Bruno Haible  <bruno@clisp.org>
56992
56993         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
56994         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
56995
56996 2002-12-31  Bruno Haible  <bruno@clisp.org>
56997
56998         * lib/getline.h: Include <stddef.h>, for size_t.
56999
57000         * lib/unicodeio.h: Include <stddef.h>, for size_t.
57001         * lib/unicodeio.c: Don't include <stddef.h>.
57002
57003 2002-12-31  Bruno Haible  <bruno@clisp.org>
57004
57005         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
57006         HAVE_TM_ZONE.
57007
57008 2002-12-24  Karl Berry  <karl@gnu.org>
57009
57010         * config/config.guess: update from prep.
57011
57012 2002-12-24  Bruno Haible  <bruno@clisp.org>
57013
57014         General infrasructure.
57015         * m4/README: Rewritten.
57016         * m4/onceonly.m4: New file.
57017         * m4/onceonly_2_57.m4: New file.
57018
57019         Module atexit.
57020         * m4/atexit.m4: New file.
57021
57022         Module strtod.
57023         * m4/strtod.m4: New file.
57024
57025         Module strtol.
57026         * m4/strtol.m4: New file.
57027
57028         Module strtoul.
57029         * m4/strtoul.m4: New file.
57030
57031         Module memchr.
57032         * m4/memchr.m4: New file.
57033
57034         Module memcmp.
57035         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
57036         (jm_FUNC_MEMCMP): Invoke it.
57037
57038         Module memcpy.
57039         * m4/memcpy.m4: New file.
57040
57041         Module memmove.
57042         * m4/memmove.m4: New file.
57043
57044         Module memset.
57045         * m4/memset.m4: New file.
57046
57047         Module strcspn.
57048         * m4/strcspn.m4: New file.
57049
57050         Module strpbrk.
57051         * m4/strpbrk.m4: New file.
57052
57053         Module strstr.
57054         * m4/strstr.m4: New file.
57055
57056         Module strerror.
57057         * m4/strerror.m4: New file.
57058
57059         Module mktime.
57060         * m4/mktime.m4: Renamed from jm-mktime.m4.
57061         (gl_PREREQ_MKTIME): New macro.
57062         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
57063
57064         Module malloc.
57065         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
57066         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
57067         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
57068
57069         Module realloc.
57070         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
57071         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
57072         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
57073
57074         Module strftime.
57075         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
57076         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
57077         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
57078         gl_TM_GMTOFF.
57079         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
57080
57081         Module xalloc.
57082         * m4/xalloc.m4: New file.
57083
57084         Module alloca.
57085         * m4/alloca.m4: New file.
57086
57087         Module putenv.
57088         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
57089         (jm_FUNC_PUTENV): Invoke it.
57090
57091         Module setenv.
57092         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
57093         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
57094         when invoked twice.
57095         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
57096         gt_FUNC_SETENV.
57097
57098         Module memrchr.
57099         * m4/memrchr.m4: New file.
57100
57101         Module stpcpy.
57102         * m4/stpcpy.m4: New file.
57103
57104         Module strcase.
57105         * m4/strcase.m4: New file.
57106
57107         Module strdup.
57108         * m4/strdup.m4: New file.
57109
57110         Module strnlen.
57111         * m4/strnlen.m4: New file.
57112
57113         Module strndup.
57114         * m4/strndup.m4: New file.
57115
57116         Module xstrtod.
57117         * m4/xstrtod.m4: New file.
57118
57119         Module xstrtol.
57120         * m4/xstrtol.m4: New file.
57121
57122         Module getdate.
57123         * m4/getdate.m4: New file.
57124
57125         Module unlocked-io.
57126         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
57127         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
57128         * m4/jm-glibc-io.m4n: Remove file.
57129
57130         Module long-options.
57131         * m4/long-options.m4: New file.
57132
57133         Module md5.
57134         * m4/md5.m4: New file.
57135
57136         Module sha.
57137         * m4/sha.m4: New file.
57138
57139         Module getstr.
57140         * m4/getstr.m4: New file.
57141
57142         Module getline.
57143         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
57144         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
57145         <sys/types.h>, for size_t. Use the function name gnu_getline, not
57146         simply getline. Infoke gl_PREREQ_GETLINE.
57147
57148         Module obstack.
57149         * m4/obstack.m4: New file.
57150
57151         Module hash.
57152         * m4/hash.m4: New file.
57153
57154         Module readtokens.
57155         * m4/readtokens.m4: New file.
57156
57157         Module strverscmp.
57158         * m4/strverscmp.m4: New file.
57159
57160         Module stdbool.
57161         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
57162         OSF/1.
57163
57164         Module strtoll.
57165         * m4/strtoll.m4: New file.
57166
57167         Module strtoull.
57168         * m4/strtoull.m4: New file.
57169
57170         Module strtoimax.
57171         * m4/strtoimax.m4: New file.
57172
57173         Module strtoumax.
57174         * m4/strtoumax.m4: New file.
57175
57176         Module xstrtoimax.
57177         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
57178         jm_AC_PREREQ_XSTRTOIMAX.
57179         Moved the strtol prerequisites to strtol.m4.
57180         Moved the strtoll prerequisites to strtoll.m4.
57181         Moved the strtoimax prerequisites to strtoimax.m4.
57182
57183         Module xstrtoumax.
57184         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
57185         jm_AC_PREREQ_XSTRTOUMAX.
57186         Moved the strtoul prerequisites to strtoul.m4.
57187         Moved the strtoull prerequisites to strtoull.m4.
57188         Moved the strtoumax prerequisites to strtoumax.m4.
57189
57190         Module chown.
57191         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
57192         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
57193
57194         Module dup2.
57195         * m4/dup2.m4: New file.
57196
57197         Module ftruncate.
57198         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
57199         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
57200
57201         Module getgroups.
57202         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
57203         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
57204
57205         Module gettimeofday.
57206         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
57207         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
57208         gl_PREREQ_GETTIMEOFDAY.
57209
57210         Module mkdir.
57211         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
57212         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
57213
57214         Module mkstemp.
57215         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
57216         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
57217         jm_AC_TYPE_UINTMAX_T.
57218         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
57219
57220         Module stat.
57221         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
57222         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
57223
57224         Module lstat.
57225         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
57226         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
57227
57228         Module timespec.
57229         * m4/timespec.m4 (gl_TIMESPEC): New macro.
57230         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
57231         * m4/st_mtim.m4: Indentation.
57232
57233         Module nanosleep.
57234         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
57235         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
57236         gl_PREREQ_NANOSLEEP.
57237
57238         Module regex.
57239         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
57240         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
57241         (gl_REGEX): New macro.
57242
57243         Module rename.
57244         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
57245         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
57246
57247         Module rmdir.
57248         * m4/rmdir.m4: New file.
57249
57250         Module utime.
57251         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
57252         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
57253         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
57254
57255         Module dirname.
57256         * m4/dirname.m4: New file.
57257
57258         Module getopt.
57259         * m4/getopt.m4: New file.
57260
57261         Module unistd-safer.
57262         * m4/unistd-safer.m4: New file.
57263
57264         Module fnmatch.
57265         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
57266         declaration.
57267         (gl_PREREQ_FNMATCH_EXTRA): New macro.
57268         (gl_FUNC_FNMATCH_POSIX): New macro.
57269         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
57270         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
57271         simply fnmatch.
57272
57273         Module exclude.
57274         * m4/exclude.m4: New file.
57275
57276         Module human.
57277         * m4/human.m4: New file.
57278
57279         Module acl.
57280         * m4/acl.m4: Nop.
57281
57282         Module backupfile.
57283         * m4/backupfile.m4: New file.
57284         * m4/d-ino.m4: Indentation.
57285
57286         Module fsusage.
57287         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
57288         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
57289         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
57290
57291         Module dirfd.
57292         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
57293         requirements.
57294
57295         Module euidaccess.
57296         * m4/euidaccess.m4: New file.
57297
57298         Module file-type.
57299         * m4/file-type.m4: New file.
57300
57301         Module fileblocks.
57302         * m4/fileblocks.m4: New file.
57303
57304         Module filemode.
57305         * m4/filemode.m4: New file.
57306
57307         Module isdir.
57308         * m4/isdir.m4: New file.
57309
57310         Module lchown.
57311         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
57312         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
57313
57314         Module makepath.
57315         * m4/makepath.m4: New file.
57316
57317         Module modechange.
57318         * m4/modechange.m4: New file.
57319
57320         Module mountlist.
57321         * m4/mountlist.m4: New file.
57322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
57323         Indentation.
57324
57325         Module path-concat.
57326         * m4/path-concat.m4: New file.
57327
57328         Module pathmax.
57329         * m4/pathmax.m4: New file.
57330
57331         Module same.
57332         * m4/same.m4: New file.
57333
57334         Module save-cwd.
57335         * m4/save-cwd.m4: New file.
57336
57337         Module savedir.
57338         * m4/savedir.m4: New file.
57339
57340         Module xgetcwd.
57341         * m4/xgetcwd.m4: New file.
57342         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
57343
57344         Module xreadlink.
57345         * m4/xreadlink.m4: New file.
57346
57347         Module safe-read.
57348         * m4/safe-read.m4: New file.
57349
57350         Module safe-write.
57351         * m4/safe-write.m4: New file.
57352
57353         Module closeout.
57354         * m4/closeout.m4: New file.
57355
57356         Module stdio-safer.
57357         * m4/stdio-safer.m4: New file.
57358
57359         Module getpass.
57360         * m4/getpass.m4: New file.
57361
57362         Module getugroups.
57363         * m4/getugroups.m4: New file.
57364
57365         Module group-member.
57366         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
57367         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
57368
57369         Module idcache.
57370         * m4/idcache.m4: New file.
57371
57372         Module userspec.
57373         * m4/userspec.m4: New file.
57374
57375         Module gettime.
57376         * m4/clock_time.m4: New file.
57377         * m4/gettime.m4: New file.
57378
57379         Module settime.
57380         * m4/settime.m4: New file.
57381
57382         Module posixtm.
57383         * m4/posixtm.m4: New file.
57384
57385         Module gethostname.
57386         * m4/gethostname.m4: New file.
57387
57388         Module canon-host.
57389         * m4/canon-host.m4: New file.
57390
57391         Module gettext.
57392         * m4/codeset.m4: New file, from gettext-0.11.5.
57393         * m4/gettext.m4: New file, from gettext-0.11.5.
57394         * m4/glibc21.m4: New file, from gettext-0.11.5.
57395         * m4/iconv.m4: New file, from gettext-0.11.5.
57396         * m4/intdiv0.m4: New file, from gettext-0.11.5.
57397         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
57398         * m4/inttypes.m4: New file, from gettext-0.11.5.
57399         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
57400         * m4/isc-posix.m4: New file, from gettext-0.11.5.
57401         * m4/lcmessage.m4: New file, from gettext-0.11.5.
57402         * m4/lib-ld.m4: New file, from gettext-0.11.5.
57403         * m4/lib-link.m4: New file, from gettext-0.11.5.
57404         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
57405         * m4/progtest.m4: New file, from gettext-0.11.5.
57406         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
57407         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
57408         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
57409
57410         Module localcharset.
57411         * m4/localcharset.m4: New file.
57412
57413         Module hard-locale.
57414         * m4/hard-locale.m4: New file.
57415
57416         Module mbswidth.
57417         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
57418         onceonly macros.
57419         * m4/mbrtowc.m4: Add comment.
57420
57421         Module memcasecmp.
57422         * m4/memcasecmp.m4: New file.
57423
57424         Module memcoll.
57425         * m4/memcoll.m4: New file.
57426
57427         Module unicodeio.
57428         * m4/unicodeio.m4: New file.
57429
57430         Module rpmatch.
57431         * m4/rpmatch.m4: New file.
57432
57433         Module yesno.
57434         * m4/yesno.m4: New file.
57435
57436         Module exitfail.
57437         * m4/exitfail.m4: New file.
57438
57439         Module c-stack.
57440         * m4/c-stack.m4 (gl_C_STACK): New macro.
57441         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
57442
57443         Module error.
57444         * m4/error.m4 (gl_ERROR): New macro.
57445         (jm_PREREQ_ERROR): Use onceonly macros.
57446
57447         Module fatal.
57448         * m4/fatal.m4: New file.
57449
57450         Module getloadavg.
57451         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
57452         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
57453
57454         Module getpagesize.
57455         * m4/getpagesize.m4: New file.
57456
57457         Module getusershell.
57458         * m4/getusershell.m4: New file.
57459
57460         Module physmem.
57461         * m4/physmem.m4: New file.
57462
57463         Module posixver.
57464         * m4/posixver.m4: New file.
57465
57466         Module quotearg.
57467         * m4/quotearg.m4: New file.
57468
57469         Module quote.
57470         * m4/quote.m4: New file.
57471
57472         Module readutmp.
57473         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
57474
57475         Module sig2str.
57476         * m4/sig2str.m4: New file.
57477
57478         Other.
57479         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
57480         ulonglong.m4.
57481         * m4/intmax_t.m4: New file.
57482         * m4/d-type.m4: Indentation.
57483         * m4/jm-macros.m4: Update.
57484         * m4/prereq.m4 (jm_PREREQ): Update.
57485         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
57486         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
57487         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
57488         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
57489         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
57490         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
57491         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
57492         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
57493         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
57494         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
57495         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
57496         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
57497         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
57498         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
57499         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
57500         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
57501         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
57502         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
57503         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
57504
57505 2002-12-24  Bruno Haible  <bruno@clisp.org>
57506
57507         * MODULES.txt: Update according to m4/ changes.
57508
57509         Module gettext.
57510         * config.rpath: New file, from gettext-0.11.5.
57511
57512         * modules/*: New module descriptions.
57513         * gnulib-tool: New file.
57514         * MODULES.html.sh: New file.
57515
57516 2002-12-21  Karl Berry  <karl@gnu.org>
57517
57518         * doc/fdl.texi: update to version 1.2.
57519
57520 2002-12-19  Karl Berry  <karl@gnu.org>
57521
57522         * config/config.guess: update from prep.
57523
57524 2002-12-18  Bruno Haible  <bruno@clisp.org>
57525
57526         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
57527         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
57528
57529 2002-12-17  Bruno Haible  <bruno@clisp.org>
57530
57531         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
57532         stdlib.h, string.h.
57533
57534 2002-12-17  Bruno Haible  <bruno@clisp.org>
57535
57536         * lib/canon-host.c (strdup): Remove unused declaration.
57537
57538         * lib/fsusage.c: Include full_read.h.
57539         (get_fs_usage): Use full_read instead of safe_read.
57540
57541         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
57542
57543 2002-12-12  Karl Berry  <karl@gnu.org>
57544
57545         * config/config.guess: update from prep.
57546
57547 2002-12-11  Bruno Haible  <bruno@clisp.org>
57548
57549         * m4/setenv.m4: New file, from gettext-0.11.5.
57550
57551 2002-12-11  Bruno Haible  <bruno@clisp.org>
57552
57553         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
57554         not unsetenv().
57555         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
57556         modifications:
57557
57558         2002-12-11  Bruno Haible  <bruno@clisp.org>
57559
57560                 * setenv.c (alloca): Fall back to malloc.
57561                 (freea): New macro.
57562                 (setenv): Use freea() to free memory allocated with alloca().
57563
57564         2002-11-13  Bruno Haible  <bruno@clisp.org>
57565
57566                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
57567                 function declarations.
57568                 * unsetenv.c (unsetenv): Likewise.
57569
57570         2002-03-04  Bruno Haible  <bruno@clisp.org>
57571
57572                 Portability to AIX 4.3.3.
57573                 * unsetenv.c: New file, extracted from setenv.c.
57574                 * setenv.c: Move the unsetenv() function to unsetenv.c.
57575
57576         2001-12-20  Bruno Haible  <bruno@clisp.org>
57577
57578                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
57579                 use malloc instead. For SunOS 4.
57580
57581         2001-12-11  Bruno Haible  <bruno@clisp.org>
57582
57583                 * setenv.c: Declare alloca.
57584                 (compar_fn_t): New typedef.
57585                 (KNOWN_VALUE, STORE_VALUE): Use it.
57586
57587         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
57588         setenv.h.
57589
57590 2002-12-10  Paul Eggert  <eggert@twinsun.com>
57591
57592         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
57593         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
57594         Choose values that are less likely to collide with system fnmatch
57595         options.
57596         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
57597         defined (e.g., a pure POSIX system).
57598         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
57599         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
57600
57601 2002-12-06  Paul Eggert  <eggert@twinsun.com>
57602
57603         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
57604         a pain in practice to deal with generated m4 files.  This change
57605         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
57606
57607         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
57608         and jm-glibc-io.m4, as they are no longer a special case.
57609         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
57610         kludge and the auto-generation stuff.  Check only whether the
57611         functions are declared, not whether they exist, since older hosts
57612         that don't declare the functions can't use the optimization anyway.
57613
57614 2002-12-06  Jim Meyering  <jim@meyering.net>
57615
57616         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
57617
57618         Merge in changes from libc's misc/error.c, in preparation
57619         for the merge of gnulib's changes back into libc.
57620
57621         * lib/error.c (_): Define only if not already defined.
57622         Move definition to follow all #include directives.
57623         Include unlocked-io.h only if !_LIBC.
57624         [_LIBC]: Include <libio/libioP.h>.
57625         [USE_IN_LIBIO]: Include <libio/iolibio.h>
57626         (fflush): Tweak definition to use INTUSE.
57627         (putc): Define.
57628
57629 2002-12-05  Paul Eggert  <eggert@twinsun.com>
57630
57631         * lib/alloca.c [defined emacs]: Include "lisp.h".
57632         (xalloc_die) [defined emacs]: New macro.
57633         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
57634         [! defined emacs]: Include <xalloc.h>.
57635         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
57636         (pointer): Typedef to POINTER_TYPE *.
57637         (malloc): Remove decl; we now always use xmalloc.
57638         (alloca): Use old-style definition, since Emacs needs this.
57639         Check for arithmetic overflow when computing combined size.
57640
57641 2002-12-04  Paul Eggert  <eggert@twinsun.com>
57642
57643         Do not generate unlocked-io.h automatically, since it's easier to
57644         maintain it by hand.
57645
57646         * lib/unlocked-io.h: New file, from GNU diffutils,
57647         but with proper copyright notice and attribution.
57648         * lib/gen-uio: Remove.
57649         * lib/Makefile.am: Add copyright notice.
57650         (libfetish_a_SOURCES): Add unlocked-io.h.
57651         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
57652         (DISTCLEANFILES, io_functions): Remove macros.
57653         (EXTRA_DIST): Remove gen_uio.
57654         (unlocked-io.h): Remove rule.
57655
57656 2002-12-04  Jim Meyering  <jim@meyering.net>
57657
57658         Reflect the fact that stat.c and lstat.c are no longer generated.
57659         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
57660         (DISTCLEANFILES): Likewise.
57661         (EXTRA_DIST): Likewise.
57662         (all_local): Don't depend on stat.c or lstat.c.
57663         (stat.c, lstat.c): Remove rules.
57664         (EXTRA_DIST): Remove xstat.in.
57665
57666         * lib/xstat.in: Remove file.  Contents moved into stat.c.
57667         * lib/stat.c: New file.  Contents mostly from xstat.in.
57668         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
57669         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
57670
57671         * lib/safe-read.c: Rework so that it may serve to define safe_write,
57672         too.
57673         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
57674
57675 2002-12-03  Jim Meyering  <jim@meyering.net>
57676
57677         * lib/safe-read.c, safe-write.c: Change variable names and comments,
57678         but not semantics, to minimize the differences between these two files.
57679         (safe_read): Change comment to mention SAFE_READ_ERROR.
57680
57681         * lib/safe-read.c (IS_EINTR): Define.
57682         (safe_read): Use IS_EINTR in place of in-function cpp directives.
57683
57684 2002-12-02  Jim Meyering  <jim@meyering.net>
57685
57686         * lib/safe-read.c (EINTR): Define.
57687         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
57688         (INT_MAX): Provide fallback.
57689         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
57690
57691         * lib/safe-read.h (SAFE_READ_ERROR): Define.
57692
57693 2002-12-02  Bruno Haible  <bruno@clisp.org>
57694
57695         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
57696         Define, taken from safe-read.c.
57697         (INT_MAX): Provide fallback.
57698         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
57699         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
57700
57701         * lib/safe-read.c (EINTR): Remove definition.
57702         (safe_read): Don't use EINTR if it is absent.
57703
57704 2002-12-01  Jim Meyering  <jim@meyering.net>
57705
57706         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
57707         zero.
57708         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
57709
57710 2002-11-27  Paul Eggert  <eggert@twinsun.com>
57711
57712         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
57713         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
57714         with `if (! (value < limit)) abort ();', for readability.
57715
57716 2002-11-26  Karl Berry  <karl@gnu.org>
57717
57718         * lib/strdup.c: copy from libc again, with jim's ok.
57719         * lib/.cppi-disable: re-add strdup.c
57720
57721 2002-11-25  Karl Berry  <karl@gnu.org>
57722
57723         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
57724         instead of "strtol.c".
57725
57726 2002-11-25  Karl Berry  <karl@gnu.org>
57727
57728         * config/install-sh: update from automake for variable quoting, $0 in
57729         error msgs, etc.
57730
57731         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
57732         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
57733         entry.
57734
57735 2002-11-25  Jim Meyering  <jim@meyering.net>
57736
57737         * lib/mktime.c: Sync from libc, now that it has the latest fix.
57738
57739 2002-11-24  Karl Berry  <karl@gnu.org>
57740
57741         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
57742         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
57743
57744 2002-11-24  Jim Meyering  <jim@meyering.net>
57745
57746         Update from coreutils:
57747
57748         * lib/mktime.c: Merge in changes from libc.
57749
57750         Avoid a link-time failure on some Linux systems.
57751         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
57752         (otherwise).
57753         (__mon_yday): Declare with the STATIC attribute.
57754         (__mktime_internal): Likewise.
57755         Based on a report from Greg Schafer.
57756
57757 2002-11-23  Jim Meyering  <jim@meyering.net>
57758
57759         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
57760         Use `unsigned', not `int', as type of index.
57761
57762         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
57763
57764         * lib/fsusage.c: Remove unneeded parentheses around operands of
57765         `defined'.
57766
57767 2002-11-22  Paul Eggert  <eggert@twinsun.com>
57768
57769         * lib/quotearg.h: Allow multiple inclusion by surrounding with
57770         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
57771         so that we can be included first.
57772         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
57773         * lib/quotearg.c: Include quotearg.h immediately after config.h.
57774         No need to include stddef.h or sys/types.h any more.
57775         Surround local include files with "", not "<>".
57776         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
57777         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
57778         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
57779         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
57780         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
57781         (ISPRINT): Remove; no longer needed now that we assume C89.
57782
57783         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
57784         Preserve errno.
57785
57786         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
57787         quotearg_char): Use SIZE_MAX rather than
57788         (size_t) -1 when we are talking about "infinity".
57789
57790         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
57791
57792 2002-11-22  Paul Eggert  <eggert@twinsun.com>
57793
57794         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
57795         hint that one should use `if (! x) abort ();' rather than `assert
57796         (x);', and anyway it's one less thing to worry about configuring.
57797         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
57798         hash_rehash, hash_insert): Use abort rather than assert.
57799
57800 2002-11-22  Bruno Haible  <bruno@clisp.org>
57801
57802         * lib/safe-read.h: Assume C89. Add comments.
57803         (safe_read): Change return type to size_t.
57804         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
57805         byte counts > SSIZE_MAX correctly.
57806         * lib/safe-write.h: New file.
57807         * lib/safe-write.c: New file.
57808         * lib/full-read.h: New file.
57809         * lib/full-read.c: New file.
57810         * lib/full-write.h: Assume C89. Add comments.
57811         * lib/full-write.c: Include safe-write.h.
57812         (full_write): Rewritten to use safe_write.
57813         Suggested by Jim Meyering and Paul Eggert.
57814
57815 2002-11-21  Jim Meyering  <jim@meyering.net>
57816
57817         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
57818
57819         Merge in changes from the coreutils.
57820
57821         2002-09-25  Paul Eggert  <eggert@twinsun.com>
57822         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
57823         <stdint.h>.
57824         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
57825         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
57826         int.  Work more efficiently if X is the same width as uintmax_t.
57827         Do not compare X to -1, to avoid bogus compiler warning.
57828         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
57829         Don't assume that f_frsize and f_bsize are the same type.
57830
57831         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
57832         warning on FreeBSD.
57833
57834         * lib/makepath.c (make_path): Restore umask *before* creating the final
57835         component.
57836         (make_path): Minor reformatting.
57837
57838         * lib/xmalloc.c: Adjust to work with new autoconf macros,
57839         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
57840         HAVE_MALLOC/HAVE_REALLOC.
57841
57842         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
57843         dummy ones.  At least on GNU/Linux systems, `auto' means something
57844         else.
57845         From Michael Stone.
57846
57847 2002-11-21  Bruno Haible  <bruno@clisp.org>
57848
57849         Remove case insensitive option matching.
57850         * lib/argmatch.h (argcasematch): Remove declaration.
57851         (ARGCASEMATCH): Remove macro.
57852         (__xargmatch_internal): Remove case_sensitive argument.
57853         (XARGMATCH): Update.
57854         (XARGCASEMATCH): Remove macro.
57855         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
57856         case_sensitive argument.
57857         (argcasematch): Remove function.
57858         (__xargmatch_internal): Remove case_sensitive argument.
57859         (main): Use XARGMATCH instead of XARGCASEMATCH.
57860
57861         * lib/xmalloc.c: Change compile-time error message. Add comment about
57862         required autoconf version.
57863
57864 2002-11-20  Paul Eggert  <eggert@twinsun.com>
57865
57866         Merge argmatch cleanups from Bison.  Assume C89.
57867
57868         * lib/argmatch.c: Include config.h here, not in argmatch.h.
57869         Include stdlib.h, for EXIT_FAILURE.
57870         Always include <string.h>, since we assume C89.
57871         (EXIT_FAILURE): Remove pre-C89 bug workaround.
57872         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
57873         Include <stddef.h> instead, since it's all we need for size_t.
57874         (PARAMS): Remove.  All uses removed.
57875         (ARRAY_CARDINALITY): Do not bother to #undef.
57876         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
57877         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
57878         Remove unnecessary parentheses.
57879         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
57880         Insert necessary parentheses.
57881         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
57882         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
57883
57884 2002-11-19  Bruno Haible  <bruno@clisp.org>
57885
57886         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
57887         * lib/mbswidth.h: Include <stddef.h>, for size_t.
57888
57889         * lib/mbswidth.h (PARAMS): Remove macro.
57890         (mbswidth, mbsnwidth): Use ANSI C function declarations.
57891         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
57892
57893         * lib/gcd.h (PARAMS): Remove macro.
57894         (gcd): Use ANSI C function declarations.
57895         * lib/gcd.c (gcd): Likewise.
57896
57897 2002-11-15  Bruno Haible  <bruno@clisp.org>
57898
57899         * lib/strcspn.c: Include <stddef.h>.
57900         (strcspn): Use ANSI C function declaration. Change return type to
57901         size_t. Use NULL.
57902         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
57903         (strpbrk): Use NULL.
57904         * lib/strpbrk.h (PARAMS): Remove macro.
57905         (strpbrk): Use ANSI C function declaration.
57906         * lib/strstr.c: Don't include <sys/types.h>.
57907         * lib/strstr.h (PARAMS): Remove macro.
57908         (strstr): Use ANSI C function declarations.
57909
57910 2002-11-14  Karl Berry  <karl@gnu.org>
57911
57912         * config/mkinstalldirs: `do' on separate line, instead of
57913         `for var; do'.
57914
57915 2002-11-06  Bruno Haible  <bruno@clisp.org>
57916
57917         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
57918         * lib/gcd.c (gcd): Likewise.
57919
57920 2002-11-05  Bruno Haible  <bruno@clisp.org>
57921
57922         * lib/gcd.h: New file, from gettext-0.11.5.
57923         * lib/gcd.c: New file, from gettext-0.11.5.
57924
57925 2002-11-05  Bruno Haible  <bruno@clisp.org>
57926
57927         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57928         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57929         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57930         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57931
57932         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
57933         <libintl.h>.
57934         * lib/makepath.c: Include gettext.h instead of <locale.h> and
57935         <libintl.h>.
57936
57937         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
57938         * lib/human.c: Include gettext.h instead of <libintl.h>.
57939         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
57940         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
57941         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
57942         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
57943         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
57944         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
57945         (textdomain): Remove definition.
57946         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
57947
57948         * lib/long-options.c: Remove include of <libintl.h> and definition of
57949         _.
57950         * lib/same.c: Remove include of <libintl.h> and definition of _.
57951
57952 2002-11-04  Owen Taylor  <otaylor@redhat.com>
57953
57954         * lib/config.charset: A few additions for Solaris.
57955
57956 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
57957
57958         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
57959         * lib/localcharset.c (locale_charset): Declare as extern "C".
57960
57961 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
57962
57963         * lib/config.charset: msdos in uk_UA uses CP1125.
57964
57965 2002-11-04  Bruno Haible  <bruno@clisp.org>
57966
57967         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
57968         * lib/strcase.h: New file, from GNU gettext-0.11.5.
57969         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
57970         * lib/strstr.h: New file, from GNU gettext-0.11.5.
57971         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
57972
57973 2002-11-04  Bruno Haible  <bruno@clisp.org>
57974
57975         * lib/localcharset.c (locale_charset): Don't return an empty string.
57976
57977 2002-11-04  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
57980         aliases.
57981
57982 2002-11-04  Bruno Haible  <bruno@clisp.org>
57983
57984         * lib/config.charset: Update for newest glibc. Add canonical names
57985         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
57986
57987 2002-11-04  Bruno Haible  <bruno@clisp.org>
57988
57989         * lib/config.charset: Add support for NetBSD.
57990
57991 2002-11-04  Bruno Haible  <bruno@clisp.org>
57992
57993         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
57994
57995 2002-11-01  Bruno Haible  <bruno@clisp.org>
57996
57997         * configure.in: Add AC_CONFIG_AUX_DIR call.
57998         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
57999         test/Makefile.
58000         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
58001
58002 2002-09-28  Karl Berry  <karl@gnu.org>
58003
58004         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
58005         installed automake until the next release, since changes have been
58006         made.
58007
58008 2002-09-25  Karl Berry  <karl@gnu.org>
58009
58010         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
58011         * lib/getopt*: copy from libc/posix.
58012         * lib/gettext.h: copy from gettext.
58013         * lib/.cppi-disable: add strdup.c, gettext.h.
58014
58015 2002-09-25  Karl Berry  <karl@gnu.org>
58016
58017         * config/srclist.txt: enable gettext.h check.
58018         * config/config.{guess,sub}: update from prep.
58019         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
58020                 from automake 1.6.3.
58021         See srclist*.
58022
58023 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
58024
58025         * regex.c (PATFETCH): Remove the translating fetch.
58026         (PATFETCH_RAW): Rename to PATFETCH.
58027         (set_image_of_range): New fun.
58028         (SET_RANGE_TABLE_WORK_AREA): Use it.
58029         (regex_compile): Don't translate the pattern chars so eagerly.
58030         Only do it when inserting an `exactn' bytecode or when handling
58031         a char-range.
58032         (mutually_exclusive_p): Avoid empty statement.
58033
58034 2002-07-06  Jim Meyering  <meyering@lucent.com>
58035
58036         * m4/README: Don't mention Makefile.am.in.
58037         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
58038
58039 2002-07-01  Jim Meyering  <meyering@lucent.com>
58040
58041         * lib/c-stack.c: Include sys/time.h.
58042         From Volker Borchert.
58043
58044 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58045
58046         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
58047
58048 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58049
58050         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
58051         New macro.  Use it uniformly instead of
58052         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
58053         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
58054         reported by Vin Shelton.
58055
58056 2002-06-22  Paul Eggert  <eggert@twinsun.com>
58057
58058         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
58059         Do not assume SA_SIGINFO behavior.
58060         Bug reported by Jim Meyering on NetBSD 1.5.2.
58061
58062 2002-06-22  Jim Meyering  <meyering@lucent.com>
58063
58064         * m4/c-stack.m4: New file, from diffutils-2.8.2.
58065         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
58066
58067         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
58068         now that configure.ac uses AC_GNU_SOURCE.
58069         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
58070         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
58071
58072         Update to latest tools.  Suggestions from Paul Eggert.
58073         * m4/stdbool.m4: New file, from diffutils-2.8.2.
58074         * m4/gnu-source.m4: Update from diffutils-2.8.2.
58075         * m4/fnmatch.m4: Likewise.
58076         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
58077         to AC_HEADER_STDBOOL
58078
58079 2002-06-22  Jim Meyering  <meyering@lucent.com>
58080
58081         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
58082         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
58083
58084 2002-06-22  Jim Meyering  <meyering@lucent.com>
58085
58086         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
58087
58088         * lib/exitfail.c, exitfail.h: Likewise.
58089         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
58090
58091         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
58092         of fnmatch.h.
58093         (EXTRA_DIST): Add fnmatch_loop.c.
58094         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
58095
58096         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
58097         * lib/fnmatch.c: Update from diffutils-2.8.2.
58098         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
58099         * lib/fnmatch.h: Remove file.
58100
58101 2002-06-21  Jim Meyering  <meyering@lucent.com>
58102
58103         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
58104         * m4/mbrtowc.m4: Likewise.
58105
58106         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
58107         * m4/mbswidth.m4: Reflect name change:
58108         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
58109         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58110
58111         * m4/lib-link.m4: Update from gettext-0.11.2.
58112         * m4/gettext.m4: Likewise.
58113
58114         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
58115         From Alfred M. Szmidt.
58116
58117 2002-06-18  Paul Eggert  <eggert@twinsun.com>
58118
58119         * lib/file-type.h: Report an error if neither S_ISREG nor
58120         S_IFREG is defined, instead of using a test specific to glibc
58121         2.2.  This should be safe, since POSIX requires S_ISREG and
58122         Unix Version 7 had S_IFREG.  We don't need to check for
58123         <sys/types.h> since we don't use any symbols that it defines.
58124
58125 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
58126
58127         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
58128         $@-t, so that each temporary file name is unique and valid in the first
58129         8 characters, for operation under DOS.
58130
58131 2002-06-15  Paul Eggert  <eggert@twinsun.com>
58132
58133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
58134
58135 2002-06-15  Jim Meyering  <meyering@lucent.com>
58136
58137         Work even with DJGPP 2.03, which lacks support for symlinks.
58138         From Richard Dawe.
58139         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
58140         is defined.
58141         * lib/lchown.c (S_ISLNK): Likewise.
58142
58143 2002-06-15  Jim Meyering  <meyering@lucent.com>
58144
58145         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
58146         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
58147         have been included before this file.
58148
58149 2002-06-14  Jim Meyering  <meyering@lucent.com>
58150
58151         * lib/file-type.h: Use the version from diffutils-2.8.2.
58152         * lib/file-type.c: Likewise.
58153
58154 2002-06-07  Jim Meyering  <meyering@lucent.com>
58155
58156         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
58157         They're needed at least for NetBSD 1.5.2.
58158         ($statxfs_includes): Include those same headers.
58159         ($statxfs_includes): Include sys/vfs.h if available.
58160         ($statxfs_includes): Likewise for sys/statvfs.h.
58161         Check for the following members in both structs statfs and statvfs:
58162         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
58163
58164 2002-06-01  Jim Meyering  <meyering@lucent.com>
58165
58166         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
58167         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
58168
58169 2002-05-28  Jim Meyering  <meyering@lucent.com>
58170
58171         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
58172         Reported by Volker Borchert.
58173
58174 2002-05-27  Jim Meyering  <meyering@lucent.com>
58175
58176         Fix a problem seen only on nonconforming systems whereby ls.c's
58177         use of localtime, and then of gettimeofday would cause trouble:
58178         the localtime call used to initialize rpl_gettimeofday's save
58179         mechanism would clobber ls's current local time information so
58180         that in any long listing the first file would always be listed
58181         with date 1970-01-01.  Analysis by Volker Borchert.
58182
58183         * lib/gettimeofday.c (localtime): Undefine.
58184         (rpl_localtime): New function.
58185
58186 2002-05-27  Jim Meyering  <meyering@lucent.com>
58187
58188         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
58189         localtime.
58190
58191         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
58192         use the replacement function; it wouldn't resolve at link time.
58193         Reported by Volker Borchert.
58194
58195 2002-05-22  Jim Meyering  <meyering@lucent.com>
58196
58197         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
58198         file-type.h.
58199         * lib/file-type.h: New file.
58200         * lib/file-type.c (file_type): New file/function.  Extracted from
58201         diffutils.
58202
58203 2002-04-30  Jim Meyering  <meyering@lucent.com>
58204
58205         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
58206
58207 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58208
58209         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
58210
58211 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58212
58213         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
58214         Do not check for alloca.h (no longer used) or stdbool.h (was never
58215         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
58216
58217 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58218
58219         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
58220
58221 2002-04-29  Jim Meyering  <meyering@lucent.com>
58222
58223         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
58224         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
58225         Use AC_FUNC_STRNLEN here instead.
58226
58227         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
58228         With autoconf-2.53a, it's part of AC_PROG_CC.
58229
58230 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58231
58232         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
58233         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
58234
58235 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58236
58237         * lib/sig2str.h, lib/sig2str.c: New files.
58238         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
58239
58240 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58241
58242         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
58243         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
58244         of 127, since 64 is the largest conceivable number for ancient
58245         nonstandard hosts.
58246         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
58247
58248 2002-04-28  Jim Meyering  <meyering@lucent.com>
58249
58250         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
58251
58252 2002-04-24  Jim Meyering  <meyering@lucent.com>
58253
58254         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
58255         (jm_PREREQ): Use it.
58256
58257         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
58258         mach/mach.h fcntl.h.
58259         Check for this function: setlocale.
58260
58261 2002-04-24  Jim Meyering  <meyering@lucent.com>
58262
58263         * lib/gettext.h: New file, from Gettext.
58264         * lib/Makefile.am (INCLUDES): Remove -I../intl.
58265         (libfetish_a_SOURCES): Add gettext.h.
58266
58267 2002-04-16  Jim Meyering  <meyering@lucent.com>
58268
58269         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
58270         ut_pid, ut_id, ut_exit.
58271
58272 2002-04-16  Jim Meyering  <meyering@lucent.com>
58273
58274         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
58275         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
58276         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
58277
58278 2002-04-12  Jim Meyering  <meyering@lucent.com>
58279
58280         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
58281         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
58282         existence of the getmntinfo function.  Needed for Darwin 5.3.
58283
58284         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
58285         This is necessary at least on Darwin 5.3.
58286
58287         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
58288         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
58289         strnlen.o in the library, and that makes some versions of ranlib
58290         object.
58291
58292 2002-04-12  Jim Meyering  <meyering@lucent.com>
58293
58294         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
58295
58296 2002-04-09  Jim Meyering  <meyering@lucent.com>
58297
58298         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
58299         to be more precise.  Rather than saying we're checking whether the
58300         function `works', say what we're testing.
58301         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
58302         Reported by Bruno Haible.
58303
58304 2002-03-10  Jim Meyering  <meyering@lucent.com>
58305
58306         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
58307         Suggestion from Santiago Vila.
58308
58309 2002-03-08  Jim Meyering  <meyering@lucent.com>
58310
58311         * lib/rename.c: Mention that this wrapper is needed also on
58312         mips-dec-ultrix4.4 systems.
58313
58314 2002-03-02  Jim Meyering  <meyering@lucent.com>
58315
58316         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
58317         not HAVE_CLOCK_SETTIME.
58318
58319 2002-02-27  Paul Eggert  <eggert@twinsun.com>
58320
58321         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
58322         Check for clock_settime.
58323
58324 2002-02-27  Paul Eggert  <eggert@twinsun.com>
58325
58326         * lib/nanosleep.h: Rename to....
58327         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
58328
58329         * lib/gettime.c: New file.
58330         * lib/settime.c: New file.
58331         * lib/stime.c: Remove.
58332
58333         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
58334         timespec.h.  Remove nanosleep.h.
58335
58336 2002-02-25  Paul Eggert  <eggert@twinsun.com>
58337
58338         * m4/acl.m4: New file.
58339         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
58340         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
58341
58342 2002-02-25  Paul Eggert  <eggert@twinsun.com>
58343
58344         * lib/acl.c, lib/acl.h: New files.
58345         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
58346
58347 2002-02-24  Jim Meyering  <meyering@lucent.com>
58348
58349         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
58350         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
58351         cause trouble.  Reported by Nelson Beebe.
58352
58353 2002-02-23  Paul Eggert  <eggert@twinsun.com>
58354
58355         * lib/path-concat.c (xpath_concat): Reorder code to pacify
58356         compilers that don't know that xalloc_die never returns.
58357
58358 2002-02-20  Jim Meyering  <meyering@lucent.com>
58359
58360         * lib/getdate.c: Regenerate using bison-1.33.
58361
58362 2002-02-17  Jim Meyering  <meyering@lucent.com>
58363
58364         * config/config.guess (main): Don't use `head -1'; it's no longer
58365         portable. Use `sed 1q' instead.
58366
58367 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
58368
58369         * m4/codeset.m4: Upgrade to gettext-0.11.
58370         * m4/gettext.m4: Upgrade to gettext-0.11.
58371         * m4/glibc21.m4: Upgrade to gettext-0.11.
58372         * m4/iconv.m4: Upgrade to gettext-0.11.
58373         * m4/isc-posix.m4: Upgrade to gettext-0.11.
58374         * m4/lcmessage.m4: Upgrade to gettext-0.11.
58375         * m4/lib-ld.m4: New file, from gettext-0.11.
58376         * m4/lib-link.m4: New file, from gettext-0.11.
58377         * m4/lib-prefix.m4: New file, from gettext-0.11.
58378         * m4/progtest.m4: Upgrade to gettext-0.11.
58379
58380 2002-02-15  Paul Eggert  <eggert@twinsun.com>
58381
58382         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
58383         (jm_PREREQ): Use it.
58384
58385 2002-02-15  Paul Eggert  <eggert@twinsun.com>
58386
58387         * lib/posixver.c, lib/posixver.h: New files.
58388         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
58389
58390 2002-02-02  Paul Eggert  <eggert@twinsun.com>
58391             Bruno Haible  <bruno@clisp.org>
58392
58393         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
58394         (fwrite_success_callback): New declaration.
58395         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
58396         print_unicode_char. Call failure callback instead of error.
58397         (fwrite_success_callback): New function.
58398         (exit_failure_callback): New function.
58399         (fallback_failure_callback): New function.
58400         (print_unicode_char): Call unicode_to_mb.
58401
58402 2002-01-26  Jim Meyering  <meyering@lucent.com>
58403
58404         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
58405         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
58406
58407 2002-01-26  Jim Meyering  <meyering@lucent.com>
58408
58409         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
58410
58411 2002-01-22  Paul Eggert  <eggert@twinsun.com>
58412
58413         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
58414
58415 2002-01-22  Jim Meyering  <meyering@lucent.com>
58416
58417         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
58418         Otherwise, some versions of automake would omit the rule that makes
58419         Makefile from Makefile.in.
58420
58421 2002-01-21  Paul Eggert  <eggert@twinsun.com>
58422
58423         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
58424         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
58425         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
58426         (memcoll): Set errno to zero if there is no error.
58427
58428         * lib/quotearg.c (quotearg_buffer_restyled):
58429         Fix bug with quoting buffers containing NUL when backslashing escapes.
58430         This bug was exposed by the other changes in this patch.
58431         (quotearg_n_options): New arg ARGSIZE.
58432         All callers changed.
58433         (quoting_options_from_style): New function.
58434         (quotearg_n_style): Use it.
58435         (quotearg_n_style_mem): New function.
58436
58437         * lib/quotearg.h (quotearg_n_style_mem): New function.
58438
58439 2002-01-19  Jim Meyering  <meyering@lucent.com>
58440
58441         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
58442         Remove useless quotes: DF_PROG="df".
58443         * m4/strnlen.m4: New file.
58444
58445 2002-01-16  Paul Eggert  <eggert@twinsun.com>
58446
58447         * lib/backupfile.c (ISDIGIT): Comment fix.
58448         * lib/getdate.y (ISDIGIT): Likewise.
58449         * lib/posixtm.c (ISDIGIT, year): Likewise.
58450         * lib/strverscmp.c (ISDIGIT): Likewise.
58451         * lib/userspec.c (ISDIGIT): Likewise.
58452
58453 2002-01-16  Jim Meyering  <meyering@lucent.com>
58454
58455         * lib/getdate.y: Add three semicolons, each just before a closing
58456         brace. Bison (as of version 1.31) no longer papers over that mistake.
58457
58458 2002-01-05  Jim Meyering  <meyering@lucent.com>
58459
58460         * lib/version-etc.c (version_etc_copyright): Update copyright year.
58461
58462 2001-12-19  Paul Eggert  <eggert@twinsun.com>
58463
58464         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
58465         not silently exit merely because the output buffer happens to
58466         have nothing pending.
58467
58468 2001-12-18  Paul Eggert  <eggert@twinsun.com>
58469
58470         See the big note in ../ChangeLog.
58471         * lib/human.c (suffixes): Prefer K to k for 1024.
58472         (generate_suffix_backwards): New function.
58473         (human_readable_inexact): Use it.
58474         * lib/xstrtol.c (__xstrtol): If there is no number but there
58475         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
58476         Accept 'K' as well as 'k'.
58477
58478 2001-12-15  Jim Meyering  <meyering@lucent.com>
58479
58480         * lib/regex.h (__restrict_arr): Update from libc.
58481
58482         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
58483         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
58484         (STREQ): Define.
58485
58486 2001-12-14  Jim Meyering  <meyering@lucent.com>
58487
58488         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
58489         Suggestion from Bruno Haible.
58490
58491 2001-12-10  Jim Meyering  <meyering@lucent.com>
58492
58493         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
58494         xrealloc, Instead, include "xalloc.h".
58495         (initbuffer): Don't cast xmalloc return value to char*.
58496         (readline): Reword comment.
58497         Don't cast xrealloc return value to char*
58498         Return NULL, not 0.
58499
58500 2001-12-09  Jim Meyering  <meyering@lucent.com>
58501
58502         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
58503         about `signed and unsigned type in conditional expression'.
58504         * lib/posixtm.c (posix_time_parse): Likewise.
58505
58506         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
58507
58508         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
58509         to avoid a pedantic warning.
58510
58511         * lib/getstr.c: Don't include assert.h.
58512         (getstr): Remove warning-evoking assertions.
58513         Return -1 if offset parameter is out of bounds.
58514         Change the type of a local from int to size_t.
58515
58516         * lib/strftime.c (my_strftime_localtime_r): Include this function
58517         definition in the `#if ! HAVE_TM_GMTOFF' block.
58518
58519         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
58520         Include xalloc.h instead.
58521
58522 2001-12-02  Jim Meyering  <meyering@lucent.com>
58523
58524         * lib/tempname.c: Don't declare getenv, thus reverting the change of
58525         2001-11-18.  It's no longer necessary, now that stdlib.h is always
58526         included.
58527
58528         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
58529         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
58530
58531 2001-11-30  Akim Demaille  <akim@epita.fr>
58532
58533         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
58534         before being defined.
58535
58536 2001-11-27  Paul Eggert  <eggert@twinsun.com>
58537
58538         * lib/quotearg.h (quotearg_n, quotearg_n_style):
58539         First arg is int, not unsigned.
58540         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
58541         (SIZE_MAX, UINT_MAX): New macros.
58542         (quotearg_n_options): Abort if N is negative.
58543         Avoid overflow check on hosts where size_t is 64 bits and int
58544         is 32 bits, as overflow is impossible there.
58545         Fix off-by-one typo that caused unnecessary reallocation.
58546
58547 2001-11-27  Jim Meyering  <meyering@lucent.com>
58548
58549         * lib/tempname.c: Merge with version from libc.
58550         * lib/regex.c: Likewise.
58551
58552         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
58553         systems for which STDC_HEADERS is 0, it was not included, resulting in
58554         a warning about an integer-to-pointer conversion problem with getenv.
58555         Reported by Volker Borchert.
58556
58557 2001-11-26  Jim Meyering  <meyering@lucent.com>
58558
58559         * lib/gtod.h: Remove file.
58560         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
58561         * lib/gettimeofday.c: Don't include gtod.h.
58562         (GTOD_init): Remove function.
58563         (rpl_gettimeofday): Do its job here instead, rather than aborting.
58564         Suggestion from Volker Borchert.
58565
58566 2001-11-23  Jim Meyering  <meyering@lucent.com>
58567
58568         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
58569         it.
58570         * lib/hash.c (struct hash_table): Define it here instead.
58571
58572 2001-11-22  Jim Meyering  <meyering@lucent.com>
58573
58574         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
58575
58576 2001-11-20  Jim Meyering  <meyering@lucent.com>
58577
58578         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
58579         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
58580
58581 2001-11-19  Jim Meyering  <meyering@lucent.com>
58582
58583         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
58584         directory.  Use "conftestXXXXXX" as the template.
58585         Suggestion from Paul Eggert.
58586
58587         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
58588         immediately, so the test doesn't mistakenly hit the max-open-files
58589         limit.
58590
58591 2001-11-18  Paul Eggert  <eggert@twinsun.com>
58592
58593         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
58594         (TEMPORARIES): New macro.
58595         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
58596         removes an artificial limitation (e.g. HP-UX 10.20, where
58597         TMP_MAX is 17576).
58598
58599 2001-11-18  Jim Meyering  <meyering@lucent.com>
58600
58601         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
58602
58603 2001-11-18  Jim Meyering  <meyering@lucent.com>
58604
58605         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
58606         on SunOS 4.
58607
58608         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
58609         files will be created before anything else.
58610
58611 2001-11-17  Paul Eggert  <eggert@twinsun.com>
58612
58613         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
58614         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
58615
58616 2001-11-17  Jim Meyering  <meyering@lucent.com>
58617
58618         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
58619         Prompted by a report from Bob Proulx.
58620
58621         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
58622         Instead, require UTILS_FUNC_MKSTEMP.
58623
58624 2001-11-17  Jim Meyering  <meyering@lucent.com>
58625
58626         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
58627         Now, that's done as part of AC_FUNC_STRTOD.
58628
58629 2001-11-17  Jim Meyering  <meyering@lucent.com>
58630
58631         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
58632         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
58633         rather than group writable.  Patch by Juan F. Codagnone.
58634
58635         * lib/readtokens.c: Remove explicit declarations of xmalloc and
58636         xrealloc, Instead, include "xalloc.h".
58637
58638         * lib/mountlist.c: Include unlocked-io.h after all system headers.
58639         Remove explicit declarations of xmalloc, xrealloc,
58640         and xstrdup.  Instead, include "xalloc.h".
58641
58642         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
58643         unlocked-io.h.
58644         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
58645         Likewise.
58646         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
58647
58648         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
58649         Reported by Padraig Brady.
58650
58651         * lib/mkstemp.c: #undef mkstemp.
58652         Include config.h.
58653         (rpl_mkstemp): Rename from mkstemp.
58654         Protoize.
58655
58656 2001-11-16  Jim Meyering  <meyering@lucent.com>
58657
58658         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
58659         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
58660         determine the amount of total physical memory, use pstat_getstatic.
58661         HPUX-11 doesn't define _SC_PHYS_PAGES.
58662         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
58663         If sysconf couldn't be used to determine the amount of available
58664         physical memory, use both pstat_getstatic and pstat_getdynamic.
58665         Based on a patch from Bob Proulx.
58666
58667 2001-11-10  Jim Meyering  <meyering@lucent.com>
58668
58669         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
58670         (jm_PREREQ): Use it.
58671
58672 2001-11-09  Jim Meyering  <meyering@lucent.com>
58673
58674         * m4/jm-macros.m4: Require autoconf-2.52f.
58675         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
58676         Use these AC_-prefixed names, not the AM_-prefixed ones.
58677
58678         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
58679
58680 2001-11-05  Jim Meyering  <meyering@lucent.com>
58681
58682         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
58683
58684 2001-11-04  Jim Meyering  <meyering@lucent.com>
58685
58686         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
58687         $DEFS.
58688
58689 2001-11-03  Jim Meyering  <meyering@lucent.com>
58690
58691         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
58692         of AC_DEFUN.
58693
58694         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
58695         know the name of the variable in the macro definition.
58696
58697 2001-11-03  Jim Meyering  <meyering@lucent.com>
58698
58699         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
58700         in argmatch_to_argument call.
58701
58702         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
58703         argument.
58704
58705         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
58706         e.g., a fault due to an attempt to free a NULL pointer.
58707
58708 2001-11-01  Jim Meyering  <meyering@lucent.com>
58709
58710         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
58711         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
58712
58713 2001-11-01  Jim Meyering  <meyering@lucent.com>
58714
58715         * lib/dirfd.c, lib/dirfd.h: New files.
58716         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
58717
58718         * lib/hash.c (hash_print) [TESTING]: Clean up.
58719
58720 2001-10-22  Paul Eggert  <eggert@twinsun.com>
58721
58722         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
58723         to avoid a warning if -Wall.
58724
58725 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
58726
58727         * README: New file
58728         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
58729         (per RMS's instructions, this is now the canonical source)
58730         * lgpl/, gpl/: New directories.
58731
58732 2001-10-21  Paul Eggert  <eggert@twinsun.com>
58733
58734         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
58735
58736 2001-10-21  Jim Meyering  <meyering@lucent.com>
58737
58738         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
58739         this code would end up calling gettext even in packages built
58740         with --disable-nls.
58741         * lib/getopt.c (_): Likewise.
58742         * lib/regex.c (_): Likewise.
58743
58744 2001-10-20  Paul Eggert  <eggert@twinsun.com>
58745
58746         * m4/error.m4 (jm_PREREQ_ERROR):
58747         Do not invoke AC_CHECK_FUNCS with strerror_r, as
58748         AC_FUNC_STRERROR_R does that.
58749         Check for strerror declaration.
58750
58751         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
58752         are supposed to have them these days.
58753         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
58754         Merge changes from latest Autoconf CVS.
58755         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
58756         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
58757         POSIX decided to standardize on the int flavor of strerror_r.
58758
58759 2001-10-20  Paul Eggert  <eggert@twinsun.com>
58760
58761         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
58762         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
58763         Use strerror_r that is only a macro, even if it is not a function.
58764         (strerror): Check for HAVE_DECL_STRERROR before declaring.
58765         (private_strerror): Use prototypes, not old-style function definition.
58766         (print_errno_message): New function.
58767         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
58768         char*-flavored one.
58769         (error_tail, error, error_at_line): Use it.
58770
58771 2001-10-11  Jim Meyering  <meyering@lucent.com>
58772
58773         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
58774         and quote_n (1, ... to avoid clobbering a buffer.
58775
58776 2001-10-05  Jim Meyering  <meyering@lucent.com>
58777
58778         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
58779         hash-pjw.h.
58780         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
58781         * lib/hash-pjw.h: New file.
58782
58783 2001-09-30  Jim Meyering  <meyering@lucent.com>
58784
58785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
58786         `struct fsstat' has the `f_fstypename' member.
58787         Use that to define FS_TYPE, which is now used to make
58788         the getfsstat link test tighter.
58789
58790 2001-09-30  Jim Meyering  <meyering@lucent.com>
58791
58792         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
58793         Include <sys/ucred.h>, for Apple Darwin.
58794         Include sys/mount.h and sys/fs_types.h only if available.
58795         (FS_TYPE): Define.
58796         (read_filesystem_list): Use FS_TYPE.
58797
58798 2001-09-29  Paul Eggert  <eggert@twinsun.com>
58799
58800         * lib/exclude.c (excluded_filename): 0 -> false, since it's
58801         a boolean context.
58802
58803 2001-09-29  Jim Meyering  <meyering@lucent.com>
58804
58805         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
58806         [one-argument getmntent function]): Include stdio.h before mntent.h.
58807         SunOS 4.1.x needs it for the declaration of `FILE'.
58808         Patch by Volker Borchert.
58809
58810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
58811         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
58812         sys/fs_types.h, and make the link-test for getfsstat guard #include
58813         directives with appropriate #if HAVE_*_H tests so that we can
58814         detect getfsstat on Apple Darwin1.3.7 systems.
58815         Reported by Nelson Beebe.
58816         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
58817
58818 2001-09-28  Paul Eggert  <eggert@twinsun.com>
58819
58820         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
58821         #defines strtoimax.  Also treat the other strto* functions
58822         like strtoimax.
58823
58824         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58825         Check for strtoul and strtoumax,
58826         as those declarations are made even in the signed case.
58827         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
58828         Likewise, for strtol and strtoimax.
58829
58830 2001-09-28  Paul Eggert  <eggert@twinsun.com>
58831
58832         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
58833         #defines strtoimax.  Also treat the other strto* functions
58834         like strtoimax.
58835
58836         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
58837         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
58838         (strtoimax, strtoumax): Do not declare if already defined as a macro.
58839
58840 2001-09-26  Jim Meyering  <meyering@lucent.com>
58841
58842         Most macros in unlocked-io.h had the wrong number of arguments.
58843         * lib/gen-uio: New script.
58844         (USE_UNLOCKED_IO): Define to 1 if not already defined.
58845         * lib/unlocked-io.hin: Remove file.
58846         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
58847         rather than trying to embed it here.
58848         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
58849         Reported by Padraig Brady.
58850
58851 2001-09-25  Volker Borchert  <bt@teknon.de>
58852
58853         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
58854         `result'.
58855
58856 2001-09-24  Jim Meyering  <meyering@lucent.com>
58857
58858         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
58859
58860 2001-09-23  Jim Meyering  <meyering@lucent.com>
58861
58862         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
58863         instead of the mere test for existence of mntent.h.  The latter
58864         would get a false-positive on AIX 3.4 systems.
58865         In the outer getmntent if-block, don't die if neither of the getmntent
58866         tests succeeds.  Instead, just fall through and continue with the
58867         remaining tests.
58868
58869 2001-09-23  Jim Meyering  <meyering@lucent.com>
58870
58871         * lib/mountlist.c: Remove useless parentheses in #if directives.
58872         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
58873         the deprecated MOUNTED symbol is no longer defined in mntent.h.
58874
58875 2001-09-22  Jim Meyering  <meyering@lucent.com>
58876
58877         * m4/gettext.m4: New file.  From gettext.
58878         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
58879         * m4/progtest.m4: Likewise
58880         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
58881         * m4/glibc21.m4: Likewise.
58882
58883         * m4/libintl.m4: Remove.  No longer used.
58884
58885 2001-09-22  Jim Meyering  <meyering@lucent.com>
58886
58887         * lib/localcharset.c: Update from latest gettext.
58888         * lib/config.charset: Likewise.
58889
58890 2001-09-20  Jim Meyering  <meyering@lucent.com>
58891
58892         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
58893         strtoimax.
58894         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
58895         strtoumax.
58896
58897 2001-09-20  Jim Meyering  <meyering@lucent.com>
58898
58899         * lib/xstrtol.c (strtoimax): Guard declaration with
58900         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
58901         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
58902         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
58903         (strtoumax): Likewise, for completeness (it wasn't necessary).
58904
58905 2001-09-17  Paul Eggert  <eggert@twinsun.com>
58906
58907         * lib/strtoimax.c (HAVE_LONG_LONG):
58908         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
58909         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
58910         to work around bug in IBM C compiler.
58911
58912 2001-09-17  Jim Meyering  <meyering@lucent.com>
58913
58914         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
58915         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
58916         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
58917         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
58918         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
58919         whenever the right hand side need not be expanded by the shell.
58920
58921 2001-09-16  Paul Eggert  <eggert@twinsun.com>
58922
58923         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
58924         library.  It's not correct, as some older glibcs are buggy.
58925         fnmatch wasn't fixed until glibc 2.2.
58926
58927         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
58928         special shell magic here.
58929
58930 2001-09-16  Jim Meyering  <meyering@lucent.com>
58931
58932         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
58933         * m4/jm-macros.m4: Require it.
58934
58935 2001-09-16  Jim Meyering  <meyering@lucent.com>
58936
58937         * lib/mkdir.c: New file.
58938
58939 2001-09-15  Jim Meyering  <meyering@lucent.com>
58940
58941         * m4/jm-macros.m4: Check for help2man.
58942
58943 2001-09-11  Jim Meyering  <meyering@lucent.com>
58944
58945         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
58946         The body, by Paul Eggert, was moved here from configure.in.
58947         * m4/jm-macros.m4: Require UTILS_HOST_OS.
58948
58949 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58950
58951         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
58952         (jm_PREREQ): Use it.
58953
58954 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58955
58956         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
58957         Use ssize_t, not int, to store result of readlink.
58958         Check for ssize_t overflow as well as size_t overflow,
58959         as POSIX says the result of readlink is implementation-defined
58960         when ssize_t overflows.
58961         Remove unnecessary cast to char*.
58962         Use free+malloc instead of realloc, as the storage doesn't need
58963         to be preserved and it's clearer and can be more efficient that way.
58964         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
58965         * lib/xreadlink.h (xreadlink): Update prototype.
58966
58967 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58968
58969         * lib/xgetcwd.c: Revert some of the previous change; intead,
58970         fix the HAVE_GETCWD_NULL code to behave more like the
58971         !HAVE_GETCWD_NULL code used to.
58972
58973         Include "xalloc.h".
58974         (xgetcwd): Do not return NULL when memory is exhausted; instead,
58975         invoke xalloc_die.
58976
58977 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58978
58979         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
58980         sys/param.h, as pathmax.h includes them.
58981
58982 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58983
58984         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
58985         (jm_PREREQ_XGETCWD): New macro.
58986
58987         * m4/getcwd.m4: New file.
58988
58989 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58990
58991         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
58992         like the HAVE_GETCWD_NULL code.
58993         Include pathmax.h if not HAVE_GETCWD.
58994         Do not include xalloc.h.
58995         (INITIAL_BUFFER_SIZE): New symbol.
58996         Do not use xmalloc / xrealloc, since the caller is responsible for
58997         handling errors.  Preserve errno around `free' during failure.
58998         Do not overrun buffer when using getwd.
58999
59000 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59001
59002         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
59003         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
59004         getcwd (NULL, 0).
59005
59006 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59007
59008         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
59009         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
59010         spotted by Jim Meyering.
59011
59012 2001-09-03  Jim Meyering  <meyering@lucent.com>
59013
59014         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
59015         failure.
59016
59017 2001-09-02  Jim Meyering  <meyering@lucent.com>
59018
59019         * lib/error.c: Update from GNU libc.
59020
59021 2001-09-01  Jim Meyering  <meyering@lucent.com>
59022
59023         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
59024         Used by df.
59025
59026 2001-09-01  Jim Meyering  <meyering@lucent.com>
59027
59028         * lib/xreadlink.c: New file.
59029         * lib/xreadlink.h: New file.
59030         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
59031         xreadlink.h.
59032
59033         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
59034         doesn't conflict with sparc Solaris 7's definition in
59035         /usr/include/sys/int_types.h.
59036
59037         * lib/exclude.c: Use `""', not `<>' to #include non-system header
59038         files.
59039         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
59040         and strncasecmp as r-values.  Unixware didn't have declarations.
59041
59042 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59043
59044         * lib/xstrtol.h: Add copyright notice.
59045         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
59046         LONGINT_INVALID_SUFFIX_CHAR.
59047
59048 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59049
59050         * lib/xstrtol.c (strtoimax): New decl.
59051
59052 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59053
59054         * lib/xgetcwd.c: Don't include pathmax.h.
59055         Include stdlib.h and unistd.h if available.
59056         Include xalloc.h.
59057         (xmalloc, xstrdup, free): Remove decls.
59058         (xgetcwd): Don't assume sizes fit in unsigned.
59059         Check for overflow when computing sizes.
59060         Simplify reallocation code.
59061
59062 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59063
59064         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
59065         a directory's st_size can have an arbitrary value, so the old
59066         usage could waste an arbitrary amount of memory.  All uses
59067         changed.
59068         * lib/savedir.h: Update prototype.
59069
59070 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59071
59072         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
59073
59074         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
59075         old strtoimax.c.
59076
59077         Also, make the following further changes to make this file's
59078         configuration more similar to that of strtol.c:
59079         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
59080         (strtoumax, uintmax_t, strtoull, strtol): Remove.
59081         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
59082         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
59083         changed to signed values.
59084
59085         And make the following changes as well:
59086         Fix copyright notice, as 1999 was missing.
59087         (verify): New macro.
59088         (strtoimax): Check sizes at compile-time, not run-time.
59089         Prefer strtol to strtoll if both work.
59090         (main): Remove; it was not that useful and was a pain to maintain.
59091
59092         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
59093
59094 2001-08-31  Jim Meyering  <meyering@lucent.com>
59095
59096         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
59097         Use an initial, malloc'd, buffer of length 128 rather than
59098         a statically allocated one of length 1024.
59099
59100 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59101
59102         Simplify code, partly by assuming autoconf 2.52 semantics.
59103
59104         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
59105
59106         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
59107         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
59108         All uses removed.
59109         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
59110         Move AC_REQUIRE to next-to-top level, to avoid confusion.
59111         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
59112         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
59113         jm_AC_HEADER_INTTYPES_H.
59114         * m4/jm-macros.m4 (jm_MACROS): Likewise.
59115
59116         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
59117
59118         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59119         Quote first arg of AC_DEFUN.
59120         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
59121         since they are needed to parse the include file even if we need
59122         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
59123         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
59124         but with opposite signedness.
59125
59126 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59127
59128         Merge 'exclude' changes from tar 1.13.22.
59129         This fixes one or two unlikely storage allocation overflow bugs,
59130         but doesn't change user-visible behavior otherwise.
59131
59132 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59133
59134         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
59135         (jm_PREREQ_EXCLUDE): New macro.
59136
59137 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59138
59139         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
59140         tm to be declared.
59141
59142 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59143
59144         * lib/hash.c: Remove '2001' from copyright notice.
59145
59146 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59147
59148         * lib/full-write.h: New file.
59149         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
59150         * lib/full-write.c: Correct credits, as cccp.c no longer
59151         exists and anyway it was so heavily changed from the old cccp
59152         code as to be unrecognizable.  Include full-write.h.
59153         (full_write) Return size_t, with short writes meaning failure.
59154         All callers changed.  This fixes a bug with large buffers
59155         on 64-bit hosts.
59156         * lib/utime.c: Include full-write.h.
59157
59158 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59159
59160         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
59161         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
59162         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
59163         Include if available.
59164         (<xalloc.h>): Include
59165         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
59166         (verify): New macro.  Use it to verify that EXCLUDE macros do not
59167         collide with FNM macros.
59168         (struct patopts): New struct.
59169         (struct exclude): Use it, as exclude patterns now come with options.
59170         (new_exclude): Support above changes.
59171         (new_exclude, add_exclude_file):
59172         Initial size must now be a power of two to simplify overflow checking.
59173         (free_exclude, fnmatch_no_wildcards): New function.
59174         (excluded_filename): No longer requires options arg, as the options
59175         are determined by add_exclude.  Now returns bool, not int.
59176         (excluded_filename, add_exclude):
59177         Add support for the fancy new exclusion options.
59178         (add_exclude, add_exclude_file): Now takes int options arg.
59179         Check for arithmetic overflow when computing sizes.
59180         (add_exclude_file): xrealloc might modify errno, so don't
59181         realloc until after errno might be used.
59182
59183         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
59184         New macros.
59185         (free_exclude): New decl.
59186         (add_exclude, add_exclude_file): Now takes int options arg.
59187         (excluded_filename): No longer requires options arg, as the options
59188         are determined by add_exclude.  Now returns bool, not int.
59189
59190 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59191
59192         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
59193
59194 2001-08-27  Jim Meyering  <meyering@lucent.com>
59195
59196         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
59197
59198         * lib/version-etc.c (N_): Remove definition.
59199         Revert most of last change.
59200         Instead, simply don't mark the `Copyright...' string for translation.
59201         Based on advice from Paul Eggert.
59202
59203         * lib/strtoxmax.c: Tweak comment.
59204
59205 2001-08-26  Jim Meyering  <meyering@lucent.com>
59206
59207         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
59208
59209         * m4/xstrtoimax.m4: New file.
59210         * m4/xstrtoumax.m4: Add comments explaining why we
59211         AC_REPLACE_FUNCS(strtol).
59212
59213 2001-08-26  Jim Meyering  <meyering@lucent.com>
59214
59215         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
59216         of copyright with `%s' so translators don't get an untranslated
59217         message in 2002.
59218         (COPYRIGHT_YEAR): Define.
59219         (version_etc): Use fprintf rather than fputs.
59220         Suggestion from Ulrich Drepper.
59221
59222         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
59223
59224         * lib/strtoll.c: New file, from GNU libc.
59225         * lib/xstrtoimax.c: New file.
59226
59227         * lib/xstrtol.h: Add xstrtoimax.
59228         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
59229         * lib/strtoimax.c: New file.  Likewise, but first define
59230         STRTOUXMAX_SIGNED.
59231
59232         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
59233         ...
59234         * lib/strtoxmax.c: ... then renamed to this.
59235
59236 2001-08-18  Paul Eggert  <eggert@twinsun.com>
59237
59238         * m4/inttypes.m4: Add AC_PREREQ(2.13).
59239         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
59240         (jm_AC_TYPE_INTMAX_T): New macro.
59241         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
59242
59243         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
59244
59245         * m4/longlong.m4: Renamed from ulonglong.m4.
59246         * m4/inttypes.m4: Renamed from inttypes_h.m4.
59247         * m4/uintmax_t.m4: Removed.
59248
59249 2001-08-13  Paul Eggert  <eggert@twinsun.com>
59250
59251         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
59252         Port to Solaris 8, where 'sed' requires a space after the 'r'
59253         command, and where sh dislikes "$/".  Clean up the spacing a bit.
59254         Redirect output to $tmp just once.
59255
59256 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
59257
59258         * lib/addext.c (<errno.h>): Include.
59259         (errno): Declare if not defined.
59260         (addext): Work correctly when pathconf returns -1 and leaves
59261         errno alone because there is no limit.  Also, work even if
59262         pathconf returns a value greater than SIZE_MAX.
59263
59264 2001-08-12  Jim Meyering  <meyering@lucent.com>
59265
59266         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
59267         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
59268         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
59269         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
59270         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
59271         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
59272         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
59273         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
59274         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
59275         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
59276         utime.m4, utimes.m4, xstrtoumax.m4:
59277         Quote the first argument in each use of AC_DEFUN.
59278
59279 2001-08-12  Jim Meyering  <meyering@lucent.com>
59280
59281         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
59282         Simply `return getcwd (NULL, 0);'.
59283         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
59284         Use 1300 as initial value for length, not PATH_MAX.
59285
59286         * lib/pathmax.h: Clean up cpp syntax.
59287
59288 2001-08-12  Jim Meyering  <meyering@lucent.com>
59289
59290         * lib/gettimeofday.c: New file.
59291         * lib/gtod.h: New file.
59292         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
59293
59294 2001-08-05  Jim Meyering  <meyering@lucent.com>
59295
59296         * m4/jm-macros.m4: Require autoconf-2.52.
59297
59298 2001-08-04  Jim Meyering  <meyering@lucent.com>
59299
59300         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
59301         stmt, to get in sync with glibc.
59302
59303 2001-08-03  Paul Eggert  <eggert@twinsun.com>
59304
59305         The following changes are from gettext 0.10.39 as maintained by
59306         Bruno Haible.
59307
59308         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
59309         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
59310         with inverted sense.  All uses changed.
59311
59312         * lib/mbswidth.c: Don't include <limits.h>.
59313         Include <stdlib.h> and <string.h> unconditionally.
59314         (iswcntrl, mbsinit, ISCNTRL): New macros.
59315         (mbsnwidth): Use K&R style function declarations.
59316         Don't bother checking for MB_LEN_MAX == 1, since the compiler
59317         can optimize it when MB_CUR_MAX == 1.
59318         The width of control characters is zero, not 1.
59319
59320 2001-08-03  Paul Eggert  <eggert@twinsun.com>
59321
59322         The following changes are from gettext 0.10.39 as maintained by
59323         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
59324
59325         * m4/codeset.m4: Upgrade to serial AM1.
59326         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
59327         all uses changed.  Quote first arg of AC_DEFUN.
59328         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
59329
59330         * m4/iconv.m4: Upgrade to serial AM2.
59331         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
59332         Add --with-libconv-prefix.
59333         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
59334         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
59335         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
59336         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
59337         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
59338
59339         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
59340         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
59341         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
59342         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
59343         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
59344         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
59345         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
59346         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
59347         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
59348
59349         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
59350         string.h any more.
59351
59352         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
59353         not the default value.
59354
59355         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
59356         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
59357         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
59358         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
59359         Also check for iswcntrl, used for wcwidth fallback.
59360         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
59361         to Autoconf 2.13.
59362
59363 2001-08-03  Jim Meyering  <meyering@lucent.com>
59364
59365         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
59366         as it was in the original.  Reported by Paul Eggert.
59367
59368 2001-07-16  Jim Meyering  <meyering@lucent.com>
59369
59370         * m4/gettimeofday.m4: New file.
59371         Prompted by a report from Bernhard Baehr.
59372
59373 2001-07-15  Jim Meyering  <meyering@lucent.com>
59374
59375         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
59376         stuff. Now it's in ../Makefile.cfg.
59377
59378 2001-07-15  Jim Meyering  <meyering@lucent.com>
59379
59380         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
59381         (BUILT_SOURCES): Add unlocked-io.h.
59382         (io_functions): Define.
59383         (unlocked-io.h): New rule.
59384         (DISTCLEANFILES): Add unlocked-io.h.
59385         (all-local): Depend on unlocked-io.h, to ensure it is created.
59386
59387         * lib/unlocked-io.hin: New file
59388
59389         * lib/regex.c: Update from glibc.
59390
59391 2001-07-05  Jim Meyering  <meyering@lucent.com>
59392
59393         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
59394         recommendation.
59395         (libfetish_a_SOURCES): Put all .h files here instead.
59396         Remove a thus-exposed (better checks in automake) duplicate and
59397         two unnecessary .h files.
59398
59399 2001-07-04  Jim Meyering  <meyering@lucent.com>
59400
59401         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
59402         that generates jm-glibc-io.m4 so that it doesn't trigger any make
59403         distcheck failure.
59404
59405 2001-07-02  Jim Meyering  <meyering@lucent.com>
59406
59407         The following changes were prompted by suggestions from Bruno Haible.
59408
59409         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
59410         is now generated.
59411         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
59412         definition of EXTRA_DIST.
59413         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
59414         ensure that the generated file is created/updated whenever the list
59415         of $(unlocked_functions) is changed.
59416         (jm-glibc-io.m4): New rule.
59417         (unlocked-io.h): New rule -- currently unused.
59418
59419 2001-06-24  Jim Meyering  <meyering@lucent.com>
59420
59421         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
59422         unmatched right bracket, rather than kludging it with an extra,
59423         falsely-matching quote in a comment.  Patch by Akim Demaille.
59424
59425 2001-06-11  Jim Meyering  <meyering@lucent.com>
59426
59427         * lib/regex.c: Update from GNU libc.
59428
59429 2001-05-27  Jim Meyering  <meyering@lucent.com>
59430
59431         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
59432         Check for ut_type in struct utmp.
59433
59434 2001-05-27  Jim Meyering  <meyering@lucent.com>
59435
59436         * lib/readutmp.h (UT_TYPE): Define.
59437
59438 2001-05-24  Jim Meyering  <meyering@lucent.com>
59439
59440         * lib/argmatch.c: Include "quote.h".
59441         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
59442         quote function.  Reported by Göran Uddeborg.
59443
59444 2001-05-22  Jim Meyering  <meyering@lucent.com>
59445
59446         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
59447         now that we use the package-supplied version unconditionally.
59448         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
59449
59450 2001-05-21  Jim Meyering  <meyering@lucent.com>
59451
59452         * m4/regex.m4: Change a couple backticks to single quotes to avoid
59453         shell syntax errors.
59454
59455 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
59456
59457         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
59458
59459 2001-05-20  Paul Eggert  <eggert@twinsun.com>
59460
59461         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
59462         Don't bother to check library strftime, since
59463         we'll be using our own my_strftime function anyway.
59464         Define my_strftime instead of strftime.
59465
59466 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
59467
59468         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
59469         which is not yet declared.
59470
59471 2001-05-15  Jim Meyering  <meyering@lucent.com>
59472
59473         * m4/regex.m4: Use proper quoting so brackets appear in the test
59474         program.
59475         Reported by, and with help from, Bruno Haible.
59476
59477 2001-05-13  Jim Meyering  <meyering@lucent.com>
59478
59479         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
59480         undefined.
59481
59482 2001-05-11  Paul Eggert  <eggert@twinsun.com>
59483
59484         dirname code cleanup.  base_name now behaves more compatibly
59485         with POSIX basename when given file names that have trailing
59486         slashes, and similarly for dir_name.  Add new primitives
59487         base_len and dir_len.  Put the directory-name-related decls
59488         into dirname.h.
59489
59490         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
59491         * lib/backupfile.c (base_name): Likewise.
59492         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
59493         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
59494         * lib/makepath.c (strip_trailing_slashes): Likewise.
59495         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
59496         ISSLASH): Likewise.
59497         * lib/rename.c (strip_trailing_slashes): Likewise.
59498         * lib/same.c (base_name): Likewise.
59499         * lib/stripslash.c (ISSLASH): Likewise.
59500
59501         * lib/addext.c: Include <dirname.h> after size_t is defined.
59502         * lib/backupfile.c: Likewise.
59503
59504         * lib/addext.c (addext): Use base_len to trim redundant
59505         trailing slashes instead of doing it ourselves.
59506         But do not trim the last slash if it is not redundant.
59507
59508         * lib/backupfile.c (find_backup_file_name,
59509         max_backup_version): Use base_len instead of rolling it ourselves.
59510         Handle the case of "" and (on DOS) "C:" correctly.
59511
59512         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
59513         needed. Include <string.h>, <dirname.h>.
59514         (base_name): Allow file names ending in slashes, other than names
59515         that are all slashes.  In this case, return the basename followed
59516         by the slashes.  This is more general, and can be used in places
59517         where the original base_name purposely had an assertion failure.
59518         (base_len): New function.
59519
59520         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
59521         Do not include <assert.h>; no longer needed.
59522         Include xalloc.h.
59523         (memrchr): Remove decl.
59524         (dir_name_r): Remove.
59525         (dir_len): Renamed from dirlen.  All callers changed.
59526         Rewrite in terms of base_name, for simplicity and consistency.
59527         (dir_name): Never return NULL.  All callers changed.
59528         Do not include <stdlib.h> in test program; no longer needed.
59529         return 0; is fine for test program.
59530
59531         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
59532         New macros.
59533         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
59534
59535         * lib/path-concat.c (path_concat): Use base_len to compute
59536         base length, not strlen; this means we cannot rely on memcpy
59537         to null-terminate.
59538
59539         * lib/same.c (STREQ): Remove.
59540         (same_name): Handle the case where the basename ends in trailing '/'.
59541
59542         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
59543         a slash was stripped.  Do not strip the last slash after a
59544         file system prefix.
59545
59546 2001-05-11  Paul Eggert  <eggert@twinsun.com>
59547
59548         * lib/Makefile.am (libfetish_a_SOURCES):
59549         Add strftime.c, since we now compile it on all hosts.
59550
59551         * lib/strftime.c (my_strftime):
59552         Define to nstrftime if emacs, but only if my_strftime is not defined.
59553         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
59554         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
59555         Add one more extra argument: a nanoseconds value.
59556         All uses changed.
59557         (ns): New macro.
59558         (my_strftime function): Add %N format.
59559         (emacs_strftimeu): Renamed from emacs_strftime,
59560         with extra ut argument.
59561
59562 2001-05-09  Paul Eggert  <eggert@twinsun.com>
59563
59564         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
59565
59566 2001-04-21  Jim Meyering  <meyering@lucent.com>
59567
59568         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
59569         doesn't interfere.
59570
59571 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
59572
59573         * m4/ftruncate.m4: Check for chsize.
59574         Link with ftruncate.o unconditionally if ftruncate is missing.
59575         This was required when cross-compiling to i586-mingw32msvc.
59576
59577 2001-04-08  Jim Meyering  <meyering@lucent.com>
59578
59579         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
59580         recomputed; that's necessary when the offset spans a DST transition.
59581         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
59582
59583 2001-04-02  Jim Meyering  <meyering@lucent.com>
59584
59585         * lib/regex.h, regex.c: Update from GNU libc.
59586
59587 2001-03-24  Jim Meyering  <meyering@lucent.com>
59588
59589         * m4/jm-macros.m4: Require autoconf-2.49d.
59590
59591 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
59592
59593         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
59594
59595 2001-03-19  Paul Eggert  <eggert@twinsun.com>
59596
59597         * lib/version-etc.c (version_etc_copyright): Update to 2001.
59598
59599 2001-03-17  Jim Meyering  <meyering@lucent.com>
59600
59601         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
59602         now that the version in autoconf is equivalent.
59603         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
59604
59605         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
59606         Suggestion from Akim Demaille.
59607
59608         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
59609         (jm_PREREQ_TEMPNAME): New function.
59610
59611 2001-03-16  Paul Eggert  <eggert@twinsun.com>
59612
59613         * lib/tempname.c (uint64_t): Define to uintmax_t if
59614         not defined, and if UINT64_MAX is not defined.
59615         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
59616         Reported by John David Anglin.
59617
59618 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
59619
59620         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
59621         resolve alias if codeset is empty.
59622         * lib/config.charset (BeOS): Use wildcard syntax.
59623
59624 2001-03-13  Jim Meyering  <meyering@lucent.com>
59625
59626         * lib/path-concat.c (path_concat)
59627         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
59628         concatenating e.g., `C:' and `foo'.
59629         From Bruno Haible.
59630
59631 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
59632
59633         * lib/localcharset.c (locale_charset): Don't use
59634         setlocale(LC_CTYPE,NULL). Don't return NULL.
59635         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
59636
59637 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
59638
59639         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
59640         support for DOS/DJGPP.
59641
59642 2001-03-01  Paul Eggert  <eggert@twinsun.com>
59643
59644         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
59645         lacks mkstemp.  Compile our own tempname.c if we compile our own
59646         mkstemp.c, as mkstemp relies on tempname.
59647
59648 2001-03-01  Jim Meyering  <meyering@lucent.com>
59649
59650         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
59651         AH_VERBATIM really does output its argument verbatim.
59652
59653 2001-02-28  Paul Eggert  <eggert@twinsun.com>
59654
59655         * lib/Makefile.am (libfetish_a_SOURCES):
59656         Add dup-safer.c, fopen-safer.c.
59657         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
59658
59659         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
59660         * lib/unistd-safer.h: New files.
59661
59662 2001-02-25  Paul Eggert  <eggert@twinsun.com>
59663
59664         The mkstemp replacement is taken from glibc 2.2.2, with some
59665         portability fixes for use outside glibc, as follows:
59666
59667         * lib/tempname.c (struct_stat64): New macro.
59668         (direxists, __gen_tempname): Use it.
59669         This avoids a portability problem with Solaris 8.
59670
59671         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
59672         (<stddef.h>, <stdint.h>, <string.h>):
59673         Include only if STDC_HEADERS || _LIBC.
59674         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
59675         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
59676         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
59677         (__set_errno): Define this macro if <errno.h> doesn't.
59678         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
59679         Define these macros if <stdio.h> doesn't.
59680         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
59681         Define these macros if <sys/stat.h>
59682         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
59683         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
59684         __xstat64): Define if not _LIBC.
59685         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
59686         (__gen_tempname): Invoke gettimeofday only if
59687         HAVE_GETTIMEOFDAY || _LIBC;
59688         otherwise, fall back on plain "time".
59689         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
59690
59691         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
59692
59693         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
59694
59695 2001-02-18  Paul Eggert  <eggert@twinsun.com>
59696
59697         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
59698
59699 2001-02-17  Paul Eggert  <eggert@twinsun.com>
59700
59701         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
59702         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
59703         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
59704         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59705
59706 2001-02-17  Paul Eggert  <eggert@twinsun.com>
59707
59708         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
59709         Remove workaround macros for hosts that have mbrtowc but not
59710         mbstate_t, as we now insist on proper declarations for both
59711         before using mbrtowc.
59712
59713 2001-02-17  Jim Meyering  <meyering@lucent.com>
59714
59715         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
59716         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
59717         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
59718         UnixWare 7.1.1.
59719
59720         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
59721         rather than AC_CACHE_VAL.
59722
59723 2001-02-17  Jim Meyering  <meyering@lucent.com>
59724
59725         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
59726         around included file name.
59727
59728         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
59729
59730         * lib/strftime.c: Update from GNU libc (the only changes were to
59731         comments).
59732
59733 2001-02-17  Jim Meyering  <meyering@lucent.com>
59734
59735         * lib/regex.c: Update from libc.
59736
59737 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
59738
59739         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
59740         clash.
59741
59742 2001-02-16  Paul Eggert  <eggert@twinsun.com>
59743
59744         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
59745         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
59746         Reported by Mark Hounschell via Paul Eggert.
59747
59748 2001-02-07  Jim Meyering  <meyering@lucent.com>
59749
59750         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
59751
59752 2001-02-05  Jim Meyering  <meyering@lucent.com>
59753
59754         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
59755         it includes the patch required for `large file' support with at least
59756         HP-UX's 10.20 /bin/cc.
59757
59758 2001-02-03  Jim Meyering  <meyering@lucent.com>
59759
59760         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
59761         AS_IF, now that it works once again (mysteriously).
59762         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
59763
59764 2001-01-30  Jim Meyering  <meyering@lucent.com>
59765
59766         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
59767         * m4/chown.m4: Rename conftestchown to conftest.chown.
59768         * m4/rename.m4: s/conftestdir/conftest.d1/ and
59769         s/conftestdir2/conftest.d2/.
59770         * m4/utimes.m4: s/conftestdata/conftest.data/
59771         Inspired by Pavel Roskin's change in autoconf.
59772
59773 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
59774
59775         * lib/config.charset: Update for FreeBSD 4.2.
59776
59777 2001-01-27  Jim Meyering  <meyering@lucent.com>
59778
59779         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
59780         a use of AS_IF.
59781         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
59782
59783 2001-01-26  Jim Meyering  <meyering@lucent.com>
59784
59785         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
59786         quotearg.c includes it.
59787
59788 2001-01-26  Jim Meyering  <meyering@lucent.com>
59789
59790         * lib/quotearg.c: Include stddef.h.
59791         * lib/quote.c: Include stddef.h.
59792         Reported by Axel Kittenberger.
59793
59794         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
59795         line in double quotes so that it evokes a better diagnostic.
59796         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
59797         Reported by Axel Kittenberger.
59798
59799 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
59800
59801         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
59802         as if it was a `charset'.
59803
59804 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
59805
59806         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
59807         has const.
59808
59809 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
59810
59811         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
59812         to avoid a warning.  Add back 'const' to inptr.
59813
59814 2001-01-20  Jim Meyering  <meyering@lucent.com>
59815
59816         Be sure that headers are checked before used in code compiled
59817         for the type checks.
59818         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
59819         In place of that, invoke jm_CHECK_ALL_TYPES.
59820         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
59821         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
59822         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
59823         The check for ssize_t was mistakenly run before the test for unistd.h.
59824
59825         The configure-time check for stdbool.h was missing.
59826         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
59827         (jm_PREREQ_HASH): New function.
59828
59829 2001-01-17  Jim Meyering  <meyering@lucent.com>
59830
59831         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
59832         for autoconf-2.49c.
59833         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
59834
59835 2001-01-16  Jim Meyering  <meyering@lucent.com>
59836
59837         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
59838         From Bruno Haible.
59839
59840 2001-01-14  Jim Meyering  <meyering@lucent.com>
59841
59842         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
59843         foo and bar.  Create conftestdir/ in the script, not in the C code.
59844         Remove directories in the script, not in the C code.
59845         Remove conftestdir{,2} before trying to create the directory.
59846         Make the entire configure script fail if the mkdir fails.
59847
59848 2001-01-14  Jim Meyering  <meyering@lucent.com>
59849
59850         * lib/rename.c: New file.  From Volker Borchert.
59851         Include stdlib.h, string.h or strings.h, and xalloc.h.
59852         Use strip_trailing_slashes rather than open-coding it.
59853
59854 2001-01-03  Paul Eggert  <eggert@twinsun.com>
59855
59856         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
59857
59858 2001-01-03  Jim Meyering  <meyering@lucent.com>
59859
59860         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
59861         of local `inptr' to avoid warning with some system declarations of
59862         iconv.
59863
59864 2001-01-02  Volker Borchert  <bt@teknon.de>
59865
59866         * m4/rename.m4: New file.
59867         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
59868
59869 2001-01-01  Jim Meyering  <meyering@lucent.com>
59870
59871         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
59872         even on systems with utmpx.h.  It's necessary for the declaration of
59873         utmp's ut_user member.  Reported by Andreas Jaeger.
59874
59875         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
59876         available. They are required for the declarations of getgrgid and
59877         getpwuid resp.
59878         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
59879         Reported by Andreas Jaeger.
59880
59881 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
59882
59883         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
59884         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
59885         so `make install' also works in VPATH builds.
59886
59887 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
59888
59889         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
59890         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
59891         can be used in subdirectories.
59892
59893 2000-12-29  Paul Eggert  <eggert@twinsun.com>
59894
59895         * lib/modechange.c: Do not assume that mode_t uses the
59896         traditional octal encoding.  E.g. "chmod 1 FOO" should set
59897         the other-execute bit of FOO even if S_IXOTH != 1.
59898
59899         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
59900         WOTH, XOTH, ALLM): New macros.
59901         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
59902          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
59903         Use them.
59904         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
59905         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
59906         (mode_compile):
59907         No need to use uintmax_t; unsigned long is long enough.
59908         Don't bother to get suffix since we don't use it.
59909
59910 2000-12-26  Jim Meyering  <meyering@lucent.com>
59911
59912         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
59913         better with autoheader.
59914
59915 2000-12-24  Jim Meyering  <meyering@lucent.com>
59916
59917         * lib/hash.c (is_prime): Return explicit boolean values.
59918         (hash_get_first): Return NULL to appease Irix5.6's 89.
59919         Reported by Nelson Beebe.
59920
59921 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
59922
59923         * lib/localcharset.c (locale_charset): Add support for Win32.
59924
59925 2000-12-18  Paul Eggert  <eggert@twinsun.com>
59926
59927         * lib/physmem.h, lib/physmem.c: New files.
59928
59929         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
59930         (noinst_HEADERS): Add physmem.h.
59931
59932         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
59933         't' for compatibility with Solaris 8 sort.
59934
59935 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
59936
59937         * lib/config.charset: Add support for BeOS.
59938
59939 2000-12-17  Jim Meyering  <meyering@lucent.com>
59940
59941         * m4/dos.m4 (jm_AC_DOS): New file and macro.
59942         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
59943
59944 2000-12-16  Jim Meyering  <meyering@lucent.com>
59945
59946         This bug had a serious impact on chown: `chown N:M FILE' (for integer
59947         N and M) would have treated it like `chown N:N FILE'.
59948
59949         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
59950
59951 2000-12-16  Jim Meyering  <meyering@lucent.com>
59952
59953         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
59954         SHELLS_FILE to a file name that's useful on djgpp systems.
59955         Include stdlib.h.
59956         (ADDITIONAL_DEFAULT_SHELLS): Define.
59957         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
59958         Based mostly on a patch from Prashant TR.
59959
59960 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
59961
59962         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
59963         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
59964         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
59965
59966 2000-12-08  Andreas Schwab  <schwab@suse.de>
59967
59968         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
59969         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
59970
59971 2000-12-07  Jim Meyering  <meyering@lucent.com>
59972
59973         * lib/stripslash.c (ISSLASH): Define.
59974         (strip_trailing_slashes): Use ISSLASH rather than comparing against
59975         `/'.
59976         From Prashant TR.
59977
59978         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
59979         (dir_name_r): Declare this function as static.
59980         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
59981         manifest itself on a name containing a mix of slashes and
59982         backslashes.
59983         Make this function work with names starting with a DOS-style
59984         drive letter and colon prefix.
59985         (dir_name): Append `.' if necessary.
59986         Based mostly on patches from Prashant TR and Eli Zaretskii.
59987
59988         * lib/dirname.h (dir_name_r): Remove prototype.
59989
59990 2000-12-06  Paul Eggert  <eggert@twinsun.com>
59991
59992         * m4/off_t-format.m4: Remove this file.
59993         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
59994
59995 2000-12-06  Jim Meyering  <meyering@lucent.com>
59996
59997         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
59998         replacement strtoull, we may well need the replacement strtoul, too.
59999         Check for declarations of strtoul and strtoull.
60000         Check for strtol.  Mainly as a cue to cause automake to include
60001         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
60002         Check for limits.h -- strtol.c needs it.
60003
60004 2000-12-05  Jim Meyering  <meyering@lucent.com>
60005
60006         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
60007
60008 2000-12-04  Jim Meyering  <meyering@lucent.com>
60009
60010         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
60011         Also include memory.h, stdlib.h, unistd.h if appropriate.
60012         Reported by Andreas Jaeger (conflicting declaration of malloc).
60013
60014 2000-12-02  Jim Meyering  <meyering@lucent.com>
60015
60016         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
60017         * m4/jm-macros.m4 (jm_MACROS): require it.
60018
60019 2000-12-02  Jim Meyering  <meyering@lucent.com>
60020
60021         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
60022
60023 2000-12-01  Paul Eggert  <eggert@twinsun.com>
60024
60025         * lib/memrchr.c: Include <config.h> before any system include file.
60026
60027 2000-11-30  Jim Meyering  <meyering@lucent.com>
60028
60029         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
60030
60031 2000-11-30  Jim Meyering  <meyering@lucent.com>
60032
60033         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
60034
60035 2000-11-29  Paul Eggert  <eggert@twinsun.com>
60036
60037         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
60038
60039 2000-11-26  Jim Meyering  <meyering@lucent.com>
60040
60041         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
60042
60043 2000-11-22  Paul Eggert  <eggert@twinsun.com>
60044
60045         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
60046         size of (size_t) -1; it's not portable.
60047
60048 2000-11-17  Jim Meyering  <meyering@lucent.com>
60049
60050         * lib/strstr.c: Update from GNU libc.
60051
60052 2000-11-17  Akim Demaille  <akim@epita.fr>
60053
60054         * lib/obstack.h: Formatting changes.
60055         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
60056         prevent type checking.
60057         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
60058         cast the value to (void *): assigning a `foo *' to a `void *'
60059         variable is valid.
60060         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
60061
60062 2000-11-16  Jim Meyering  <meyering@lucent.com>
60063
60064         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
60065
60066 2000-11-11  Jim Meyering  <meyering@lucent.com>
60067
60068         * lib/error.c: Add a couple #includes, merging from GNU libc version.
60069
60070 2000-11-10  Jim Meyering  <meyering@lucent.com>
60071
60072         * lib/obstack.h: Update from GNU libc.
60073         * lib/obstack.c: Likewise.
60074
60075 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
60076
60077         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
60078
60079 2000-11-06  Paul Eggert  <eggert@twinsun.com>
60080
60081         * lib/getusershell.c (setusershell): Use rewind rather than
60082         fseek/fseeko, to avoid configuration hassles with fseeko.
60083         Don't bother opening SHELLS_FILE if shellstream is NULL;
60084         it's not necessary.
60085
60086 2000-11-05  Jim Meyering  <meyering@lucent.com>
60087
60088         * lib/makepath.h (make_dir): Declare.
60089         * lib/makepath.c (make_dir): Remove `static' attribute.
60090         Tweak a comment.
60091
60092 2000-11-04  Jim Meyering  <meyering@lucent.com>
60093
60094         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
60095
60096 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
60097
60098         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
60099         last one in a bucket, advance to the next bucket.
60100
60101 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
60102
60103         * lib/fnmatch.c: Do not comment out all the code if we are using
60104         the GNU C library, because in some cases we are replacing buggy
60105         code in the GNU C library itself.
60106
60107 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
60108
60109         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
60110         (regex_compile): Catch bogus \(\1\).
60111
60112 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60113
60114         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
60115         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
60116         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
60117
60118 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60119
60120         * lib/error.h, getline.h, modechange.h:
60121         Remove "2000" from Copyright line, as the file hasn't been
60122         changed this year other than in the copyright notice.
60123
60124         * lib/xalloc.h: Add "2000" to Copyright line, as this file
60125         was changed this year.
60126
60127 2000-10-29  Jim Meyering  <meyering@lucent.com>
60128
60129         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
60130         renaming.
60131         * m4/ls-mntd-fs.m4: Likewise
60132
60133 2000-10-29  Jim Meyering  <meyering@lucent.com>
60134
60135         * lib/xstat.in: Fix grammar in comment.
60136
60137 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
60138
60139         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
60140         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
60141         doesn't define __restrict_arr.
60142
60143 2000-10-28  Jim Meyering  <meyering@lucent.com>
60144
60145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
60146         (jm_PREREQ_MEMCHR): New function.
60147
60148 2000-10-28  Jim Meyering  <meyering@lucent.com>
60149
60150         * lib/memchr.c: Update from libc.
60151         Adjust for portability:
60152         [HAVE_STDLIB_H]: Include stdlib.h.
60153         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
60154         Undef __memchr, too.
60155         [!weak_alias]: Define __memchr to memchr.
60156
60157         * lib/regex.c: Update from libc.
60158         * lib/regex.h: Likewise.
60159         * lib/getopt1.c: Likewise.
60160         * lib/memcmp.c: Likewise.
60161
60162         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
60163         Avoid using fseek, when possible -- it's broken by design.
60164         Patch by Ulrich Drepper.
60165
60166 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
60167
60168         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
60169         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
60170         Giving in to popular pressure to shut up the compiler with casts.
60171
60172 2000-10-26  Jim Meyering  <meyering@lucent.com>
60173
60174         * lib/strftime.c: Update from libc.
60175
60176 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
60177
60178         * regex.c: More `unsigned char' -> `re_char' changes.
60179         Also change several `int' into `re_wchar_t'.
60180         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
60181         (PUSH_FAILURE_POINTER): Don't cast any more.
60182         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
60183         We want GCC to complain, since this piece of code makes
60184         re_match non-reentrant, which *should* be fixed.
60185         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
60186         (EXTEND_BUFFER): Use RETALLOC.
60187         (SET_LIST_BIT): Don't cast.
60188         (re_wchar_t): New type.
60189         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
60190         that those two functions will always properly return.
60191         (IMMEDIATE_QUIT_CHECK): Cast to void.
60192         (analyse_first): Use recursion rather than an explicit stack.
60193         (re_compile_fastmap): Can't fail anymore.
60194         (re_search_2): Don't check re_compile_fastmap for failure.
60195         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
60196         Now also sets the new value (passed in a new argument).
60197         (re_match_2_internal): Use it.
60198         Also, use a new var `reg' of type size_t when looping through regs
60199         rather than reuse the inappropriate `mcnt'.
60200
60201 2000-10-25  Jim Meyering  <meyering@lucent.com>
60202
60203         * lib/obstack.c: Update from libc.
60204
60205 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
60206
60207         * regex.c (regex_compile): Change the way of handling a range from
60208         a char less than 256 to a char not less than 256.
60209
60210 2000-10-24  Andrew Innes  <andrewi@gnu.org>
60211
60212         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
60213         NT-Emacs only.
60214         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
60215         so that re_search functions only quit when callers expect them to.
60216
60217 2000-10-23  Jim Meyering  <meyering@lucent.com>
60218
60219         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
60220         wrong.  That set_locale call must not have any side effects.
60221         From Paul Eggert.
60222
60223 2000-10-22  Jim Meyering  <meyering@lucent.com>
60224
60225         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
60226         [CYCLIC]: Remove now-unused definition.
60227
60228         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
60229         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
60230         Suggestion from Ulrich Drepper.
60231
60232 2000-10-21  Jim Meyering  <meyering@lucent.com>
60233
60234         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
60235         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
60236         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
60237
60238 2000-10-21  Jim Meyering  <meyering@lucent.com>
60239
60240         * lib/dirname.c (memrchr): Declare if necessary.
60241         (dir_name): Remove the restriction that there be no
60242         trailing slashes.  Now, this code skips past them, effectively
60243         ignoring them.
60244         [TEST_DIRNAME] (main): New unit tests.
60245
60246         * lib/memrchr.c: New file from GNU libc.
60247         Undef __memrchr, too.
60248         [!weak_alias]: Define __memrchr to memrchr.
60249         Guard weak_alias use with `#ifdef weak_alias'.
60250
60251 2000-10-21  Jim Meyering  <meyering@lucent.com>
60252
60253         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
60254         (dir_name): Use dir_name_r.
60255         * lib/dirname.h (dir_name_r): Declare it.
60256
60257 2000-10-17  Jim Meyering  <meyering@lucent.com>
60258
60259         * lib/quote.h (PARAMS): Define and use.
60260         Reported by Akim Demaille.
60261
60262         * lib/getopt.c: Update from libc.
60263
60264 2000-10-16  Jim Meyering  <meyering@lucent.com>
60265
60266         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
60267         setlocale.
60268         From Jan Fedak.
60269
60270 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
60271
60272         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
60273
60274 2000-09-25  Jim Meyering  <meyering@lucent.com>
60275
60276         * lib/md5.h (rol): Define (from GnuPG).
60277
60278         * lib/sha.c: Give credit (GnuPG) where due.
60279         (M): Use rol rather than open-coding it.
60280         Add a FIXME comment.
60281
60282 2000-09-21  Jim Meyering  <meyering@lucent.com>
60283
60284         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
60285         Reported by Michael Stone.
60286
60287 2000-09-20  Jim Meyering  <meyering@lucent.com>
60288
60289         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
60290         (noinst_HEADERS): Add sha.h.
60291         Based on code from Scott G. Miller and from GnuPG.
60292
60293 2000-09-18  Jim Meyering  <meyering@lucent.com>
60294
60295         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
60296         LIBS. Otherwise, everyone ends up linking with -lelf for some
60297         configurations.
60298         Reported by Mike Stone.
60299
60300 2000-09-15  Jim Meyering  <meyering@lucent.com>
60301
60302         * lib/regex.c: Update from libc.
60303
60304 2000-09-10  Jim Meyering  <meyering@lucent.com>
60305
60306         * lib/getopt.c (_getopt_internal): Update from glibc.
60307
60308 2000-09-09  Jim Meyering  <meyering@lucent.com>
60309
60310         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
60311         think it should be used as a general replacement for isascii.
60312         * lib/fnmatch.c: Likewise.
60313         * lib/mbswidth.c: Likewise
60314         * lib/regex.c: Likewise.
60315
60316         Don't use atoi.
60317         * lib/userspec.c: Include sys/param.h and limits.h.
60318         Include xstrtol.h.
60319         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60320         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
60321         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
60322         UID, GID.  Check range.
60323
60324 2000-09-06  Jim Meyering  <meyering@lucent.com>
60325
60326         * lib/getopt.c (_getopt_internal): Update from glibc.
60327
60328 2000-08-30  Jim Meyering  <meyering@lucent.com>
60329
60330         * lib/strftime.c: Merge in changes from GNU libc.
60331
60332 2000-08-26  Jim Meyering  <meyering@lucent.com>
60333
60334         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
60335         * m4/fpending.m4: New file.
60336
60337 2000-08-26  Jim Meyering  <meyering@lucent.com>
60338
60339         * lib/closeout.c: Include "__fpending.h".
60340         (close_stdout_status): Return right away if there's nothing to flush.
60341
60342         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
60343         * lib/__fpending.c: New file.
60344         * lib/__fpending.h: New file.
60345
60346 2000-08-20  Jim Meyering  <meyering@lucent.com>
60347
60348         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
60349         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
60350         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
60351
60352 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
60353
60354         Improve fileutils installation on systems where running
60355         programs (like install) can't be unlinked.
60356         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
60357         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
60358
60359 2000-08-07  Paul Eggert  <eggert@twinsun.com>
60360
60361         Standardize on "memory exhausted" instead of "Memory exhausted"
60362         or "virtual memory exhausted".
60363         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
60364         "virtual memory exhausted".
60365         * lib/same.c (same_name): Invoke xalloc_die instead of printing
60366         our own message.
60367         * lib/userspec.c (parse_user_spec): Likewise.
60368         * lib/bumpalloc.h: comment fix
60369         * lib/same.c, userspec.c: Include xalloc.h.
60370
60371         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
60372         not char *const and pointing to a constant array.
60373         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
60374         (xrealloc): Comment fix.
60375
60376         * lib/userspec.c (parse_user_spec):
60377         Don't translate a message until just before returning,
60378         to avoid unnecessary translation.
60379
60380 2000-08-07  Jim Meyering  <meyering@lucent.com>
60381
60382         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
60383         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
60384         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
60385         getgroups.c, gethostname.c, getopt.h, group-member.c,
60386         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
60387         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
60388         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
60389         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
60390         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
60391         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
60392         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
60393         yesno.c: Back out Copyright date changes for each file with no change
60394         this year.  This eases coordination with other programs using the same
60395         source code modules.  From Paul Eggert.
60396
60397 2000-08-06  Paul Eggert  <eggert@twinsun.com>
60398
60399         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
60400         not char, for compatibility with glibc 2.1.3 strftime.c.
60401
60402 2000-08-03  Greg McGary  <greg@mcgary.org>
60403
60404         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
60405         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
60406         (EXTEND_BUFFER): Use them.
60407
60408 2000-08-01  Jim Meyering  <meyering@lucent.com>
60409
60410         * lib/dirname.c (ISSLASH): Define.
60411         (BACKSLASH_IS_PATH_SEPARATOR): Define.
60412         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
60413         both `\' and `/' may be use as path separators.
60414         Based on a patch from Prashant TR.
60415
60416 2000-07-31  Paul Eggert  <eggert@twinsun.com>
60417
60418         * lib/quotearg.c (quotearg_n_options): Don't make the initial
60419         slot vector a constant, since it might get modified.
60420
60421 2000-07-31  Jim Meyering  <meyering@lucent.com>
60422
60423         * lib/xmalloc.c: Use `virtual memory exhausted', not
60424         `Memory exhausted'.
60425         * lib/obstack.c (print_and_abort): Likewise.
60426
60427 2000-07-30  Paul Eggert  <eggert@twinsun.com>
60428
60429         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
60430         buffer, so that the caller can always quote one small
60431         component of a "memory exhausted" message in slot 0.
60432         From a suggestion by Jim Meyering.
60433
60434 2000-07-30  Jim Meyering  <meyering@lucent.com>
60435
60436         * lib/makepath.c (make_path): Quote the other instance, too.
60437
60438         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
60439         (STATIC_BUF_SIZE): Define.
60440         (quotearg_n_options): Use only statically allocated storage when
60441         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
60442         than STATIC_BUF_SIZE.
60443
60444 2000-07-29  Jim Meyering  <meyering@lucent.com>
60445
60446         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
60447         * lib/dirname.c (dir_name): Likewise.
60448
60449         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
60450         `/'.
60451
60452         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
60453         (dir_name): Assert that there are no trailing slashes.
60454
60455 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
60456
60457         * lib/mbswidth.h (mbswidth): Add a flags argument.
60458         (mbswidth): New declaration.
60459         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
60460         * lib/mbswidth.c (mbswidth): Add a flags argument.
60461         (mbsnwidth): New function.
60462
60463 2000-07-24  Jim Meyering  <meyering@lucent.com>
60464
60465         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
60466
60467 2000-07-23  Paul Eggert  <eggert@twinsun.com>
60468
60469         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
60470
60471 2000-07-23  Paul Eggert  <eggert@twinsun.com>
60472
60473         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
60474         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
60475         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
60476         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
60477         invoke multibyte primitives.
60478
60479 2000-07-23  Paul Eggert  <eggert@twinsun.com>
60480
60481         * lib/quotearg.c:
60482         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
60483         so that mbstate_t is always defined.
60484
60485         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
60486         be 1 in at least one GCC installation, and this configuration
60487         error is likely to be common.  Ignoring MB_LEN_MAX hurts
60488         performance on hosts that have mbrtowc but have only unibyte
60489         locales, but I assume these hosts are rare.
60490
60491 2000-07-23  Paul Eggert  <eggert@twinsun.com>
60492
60493         * lib/mbswidth.c (_XOPEN_SOURCE):
60494         Don't define; this causes problems on Solaris 7.
60495         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
60496
60497 2000-07-23  Jim Meyering  <meyering@lucent.com>
60498
60499         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
60500         too: getgrgid, getpwuid, getuid.
60501
60502 2000-07-23  Jim Meyering  <meyering@lucent.com>
60503
60504         * lib/basename.c (base_name): Add an assertion.
60505
60506 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
60507
60508         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
60509         shadow its mbsinit function.
60510
60511 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
60512
60513         * lib/mbswidth.h: New file.
60514         * lib/mbswidth.c: New file.
60515         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
60516         (noinst_HEADERS): Add mbswidth.h.
60517
60518 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
60519
60520         * lib/config.charset: Add support for FreeBSD. Improve support for
60521         HP-UX and IRIX 6.
60522
60523 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
60524
60525         * m4/mbswidth.m4: New file.
60526         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
60527
60528 2000-07-15  Jim Meyering  <meyering@lucent.com>
60529
60530         * lib/makepath.c: Include quote.h.
60531         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
60532         corresponding argument in a `quote (...)' call.
60533         Give better diagnostics.
60534
60535         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
60536         (noinst_HEADERS): Add quote.h.
60537
60538         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
60539         from tar's src/misc.c.
60540         * lib/quote.h: New file.  Prototypes for same.
60541
60542 2000-07-14  Paul Eggert  <eggert@twinsun.com>
60543
60544         From a suggestion by Bruno Haible.
60545         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
60546         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
60547         to decide whether to define the BeOS workaround macro;
60548         this adjusts to the change to AC_MBSTATE_T.
60549
60550 2000-07-14  Jim Meyering  <meyering@lucent.com>
60551
60552         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
60553         jm_AC_TYPE_UINTMAX_T.
60554
60555 2000-07-13  Paul Eggert  <eggert@twinsun.com>
60556
60557         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
60558
60559         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
60560         quotearg_buffer_restyled): Add support for
60561         clocale_quoting_style.  Undo previous change to
60562         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
60563         and "{RIGHT QUOTATION MARK}" msgids.
60564
60565 2000-07-10  Paul Eggert  <eggert@twinsun.com>
60566
60567         From a suggestion by Bruno Haible.
60568         * m4/mbstate_t.m4 (AC_MBSTATE_T):
60569         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
60570         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
60571         and mbstate_t, to a single-part test that simply defines mbstate_t.
60572         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
60573         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
60574
60575 2000-07-10  Jim Meyering  <meyering@lucent.com>
60576
60577         * m4/strerror_r.m4: Mirror the correction made in autoconf.
60578
60579         * m4/gnu-source.m4: Output to confdefs.h directly.
60580         Suggestion from Akim Demaille.
60581
60582 2000-07-09  Paul Eggert  <eggert@twinsun.com>
60583
60584         The old behavior of quoting `like this' doesn't look good with
60585         newer, ISO-style fonts.  See:
60586         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
60587
60588         Instead, quote "like this" by default.  Let the translator
60589         tailor the locale-specific quoting behavior by providing
60590         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
60591
60592         * lib/quotearg.c (N_): New macro.
60593         (gettext_default): New function.
60594         (quotearg_buffer_restyled): Use
60595         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
60596         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
60597
60598 2000-07-09  Jim Meyering  <meyering@lucent.com>
60599
60600         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
60601         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
60602
60603         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
60604         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
60605
60606 2000-07-09  Jim Meyering  <meyering@lucent.com>
60607
60608         * lib/Most files: Update copyright dates to include 2000.
60609
60610 2000-07-08  Jim Meyering  <meyering@lucent.com>
60611
60612         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
60613         if not defined.
60614         (xgethostname): Remove now-unnecessary #ifdef.
60615         Move declaration of `err' into loop where it's used.
60616
60617 2000-07-05  Paul Eggert  <eggert@twinsun.com>
60618         and Bruno Haible  <haible@clisp.cons.org>
60619
60620         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
60621         only if the test for an object-type mbstate_t fails.  This
60622         prevents us from mistakenly reporting that mbstate_t is a
60623         system object type after we "#define mbstate_t int" to work
60624         around its lack.
60625
60626 2000-07-05  Paul Eggert  <eggert@twinsun.com>
60627         and Bruno Haible  <haible@clisp.cons.org>
60628
60629         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
60630
60631 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
60632
60633         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
60634         to strerror_r.
60635         Include <ctype.h> for use of isalpha.
60636
60637 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
60638
60639         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
60640         by allocating a larger buffer. Test the gethostname return value for
60641         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
60642         returns an error and ENAMETOOLONG isn't defined.
60643
60644 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
60645
60646         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
60647         dimension.
60648
60649 2000-07-04  Jim Meyering  <meyering@lucent.com>
60650
60651         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
60652         of the deprecated AC_CHECKING.
60653
60654 2000-07-04  Jim Meyering  <meyering@lucent.com>
60655
60656         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
60657         Reported by Bruno Haible.
60658
60659 2000-07-04  Jim Meyering  <meyering@lucent.com>
60660
60661         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
60662         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
60663         lacks mbrtowc.
60664
60665 2000-07-03  Paul Eggert  <eggert@twinsun.com>
60666
60667         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
60668         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
60669
60670 2000-07-03  Paul Eggert  <eggert@twinsun.com>
60671         and Bruno Haible  <haible@clisp.cons.org>
60672
60673         * lib/quotearg.c (mbrtowc):
60674         Assign to *pwc, and return 1 only if result is nonzero.
60675         (iswprint): Use ISPRINT when substituting our own mbrtowc.
60676
60677 2000-07-03  Jim Meyering  <meyering@lucent.com>
60678
60679         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
60680
60681 2000-07-03  Jim Meyering  <meyering@lucent.com>
60682
60683         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
60684         This is necessary to get a definition of e.g., UTMP_FILE on
60685         HP-UX 10.20.
60686         From Bob Proulx.
60687
60688 2000-07-02  Jim Meyering  <meyering@lucent.com>
60689
60690         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
60691
60692         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
60693         AC_LIBOBJ(function_name).
60694         * m4/chown.m4: Likewise.
60695         * m4/fnmatch.m4: Likewise.
60696         * m4/ftruncate.m4: Likewise.
60697         * m4/getgroups.m4: Likewise.
60698         * m4/getline.m4: Likewise.
60699         * m4/group-member.m4: Likewise.
60700         * m4/jm-macros.m4: Likewise.
60701         * m4/lstat.m4: Likewise.
60702         * m4/malloc.m4: Likewise.
60703         * m4/memcmp.m4: Likewise.
60704         * m4/nanosleep.m4: Likewise.
60705         * m4/putenv.m4: Likewise.
60706         * m4/realloc.m4: Likewise.
60707         * m4/regex.m4: Likewise.
60708         * m4/stat.m4: Likewise.
60709         * m4/strftime.m4: Likewise.
60710
60711 2000-07-02  Jim Meyering  <meyering@lucent.com>
60712
60713         * lib/quotearg.c (mbstate_t): Don't define here.
60714
60715 2000-07-02  Jim Meyering  <meyering@lucent.com>
60716
60717         * lib/nanosleep.c (SIGCONT): Define if not already defined.
60718
60719 2000-07-01  Jim Meyering  <meyering@lucent.com>
60720
60721         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
60722
60723 2000-07-01  Jim Meyering  <meyering@lucent.com>
60724
60725         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
60726         problem.
60727
60728 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
60729
60730         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
60731         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
60732
60733 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
60734
60735         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
60736         per change in ../m4/ls-mntd-fs.m4.
60737         (read_filesystem_list): Ignore symbolic links.
60738
60739 2000-06-29  Jim Meyering  <meyering@lucent.com>
60740
60741         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
60742         for declaration of strcmp.
60743
60744         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
60745
60746         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
60747         Avoid warning by casting result to `char *' to remove `const'.
60748
60749 2000-06-28  Jim Meyering  <meyering@lucent.com>
60750
60751         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
60752         included by quotearg.c, for which we perform this test.  From
60753         Bruno Haible.
60754
60755 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
60756
60757         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
60758         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
60759         <utmpx.h> exists, put readutmp.o into LIBOBJS.
60760
60761 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
60762
60763         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
60764
60765 2000-06-26  Paul Eggert  <eggert@twinsun.com>
60766
60767         savedir now sets errno on failure and invokes xmalloc to get memory.
60768         Fix a couple of other minor bugs while we're at it.
60769
60770         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
60771         (NAMLEN): Remove macro.
60772         (malloc, realloc): Remove decls.
60773         (stpcpy): Likewise.
60774         ("xalloc.h"): Include.
60775         (NAME_SIZE_DEFAULT): New macro.
60776         (savedir): Use xmalloc / xrealloc to allocate memory.
60777         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
60778         Skip "" directory entries.
60779         Use strlen to calculate directory entry length, since the old method
60780         is rarely used these days and isn't worth supporting.
60781         Don't use a pointer after freeing it.
60782         Check for integer overflow when calculating allocation size.
60783         Use memcpy to copy entries, instead of stpcpy.
60784         Set errno properly when returning NULL.
60785         Check for readdir error.
60786
60787 2000-06-26  Jim Meyering  <meyering@lucent.com>
60788
60789         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
60790
60791 2000-06-25  Jim Meyering  <meyering@lucent.com>
60792
60793         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
60794         Linux header bug when _XOPEN_SOURCE is defined to 500.
60795
60796 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
60797
60798         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
60799         deficiency.
60800
60801 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
60802
60803         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
60804         Include xalloc.h.
60805         Don't include <stdlib.h>.  Don't declare malloc, realloc.
60806
60807 2000-06-24  Jim Meyering  <meyering@lucent.com>
60808
60809         * m4/strerror_r.m4: Revive this file -- to try out an experimental
60810         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
60811         for which strerror does return char*, but which lacks a conveniently
60812         accessible declaration of the function.  If the compile-test says
60813         strerror_r doesn't work, then resort to a `run'-test that works on
60814         BeOS and segfaults on DEC Unix.
60815
60816 2000-06-24  Jim Meyering  <meyering@lucent.com>
60817
60818         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
60819
60820 2000-06-23  Paul Eggert  <eggert@twinsun.com>
60821
60822         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
60823         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
60824
60825 2000-06-23  Paul Eggert  <eggert@twinsun.com>
60826
60827         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
60828         (mbrtowc, mbstate_t): Define substitutes if
60829         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
60830         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
60831         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
60832
60833 2000-06-23  Jim Meyering  <meyering@lucent.com>
60834
60835         * m4/afs.m4: Add missing AC_MSG_RESULT.
60836         Reported by Bruno Haible.
60837
60838         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
60839         Suggestion from Bruno Haible.
60840
60841 2000-06-23  Jim Meyering  <meyering@lucent.com>
60842
60843         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
60844
60845 2000-06-21  Jim Meyering  <meyering@lucent.com>
60846
60847         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
60848
60849 2000-06-21  Jim Meyering  <meyering@lucent.com>
60850
60851         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
60852         (noinst_HEADERS): Add getstr.h.
60853
60854         * lib/getline.c (getstr): Move into a separate file.
60855         * lib/getstr.c (getstr): New file, extracted from getline.c, with
60856         the following changes: new parameter, delim2; both delim[12]
60857         parameters have type `int', not `char'.  The latter would lose
60858         with 8-bit delimiters.
60859         * lib/getstr.h: New file.
60860
60861 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
60862
60863         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
60864         than 1024, return a memory chunk of least possible size, instead
60865         of size PATH_MAX + 2. In the loop, increment the size proportionally.
60866         Use free/xmalloc instead of xrealloc to avoid copying for very long
60867         paths.
60868
60869 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
60870
60871         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
60872         the empty string.
60873
60874 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
60875
60876         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
60877         address, not strdup.  Include <stdlib.h> and don't declare free().
60878
60879 2000-06-19  Jim Meyering  <meyering@lucent.com>
60880
60881         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
60882
60883 2000-06-18  Jim Meyering  <meyering@lucent.com>
60884
60885         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
60886
60887         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
60888         `checking whether...' message to be consistent with that of the
60889         lstat test.
60890
60891 2000-06-18  Jim Meyering  <meyering@lucent.com>
60892
60893         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
60894         Besides, these days every porting target provides a mkdir function.
60895
60896         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
60897         needed. (this snippet comes from src/system.h).
60898
60899 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
60900
60901         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
60902
60903 2000-06-15  Paul Eggert  <eggert@twinsun.com>
60904
60905         * lib/human.c (adjust_value): New function.
60906         (human_readable_inexact): Apply rounding style even when
60907         printing approximate values.
60908
60909 2000-06-14  Paul Eggert  <eggert@twinsun.com>
60910
60911         * lib/human.c (human_readable_inexact): Allow an input block
60912         size that is not a multiple of the output block size, and vice versa.
60913         Reported by Piergiorgio Sartor.
60914
60915 2000-06-14  Paul Eggert  <eggert@twinsun.com>
60916
60917         * lib/getdate.y (get_date): Apply relative times after time
60918         zone indicator, not before.  Reported by Todd A. Jacobs.
60919
60920 2000-06-13  Jim Meyering  <meyering@lucent.com>
60921
60922         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
60923
60924         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
60925
60926 2000-06-12  Paul Eggert  <eggert@twinsun.com>
60927
60928         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
60929
60930 2000-06-12  Jim Meyering  <meyering@lucent.com>
60931
60932         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
60933         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
60934         optional argument.
60935         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
60936         the optional argument, `lib'.
60937
60938 2000-06-08  Jim Meyering  <meyering@lucent.com>
60939
60940         * m4/largefile.m4: Remove file (now that it's part of autoconf).
60941
60942 2000-06-04  Paul Eggert  <eggert@twinsun.com>
60943
60944         Rewrite largefile configuration so that we don't need to run
60945         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
60946         AC_CANONICAL_HOST in configure.in -- jmm]
60947
60948         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
60949         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
60950         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
60951         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
60952         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
60953         All uses changed.
60954         Instead of inspecting the output of getconf, try to compile the
60955         test program without and with the macro definition.
60956         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
60957         for getconf.  Instead, check for the needed flags by compiling
60958         test programs.
60959
60960 2000-06-04  Paul Eggert  <eggert@twinsun.com>
60961
60962         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
60963
60964 2000-06-04  Jim Meyering  <meyering@lucent.com>
60965
60966         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
60967         SunOS 4.1.4 for which gid_t is an unsigned type.
60968
60969 2000-06-03  Jim Meyering  <meyering@lucent.com>
60970
60971         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
60972         now that autoconf requires that.
60973
60974         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
60975         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
60976         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
60977
60978 2000-06-03  Jim Meyering  <meyering@lucent.com>
60979
60980         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
60981
60982 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
60983
60984         * m4/glibc21.m4: New file.
60985         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
60986
60987 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
60988
60989         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
60990         newer, don't install charset.alias.
60991         * lib/config.charset: Change the Linux/glibc rules so they become empty
60992         on glibc-2.1 or newer.
60993
60994 2000-06-02  Jim Meyering  <meyering@lucent.com>
60995
60996         * lib/mountlist.c: Back out last change.  Instead, do this...
60997         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
60998         me_dummy member using the same `ignore'-testing code.
60999         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
61000         fs_type strings.
61001         From Mark D. Roth.
61002
61003 2000-05-29  Jim Meyering  <meyering@lucent.com>
61004
61005         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
61006         mounts with the `ignore' attribute.  Based on a patch from
61007         Mark D. Roth.
61008
61009 2000-05-28  Jim Meyering  <meyering@lucent.com>
61010
61011         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
61012         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61013         * m4/stat.m4: Likewise.
61014         * m4/lstat.m4: Likewise.
61015         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
61016
61017         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
61018         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
61019
61020 2000-05-26  Jim Meyering  <meyering@lucent.com>
61021
61022         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
61023
61024 2000-05-24  Jim Meyering  <meyering@lucent.com>
61025
61026         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
61027         autoconf requires that.
61028         * m4/lib-check.m4: Likewise.
61029         * m4/jm-macros.m4: Likewise.
61030         * m4/strftime.m4: Likewise.
61031
61032         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
61033         AC_CHECK_DECLS, now that autoconf requires that.
61034
61035 2000-05-22  Jim Meyering  <meyering@lucent.com>
61036
61037         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61038         * m4/lstat.m4: Likewise.
61039
61040 2000-05-22  Jim Meyering  <meyering@lucent.com>
61041
61042         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
61043
61044 2000-05-20  Jim Meyering  <meyering@lucent.com>
61045
61046         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
61047         (jm_PREREQ): Use it.
61048
61049 2000-05-18  Jim Meyering  <meyering@lucent.com>
61050
61051         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
61052         back, too, since it may have been modified by allocate_entry.
61053         (hash_delete): Rewrite to use neither the assignment operator
61054         nor the comma operator in an if-expression.
61055
61056 2000-05-15  Paul Eggert  <eggert@twinsun.com>
61057
61058         * lib/closeout.c:
61059         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
61060         Remove; no longer needed.
61061         "quotearg.h": Add include.
61062         (file_name): Do not bother to explicitly initialize to NULL; it's less
61063         efficient on some hosts.
61064         (close_stdout_status): Remove test as to whether stdout was already
61065         closed; it breaks for the case "echo x | sort >&-".
61066         Quote file name colons.
61067         Do not assume that _("write error") lacks format strings.
61068
61069 2000-05-15  Jim Meyering  <meyering@lucent.com>
61070
61071         * lib/version-etc.c (version_etc_copyright): Update the copyright
61072         string used in all --version output.
61073
61074 2000-05-14  Jim Meyering  <meyering@lucent.com>
61075
61076         * lib/closeout.c (close_stdout_set_file_name): New function.
61077         (close_stdout_status): Use new file-scoped global.
61078         Return right away if fstat says the stdout file descriptor is invalid.
61079         * lib/closeout.h (close_stdout_set_file_name): Declare.
61080
61081 2000-05-10  Jim Meyering  <meyering@lucent.com>
61082
61083         * lib/closeout.c [default_exit_status]: New file-scoped variable.
61084         (close_stdout_set_status): New function.
61085         * lib/closeout.h (close_stdout_set_status): Declare.
61086
61087 2000-05-09  Jim Meyering  <meyering@lucent.com>
61088
61089         * m4/gettext.m4: Rename this...
61090         * m4/libintl.m4: ...to this.
61091
61092 2000-05-08  Jim Meyering  <meyering@lucent.com>
61093
61094         * lib/long-options.c: Don't include closeout.h.
61095         (parse_long_options): Don't call close_stdout for --version.
61096
61097 2000-05-06  Paul Eggert  <eggert@twinsun.com>
61098
61099         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
61100         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
61101         2.1.3 bug.  This avoids a clash when files like regex.c define
61102         _GNU_SOURCE.
61103
61104 2000-05-06  Jim Meyering  <meyering@lucent.com>
61105
61106         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
61107         (AC_REPLACE_FUNCS): Add strnlen.
61108
61109         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
61110         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
61111
61112         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
61113         AC_SEARCH_LIBS call for nanosleep.
61114         (LIB_NANOSLEEP): Set and AC_SUBST.
61115
61116 2000-05-06  Jim Meyering  <meyering@lucent.com>
61117
61118         * lib/strnlen.c: Undefine __strnlen and strnlen.
61119         [!weak_alias]: Define __strnlen to strnlen.
61120
61121         * lib/atexit.c: New file, from libiberty.
61122
61123 2000-05-06  Jim Meyering  <meyering@lucent.com>
61124
61125         * lib/closeout.c (close_stdout_status): Also check for errors on the
61126         stderr stream.
61127
61128 2000-05-05  Jim Meyering  <meyering@lucent.com>
61129
61130         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
61131         AC_SEARCH_LIBS call for clock_gettime.
61132         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
61133
61134         * m4/search-libs.m4: Update from autoconf.
61135
61136         su doesn't work on Solaris 2.6.
61137         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
61138         <shadow.h>.  Reported by Dragos Harabor.
61139
61140 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
61141
61142         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
61143         memcpy instead of xmalloc, xrealloc, path_concat.
61144         (locale_charset): Treat empty environment variables as absent.
61145         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
61146
61147 2000-05-04  Jim Meyering  <meyering@lucent.com>
61148
61149         * lib/getopt.c: Update from glibc.
61150         * lib/obstack.c: Likewise.
61151         * lib/obstack.h: Likewise.
61152         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
61153         file
61154
61155         * lib/regex.h: Likewise.
61156         * lib/strndup.c: Likewise.
61157         * lib/strnlen.c: New file, from glibc.
61158
61159 2000-05-03  Jim Meyering  <meyering@lucent.com>
61160
61161         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
61162
61163 2000-05-02  Paul Eggert  <eggert@twinsun.com>
61164
61165         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
61166         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
61167         compile-time test, rather than inspecting host and OS, to
61168         decide whether to define _LARGEFILE_SOURCE.
61169
61170 2000-05-01  Jim Meyering  <meyering@lucent.com>
61171
61172         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
61173
61174         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
61175         Based on a patch from Bruno Haible.
61176
61177 2000-05-01  Jim Meyering  <meyering@lucent.com>
61178
61179         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
61180
61181 2000-04-29  Jim Meyering  <meyering@lucent.com>
61182
61183         * lib/path-concat.c: Declare strdup only if it's not defined.
61184         * lib/canon-host.c: Likewise.
61185
61186 2000-04-28  Jim Meyering  <meyering@lucent.com>
61187
61188         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
61189         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
61190         is included first, then limits.h is included by locale.h by libintl.h.
61191         From John David Anglin.
61192
61193 2000-04-25  Jim Meyering  <meyering@lucent.com>
61194
61195         * lib/makepath.c (S_IRWXUGO): Define.
61196         (make_path): Always perform explicit chmod if MODE specifies any
61197         of the `special' permission bits.  Prompted by a bug report against
61198         install from Mate Wierdl and Joost van Baal.
61199
61200 2000-04-18  Jim Meyering  <meyering@lucent.com>
61201
61202         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
61203         (jm_PREREQ): Use it.
61204
61205 2000-04-18  Jim Meyering  <meyering@lucent.com>
61206
61207         * lib/README: New file.
61208
61209         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
61210         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
61211
61212 2000-04-17  Jim Meyering  <meyering@lucent.com>
61213
61214         Get it right :-)
61215         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
61216         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
61217         Suggestion from Akim Demaille.
61218
61219 2000-04-17  Jim Meyering  <meyering@lucent.com>
61220
61221         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
61222         the definition of it to rpl_strftime also defined-away the system's
61223         declaration.
61224
61225 2000-04-15  Jim Meyering  <meyering@lucent.com>
61226
61227         Use `C' to denote so-called `contiguous' files, the same way
61228         that tar does.
61229         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
61230         (ftypelet): Use S_ISCTG.
61231         From Michael Deutschmann.
61232
61233 2000-04-14  Jim Meyering  <meyering@lucent.com>
61234
61235         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
61236         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
61237         clobbered.
61238
61239 2000-04-14  Jim Meyering  <meyering@lucent.com>
61240
61241         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
61242
61243 2000-04-13  Jim Meyering  <meyering@lucent.com>
61244
61245         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
61246         AH_VERBATIM to insert required #ifndef into config.h.in.
61247         Suggestion from Akim Demaille.
61248
61249 2000-04-12  Jim Meyering  <meyering@lucent.com>
61250
61251         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
61252         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
61253         Christian Krackowizer.
61254
61255         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
61256         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
61257         (AC_SYS_LARGEFILE): Require.
61258         (AM_C_PROTOTYPES): Require.
61259
61260 2000-04-08  Jim Meyering  <meyering@lucent.com>
61261
61262         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
61263         names don't conflict.  Reported by Eli Zaretskii.
61264
61265 2000-04-07  Jim Meyering  <meyering@lucent.com>
61266
61267         * lib/putenv.c: Move inclusion of errno.h so it follows that of
61268         sys/types.h, to work around system header problems on AIX 3.2.5.
61269         From Bruno Haible.
61270
61271 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
61272
61273         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
61274         bug.  Deal with the different error behavior of Irix iconv.
61275
61276 2000-04-05  Paul Eggert  <eggert@twinsun.com>
61277
61278         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
61279         IRIX if the installer said otherwise.
61280
61281 2000-04-05  Jim Meyering  <meyering@lucent.com>
61282
61283         Portability tweaks required for ultrix4.3.
61284         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
61285         (jm_CHECK_DECLS): Add getutent to the list of functions.
61286         (_jm_DECL_HEADERS): Add utmpx.h.
61287         From John David Anglin.
61288
61289         * m4/strftime.m4: Back out the 2000-04-02 change.
61290         Instead of that change, simply undefine putenv in the test program.
61291
61292 2000-04-05  Jim Meyering  <meyering@lucent.com>
61293
61294         Portability tweaks required for ultrix4.3.
61295         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
61296         getutent.
61297         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
61298         * lib/canon-host.c: Declare strdup.
61299         * lib/path-concat.c: Likewise.
61300         From John David Anglin.
61301
61302 2000-04-04  Jim Meyering  <meyering@lucent.com>
61303
61304         Be more DOS 8.3-friendly.
61305         * lib/ref-add.sin: Renamed from ref-add.sed.in.
61306         * lib/ref-del.sin: Renamed from ref-del.sed.in.
61307         * lib/Makefile.am: Reflect renaming.
61308         Reported by Eli Zaretskii.
61309
61310         Use a temporary file name that won't clash with `charset.alias'
61311         in the DOS 8.3 name space.
61312         * lib/Makefile.am (charset_tmp): Define.
61313         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
61314         (uninstall-local): Likewise.
61315         Reported by Eli Zaretskii.
61316
61317 2000-04-03  Jim Meyering  <meyering@lucent.com>
61318
61319         * m4/gettext.m4: Fix typo in comment.
61320
61321         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
61322         textutils/configure.in).  Suggestion from Paul Eggert.
61323         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
61324
61325 2000-04-02  Paul Eggert  <eggert@twinsun.com>
61326
61327         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
61328         variable in the shell rather than using putenv, which isn't
61329         portable.  This avoids the configure-time inter-test dependency
61330         on the potentially-renamed putenv function.
61331
61332 2000-03-30  Paul Eggert  <eggert@twinsun.com>
61333
61334         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
61335         before checking struct stat.st_blksize, so that
61336         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
61337
61338 2000-03-29  Paul Eggert  <eggert@twinsun.com>
61339
61340         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
61341         since strftime.c uses HAVE_STRFTIME to decide whether to use
61342         the underlying strftime.
61343
61344 2000-03-29  Paul Eggert  <eggert@twinsun.com>
61345
61346         * lib/time/strftime.c (my_strftime): Make sure we call the system
61347         strftime, not ourselves, when invoking the underlying strftime.
61348
61349 2000-03-24  Jim Meyering  <meyering@lucent.com>
61350
61351         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
61352         (charset_alias): Define.
61353         (install-exec-local): Factor out common code.
61354         (uninstall-local): Split lines longer than 80.
61355         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
61356         (SUFFIXES): Define.
61357         (.sed.in.sed): New rule.  Don't redirect directly to $@.
61358         (CLEANFILES): Add ref-add.sed and ref-del.sed.
61359
61360 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
61361
61362         * lib/config.charset: Output a line containing "Packages using this
61363         file".
61364         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
61365         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
61366         ref-del.sed): New rules.
61367
61368 2000-03-17  Jim Meyering  <meyering@lucent.com>
61369
61370         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
61371         Otherwise, include <strings.h>
61372
61373 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
61374
61375         * lib/unicodeio.c (utf8_wctomb): New function.
61376         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
61377         format instead of in UCS-4 with platform dependent endianness.
61378
61379 2000-03-10  Jim Meyering  <meyering@lucent.com>
61380
61381         * m4/lib-check.m4: Look for getspnam in -lgen, too.
61382         From Marco Franzen.
61383
61384 2000-03-07  Paul Eggert  <eggert@twinsun.com>
61385
61386         * lib/savedir.c (savedir): Work even if directory size is
61387         negative; this can happen with some screwy NFS configurations.
61388
61389 2000-03-06  Jim Meyering  <meyering@lucent.com>
61390
61391         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
61392         if it's NULL (because we ran out of memory).  From Bruno Haible.
61393
61394 2000-03-05  Jim Meyering  <meyering@lucent.com>
61395
61396         * lib/localcharset.c ("path-concat.h"): Include.
61397         (get_charset_aliases): Use path_concat instead of ANSI string
61398         concatenation.
61399
61400         * lib/unicodeio.h (PARAMS): Define.
61401         Use it to guard prototype.
61402
61403 2000-03-04  Jim Meyering  <meyering@lucent.com>
61404
61405         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
61406         for lib/localcharset.c.
61407
61408 2000-03-04  Jim Meyering  <meyering@lucent.com>
61409
61410         * lib/Makefile.am (install-exec-local): Create $(libdir) before
61411         installing into it.
61412         (uninstall-local): Uncomment this rule so `make distcheck' works
61413         once again.
61414
61415         * lib/unicodeio.c (<errno.h>): Include it.
61416         (errno): Declare if not defined.
61417
61418         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
61419
61420         * lib/config.charset: New version, incorporating remarks from a linux
61421         i18n mailing list.  From Bruno Haible.
61422
61423 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
61424
61425         * m4/codeset.m4: New file.
61426         * m4/iconv.m4: New file.
61427         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
61428
61429 2000-03-03  Jim Meyering  <meyering@lucent.com>
61430
61431         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
61432
61433 2000-03-02  Jim Meyering  <meyering@lucent.com>
61434
61435         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
61436         the messages come out on separate lines.
61437
61438         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
61439         rather than jm_CHECK_DECLARATIONS.
61440         * m4/decl.m4: Remove now-unused file.
61441
61442         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
61443         geteuid.
61444
61445 2000-03-02  Jim Meyering  <meyering@lucent.com>
61446
61447         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
61448
61449 2000-03-01  Jim Meyering  <meyering@lucent.com>
61450
61451         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
61452         * lib/unicodeio.c: Likewise.
61453
61454 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
61455
61456         * lib/config.charset: New file.
61457         * lib/localcharset.c: New file.
61458         * lib/unicodeio.h, lib/unicodeio.c: New files.
61459         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
61460         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
61461         (noinst_HEADERS): Add unicodeio.h.
61462         (all-local, install-exec-local, charset.alias): New targets.
61463
61464 2000-02-28  Paul Eggert  <eggert@twinsun.com>
61465
61466         * lib/quotearg.c (ALERT_CHAR): New macro.
61467         (quotearg_buffer_restyled): Use it.
61468
61469 2000-02-27  Jim Meyering  <meyering@lucent.com>
61470
61471         * m4/check-decl.m4: Add getenv to the list.
61472
61473 2000-02-27  Jim Meyering  <meyering@lucent.com>
61474
61475         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
61476         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
61477
61478         * lib/backupfile.c: Guard inclusion of stdlib.h with
61479         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
61480         Declare malloc if needed.
61481
61482         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
61483         `#ifndef HAVE_DECL..'
61484         now that autoconf always defines the HAVE_DECL_ symbols.
61485         * lib/human.c: Likewise.
61486         * lib/same.c: Likewise.
61487         * lib/strtoumax.c: Likewise.
61488
61489         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
61490         declaration check was not run.
61491         * lib/hash.c: Likewise.
61492         * lib/human.c: Likewise.
61493         * lib/same.c: Likewise.
61494         * lib/strtoumax.c: Likewise.
61495
61496         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
61497         `.', then first look up the entire `.'-containing string as a login
61498         name.
61499
61500 2000-02-23  Jim Meyering  <meyering@lucent.com>
61501
61502         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
61503         in place of my hack.
61504
61505 2000-02-18  Paul Eggert  <eggert@twinsun.com>
61506
61507         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
61508         (textint): New typedef.
61509         (parser_control): Member year changed from int to textint.
61510         All uses changed.
61511         (YYSTYPE): Removed; replaced by %union with int and textint members.
61512         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
61513         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
61514         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
61515         (tSNUMBER, tUNUMBER): Now of type <textintval>.
61516         (date, number, to_year): Use width of number in digits, not its value,
61517         to determine whether it's a 2-digit year, or a 2-digit time.
61518         (yylex): Store number of digits of numeric tokens.
61519         Reported by John Kendall.
61520
61521         (parser_control): Changed from struct parser_control to typedef (for
61522         consistency).  All uses changed.
61523
61524         (tID): Removed; not used.
61525         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
61526
61527 2000-02-14  Paul Eggert  <eggert@twinsun.com>
61528
61529         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
61530         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
61531
61532 2000-02-12  Jim Meyering  <meyering@lucent.com>
61533
61534         * lib/userspec.c (ISDIGIT): Define it.
61535         (isdigit): Remove definition.
61536         (is_number): Use ISDIGIT, not isdigit.
61537         <libintl.h>: Include.
61538         (_ and N_): Define.
61539         (parse_user_spec): Mark translatable strings.
61540
61541 2000-02-10  Jim Meyering  <meyering@lucent.com>
61542
61543         With these changes, nanosleep.[ch] are finally enough like the other
61544         lib/* replacement files to compile on a few more losing systems.
61545
61546         * lib/nanosleep.h: Don't include config.h.
61547         Remove prototype from declaration of nanosleep.
61548         (PARAMS): Remove now-unneeded definition.
61549         * lib/nanosleep.c: #undef nanosleep.
61550         (rpl_nanosleep): Rename from nanosleep.
61551
61552 2000-02-10  Jim Meyering  <meyering@lucent.com>
61553
61554         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
61555         gnu_nanosleep to rpl_nanosleep.
61556
61557 2000-02-09  Jim Meyering  <meyering@lucent.com>
61558
61559         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
61560         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
61561
61562 2000-02-08  Akim Demaille  <akim@epita.fr>
61563
61564         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
61565         `[' and `]' and remove uses of `changequote'.
61566         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
61567         (AC_SYS_LARGEFILE): Likewise.
61568         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
61569         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
61570         of changequote.
61571         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
61572         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
61573         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
61574         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
61575
61576 2000-02-05  Jim Meyering  <meyering@lucent.com>
61577
61578         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
61579         Remove explicit use of AC_HEADER_TIME.  It is required by
61580         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
61581         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
61582         in autoconf whereby the expansion of the latter ended up preceding
61583         the expansion of its prerequisite, AC_HEADER_TIME.
61584         Reported by Volker Borchert.
61585
61586 2000-02-03  Jim Meyering  <meyering@lucent.com>
61587
61588         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
61589
61590 2000-02-03  Jim Meyering  <meyering@lucent.com>
61591
61592         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
61593         rather than with `#if HAVE_UTMPNAME'.
61594
61595 2000-02-02  Jim Meyering  <meyering@lucent.com>
61596
61597         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
61598         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
61599         Reported by Eli Zaretskii.
61600
61601 2000-02-01  Jim Meyering  <meyering@lucent.com>
61602
61603         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
61604
61605 2000-01-31  Jim Meyering  <meyering@lucent.com>
61606
61607         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
61608         functions.  Add the time.h and sys/time.h headers along with the
61609         AC_REQUIRE'ment of AC_HEADER_TIME.
61610
61611 2000-01-31  Jim Meyering  <meyering@lucent.com>
61612
61613         * lib/nanosleep.h (nanosleep): Guard declaration with
61614         `#if ! HAVE_DECL_NANOSLEEP'.
61615         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
61616         the declaration in that vendor's sys/timers.h.
61617         Reported by Christian Krackowizer.
61618
61619         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
61620         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
61621         (ISPRINT): Likewise.
61622         Reported by Tom Tromey.
61623
61624 2000-01-30  Jim Meyering  <meyering@lucent.com>
61625
61626         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
61627
61628         * m4/prereq.m4 (utmp_includes): Define.
61629         Check for ut_user and ut_name members in both struct utmpx
61630         and struct utmp.
61631
61632 2000-01-30  Jim Meyering  <meyering@lucent.com>
61633
61634         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
61635         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
61636         header files where only utmpx.ut_user is declared.
61637
61638         * lib/readutmp.h (UT_USER): Define.
61639
61640 2000-01-29  Jim Meyering  <meyering@lucent.com>
61641
61642         * m4/lib-check.m4: New file containing library-related checks from
61643         fileutils and sh-utils (textutils had none).
61644
61645 2000-01-28  Jim Meyering  <meyering@lucent.com>
61646
61647         * m4/perl.m4: Change format of warning message to look more like that
61648         from the missing script.  Suggestion from François Pinard.
61649
61650 2000-01-25  Jim Meyering  <meyering@lucent.com>
61651
61652         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
61653         well as time.h in the compile check.
61654         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
61655         Fix typo in cross-compiling case: s/yes/no/.
61656
61657 2000-01-23  Jim Meyering  <meyering@lucent.com>
61658
61659         * m4/jm-macros.m4: Move df-related tests here from
61660         fileutils/configure.in
61661
61662         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
61663         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
61664
61665         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
61666         s/space/ac_fsusage_space/.
61667         (jm_FILE_SYSTEM_USAGE): Take two parameters.
61668
61669         * m4/ftruncate.m4: New file (derived from part of
61670         fileutils/configure.in).
61671         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
61672         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
61673
61674         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
61675         AC_SUBST these here, rather than just in sh-util/configure.in, so
61676         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
61677         all the same.
61678         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
61679         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
61680         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
61681         (AC_SUBST(POW_LIBM)): Likewise.
61682         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
61683
61684 2000-01-23  Jim Meyering  <meyering@lucent.com>
61685
61686         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
61687         obstack.c.
61688
61689 2000-01-22  Jim Meyering  <meyering@lucent.com>
61690
61691         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
61692
61693         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
61694
61695         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
61696         configure.in
61697         (AC_CHECK_HEADERS): Likewise for sh-utils.
61698         (AC_CHECK_HEADERS): Likewise for textutils.
61699         Merge the three lists of headers.
61700
61701         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
61702         from fileutils' configure.in.
61703
61704         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
61705         code. Moved tests into their own function (_jm_DECL_HEADERS) in
61706         check-decl.m4.
61707
61708         * m4/check-decl.m4: Use #if rather than #ifdef.
61709         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
61710         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
61711         (_jm_DECL_HEADERS): Define new function.
61712         (jm_CHECK_DECLARATIONS): Require it.
61713
61714 2000-01-22  Jim Meyering  <meyering@lucent.com>
61715
61716         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
61717         [! HAVE_DECL_STRTOULL]: Declare strtoull.
61718         Required for some AIX systems.  Reported by Christian Krackowizer.
61719         [TESTING] (main): New function.
61720
61721         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
61722         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
61723         letters.
61724
61725         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
61726         iswprint.
61727
61728         * lib/strverscmp.c (ISDIGIT): Define.
61729         (strverscmp): Use ISDIGIT, not isdigit.
61730
61731 2000-01-19  Jim Meyering  <meyering@lucent.com>
61732
61733         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
61734         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
61735         defines `struct timespec' in <sys/time.h>
61736
61737         * m4/c-bs-a.m4: Remove uses of changequote altogether.
61738         Thanks to Akim for explaining.
61739
61740 2000-01-17  Paul Eggert  <eggert@twinsun.com>
61741
61742         * lib/nanosleep.c (nanosleep):
61743         Don't use SA_INTERRUPT to decide whether to call sigaction, as
61744         POSIX.1 doesn't require SA_INTERRUPT and some systems
61745         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
61746         it's been part of POSIX.1 since day 1 (in 1988).
61747
61748 2000-01-17  Jim Meyering  <meyering@lucent.com>
61749
61750         * lib/interlock: Remove unused file.  Reported by François Pinard.
61751
61752 2000-01-16  Paul Eggert  <eggert@twinsun.com>
61753
61754         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
61755         alert, backslash, formfeed, and vertical tab unnecessarily in
61756         shell quoting style.
61757
61758 2000-01-16  Jim Meyering  <meyering@lucent.com>
61759
61760         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
61761         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
61762         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
61763         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
61764
61765 2000-01-16  Jim Meyering  <meyering@lucent.com>
61766
61767         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
61768         because the latter didn't work.
61769
61770 2000-01-15  Jim Meyering  <meyering@lucent.com>
61771
61772         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
61773         (AC_REPLACE_FUNCS): Add memcpy and memset.
61774         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
61775         Add strpbrk.
61776         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
61777
61778 2000-01-12  Jim Meyering  <meyering@lucent.com>
61779
61780         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
61781         (jm_PREREQ): Use it.
61782         (jm_PREREQ_READUTMP): New macro.
61783         (jm_PREREQ): Use it.
61784
61785 2000-01-11  Paul Eggert  <eggert@twinsun.com>
61786
61787         Quote multibyte characters correctly.
61788         * m4/c-bs-a.m4: New file.
61789         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
61790         (jm_PREREQ): Use it.
61791
61792 2000-01-11  Paul Eggert  <eggert@twinsun.com>
61793
61794         * m4/uintmax_t.m4: Port to autoconf 2.13.
61795
61796 2000-01-08  Jim Meyering  <meyering@ascend.com>
61797
61798         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
61799         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
61800
61801 2000-01-04  Jim Meyering  <meyering@ascend.com>
61802
61803         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
61804         jm_STRUCT_DIRENT_D_TYPE.
61805         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
61806         jm_STRUCT_DIRENT_D_INO.
61807         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
61808         jm_STRUCT_UTIMBUF.
61809         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
61810         renamings.
61811         * m4/utime.m4: Likewise.
61812
61813         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
61814         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
61815
61816 2000-01-03  Paul Eggert  <eggert@twinsun.com>
61817
61818         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
61819         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
61820
61821 2000-01-02  Jim Meyering  <meyering@ascend.com>
61822
61823         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
61824         remember if this is necessary.
61825
61826 1999-12-26  Jim Meyering  <meyering@ascend.com>
61827
61828         * m4/jm-macros.m4: Use it here.
61829         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
61830
61831 1999-12-23  Jim Meyering  <meyering@ascend.com>
61832
61833         * m4/jm-macros.m4: Check for clock_gettime (moved from
61834         fileutils/configure.in)
61835         Check for gettimeofday.
61836
61837 1999-12-20  Jim Meyering  <meyering@ascend.com>
61838
61839         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
61840         autoconf-2.14a-1999-12-20.
61841
61842 1999-12-19  Jim Meyering  <meyering@ascend.com>
61843
61844         * m4/lstat-slash.m4: New file.
61845         * m4/jm-macros.m4: Use the new macro:
61846         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61847
61848 1999-12-07  Jim Meyering  <meyering@ascend.com>
61849
61850         * m4/perl.m4: Require that File::Compare be available, too.
61851         Too many systems seem to lack it.
61852
61853         * m4/strftime.m4: Add checks for most of the cpp macros tested in
61854         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
61855
61856 1999-11-18  Paul Eggert  <eggert@twinsun.com>
61857
61858         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
61859         problem with the QNX 4.25 shell, which doesn't propagate exit
61860         status of failed commands inside shell assignments.
61861
61862 1999-11-17  Jim Meyering  <meyering@ascend.com>
61863
61864         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
61865
61866 1999-11-07  Jim Meyering  <meyering@ascend.com>
61867
61868         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
61869
61870 1999-11-06  Jim Meyering  <meyering@ascend.com>
61871
61872         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
61873         * m4/jm-macros.m4 (jm_MACROS): Use it here.
61874
61875 1999-11-05  Jim Meyering  <meyering@ascend.com>
61876
61877         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
61878         configure.in of textutils, fileutils, and sh-utils into this one
61879         (shared between those packages) file.
61880         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
61881         AC_STRUCT_ST_BLKSIZE.
61882
61883 1999-11-03  Jim Meyering  <meyering@ascend.com>
61884
61885         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
61886         of AC_CHECK_TYPE checks includes unistd.h.
61887         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
61888         Suggestion from Akim Demaille.
61889
61890 1999-10-30  Jim Meyering  <meyering@ascend.com>
61891
61892         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
61893         m4-quoted string.
61894         * m4/ls-mntd-fs.m4: Likewise.
61895         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
61896         * m4/jm-winsz1.m4: Likewise.
61897
61898         * m4/const.m4: Remove file, since the fix made it into the experimental
61899         version of autoconf.
61900         * m4/mktime.m4: Likewise.
61901
61902         * m4/check-type.m4: Remove file, now that the latest version of
61903         AC_CHECK_TYPE takes a third arg to specify additional #includes.
61904
61905         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
61906         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
61907         AC_CHECK_TYPE.
61908
61909 1999-10-04  Jim Meyering  <meyering@ascend.com>
61910
61911         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
61912
61913 1999-09-22  Paul Eggert  <eggert@twinsun.com>
61914
61915         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
61916         2.95.1 bug with HP-UX 10.20.
61917
61918 1999-09-17  Jim Meyering  <meyering@ascend.com>
61919
61920         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
61921         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
61922         due to missing strdup (against sh-utils-2.0).
61923
61924 1999-08-29  Jim Meyering  <meyering@ascend.com>
61925
61926         * m4/jm-macros.m4: Require jm_BISON.
61927         * m4/bison.m4: New file.
61928
61929 1999-08-17  Paul Eggert  <eggert@twinsun.com>
61930
61931         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
61932         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
61933
61934 1999-08-05  Jim Meyering  <meyering@ascend.com>
61935
61936         * m4/getline.m4: Rename test file from conftestdata to conftest.data
61937         to avoid conflicts with `conftest' on 8+3 filesystems.
61938         Suggestion from Eli Zaretskii.
61939
61940 1999-08-04  Jim Meyering  <meyering@ascend.com>
61941
61942         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
61943         fileutils and sh-utils (textutils's getline test was inadequate).
61944         (AM_FUNC_GETLINE): Run this test.
61945         (AC_CHECK_FUNCS): Check for getdelim.
61946         Reported by Bob Proulx.
61947
61948 1999-08-02  Jim Meyering  <meyering@ascend.com>
61949
61950         * m4/jm-macros.m4: Add a comment.
61951
61952 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61953
61954         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
61955         <inttypes.h> defines strtoumax as a macro (and not as a
61956         function).
61957
61958 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61959
61960         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
61961         that we can shift, multiply and divide unsigned long long
61962         values; Ultrix cc can't do it.
61963
61964 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61965
61966         * m4/mktime.m4: New file, which is a preview of what should appear
61967         in the next public autoconf release.
61968
61969 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61970
61971         * m4/lfs.m4: Remove this file.
61972         * m4/largefile.m4: New file.  It contains the old contents of
61973         lfs.m4, except that all names with prefix AC_LFS have been
61974         changed to use the prefix AC_SYS_LARGEFILE instead, to be
61975         compatible with future autoconf versions.  Also, some minor m4
61976         quoting problems have been fixed.
61977
61978 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61979
61980         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
61981         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
61982         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
61983         and simplify the shell code.
61984
61985 1999-08-01  Jim Meyering  <meyering@ascend.com>
61986
61987         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
61988         m4.
61989
61990 1999-07-20  Jim Meyering  <meyering@ascend.com>
61991
61992         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
61993
61994 1999-07-15  Jim Meyering  <meyering@ascend.com>
61995
61996         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
61997
61998 1999-05-22  Jim Meyering  <meyering@ascend.com>
61999
62000         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
62001
62002 1999-05-20  Jim Meyering  <meyering@ascend.com>
62003
62004         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
62005         Add a colon after each `then' in case $4 is empty.
62006
62007 1999-05-16  Jim Meyering  <meyering@ascend.com>
62008
62009         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
62010
62011 1999-05-10  Jim Meyering  <meyering@ascend.com>
62012
62013         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
62014
62015         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
62016         AC_FUNC_MKTIME.
62017
62018 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
62019
62020         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
62021
62022 1999-05-04  Paul Eggert  <eggert@twinsun.com>
62023
62024         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
62025         not CPPFLAGS, so that linking works correctly in IRIX.
62026
62027 1999-04-30  Paul Eggert  <eggert@twinsun.com>
62028
62029         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
62030
62031 1999-04-20  Paul Eggert  <eggert@twinsun.com>
62032
62033         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
62034         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
62035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
62036         jm_AC_TYPE_UNSIGNED_LONG_LONG.
62037         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
62038
62039         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
62040
62041 1999-04-20  Jim Meyering  <meyering@ascend.com>
62042
62043         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
62044         AC_REPLACE xstroull if necessary.  From Paul Eggert.
62045         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
62046
62047 1999-04-18  Jim Meyering  <meyering@ascend.com>
62048
62049         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
62050         * m4/jm-macros.m4: Use it.
62051
62052 1999-04-06  Jim Meyering  <meyering@ascend.com>
62053
62054         * m4/strftime.m4: Remove test for %f.
62055
62056 1999-03-29  Jim Meyering  <meyering@ascend.com>
62057
62058         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
62059         superset of the AC_TYPE_* checks in the textutils, fileutils,
62060         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
62061         AC_TYPE_PID_T.
62062
62063 1999-03-28  Jim Meyering  <meyering@ascend.com>
62064
62065         * m4/jm-macros.m4: Define GNU_PACKAGE here.
62066         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
62067         replaced e.g., in the *.sh files of the sh-utils.
62068
62069 1999-03-20  Jim Meyering  <meyering@ascend.com>
62070
62071         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
62072         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
62073         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
62074
62075 1999-03-19  Jim Meyering  <meyering@ascend.com>
62076
62077         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
62078
62079 1999-03-12  Jim Meyering  <meyering@ascend.com>
62080
62081         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
62082
62083 1999-03-07  Jim Meyering  <meyering@ascend.com>
62084
62085         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
62086         declared.
62087
62088 1999-02-17  Jim Meyering  <meyering@ascend.com>
62089
62090         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
62091         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
62092
62093 1999-02-07  Jim Meyering  <meyering@ascend.com>
62094
62095         * m4/group-member.m4: New file -- extracted from sh-utils'
62096         configure.in.
62097
62098         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
62099         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
62100
62101 1999-02-06  Jim Meyering  <meyering@ascend.com>
62102
62103         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
62104         * m4/fnmatch.m4: Likewise.
62105         * m4/getgroups.m4: Likewise.
62106         * m4/lstat.m4: Likewise.
62107         * m4/malloc.m4: Likewise.
62108         * m4/putenv.m4: Likewise.
62109         * m4/realloc.m4: Likewise.
62110         * m4/regex.m4: Likewise.
62111         * m4/stat.m4: Likewise.
62112         * m4/strftime.m4: Likewise.
62113         Suggestion from Alain Magloire.
62114
62115         * m4/chown.m4: Use `.$ac_objext', not `.o'.
62116         * m4/fnmatch.m4: Likewise.
62117         * m4/getgroups.m4: Likewise.
62118         * m4/getline.m4: Likewise.
62119         * m4/lstat.m4: Likewise.
62120         * m4/malloc.m4: Likewise.
62121         * m4/memcmp.m4: Likewise.
62122         * m4/putenv.m4: Likewise.
62123         * m4/realloc.m4: Likewise.
62124         * m4/regex.m4: Likewise.
62125         * m4/stat.m4: Likewise.
62126         * m4/strftime.m4: Likewise.
62127         Suggestion from Alain Magloire.
62128
62129         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
62130         an argument.
62131
62132         * m4/regex.m4: Add a run-time Test for proper operation of
62133         re_compile_pattern.
62134
62135 1999-01-31  Jim Meyering  <meyering@ascend.com>
62136
62137         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
62138
62139 1999-01-30  Jim Meyering  <meyering@ascend.com>
62140
62141         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
62142
62143         * m4/jm-mktime.m4: Make this a wrapper around the official
62144         AM_FUNC_MKTIME rather than my private copy, now that the official one
62145         is up to date.
62146         * m4/mktime.m4: Remove file.
62147
62148         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
62149         * m4/uptime.m4: Likewise.
62150         * m4/uintmax_t.m4: Likewise.
62151
62152 1999-01-28  Jim Meyering  <meyering@ascend.com>
62153
62154         * m4/jm-macros.m4: Use jm_AFS.
62155         * m4/afs.m4: New file (from fileutils' configure.in).
62156
62157         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
62158         * m4/chown.m4: Likewise.
62159         * m4/d-ino.m4: Likewise.
62160         * m4/d-type.m4: Likewise.
62161         * m4/fnmatch.m4: Likewise.
62162         * m4/getgroups.m4: Likewise.
62163         * m4/gettext.m4: Likewise.
62164         * m4/jm-mktime.m4: Likewise.
62165         * m4/jm-winsz2.m4: Likewise.
62166         * m4/lcmessage.m4: Likewise.
62167         * m4/ls-mntd-fs.m4: Likewise.
62168         * m4/malloc.m4: Likewise.
62169         * m4/memcmp.m4: Likewise.
62170         * m4/putenv.m4: Likewise.
62171         * m4/realloc.m4: Likewise.
62172         * m4/st_mtim.m4: Likewise.
62173         * m4/strftime.m4: Likewise.
62174
62175 1999-01-16  Jim Meyering  <meyering@ascend.com>
62176
62177         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
62178         (ARGMATCH_DIE_DECL): Define.
62179
62180 1999-01-12  Jim Meyering  <meyering@ascend.com>
62181
62182         * m4/Makefile.am.in: Rewrite to avoid using fmt.
62183         Reported by Lars Hecking.
62184
62185 1999-01-10  Jim Meyering  <meyering@ascend.com>
62186
62187         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
62188         gross kludge.
62189         * m4/inttypes_h.m4: Likewise.
62190         * m4/lstat.m4: Likewise.
62191         * m4/malloc.m4: Likewise.
62192         * m4/readdir.m4: Likewise.
62193         * m4/realloc.m4: Likewise.
62194         * m4/st_dm_mode.m4: Likewise.
62195         * m4/stat.m4: Likewise.
62196         * m4/utimbuf.m4: Likewise.
62197         * m4/utimes.m4: Likewise.
62198
62199         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
62200         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
62201         comments in config.h.in are meaningful.
62202
62203         * m4/jm-macros.m4: Require autoconf-2.13 here.
62204
62205         * m4/regex.m4: By default, don't use the included regex.c on systems
62206         with glibc 2.  Suggestion from Uli Drepper.
62207
62208 1999-01-02  Jim Meyering  <meyering@ascend.com>
62209
62210         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
62211
62212 1998-12-18  Jim Meyering  <meyering@ascend.com>
62213
62214         * m4/Makefile.am.in (Makefile.am): Simplify rule.
62215         Based on a suggestion from Lars Hecking.
62216
62217 1998-11-16  Paul Eggert  <eggert@twinsun.com>
62218
62219         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
62220
62221 1998-11-16  Jim Meyering  <meyering@ascend.com>
62222
62223         * m4/lfs.m4: Double-quote the `uname...` expression.
62224
62225 1998-11-14  Jim Meyering  <meyering@ascend.com>
62226
62227         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
62228         * m4/stat.m4: Likewise.
62229
62230 1998-11-03  Jim Meyering  <meyering@ascend.com>
62231
62232         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
62233         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
62234
62235 1998-10-18  Jim Meyering  <meyering@ascend.com>
62236
62237         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
62238
62239 1998-10-17  Jim Meyering  <meyering@ascend.com>
62240
62241         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
62242         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
62243         calls for those previously hard-coded headers.  Instead, take a new
62244         parameter.
62245         (jm_CHECK_DECLARATIONS): Reflect interface change.
62246         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
62247         (jm_CHECK_DECL_LOCALTIME_R): New macro.
62248
62249         * m4/mktime.m4: Test for spring-forward gap before long-running test.
62250
62251 1998-10-14  Jim Meyering  <meyering@ascend.com>
62252
62253         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
62254         instead of "TZ=America/Vancouver".  From Paul Eggert.
62255
62256 1998-10-11  Jim Meyering  <meyering@ascend.com>
62257
62258         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
62259         This adds a test for a recently added compatibility fix for mktime.c.
62260         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
62261
62262 1998-09-27  Jim Meyering  <meyering@ascend.com>
62263
62264         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
62265
62266         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
62267         ../configure.in, including a change from Gordon Matzigkeit to allow
62268         cross-compiling for the Hurd.
62269
62270         * m4/glibc.m4: New file/macro to test for the GNU C Library
62271         versions 1 and 2.  From Gordon Matzigkeit.
62272         Indent.
62273
62274 1998-09-21  Jim Meyering  <meyering@ascend.com>
62275
62276         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
62277
62278 1998-08-18  Paul Eggert  <eggert@twinsun.com>
62279
62280         Port nanosecond-resolution times to UnixWare 2.1.2 and
62281         pedantic Solaris 2.6.
62282
62283         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
62284         AC_STRUCT_ST_MTIM.
62285         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
62286         Generate name of ns member, instead of just 1 or undef.
62287         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
62288
62289 1998-08-15  Jim Meyering  <meyering@ascend.com>
62290
62291         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
62292         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
62293         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
62294         instead of jm_TYPE_SSIZE_T.
62295
62296 1998-08-12  Jim Meyering  <meyering@ascend.com>
62297
62298         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
62299
62300 1998-08-02  Jim Meyering  <meyering@ascend.com>
62301
62302         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
62303         in acconfig.h manually.
62304
62305 1998-07-31  Paul Eggert  <eggert@twinsun.com>
62306
62307         * m4/st_mtim.m4: New file.
62308
62309 1998-07-28  Jim Meyering  <meyering@ascend.com>
62310
62311         * m4/utimes.m4: Undef stat.
62312
62313 1998-07-25  Jim Meyering  <meyering@ascend.com>
62314
62315         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
62316         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
62317
62318 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
62319
62320         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
62321         uid and gid actually remain unchanged.
62322
62323 1998-07-07  Jim Meyering  <meyering@ascend.com>
62324
62325         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
62326
62327 1998-07-04  Jim Meyering  <meyering@ascend.com>
62328
62329         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
62330         to prove that this macro can be used in packages without regex.c.
62331
62332 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
62333
62334         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
62335         is to be used.
62336
62337 1998-07-03  Jim Meyering  <meyering@ascend.com>
62338
62339         * m4/gettext.m4: Add -lintl if it's found to be necessary.
62340
62341         * m4/gettext.m4: New file -- from gettext-0.10.35.
62342         * m4/lcmessage.m4: Likewise.
62343         * m4/progtest.m4: Likewise.
62344
62345         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
62346         * m4/jm-macros.m4: Require the new macro.
62347
62348 1998-06-29  Jim Meyering  <meyering@ascend.com>
62349
62350         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
62351         for the definition of NGROUPS (used in a system header included
62352         by sys/mount.h).
62353
62354 1998-06-28  Jim Meyering  <meyering@ascend.com>
62355
62356         * m4/ls-mntd-fs.m4: New file.
62357         * m4/fstypename.m4: New file.
62358
62359         * m4/jm-macros.m4: Require the new macro.
62360         * m4/jm-glibc-io.m4: New file.
62361
62362 1998-05-19  Jim Meyering  <meyering@ascend.com>
62363
62364         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
62365         * m4/lchown.m4: New file.
62366
62367         * m4/Makefile.am.in: New file.
62368         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
62369
62370 1998-05-14  Jim Meyering  <meyering@ascend.com>
62371
62372         * m4/Makefile.am (EXTRA_DIST): Add them.
62373         * m4/jm-macros.m4: New file.
62374         * m4/utimbuf.m4: New file.
62375
62376 1998-05-12  Jim Meyering  <meyering@ascend.com>
62377
62378         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
62379
62380 1998-05-11  Jim Meyering  <meyering@ascend.com>
62381
62382         * m4/isc-posix.m4: New file.
62383
62384 1998-05-10  Jim Meyering  <meyering@ascend.com>
62385
62386         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
62387
62388 1998-05-09  Jim Meyering  <meyering@ascend.com>
62389
62390         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
62391         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
62392         with automake.
62393
62394         * m4/ssize_t.m4: New file.
62395         * m4/mktime.m4: Remove file -- the new automake has this now.
62396
62397 1998-04-26  Jim Meyering  <meyering@ascend.com>
62398
62399         * m4/assert.m4: New file.
62400         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
62401
62402 1998-04-05  Jim Meyering  <meyering@ascend.com>
62403
62404         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
62405         (jm_PREREQ): Use it here.
62406
62407 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
62408
62409         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
62410         in acconfig.h.
62411
62412 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
62413
62414         * m4/prereq.m4: New file.
62415         * m4/error.m4: New file.
62416         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
62417
62418 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
62419
62420         * m4/getline.m4: Don't set am_cv_func_working_getline before the
62421         cache-check for the same variable -- that defeated the purpose of
62422         the test; the test program was never run.  This was a problem only
62423         on systems with losing getline functions -- HP-UX 10.20 is one.
62424         Reported by Bjorn Helgaas.
62425
62426 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
62427
62428         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
62429
62430 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
62431
62432         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
62433
62434         * m4/const.m4: New file.  Use an initializer in this declaration
62435         typedef int charset[2]; const charset x;
62436         Reported by Bob Glickstein.
62437
62438 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
62439
62440         * m4/chown.m4: Fix reversed types on -1 args to chown.
62441         From Kaveh Ghazi.
62442
62443 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
62444
62445         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
62446         Add lseek and memchr.
62447
62448         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
62449         T.E.Dickey <dickey@clark.net> said that some older preprocessors
62450         have a 20-character limit on names.
62451
62452 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
62453
62454         * m4/inttypes_h.m4: New file.
62455         * m4/uintmax_t.m4: New file.
62456         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
62457
62458
62459         -----
62460
62461         Local Variables:
62462         coding: utf-8
62463         End:
62464
62465         Copyright (C) 1997-2010 Free Software Foundation, Inc.
62466
62467         Copying and distribution of this file, with or without
62468         modification, are permitted provided the copyright notice
62469         and this notice are preserved.