4d391603ce18ce70a8776ac7ed67410f7b280e38
[gnulib.git] / ChangeLog
1 2008-04-04  Eric Blake  <ebb9@byu.net>
2
3         Make test-fseeko.c failures meaningful.
4         * tests/test-fseeko.c: Print line number on failure.
5         * tests/test-fseek.c: Likewise.
6         Reported by Nelson H. F. Beebe.
7
8         Improve strtod bug detection check.
9         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
10         required for Solaris 10.
11         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
12
13 2008-04-04  Bruno Haible  <bruno@clisp.org>
14
15         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
16         by m4/setenv.m4.
17
18 2008-04-03  Eric Blake  <ebb9@byu.net>
19
20         Ensure sane .version contents.
21         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
22         version string.
23         * build-aux/git-version-gen: Improve documentation.
24
25         Make GNU make output nicer.
26         * top/GNUmakefile [!_have-Makefile]: Add dependency on
27         MAKECMDGOALS to enforce message for all command line targets.  Set
28         srcdir for use in maint.mk.
29
30         Another maintainer tweak.
31         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
32         a target that regenerates version.
33
34 2008-04-03  Jim Meyering  <meyering@redhat.com>
35
36         vc-list-files: don't cause coreutils "make po-check" failure
37         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
38
39 2008-04-03  Eric Blake  <ebb9@byu.net>
40
41         Allow VPATH usage of vc-list-files.
42         * build-aux/vc-list-files (scriptversion): Add timestamp.
43         (options): Add --help, --version, -C.
44         (CVS): Support installed cvsu.
45
46 2008-04-02  Bruno Haible  <bruno@clisp.org>
47
48         Avoid some "statement with no effect" warnings from gcc.
49         * tests/test-wctype.c (main): Explicitly ignore unused values.
50         Reported by Jim Meyering.
51
52 2008-04-02  Jim Meyering  <meyering@redhat.com>
53
54         Avoid some warnings from "gcc -Wshadow".
55         * tests/test-frexp.c (exp): Define to a different identifier.
56         * tests/test-frexpl.c (exp): Likewise.
57
58 2008-04-03  Jim Meyering  <meyering@redhat.com>
59
60         bootstrap: remove dangling *.[ch] symlinks from lib
61         * build-aux/bootstrap [dangling symlink removal]: Move find's
62         -depth option to precede all others, to avoid a warning.
63         Remove *.[ch] files too, and from "$source_base" (usually lib/).
64
65 2008-04-02  Bruno Haible  <bruno@clisp.org>
66
67         Avoid some warnings from "gcc -Wshadow".
68         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
69         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
70         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
71         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
72         Reported by Jim Meyering.
73
74 2008-04-01  Bruno Haible  <bruno@clisp.org>
75
76         Fix test to work on IRIX 6.5 with cc.
77         * tests/test-math.c (numeric_equal): New function.
78         (main): Use it.
79
80 2008-04-01  Bruno Haible  <bruno@clisp.org>
81
82         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
83
84 2008-04-01  Bruno Haible  <bruno@clisp.org>
85
86         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
87         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
88         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
89         (Depends-on): Remove math.
90
91         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
92         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
93         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
94         (Depends-on): Remove math.
95
96         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
97         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
98         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
99         (Depends-on): Remove math.
100         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
101         (Depends-on): Remove math.
102
103         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
104         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
105         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
106         (Depends-on): Remove math.
107         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
108         (Depends-on): Remove math.
109
110         * tests/test-round1.c: Include nan.h.
111         (main): Use NaNd instead of NAN.
112         * modules/round-tests (Files): Add tests/nan.h.
113
114         * tests/test-trunc1.c: Include nan.h.
115         (main): Use NaNd instead of NAN.
116         * modules/trunc-tests (Files): Add tests/nan.h.
117
118         * tests/test-roundf1.c: Include nan.h.
119         (main): Use NaNf instead of NAN.
120         * modules/roundf-tests (Files): Add tests/nan.h.
121
122         * tests/test-truncf1.c: Include nan.h.
123         (main): Use NaNf instead of NAN.
124         * modules/truncf-tests (Files): Add tests/nan.h.
125
126         * tests/test-ceilf1.c: Include nan.h.
127         (main): Use NaNf instead of NAN.
128         * modules/ceilf-tests (Files): Add tests/nan.h.
129
130         * tests/test-floorf1.c: Include nan.h.
131         (main): Use NaNf instead of NAN.
132         * modules/floorf-tests (Files): Add tests/nan.h.
133
134         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
135         (main): Use NaNf instead of NAN.
136         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
137
138         * tests/test-isnand.c: Include nan.h instead of <math.h>.
139         (main): Use NaNd instead of NAN.
140         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
141
142         * tests/test-frexp.c: Include nan.h.
143         (main): Use NaNd instead of NAN.
144         * modules/frexp-tests (Files): Add tests/nan.h.
145
146         * lib/isnan.c: Don't include <math.h>.
147         (FUNC): Don't use NAN macro.
148         * modules/isnand-nolibm (Depends-on): Remove math.
149         * modules/isnanf-nolibm (Depends-on): Remove math.
150         * modules/isnanl (Depends-on): Remove math.
151         * modules/isnanl-nolibm (Depends-on): Remove math.
152
153         * tests/nan.h: New file.
154
155 2008-04-01  Eric Blake  <ebb9@byu.net>
156
157         Fix typos.
158         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
159         values to be the right type.
160
161         For now, cater to gnulib strtod inaccuracies.
162         * tests/test-strtod.c (main): Allow 1-ulp error on expected
163         fractional results.  While not as nice from a QoI perspective, it
164         is a quicker patch than correctly implementing decimal to binary
165         rounding.
166
167 2008-03-31  Eric Blake  <ebb9@byu.net>
168
169         Guarantee a definition of NAN.
170         * lib/math.in.h (NAN): Define if missing.
171         * tests/test-math.c (main): Test it.
172         * doc/posix-headers/math.texi (math.h): Document this.
173         * lib/isnan.c (rpl_isnand): Use it.
174         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
175         * tests/test-floorf1.c (NaN): Likewise.
176         * tests/test-frexp.c (NaN): Likewise.
177         * tests/test-isnand.c (NaN): Likewise.
178         * tests/test-isnanf.c (NaN): Likewise.
179         * tests/test-round1.c (NaN): Likewise.
180         * tests/test-roundf1.c (NaN): Likewise.
181         * tests/test-snprintf-posix.h (NaN): Likewise.
182         * tests/test-sprintf-posix.h (NaN): Likewise.
183         * tests/test-trunc1.c (NaN): Likewise.
184         * tests/test-truncf1.c (NaN): Likewise.
185         * tests/test-vasnprintf-posix.c (NaN): Likewise.
186         * tests/test-vasprintf-posix.c (NaN): Likewise.
187         * modules/isnand-nolibm (Depends-on): Add math.
188         * modules/isnanf-nolibm (Depends-on): Likewise.
189         * modules/isnanl (Depends-on): Likewise.
190         * modules/isnanl-nolibm (Depends-on): Likewise.
191         * modules/snprintf-posix-tests (Depends-on): Likewise.
192         * modules/sprintf-posix-tests (Depends-on): Likewise.
193         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
194         * modules/vsprintf-posix-tests (Depends-on): Likewise.
195         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
196         * modules/vasprintf-posix-tests (Depends-on): Likewise.
197
198 2008-03-31  Bruno Haible  <bruno@clisp.org>
199
200         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
201         * doc/posix-functions/strtod.texi: Likewise.
202
203 2008-03-31  Bruno Haible  <bruno@clisp.org>
204
205         * tests/test-strtod.c (main): Don't use C99 syntax.
206
207 2008-03-31  Bruno Haible  <bruno@clisp.org>
208
209         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
210         Reported by Eric Blake.
211
212 2008-03-31  Jim Meyering  <meyering@redhat.com>
213
214         Don't compare actual signbit return values.
215         * tests/test-strtod.c (main): Rather, compare only their
216         zero/non-zero nature.
217
218 2008-03-31  Eric Blake  <ebb9@byu.net>
219
220         More strtod documentation.
221         * doc/posix-functions/strtod.texi (strtod): Interpret more test
222         failures as distinct bugs.
223
224 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
225
226         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
227         Problem reported by Erik Benada in
228         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
229
230 2008-03-30  Bruno Haible  <bruno@clisp.org>
231
232         * tests/test-strtod.c: Add comments about which assertion fails on which
233         platform.
234         * doc/posix-functions/strtod.texi: Add info about many more platforms.
235
236 2008-03-30  Eric Blake  <ebb9@byu.net>
237
238         Test signbit behavior on zeros.
239         * tests/test-signbit.c (test_signbitf): Add tests for zero.
240         (test_signbitd, test_signbitl): Likewise.
241
242         More strtod touchups.
243         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
244         sign of negative underflow, for now.  Use .5, not .1.
245         * doc/posix-functions/strtod.texi (strtod): Mention these
246         limitations.
247         Reported by Jim Meyering.
248
249 2008-03-30  Bruno Haible  <bruno@clisp.org>
250
251         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
252         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
253
254 2008-03-30  Bruno Haible  <bruno@clisp.org>
255
256         Avoid failure when attempting to return empty iconv results on some
257         platforms.
258         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
259         allocation, don't report ENOMEM when the resulting string is empty.
260
261 2008-03-30  Bruno Haible  <bruno@clisp.org>
262
263         Fix buffer overrun.
264         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
265         Don't consider the width for tmp_length. Check count against tmp_length
266         before doing the padding. Ensure enough allocation during padding.
267
268 2008-03-30  Eric Blake  <ebb9@byu.net>
269
270         strtod touchups.
271         * lib/strtod.c (strtod): Avoid compiler warnings.
272         Reported by Jim Meyering.
273
274 2008-03-30  Bruno Haible  <bruno@clisp.org>
275
276         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
277         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
278         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
279         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
280         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
281         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
282         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
283         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
284
285         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
286         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
287         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
288         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
289         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
290         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
291         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
292         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
293
294         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
295         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
296         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
297         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
298         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
299         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
300         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
301         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
302
303         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
304         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
305
306         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
307         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
308
309         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
310         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
311
312         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
314         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
315
316         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
318         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
319
320         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
321         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
322         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
323
324         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
325         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
326         * modules/vasprintf (Depends-on): Add EOVERFLOW.
327
328         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
329         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
330         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
331         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
332         (Depends-on): Add EOVERFLOW.
333         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
334         (Depends-on): Add EOVERFLOW.
335         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
336         (Depends-on): Add EOVERFLOW.
337         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
338         (Depends-on): Add EOVERFLOW.
339         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
340         (Depends-on): Add EOVERFLOW.
341         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
342         (Depends-on): Add EOVERFLOW.
343         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
344         (Depends-on): Add EOVERFLOW.
345         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
346         (Depends-on): Add EOVERFLOW.
347
348         * lib/sprintf.c (EOVERFLOW): Remove fallback.
349         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
350         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
351
352         * lib/snprintf.c (EOVERFLOW): Remove fallback.
353         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
354         * modules/snprintf (Depends-on): Add EOVERFLOW.
355
356         * lib/poll.c (EOVERFLOW): Remove fallback.
357         * modules/poll (Depends-on): Add EOVERFLOW.
358
359         * lib/getugroups.c (EOVERFLOW): Remove fallback.
360         * modules/getugroups (Depends-on): Add EOVERFLOW.
361
362         * lib/getdelim.c (EOVERFLOW): Remove fallback.
363         * modules/getdelim (Depends-on): Add EOVERFLOW.
364
365         * lib/ftell.c (EOVERFLOW): Remove fallback.
366         * modules/ftell (Depends-on): Add EOVERFLOW.
367
368         * lib/fprintf.c (EOVERFLOW): Remove fallback.
369         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
370         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
371
372         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
373
374         * modules/EOVERFLOW-tests: New file.
375         * tests/test-EOVERFLOW.c: New file.
376
377         * modules/EOVERFLOW: New file.
378         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
379
380 2008-03-30  Bruno Haible  <bruno@clisp.org>
381
382         Fix bug introduced on 2007-06-10.
383         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
384         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
385
386 2008-03-30  Bruno Haible  <bruno@clisp.org>
387
388         Improve freadseek's efficiency after ungetc.
389         * lib/freadseek.c: Include freadahead.h.
390         (freadptrinc): New function, extracted from freadseek.
391         (freadseek): Use it in a loop. Use freadahead to determine the number
392         of loop iterations.
393         * modules/freadseek (Depends-on): Add freadahead.
394         (configure.ac): Require AC_C_INLINE.
395
396 2008-03-30  Bruno Haible  <bruno@clisp.org>
397
398         * lib/freadseek.c (freadseek): Don't ignore the return value of
399         freadptr.
400
401 2008-03-29  Eric Blake  <ebb9@byu.net>
402
403         Add hex float support.
404         * modules/strtod (Depends-on): Add c-ctype.
405         (Link): Mention POW_LIB.
406         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
407         whitespace between 'e' and exponent.
408         * tests/test-strtod.c (main): Enable hex float tests.
409         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
410         now provides.
411
412         Document various strtod bugs, with some fixes.
413         * doc/posix-functions/strtod.texi (strtod): Document bugs with
414         "-0x", "inf", "nan", and hex constants.
415         * doc/posix-functions/atof.texi (atof): Likewise.
416         * modules/stdlib (Makefile.am): Support strtod.
417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
418         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
419         detect additional strtod bugs.
420         * lib/stdlib.in.h (rpl_strtod): Add declarations.
421         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
422         bool where appropriate.  Parse 'inf' and 'nan'.
423         * tests/test-strtod.c: New file.
424         * modules/strtod (Depends-on): Add stdbool, stdlib.
425         (configure.ac): Turn on module indicator.
426         * modules/strtod-tests: New module.
427
428 2008-03-29  Eric Blake  <ebb9@byu.net>
429
430         Fix ftell on mingw.
431         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
432         * modules/ftell-tests (Depends-on): Add binary-io.
433         * modules/ftello-tests (Depends-on): Likewise.
434         * tests/test-ftell.c (main): Enhance test to cover behavior after
435         ungetc.  Enforce binary mode.
436         * tests/test-ftello.c (main): Likewise.
437
438         Pass test-freadseek on cygwin.
439         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
440         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
441         ungetc buffer.
442
443         * tests/test-fflush2.c (main): Fix typo.
444
445 2008-03-29  Bruno Haible  <bruno@clisp.org>
446
447         * tests/test-fflush2.c (main): Temporarily disable the contents of
448         this test.
449         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
450         Reported by Eric Blake.
451
452 2008-03-28  Simon Josefsson  <simon@josefsson.org>
453
454         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
455         (GC_SHA224_DIGEST_SIZE): Add.
456
457         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
458         (gc_hash_digest_length): Likewise.
459         (gc_hash_buffer): Likewise.
460
461 2008-03-25  Bruno Haible  <bruno@clisp.org>
462
463         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
464         detail which gettext release to use.
465         Reported by Simon Josefsson.
466
467 2008-03-26  Jim Meyering  <meyering@redhat.com>
468
469         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
470         * modules/gnumakefile (clean-GNUmakefile): Also, use
471         test ... && ... || : syntax rather than if-then ... fi.
472
473         gnumakefile: Don't double-quote-expand $(VPATH) value.
474         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
475
476 2008-03-24  Eric Blake  <ebb9@byu.net>
477
478         Alter GNUmakefile to install into top directory.
479         * modules/maintainer-makefile: Split, and add dependency...
480         * modules/gnumakefile: to this new module.
481         * build-aux/GNUmakefile: Move...
482         * top/GNUmakefile: ...here.
483         * build-aux/maint.mk: Move...
484         * top/maint.mk: ...here.
485         * MODULES.html.sh (Support for maintaining...): Document new
486         module.
487
488 2008-03-23  Bruno Haible  <bruno@clisp.org>
489
490         * gnulib-tool: New options --vc-files, --no-vc-files.
491         (func_usage): Document them.
492         (vc_files): New variable.
493         (func_import): Consider vc_files.
494         (func_create_testdir): Set vc_files to empty.
495         Suggested by Jim Meyering and Karl Berry.
496
497 2008-03-23  Bruno Haible  <bruno@clisp.org>
498
499         Fix regex compilation error on HP-UX 11.
500         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
501         * modules/regex (Files): Add m4/mbstate_t.m4.
502         Reported by Ton Voon <ton.voon@altinity.com>.
503
504 2008-03-23  Bruno Haible  <bruno@clisp.org>
505
506         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
507
508 2008-03-23  Eric Blake  <ebb9@byu.net>
509             Bruno Haible  <bruno@clisp.org>
510
511         Install files from top/ in the destination directory.
512         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
513         augmentation also for the files from top/.
514         (func_import, func_create_testdir): Rewrite file names:
515         top/filename -> filename.
516
517 2008-03-23  Bruno Haible  <bruno@clisp.org>
518
519         Tweak "gnulib --version" output.
520         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
521
522 2008-03-23  Bruno Haible  <bruno@clisp.org>
523
524         Tweak "gnulib --version" output.
525         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
526         rather than contents of ChangeLog, when possible.
527
528 2008-03-21  Eric Blake  <ebb9@byu.net>
529
530         More --version tweaks.
531         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
532         date of last ChangeLog entry.
533
534 2008-03-21  Jim Meyering  <meyering@redhat.com>
535
536         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
537
538 2008-03-20  Eric Blake  <ebb9@byu.net>
539
540         VPATH fix.
541         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
542
543 2008-03-20  Simon Josefsson  <simon@josefsson.org>
544
545         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
546         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
547
548 2008-03-20  Eric Blake  <ebb9@byu.net>
549
550         Sync GNUmakefile with coreutils.
551         * build-aux/GNUmakefile (have-Makefile): Rename...
552         (_have-Makefile): ...to this, for namespace consideration.
553         (GNUmakefile.cfg): Include, if present.
554         (_autoreconf): Define a default.
555         (_is-dist-target): New rule for rebuilds to pick up intra-release
556         version.
557         (maint-cfg.mk): Rename...
558         (cfg.mk): ...to this.
559
560 2008-03-18  Jim Meyering  <meyering@redhat.com>
561
562         New script and module: mktempd
563         * MODULES.html.sh (maint+release support): Add mktempd.
564         * build-aux/mktempd: New file.
565         * modules/mktempd: New file.
566
567 2008-03-15  Jim Meyering  <meyering@redhat.com>
568
569         Undo last change.
570         * lib/sha1.c, lib/md5.c: 63 != ~63.
571         Reported by Andreas Schwab.
572
573         sha1.c, md5.c: Hoist a redundant expression.
574         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
575         "ctx->buflen" only once, before calling *_process_block.
576         * lib/md5.c (md5_process_bytes): Likewise.
577
578 2008-03-14  Eric Blake  <ebb9@byu.net>
579
580         Bump copyright year in files generated by gnulib-tool.
581         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
582         gnulib-tool, rather than hard-coding it.
583
584         Fix 'gnulib-tool --version' output to work with git.
585         * gnulib-tool (func_gnulib_dir): New function, extracted from...
586         (startup): ...here.
587         (func_version): Use it to invoke git-version-gen, rather than
588         relying on CVS keyword expansion.  Modernize wording.
589         (cvsdatestamp, last_checkin_date, version): Kill unused
590         variables.
591
592 2008-03-12  Jim Meyering  <meyering@redhat.com>
593
594         Recognize optional cast of the argument to free.
595         * build-aux/useless-if-before-free: Update regexps.
596
597         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
598
599 2008-03-11  Bruno Haible  <bruno@clisp.org>
600
601         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
602         by a single package.
603         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
604         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
605         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
606         Reported by Sam Steingold <sds@gnu.org>.
607
608 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
609
610         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
611         repositories.
612
613 2008-03-11  Bruno Haible  <bruno@clisp.org>
614
615         Avoid conflicts between local macro definitions.
616         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
617         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
618
619 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
620             Bruno Haible  <bruno@clisp.org>
621
622         Make va_copy work with some version of xlc on AIX 5.1.
623         * lib/stdarg.in.h: New file.
624         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
625         On AIX, use a <stdarg.h> file substitute.
626         * modules/stdarg (Files): Add lib/stdarg.in.h.
627         (Depends-on): Add include_next.
628         (Makefile.am): Build a stdarg.h substitute if requested.
629         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
630
631 2008-03-10  Bruno Haible  <bruno@clisp.org>
632
633         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
634         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
635         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
636
637 2008-03-10  Bruno Haible  <bruno@clisp.org>
638
639         * modules/stdlib (Depends-on): Add include_next, remove
640         absolute-header.
641
642 2008-03-09  Bruno Haible  <bruno@clisp.org>
643
644         * lib/freadahead.h (freadahead): Document more precisely.
645         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
646         the sum of both buffer sizes.
647         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
648         * NEWS: Document the change.
649
650 2008-03-09  Bruno Haible  <bruno@clisp.org>
651
652         Extend freadptr to return also the buffer size.
653         * lib/freadptr.h (freadptr): Add sizep argument.
654         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
655         (freadptr): Add sizep argument. Determine buffer size like freadahead
656         does.
657         * tests/test-freadptr.c: Don't include freadahead.h.
658         (main): Adapt for new calling convention of freadptr.
659         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
660         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
661         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
662         tests/test-freadptr2.sh.
663         (Depends): Remove freadahead.
664         (TESTS): Add test-freadptr2.sh.
665         (check_PROGRAMS): Add test-freadptr2.
666
667 2008-03-09  Bruno Haible  <bruno@clisp.org>
668
669         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
670         Report and solution by Simon Josefsson.
671
672 2008-03-06  Bruno Haible  <bruno@clisp.org>
673
674         Make fflush after ungetc work on BSD platforms.
675         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
676         * tests/test-fflush2.c: New file.
677         * tests/test-fflush2.sh: New file.
678         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
679         tests/test-fflush2.c.
680         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
681         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
682
683 2008-03-06  Eric Blake  <ebb9@byu.net>
684
685         Likewise for ftello.
686         * modules/ftello (Dependencies): Add extensions.
687         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
688
689 2008-03-06  Bruno Haible  <bruno@clisp.org>
690
691         * modules/fseeko (Dependencies): Add extensions.
692         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
693         Needed on glibc systems.
694
695 2008-03-06  Bruno Haible  <bruno@clisp.org>
696
697         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
698         email address.
699         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
700
701 2008-03-06  Bruno Haible  <bruno@clisp.org>
702
703         * users.txt: Add libgnupdf.
704
705 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
706
707         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
708         (Header File Substitutes, Function Substitutes,
709         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
710         (Build robot for gnulib): Fix typo.
711
712 2008-03-06  Bruno Haible  <bruno@clisp.org>
713
714         * doc/gnulib-tool.texi (VCS Issues): Small updates.
715         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
716
717 2008-03-06  Bruno Haible  <bruno@clisp.org>
718
719         * doc/func.texi: New file, extracted from doc/gnulib.texi.
720         * doc/gnulib.texi: Include it.
721
722 2008-03-06  Simon Josefsson  <simon@josefsson.org>
723
724         * modules/func (License): Change license to unlimited; there was
725         no LGPL parts in the module anyway.
726
727 2008-03-06  Simon Josefsson  <simon@josefsson.org>
728
729         * modules/__func__: Renamed to modules/func.
730         * modules/__func__-tests: Renamed to modules/func-tests.
731         * tests/test-__func__.c: Renamed to tests/test-func.c.
732         * m4/__func__.m4: Renamed to m4/func.m4.
733         * doc/gnulib.texi (__func__): Section renamed to func.
734         Suggested by Eric Blake <ebb9@byu.net>.
735
736 2008-03-06  Simon Josefsson  <simon@josefsson.org>
737
738         * doc/gnulib.texi (__func__): Use C99 terminology when talking
739         about __func__.  Make example self-contained.  Suggested by Eric
740         Blake <ebb9@byu.net>.
741
742         * tests/test-__func__.c (main): Avoid extraneous () around __func.
743         Suggested by Eric Blake <ebb9@byu.net>.
744
745 2008-03-06  Simon Josefsson  <simon@josefsson.org>
746
747         * modules/__func__: New file.
748         * modules/__func__-tests: New file.
749         * tests/test-__func__.c: New file.
750         * m4/__func__.m4: New file.
751         * doc/gnulib.texi (__func__): Document __func__ module.
752
753 2008-03-05  Simon Josefsson  <simon@josefsson.org>
754
755         * modules/byteswap (License): Re-license as LGPLv2+.
756
757 2008-03-05  Simon Josefsson  <simon@josefsson.org>
758
759         * doc/Makefile: Add pdf target.
760
761 2008-03-05  Simon Josefsson  <simon@josefsson.org>
762
763         * modules/inline (License): Use 'unlimited', since there are only
764         *.m4 files in this module.
765
766 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
767             Bruno Haible  <bruno@clisp.org>
768
769         Add support for HP C 7.1 on OpenVMS 8.3.
770         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
771
772 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
773
774         Update VMS specifics.
775         * lib/getopt.c [VMS]: Remove include of unixlib.h.
776
777 2008-03-02  Jim Meyering  <meyering@redhat.com>
778
779         Remove the last dependency on the "free" module.
780         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
781         Reported by Bob Proulx.
782
783         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
784
785         Remove useless "if" tests before free.  Deprecate "free" module.
786         * doc/posix-functions/free.texi: Mention that this
787         module is no longer useful.
788         * modules/free (Notice): Say this module is obsolete.
789         * modules/readutmp (Depends-on): Remove free.
790         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
791         * lib/putenv.c (putenv): Likewise.
792         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
793         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
794         * tests/test-c-strcasestr.c (main): Likewise.
795         * tests/test-c-strstr.c (main): Likewise.
796         * tests/test-mbscasestr1.c (main): Likewise.
797         * tests/test-mbscasestr2.c (main): Likewise.
798         * tests/test-mbsstr1.c (main): Likewise.
799         * tests/test-mbsstr2.c (main): Likewise.
800         * tests/test-memmem.c (main): Likewise.
801         * tests/test-strcasestr.c (main): Likewise.
802         * tests/test-striconv.c (main): Likewise.
803         * tests/test-striconveh.c (main): Likewise.
804         * tests/test-striconveha.c (main): Likewise.
805         * tests/test-strstr.c (main): Likewise.
806
807         * build-aux/git-version-gen: Adjust a comment and the Usage string.
808
809         bootstrap: sync from coreutils again
810         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
811
812 2008-03-01  Jim Meyering  <meyering@redhat.com>
813
814         bootstrap: sync from coreutils
815         * build-aux/bootstrap (update_po_files): Copy a .po file into place
816         also when the target doesn't exist.
817
818 2008-03-01  Eric Blake  <ebb9@byu.net>
819
820         Fix bugs in last patch.
821         * lib/memchr2.c (memchr2): Fix typo.
822         * tests/test-memchr2.c: Test previous bug, and don't use GNU
823         extension.
824         Reported by Bruce Korb.
825
826         New module 'memchr2'.
827         * modules/memchr2: New file.
828         * modules/memchr2-tests: Likewise.
829         * lib/memchr2.h: Likewise.
830         * lib/memchr2.c: Likewise, based on memchr.c.
831         * tests/test-memchr2.c: New test.
832         * MODULES.html.sh (String handling): Add memchr2.
833
834 2008-02-29  Bruno Haible  <bruno@clisp.org>
835
836         * modules/freadseek-tests: New file.
837         * tests/test-freadseek.sh: New file.
838         * tests/test-freadseek.c: New file.
839
840         New module 'freadseek'.
841         * modules/freadseek: New file.
842         * lib/freadseek.h: New file.
843         * lib/freadseek.c: New file.
844         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
845
846 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
847
848         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
849         wydawca.
850
851         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
852         program_invocation_name and program_invocation_short_name are
853         present.
854
855 2008-02-28  Bruno Haible  <bruno@clisp.org>
856
857         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
858         * tests/test-freadptr.sh: Also test non-seekable stdin.
859
860 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
861
862         * build-aux/bootstrap (source_base, m4_base)
863         (doc_base, tests_base): New variables.
864         (gnulib_tool_options): Do not hardcode base directories, use
865         the above variables instead.
866
867 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
868
869         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
870
871 2008-02-28  Bruno Haible  <bruno@clisp.org>
872
873         * modules/freadptr-tests: New file.
874         * tests/test-freadptr.sh: New file.
875         * tests/test-freadptr.c: New file.
876
877         New module 'freadptr'.
878         * modules/freadptr: New file.
879         * lib/freadptr.h: New file.
880         * lib/freadptr.c: New file.
881         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
882
883 2008-02-26  Karl Berry  <karl@freefriends.org>
884
885         Sync from Libtool:
886         * libltdl/argz.c (argz_add, argz_count): New functions.
887         * libltdl/argz.in.h: Declare them.
888         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
889
890 2008-02-22  Bruno Haible  <bruno@clisp.org>
891
892         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
893         is a pointer type.  Needed for HP-UX 10.
894         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
895         * doc/posix-functions/gmtime_r.texi: Likewise.
896         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
897
898 2008-02-24  Bruno Haible  <bruno@clisp.org>
899
900         * modules/environ-tests: New file.
901         * tests/test-environ.c: New file.
902
903         New module 'environ'.
904         * modules/environ: New file.
905         * lib/unistd.in.h (environ): New declaration.
906         * m4/environ.m4: New file.
907         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
908         after use.
909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
910         HAVE_DECL_ENVIRON.
911         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
912         HAVE_DECL_ENVIRON.
913         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
914         wrong claim that 'environ' is missing on some systems.
915         * modules/execute (Depends-on): Add environ.
916         * lib/execute.c (environ): Remove fallback declaration.
917         * modules/pipe (Depends-on): Add environ.
918         * lib/pipe.c (environ): Remove fallback declaration.
919         * modules/setenv (Depends-on): Add environ.
920         * lib/setenv.c (environ): Remove fallback declaration.
921         * modules/unsetenv (Depends-on): Add environ.
922         * lib/unsetenv.c (environ): Remove fallback declaration.
923         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
924         m4/environ.m4.
925         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
926         (gl_PREREQ_UNSETENV): Likewise.
927
928 2008-02-24  Bruno Haible  <bruno@clisp.org>
929
930         * doc/posix-functions/environ.texi: Document the MacOS X problem.
931
932 2008-02-20  Bob Proulx  <bob@proulx.com>
933
934         Enable use of older two part flavor 'git describe'.
935         * build-aux/git-version-gen: If using the older two part flavor of
936         git version then recreate the third part now present in the
937         newer three part flavor of git describe.
938
939 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
940
941         * lib/fts.c (fts_build): Typo correction to comment.
942
943 2008-02-17  Bruno Haible  <bruno@clisp.org>
944
945         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
946         generating no-op conflicts.
947
948 2008-02-17  Bruno Haible  <bruno@clisp.org>
949
950         Speed up by 10%.
951         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
952         result_entries, rather than an index-based loop.
953
954 2008-02-17  Bruno Haible  <bruno@clisp.org>
955
956         Speed up by 25%.
957         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
958         'hashcode_cached'.
959         (entry_create): New function.
960         (entry_hashcode): Use the cached hashcode if possible.
961         (read_changelog_file, try_split_merged_entry): Use entry_create.
962
963 2008-02-17  Bruno Haible  <bruno@clisp.org>
964
965         Speed up from O(n^2) to O(n) for long ChangeLog files.
966         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
967         (read_changelog_file): Change implementation of entries_reversed list
968         to rbtreehash.
969         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
970
971 2008-02-17  Bruno Haible  <bruno@clisp.org>
972
973         New option --split-merged-entry.
974         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
975         (find_paragraph_end, try_split_merged_entry): New functions.
976         (long_options): Add option --split-merged-entry.
977         (usage): Document option --split-merged-entry.
978         (main): Implement option --split-merged-entry.
979         Reported by Eric Blake.
980
981 2008-02-17  Bruno Haible  <bruno@clisp.org>
982
983         * lib/git-merge-changelog.c: Include c-strstr.h.
984         (main): Support the "git pull --rebase" situation.
985         * modules/git-merge-changelog (Depends-on): Add c-strstr.
986         Reported by Eric Blake.
987
988 2008-02-16  Eric Blake  <ebb9@byu.net>
989
990         Avoid doubling \ in common case of "c-maybe" quoting style.
991         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
992         eliding outer quotes.
993         * lib/quotearg.h: Document this.
994         * tests/test-quotearg.c (result_strings, inputs, results_g)
995         (flag_results, locale_results): Test it by adding a new string to
996         each test group.
997         (compare_strings): Test new string.
998
999 2008-02-13  Eric Blake  <ebb9@byu.net>
1000
1001         Avoid trigraph quoting in default output.
1002         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
1003         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
1004         unless explicitly requested.
1005         * tests/test-quotearg.c (flag_results, main): Add additional tests.
1006
1007 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
1008
1009         Don't rely on signed integer overflowing to negative value.
1010         * lib/getugroups.c (getugroups): Include <limits.h>.
1011         Instead, compare against INT_MAX, and increment only if the test passes.
1012
1013 2008-02-13  Jim Meyering  <meyering@redhat.com>
1014         and Eric Blake  <ebb9@byu.net>
1015
1016         Avoid shadowing warning and compile errors on Linux.
1017         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
1018         forwarding macros on Linux.
1019         (dcgettext): Define a stub, for Linux.
1020         (results_g, main): Avoid warnings.
1021
1022 2008-02-12  Eric Blake  <ebb9@byu.net>
1023
1024         Silence warning in last patch.
1025         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
1026
1027         Quotearg part 4: add tests, fix c-maybe colon quoting.
1028         * lib/quotearg.h: Improve documentation.
1029         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
1030         escapes when adding outer quotes.  When quoting trigraphs, use
1031         valid C notation.  When quoting NUL, omit extra characters if next
1032         character is not digit.  Alter prototype.
1033         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
1034         callers.
1035         * modules/quotearg-tests: New module.
1036         * tests/test-quotearg.c: New test.
1037
1038 2008-02-07  Eric Blake  <ebb9@byu.net>
1039
1040         Quotearg part 3: add flag to control outer quote elision.
1041         * lib/quotearg.h (c_maybe_quoting_style): New style.
1042         (enum quoting_flags): Better documentation of flags.
1043         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
1044         c-maybe style.
1045         (quotearg_buffer_restyled): Handle new flag to elide outer
1046         quotes.
1047
1048         Quotearg part 2: add flag that can control NUL elision.
1049         * lib/quotearg.h (set_quoting_flags): New prototype.
1050         * lib/quotearg.c (struct quoting_options): Add flag field.
1051         (set_quoting_flags): New function.
1052         (quotearg_buffer_restyled): Add flags parameter.
1053         (quotearg_alloc_mem): Set the flag if length cannot be returned.
1054         (quotearg_n_options): Set the flag, since length cannot be
1055         returned.
1056         (quoting_options_from_style): Default flags correctly.
1057
1058         Quotearg part 1: more wrappers, restore quotearg_char state.
1059         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
1060         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
1061         (quotearg_colon_mem): New wrappers.
1062         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
1063         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
1064         functions.
1065         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
1066         (quotearg_colon_mem): New functions.
1067
1068 2008-02-11  Bruno Haible  <bruno@clisp.org>
1069
1070         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
1071         library in the current directory: it does not work with parallel make.
1072         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1073
1074 2008-02-11  Bruno Haible  <bruno@clisp.org>
1075
1076         * .gitattributes: New file.
1077
1078 2008-02-11  Jim Meyering  <meyering@redhat.com>
1079
1080         useless-if-before-free: Fix reversed exit values.
1081         * build-aux/useless-if-before-free: Use correct values
1082         for EXIT_MATCH and EXIT_NO_MATCH.
1083
1084         * build-aux/useless-if-before-free: Close stdout carefully.
1085
1086 2008-02-10  Bruno Haible  <bruno@clisp.org>
1087
1088         New module 'git-merge-changelog'.
1089         * modules/git-merge-changelog: New file.
1090         * lib/git-merge-changelog.c: New file.
1091
1092 2008-02-10  Jim Meyering  <meyering@redhat.com>
1093
1094         useless-if-before-free: New option: --list (-l).
1095
1096         useless-if-before-free: Don't exit immediately upon open failure.
1097         * build-aux/useless-if-before-free: Exit 2 for errors.
1098         Upon failure to open a file, don't exit immediately.
1099         Rather, just warn and continue with any remaining files.
1100
1101 2008-02-10  Bruno Haible  <bruno@clisp.org>
1102
1103         New abstract list operation 'node_set_value'.
1104         * lib/gl_list.h (gl_list_node_set_value): New function.
1105         (struct gl_list_implementation): New field node_set_value.
1106         * lib/gl_list.c (gl_list_node_set_value): New function.
1107         * lib/gl_array_list.c (gl_array_node_set_value): New function.
1108         (gl_array_list_implementation): Update.
1109         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
1110         (gl_carray_list_implementation): Update.
1111         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
1112         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1113         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1114         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
1115         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1116         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1117         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1118         Update.
1119         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
1120         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
1121         (gl_sublist_list_implementation): Update.
1122
1123 2008-02-10  Bruno Haible  <bruno@clisp.org>
1124
1125         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
1126         Needed when ELEMENT is #defined to 'some_type *'.
1127
1128 2008-02-10  Jim Meyering  <meyering@redhat.com>
1129
1130         New script and module: useless-if-before-free
1131         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
1132         * build-aux/useless-if-before-free: New file.
1133         * modules/useless-if-before-free: New file.
1134
1135         * build-aux/gitlog-to-changelog: Use committer date, not author date.
1136
1137         xstrtol_error: Fix typo.
1138         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
1139         s/exit_failure/exit_status/.
1140
1141 2008-02-09  Jim Meyering  <meyering@redhat.com>
1142
1143         New script and module: gitlog-to-changelog
1144         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
1145         * modules/gitlog-to-changelog: New file.
1146         * build-aux/gitlog-to-changelog: New file.
1147
1148 2008-02-08  Jim Meyering  <meyering@redhat.com>
1149
1150         Avoid two "parameter unused" warnings.
1151         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
1152         Mark "st" as used.
1153
1154         Use "git COMMAND", not "git-COMMAND".
1155         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
1156         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
1157         * build-aux/git-version-gen: Use "git status", not "git-status".
1158
1159 2008-02-07  Bruno Haible  <bruno@clisp.org>
1160
1161         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
1162         Avoids a crash on Windows Vista.
1163         Reported by Adam Strzelecki <ono@java.pl> via
1164         Simon Josefsson <simon@josefsson.org>.
1165
1166 2008-02-06  Bruno Haible  <bruno@clisp.org>
1167
1168         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
1169         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
1170         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
1171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
1172         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1174         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
1175         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
1176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1177         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1179         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1183         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
1184         left-adjust flag.
1185         * tests/test-snprintf-posix.h (test_function): Likewise.
1186         * tests/test-sprintf-posix.h (test_function): Likewise.
1187         * tests/test-vasprintf-posix.c (test_function): Likewise.
1188         * doc/posix-functions/fprintf.texi: Update.
1189         * doc/posix-functions/printf.texi: Update.
1190         * doc/posix-functions/snprintf.texi: Update.
1191         * doc/posix-functions/sprintf.texi: Update.
1192         * doc/posix-functions/vfprintf.texi: Update.
1193         * doc/posix-functions/vprintf.texi: Update.
1194         * doc/posix-functions/vsnprintf.texi: Update.
1195         * doc/posix-functions/vsprintf.texi: Update.
1196         Reported by Peter Fales <psfales@alcatel-lucent.com>.
1197
1198 2008-02-06  Bruno Haible  <bruno@clisp.org>
1199
1200         Fix bug introduced on 2008-01-26.
1201         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
1202
1203 2008-02-06  Bruno Haible  <bruno@clisp.org>
1204
1205         Fix bug introduced on 2007-06-10.
1206         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
1207         !NEED_PRINTF_FLAG_ZERO.
1208
1209 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
1210
1211         getloadavg: use libperfstat on AIX5
1212         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
1213
1214 2008-02-03  Bruno Haible  <bruno@clisp.org>
1215
1216         * lib/diffseq.h: Add comments about required #includes.
1217         Reported by Michael Biggs <gnulib@doubleplum.net>.
1218
1219 2008-02-01  Bruno Haible  <bruno@clisp.org>
1220
1221         * users.txt: Add gnuit.
1222
1223 2008-01-31  Bruno Haible  <bruno@clisp.org>
1224
1225         * lib/md4.c (set_uint32): Mark as inline.
1226         * lib/md5.c (set_uint32): Likewise.
1227         * lib/sha1.c (set_uint32): Likewise.
1228         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
1229         * m4/md5.m4 (gl_MD5): Likewise.
1230         * m4/sha1.m4 (gl_SHA1): Likewise.
1231
1232 2008-01-31  Jim Meyering  <meyering@redhat.com>
1233
1234         Use "sizeof VAR", rather than a literal "4".
1235         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
1236         * lib/md4.c (md4_read_ctx): Likewise.
1237         * lib/sha1.c (sha1_read_ctx): Likewise.
1238
1239 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1240
1241         * tests/test-sha1.c: New file, based on test-md5.c.
1242
1243         * modules/crypto/sha1-tests: New file.
1244
1245 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1246
1247         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
1248
1249 2008-01-31  Jim Meyering  <meyering@redhat.com>
1250
1251         Prefer "sizeof v" over the equivalent "4".
1252         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
1253         * lib/md5.c (set_uint32): Likewise.
1254         * lib/sha1.c (set_uint32): Likewise.
1255
1256 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1257
1258         * lib/sha1.c (set_uint32): Mark function as static.
1259
1260 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1261
1262         md2: clarify comments to say that alignment is not required.
1263         * lib/md2.h: Remove warning about alignment in comment.
1264         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
1265         never been required.
1266
1267 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1268
1269         md4: adapt alignment constraint fix from sha1.
1270         * lib/md4.c (set_uint32): New function, from sha1.c
1271         (md4_read_ctx): Use it.
1272         (md4_finish_ctx): Doc fix.
1273         * lib/md4.h: Doc fix.
1274
1275 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1276
1277         md5: adapt alignment constraint fix from sha1.
1278         * lib/md5.c (set_uint32): New function, from sha1.c
1279         (md5_read_ctx): Use it.
1280         (md5_finish_ctx): Doc fix.
1281         * lib/md5.h: Doc fix.
1282
1283 2008-01-30  Peter Palfrader  <weasel@debian.org>
1284
1285         sha1: remove the result buffer alignment constraint
1286         * lib/sha1.c (set_uint32): New function.
1287         (sha1_read_ctx): Rewrite to remove the result buffer alignment
1288         constraint.
1289         (sha1_finish_ctx): Remove comment warning about alignment constraint.
1290         * lib/sha1.h: Likewise.
1291
1292 2008-01-30  Andreas Schwab  <schwab@suse.de>
1293             Bruno Haible  <bruno@clisp.org>
1294
1295         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
1296         correct definition of LDBL_MIN_EXP.
1297
1298 2008-01-30  Karl Berry  <karl@gnu.org>
1299
1300         * config/srclist-update: try to preserve x bit on updates.
1301         * config/srclistvars.sh: update for karl.
1302
1303 2008-01-29  Jim Meyering  <meyering@redhat.com>
1304
1305         vasnprintf.c: Avoid warning about unused label
1306         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
1307         "overflow" label definition and associated code with the
1308         same cpp condition that guards the sole use of that label.
1309
1310 2008-01-26  Bruno Haible  <bruno@clisp.org>
1311
1312         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
1313         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
1314         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
1315         * lib/isnanl-nolibm.h (isnanl): Likewise.
1316         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1317
1318 2008-01-26  Bruno Haible  <bruno@clisp.org>
1319
1320         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
1321         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
1322
1323 2008-01-26  Bruno Haible  <bruno@clisp.org>
1324
1325         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
1326         GCC >= 4.0 built-in.
1327         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
1328
1329 2008-01-26  Bruno Haible  <bruno@clisp.org>
1330
1331         Rename isnan, applicable to 'double' only, to isnand.
1332         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
1333         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
1334         (configure.ac): Update.
1335         (Include): Replace "isnan.h" with "isnand.h".
1336         * m4/isnand.m4: Renamed from m4/isnan.m4.
1337         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
1338         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
1339         instead of isnan.c.
1340         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
1341         instead of HAVE_ISNAN_IN_LIBC.
1342         (isnand): Renamed from isnan.
1343         * lib/isnand.c: New file.
1344         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
1345         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
1346         (Makefile.am): Update.
1347         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
1348         Include isnand.h instead of isnan.h.
1349         (main): Test isnand instead of isnan.
1350         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
1351         isnan-nolibm.
1352         * modules/frexp (Depends-on): Likewise.
1353         * modules/frexp-tests (Depends-on): Likewise.
1354         * modules/frexp-nolibm (Depends-on): Likewise.
1355         * modules/frexp-nolibm-tests (Depends-on): Likewise.
1356         * modules/isfinite (Depends-on): Likewise.
1357         * modules/round-tests (Depends-on): Likewise.
1358         * modules/signbit (Depends-on): Likewise.
1359         * modules/signbit-tests (Depends-on): Likewise.
1360         * modules/snprintf-posix (Depends-on): Likewise.
1361         * modules/sprintf-posix (Depends-on): Likewise.
1362         * modules/trunc-tests (Depends-on): Likewise.
1363         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1364         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1365         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1366         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1367         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1368         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1369         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1370         * modules/vasnprintf-posix (Depends-on): Likewise.
1371         * modules/vasprintf-posix (Depends-on): Likewise.
1372         * modules/vfprintf-posix (Depends-on): Likewise.
1373         * modules/vsnprintf-posix (Depends-on): Likewise.
1374         * modules/vsprintf-posix (Depends-on): Likewise.
1375         * lib/frexp.c: Include isnand.h instead of isnan.h.
1376         (ISNAN): Set to isnand instead of isnan.
1377         * lib/isfinite.c: Include isnand.h instead of isnan.h.
1378         (gl_isfinited): Use isnand instead of isnan.
1379         * lib/signbitd.c: Include isnand.h instead of isnan.h.
1380         (gl_signbitd): Use isnand instead of isnan.
1381         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
1382         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
1383         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
1384         (main): Use isnand instead of isnan.
1385         * tests/test-round1.c: Include isnand.h.
1386         (main): Use isnand instead of isnan.
1387         * tests/test-round2.c: Include isnand.h instead of isnan.h.
1388         (ISNAN): Set to isnand instead of isnan.
1389         * tests/test-trunc1.c: Include isnand.h.
1390         (main): Use isnand instead of isnan.
1391         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
1392         (equal): Use isnand instead of isnan.
1393         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
1394         isnand-nolibm.
1395         * NEWS: Mention the change.
1396
1397 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1398             Bruno Haible  <bruno@clisp.org>
1399
1400         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
1401         the GCC builtins for signbits are present and set
1402         REPLACE_SIGNBIT_USING_GCC if so.
1403         * lib/math.in.h (signbit): Define using GCC builtins if
1404         REPLACE_SIGNBIT_USING_GCC is set.
1405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
1406         REPLACE_SIGNBIT_USING_GCC.
1407         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
1408
1409 2008-01-25  Jim Meyering  <meyering@redhat.com>
1410
1411         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
1412         * lib/poll.c: Include <config.h>, not "config.h".
1413         * tests/test-getaddrinfo.c: Likewise.
1414
1415 2008-01-25  Simon Josefsson  <simon@josefsson.org>
1416
1417         * modules/sockets-tests: New file.
1418
1419 2008-01-24  Simon Josefsson  <simon@josefsson.org>
1420
1421         * modules/sockets: New module, can be used to call WSA_Startup and
1422         WSA_Cleanup when needed.
1423
1424         * lib/sockets.h, lib/sockets.c: New files.
1425
1426         * m4/sockets.m4: New file.
1427
1428         * tests/test-sockets.c: New file.
1429
1430 2008-01-19  Bruno Haible  <bruno@clisp.org>
1431
1432         * doc/posix-headers: Renamed from doc/headers.
1433         * doc/posix-functions: Renamed from doc/functions.
1434         * doc/gnulib.texi: Update.
1435
1436 2008-01-19  Bruno Haible  <bruno@clisp.org>
1437
1438         * doc/glibc-functions/strcasestr.texi: Include contents of
1439         doc/functions/strcasestr.texi, fixing the list of platforms.
1440         * doc/functions/strcasestr.texi: Remove file.
1441
1442 2008-01-19  Bruno Haible  <bruno@clisp.org>
1443
1444         * doc/glibc-functions/memmem.texi: Include contents of
1445         doc/functions/memmem.texi.
1446         * doc/functions/memmem.texi: Remove file.
1447
1448 2008-01-18  Bruno Haible  <bruno@clisp.org>
1449
1450         * doc/glibc-functions/*.texi: New files.
1451         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
1452         to use the new files.
1453
1454 2008-01-17  Bruno Haible  <bruno@clisp.org>
1455
1456         * tests/test-gethostname.c (main): Fix printf statement.
1457
1458 2008-01-17  Simon Josefsson  <simon@josefsson.org>
1459
1460         * modules/gethostname-tests: New file.
1461
1462         * tests/test-gethostname.c: New file.
1463
1464 2008-01-17  Simon Josefsson  <simon@josefsson.org>
1465
1466         * lib/gethostname.c: Include string.h unconditionally, strncpy is
1467         used by the UNAME case.  Reported by Bruno Haible
1468         <bruno@clisp.org>.
1469
1470 2008-01-17  Eric Blake  <ebb9@byu.net>
1471
1472         Convert c-strcasestr to be more efficient.
1473         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
1474         (Depends-on): Add c-strcase, remove malloca, strnlen.
1475         * tests/test-c-strcasestr.c (main): Enhance test.
1476         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
1477
1478 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
1479
1480         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
1481         Use it in creating po/Makevars.
1482
1483 2008-01-15  Simon Josefsson  <simon@josefsson.org>
1484
1485         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
1486         Applications that requires it should initialize libgcrypt
1487         manually.
1488
1489 2008-01-16  Simon Josefsson  <simon@josefsson.org>
1490
1491         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
1492
1493 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1494
1495         Fix problem with getdate on mingw32 reported by Simon Josefsson
1496         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
1497         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
1498         tzname", when deciding whether to declare tzname.
1499         * lib/strftime.c (tzname): Likewise.
1500
1501 2008-01-15  Bruno Haible  <bruno@clisp.org>
1502
1503         Work around a MacOS X 10.5 bug in frexpl().
1504         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
1505         * doc/functions/frexpl.texi: Document the bug.
1506         Reported by Elias Pipping <pipping@gentoo.org>.
1507
1508 2008-01-14  Eric Blake  <ebb9@byu.net>
1509
1510         Touch up previous patch.
1511         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
1512         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
1513
1514         Convert strcasestr module to use Two-Way algorithm.
1515         * modules/strcasestr-simple: New module, based on the old
1516         strcasestr, but with Two-Way rather than KMP.
1517         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
1518         * lib/string.in.h (rpl_strcasestr): Declare.
1519         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
1520         performance.
1521         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
1522         * modules/string (Makefile.am): Support strcasestr.
1523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1524         * modules/strcasestr-tests (Depends-on): Check for alarm.
1525         * tests/test-strcasestr.c: Augment test.
1526         * lib/str-two-way.h: Clean up stray macro.
1527         * NEWS: Document new module.
1528         * MODULES.html.sh (string handling): Likewise.
1529         * doc/functions/strcasestr.texi: New file.
1530         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
1531         here, since it is not a POSIX function.
1532
1533 2008-01-14  Colin Watson  <cjwatson@debian.org>
1534             Bruno Haible  <bruno@clisp.org>
1535
1536         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
1537         works fine; if not, set REPLACE_STRSIGNAL.
1538         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
1539         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1540         REPLACE_STRSIGNAL.
1541         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
1542         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
1543         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
1544
1545 2008-01-14  Bruno Haible  <bruno@clisp.org>
1546
1547         * modules/strsignal (Include): Change to <string.h>.
1548
1549 2008-01-14  Colin Watson  <cjwatson@debian.org>
1550
1551         * modules/argp (Notice): Add a notice recommending to change
1552         XGETTEXT_OPTIONS.
1553         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
1554
1555 2008-01-13  Colin Watson  <cjwatson@debian.org>
1556
1557         * modules/strsignal-tests: New file.
1558         * tests/test-strsignal.c: New file.
1559
1560         * lib/strsignal.c: New file, from glibc with modifications.
1561         * lib/siglist.h: New file, from glibc with modifications.
1562         * lib/string.in.h (strsignal): New declaration.
1563         * m4/strsignal.m4: New file.
1564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1565         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
1566         * modules/strsignal: New file.
1567         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
1568         HAVE_DECL_STRSIGNAL.
1569
1570 2008-01-13  Bruno Haible  <bruno@clisp.org>
1571
1572         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
1573         locale encoding is not ASCII. Needed for OpenBSD 4.0.
1574         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1575         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1576
1577 2008-01-13  Bruno Haible  <bruno@clisp.org>
1578
1579         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
1580         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
1581         * lib/argp.h (__attribute__): Likewise.
1582         * lib/c-stack.c (__attribute__): Likewise.
1583         * lib/error.h (__attribute__): Likewise.
1584         * lib/fts.c (__attribute__): Likewise.
1585         * lib/openat.h (__attribute__): Likewise.
1586         * lib/stdio.in.h (__attribute__): Likewise.
1587         * lib/string.in.h (__attribute__): Likewise.
1588         * lib/utimens.c (__attribute__): Likewise.
1589         * lib/vasnprintf.h (__attribute__): Likewise.
1590         * lib/xalloc.h (__attribute__): Likewise.
1591         * lib/xprintf.h (__attribute__): Likewise.
1592         * lib/xstrtol.h (__attribute__): Likewise.
1593         * lib/xvasprintf.h (__attribute__): Likewise.
1594
1595 2008-01-12  Bruno Haible  <bruno@clisp.org>
1596
1597         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
1598         * doc/glibc-headers/a.out.texi: New file.
1599         * doc/glibc-headers/aliases.texi: New file.
1600         * doc/glibc-headers/alloca.texi: New file.
1601         * doc/glibc-headers/ar.texi: New file.
1602         * doc/glibc-headers/argp.texi: New file.
1603         * doc/glibc-headers/argz.texi: New file.
1604         * doc/glibc-headers/byteswap.texi: New file.
1605         * doc/glibc-headers/crypt.texi: New file.
1606         * doc/glibc-headers/endian.texi: New file.
1607         * doc/glibc-headers/envz.texi: New file.
1608         * doc/glibc-headers/err.texi: New file.
1609         * doc/glibc-headers/error.texi: New file.
1610         * doc/glibc-headers/execinfo.texi: New file.
1611         * doc/glibc-headers/fpu_control.texi: New file.
1612         * doc/glibc-headers/fstab.texi: New file.
1613         * doc/glibc-headers/fts.texi: New file.
1614         * doc/glibc-headers/getopt.texi: New file.
1615         * doc/glibc-headers/ieee754.texi: New file.
1616         * doc/glibc-headers/ifaddrs.texi: New file.
1617         * doc/glibc-headers/libintl.texi: New file.
1618         * doc/glibc-headers/mcheck.texi: New file.
1619         * doc/glibc-headers/mntent.texi: New file.
1620         * doc/glibc-headers/obstack.texi: New file.
1621         * doc/glibc-headers/paths.texi: New file.
1622         * doc/glibc-headers/printf.texi: New file.
1623         * doc/glibc-headers/pty.texi: New file.
1624         * doc/glibc-headers/resolv.texi: New file.
1625         * doc/glibc-headers/shadow.texi: New file.
1626         * doc/glibc-headers/sysexits.texi: New file.
1627         * doc/glibc-headers/ttyent.texi: New file.
1628
1629 2008-01-12  Jim Meyering  <meyering@redhat.com>
1630
1631         announce-gen: emit Gnulib's git-based version string.
1632         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
1633         New option --gnulib-version=V, where V is expected to be
1634         the output of running git describe in the gnulib directory.
1635         (get_tool_versions): Request feedback on xdelta.  I suspect it's
1636         not useful, and plan to stop publishing an xdelta file with each
1637         coreutils release.
1638
1639         * build-aux/announce-gen: Also check for lzma-compressed files.
1640
1641 2008-01-11  Bruno Haible  <bruno@clisp.org>
1642
1643         * tests/test-memmem.c (main): Increase maximum allowed time.
1644         * tests/test-strstr.c (main): Likewise.
1645
1646 2008-01-11  Bruno Haible  <bruno@clisp.org>
1647
1648         * doc/functions/memmem.texi: Add more precisions about platforms.
1649         * doc/functions/strstr.texi: Likewise.
1650
1651 2008-01-10  Eric Blake  <ebb9@byu.net>
1652
1653         * m4/strstr.m4: Delete cruft from copy-n-paste.
1654         Reported by Bruno Haible.
1655
1656 2008-01-10  Bruno Haible  <bruno@clisp.org>
1657
1658         Make c-strstr rely on strstr.
1659         * lib/c-strstr.c: Don't include str-kmp.h.
1660         (c_strstr): Define in terms of strstr.
1661         * modules/c-strstr (Files): Remove lib/str-kmp.h.
1662         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
1663
1664 2008-01-10  Bruno Haible  <bruno@clisp.org>
1665
1666         * doc/gnulib.texi (String Functions in C Locale): New section.
1667         * doc/c-ctype.texi: New file.
1668         * doc/c-strcase.texi: New file.
1669         * doc/c-strcaseeq.texi: New file.
1670         * doc/c-strcasestr.texi: New file.
1671         * doc/c-strstr.texi: New file.
1672         * doc/c-strtod.texi: New file.
1673         * doc/c-strtold.texi: New file.
1674
1675 2008-01-10  Eric Blake  <ebb9@byu.net>
1676
1677         * lib/relocatable.h: Fix a comment.
1678
1679 2008-01-10  Eric Blake  <ebb9@byu.net>
1680
1681         Share two-way algorithm.
1682         * lib/str-two-way.h: New file, merged from...
1683         * lib/memmem.c: ...here...
1684         * lib/strstr.c: ...and here.
1685         * modules/memmem (Files): Use it.
1686         * modules/strstr (Files): Likewise.
1687
1688         Avoid quadratic strstr implementations.
1689         * lib/strstr.c: New file.
1690         * m4/strstr.m4: Likewise.
1691         * modules/strstr: Likewise.
1692         * modules/strstr-tests: Likewise.
1693         * tests/test-strstr.c: Likewise.
1694         * lib/string.in.h (rpl_strstr): Declare.
1695         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
1696         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
1697         * modules/string (Makefile.am): Likewise.
1698         * MODULES.html.sh (string handling): Mention new module.
1699         * doc/functions/strstr.texi (strstr): Document the bug.
1700
1701 2008-01-10  Bruno Haible  <bruno@clisp.org>
1702
1703         * lib/relocatable.h (relocate): State whether result is freshly
1704         allocated or not.
1705         * lib/relocatable.c (relocate): Return a freshly allocated string
1706         instead of a pointer to a privately held string.
1707         Reported by Sylvain Beucler <beuc@gnu.org>.
1708
1709 2008-01-10  Colin Watson  <cjwatson@debian.org>
1710
1711         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
1712         s/S_ISNLK/S_ISLNK/.
1713
1714 2008-01-09  Bruno Haible  <bruno@clisp.org>
1715
1716         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
1717         and other files.
1718         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
1719         if it's only a guess.
1720         * modules/memmem: Simplify by depending on memmem-simple.
1721
1722 2008-01-09  Bruno Haible  <bruno@clisp.org>
1723
1724         Work around OpenBSD 4.0 tdelete() bug.
1725         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
1726         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
1727         macros and don't redefine the enum values.
1728         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
1729         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
1730         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
1731
1732 2008-01-09  Bruno Haible  <bruno@clisp.org>
1733
1734         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
1735         (main): Don't perform the tests if setlocale did not install a UTF-8
1736         locale. Needed on OpenBSD 4.0.
1737         * modules/wcwidth-tests (Depends-on): Add localcharset.
1738
1739 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1740
1741         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
1742         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
1743         * NEWS: announce this.
1744         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
1745
1746 2008-01-09  Simon Josefsson  <simon@josefsson.org>
1747         and Eric Blake  <ebb9@byu.net>
1748
1749         Add memmem-simple module.
1750         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
1751         (gl_FUNC_MEMMEM): Separate performance from presence checks.
1752         * modules/memmem-simple: New file.
1753         * modules/memmem (Description): Tweak.
1754         * MODULES.html.sh (string handling): Mention new module.
1755         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
1756         addressed by memmem-simple.
1757         * NEWS: Document the difference.
1758
1759 2008-01-09  Eric Blake  <ebb9@byu.net>
1760
1761         Give gcc some memmem optimization hints.
1762         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
1763         (strcasestr): Declare as pure.
1764         * modules/memmem (Maintainer): Claim my implementation.
1765
1766 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1767
1768         Support AIX 6.1 and higher.
1769         * build-aux/config.libpath: Likewise.
1770         * build-aux/config.rpath: Likewise.
1771
1772 2008-01-08  Jim Meyering  <meyering@redhat.com>
1773             Bruno Haible  <bruno@clisp.org>
1774
1775         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
1776         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
1777         Reported by Peter Fales in
1778         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
1779
1780 2008-01-08  Bruno Haible  <bruno@clisp.org>
1781
1782         * modules/unictype/category-of (Depends-on): Add
1783         unictype/category-none.
1784         * modules/unictype/category-and-tests (Depends-on): Add
1785         unictype/category-{L,N,Lu,Nd}.
1786         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
1787         * modules/unictype/category-or-tests (Depends-on): Add
1788         unictype/category-{L,N}.
1789         * modules/unictype/category-name-tests (Depends-on): Add
1790         unictype/category-{Z,Nl}.
1791         Reported by Simon Josefsson.
1792
1793 2008-01-08  Bruno Haible  <bruno@clisp.org>
1794
1795         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
1796         convention better.
1797         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
1798         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
1799         Reported by Peter Miller <millerp@canb.auug.org.au>.
1800
1801 2008-01-08  Eric Blake  <ebb9@byu.net>
1802
1803         Rewrite memmem to guarantee linear complexity without malloc.
1804         * lib/memmem.c (memmem): Use Two-Way rather than
1805         Knuth-Morris-Pratt, to allow O(1) space usage.
1806         (critical_factorization, two_way_short_needle)
1807         (two_way_long_needle): New functions.
1808         (knuth_morris_pratt): Delete.
1809         * modules/memmem (Depends-on): No longer need malloca or stdbool.
1810         Add stdint.
1811         * tests/test-memmem.c (main): Add tests for periodic needle and
1812         sublinear performance.
1813         * doc/functions/memmem.texi (memmem): Document other deficiencies
1814         in cygwin and older glibc.
1815
1816 2008-01-08  Bruno Haible  <bruno@clisp.org>
1817
1818         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
1819         augmentation.
1820
1821 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
1822
1823         Add a configure time option: --disable-acl.
1824         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
1825         AC_ARG_ENABLE(acl).
1826
1827 2008-01-06  Simon Josefsson  <simon@josefsson.org>
1828
1829         * tests/test-localename.c: Don't include obsolete "setenv.h".
1830
1831         * modules/localename-tests (Depends-on): Need unsetenv.
1832
1833 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1834
1835         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
1836
1837 2008-01-06  Colin Watson  <cjwatson@debian.org>
1838
1839         * users.txt: Add man-db.
1840
1841 2008-01-07  Bruno Haible  <bruno@clisp.org>
1842
1843         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
1844         previous section name.
1845
1846 2008-01-07  Bruno Haible  <bruno@clisp.org>
1847
1848         * lib/progname.c (set_program_name): Don't strip off a leading
1849         "lt-" prefix outside a .libs directory.
1850         Suggested by Paul Eggert.
1851
1852 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
1853             Bruno Haible  <bruno@clisp.org>
1854
1855         Improve memory cleanup in 'relocatable' module.
1856         * lib/relocatable.h (compute_curr_prefix): Change return type to
1857         'char *'.
1858         * lib/relocatable.c (compute_curr_prefix): Change return type to
1859         'char *'. Free curr_installdir after use.
1860         (relocate): Free curr_prefix_better after use.
1861         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
1862
1863 2008-01-01  Bruno Haible  <bruno@clisp.org>
1864
1865         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
1866         failure on older glibc systems.
1867         Reported by Peter Fales <psfales@alcatel-lucent.com>.
1868
1869 2008-01-05  Eric Blake  <ebb9@byu.net>
1870
1871         Avoid quadratic system memmem.
1872         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
1873         Reported by Ralf Wildenhues.
1874
1875         Fix memmem test for mingw.
1876         * modules/memmem-tests (configure.ac): Check for alarm.
1877         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
1878         it.
1879         * doc/functions/memmem.texi: New file.
1880         * doc/gnulib.texi (Function Substitutes): Add memmem.
1881         Reported by Bruno Haible.
1882
1883 2008-01-04  Bruno Haible  <bruno@clisp.org>
1884
1885         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
1886         Require gl_HEADER_STRINGS_H_DEFAULTS, not
1887         gl_HEADER_STRING_H_DEFAULTS.
1888
1889 2008-01-04  Eric Blake  <ebb9@byu.net>
1890
1891         Shorten duration of memmem test.
1892         * tests/test-memmem.c (main): Use alarm to declare failure if test
1893         is taking too long.
1894         Reported by Ralf Wildenhues.
1895
1896 2007-12-21  Simon Josefsson  <simon@josefsson.org>
1897
1898         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
1899         string, needed by strerror.
1900
1901 2008-01-03  Colin Watson  <cjwatson@debian.org>
1902             Bruno Haible  <bruno@clisp.org>
1903
1904         * doc/gnulib-tool.texi (Localization): New section.
1905
1906 2008-01-02  Bruno Haible  <bruno@clisp.org>
1907
1908         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
1909         variables to 'unsigned char *' type.
1910         Reported by Paul Eggert.
1911
1912 2008-01-02  Jim Meyering  <jim@meyering.net>
1913
1914         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
1915
1916 2007-12-31  Jim Meyering  <jim@meyering.net>
1917
1918         Avoid use of private FTS type name.
1919         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
1920
1921 2007-12-30  Karl Berry  <karl@gnu.org>
1922
1923         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
1924         work around defect in Texinfo and/or the standalone Info browser.
1925
1926 2007-12-30  Bruno Haible  <bruno@clisp.org>
1927
1928         Unify 5 copies of the KMP code.
1929         * lib/str-kmp.h: New file.
1930         * lib/c-strcasestr.c: Include str-kmp.h.
1931         (knuth_morris_pratt): Remove function.
1932         (c_strcasestr): Update.
1933         * lib/c-strstr.c: Include str-kmp.h.
1934         (knuth_morris_pratt): Remove function.
1935         (c_strcasestr): Update.
1936         * lib/mbscasestr.c: Include str-kmp.h.
1937         (knuth_morris_pratt_unibyte): Remove function.
1938         * lib/mbsstr.c: Include str-kmp.h.
1939         (knuth_morris_pratt_unibyte): Remove function.
1940         * lib/strcasestr.c: Include str-kmp.h.
1941         (knuth_morris_pratt): Remove function.
1942         (strcasestr): Update.
1943         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
1944         * modules/c-strstr (Files): Likewise.
1945         * modules/mbscasestr (Files): Likewise.
1946         * modules/mbsstr (Files): Likewise.
1947         * modules/strcasestr (Files): Likewise.
1948         Suggested by Paul Eggert.
1949
1950 2007-12-30  Bruno Haible  <bruno@clisp.org>
1951
1952         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
1953         defined.
1954
1955 2007-12-30  Bruno Haible  <bruno@clisp.org>
1956
1957         * lib/xmalloca.h: Include xalloc.h.
1958         (xnmalloca): New macro.
1959
1960 2007-12-30  Bruno Haible  <bruno@clisp.org>
1961
1962         * lib/malloca.h (nmalloca): New macro.
1963         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
1964         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
1965         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
1966         knuth_morris_pratt_multibyte): Likewise.
1967         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
1968         knuth_morris_pratt_multibyte): Likewise.
1969         * lib/memmem.c (knuth_morris_pratt): Likewise.
1970         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
1971
1972 2007-12-25  Bruno Haible  <bruno@clisp.org>
1973
1974         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
1975         * lib/glob.c: Don't include openat.h.
1976         (link_exists2_p): Add back the code that deals with the
1977         !GLOB_ALTDIRFUNC case.
1978         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
1979         let it do the filename concatenation.
1980         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
1981         * modules/glob (Depends-on): Remove openat.
1982
1983 2007-12-31  Bruno Haible  <bruno@clisp.org>
1984
1985         * modules/dirfd (License): Change to LGPLv2+.
1986         Approved by Jim Meyering.
1987
1988 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1989
1990         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
1991         when multiplying M by sizeof (size_t).
1992
1993 2007-12-10  Martin Lambers  <marlam@marlam.de>
1994
1995         Override getpagesize on mingw.
1996         * lib/getpagesize.c: New file.
1997         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
1998         * modules/getpagesize (Files): Add lib/getpagesize.c.
1999         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
2000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2001         REPLACE_GETPAGESIZE.
2002         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
2003
2004 2007-12-25  Bruno Haible  <bruno@clisp.org>
2005
2006         * modules/localcharset (Notice): New field.
2007         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
2008         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2009
2010 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2011             Bruno Haible  <bruno@clisp.org>
2012
2013         Avoid using the syntax symbol() in formatted documentation.
2014         * MODULES.html.sh (func_module): When replacing symbol() with a
2015         hyperlink, remove the parentheses. Show an error if some remain.
2016         Recognize and render the '...' syntax.
2017         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
2018         Rework. Add paragraph about GCC's inlining.
2019         * doc/alloca.texi: Likewise.
2020         * doc/error.texi: Remove parentheses from symbol reference.
2021         * doc/gnulib-intro.texi: Likewise.
2022         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
2023         * modules/fnmatch (Description): Reword to say "the ... function".
2024         * modules/full-read (Description): Likewise.
2025         * modules/full-write (Description): Likewise.
2026         * modules/safe-read (Description): Likewise.
2027         * modules/safe-write (Description): Likewise.
2028         * modules/strchrnul (Description): Likewise.
2029         * modules/trim (Description): Likewise.
2030         * modules/error (Description): Remove parentheses from symbol
2031         references.
2032         * modules/verror (Description): Likewise.
2033         Reported by Karl Berry.
2034
2035 2007-12-25  Bruno Haible  <bruno@clisp.org>
2036
2037         Fixup after 2007-10-16 commit.
2038         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
2039
2040 2007-12-24  Bruno Haible  <bruno@clisp.org>
2041
2042         Make --enable-relocatable work with DESTDIR.
2043         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
2044         to compute installdir from destprog.
2045         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
2046         also set the RELOC_DESTDIR variable.
2047         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2048
2049 2007-12-24  Bruno Haible  <bruno@clisp.org>
2050
2051         Fix link error due to xalloc_die().
2052         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
2053         of xreadlink.
2054         * lib/relocwrapper.c: Update comments.
2055         * build-aux/install-reloc: Remove xreadlink.c from file list.
2056         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
2057         xreadlink.c.
2058         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2059
2060 2007-12-24  Bruno Haible  <bruno@clisp.org>
2061
2062         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
2063         * lib/setenv.h: Remove file.
2064         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
2065         lib/setenv.h.
2066         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
2067         (Depends-on): Add stdlib.
2068         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
2069         gl_FUNC_UNSETENV.
2070         (Include): Replace setenv.h with <stdlib.h>.
2071         * modules/unsetenv: New file.
2072         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
2073         * lib/unsetenv.c: Include <stdlib.h> first.
2074         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
2075         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
2076         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
2077         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
2078         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
2079         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
2081         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2082         * doc/functions/unsetenv.texi: Update.
2083         * modules/xsetenv (Depends-on): Add unsetenv.
2084         * modules/getdate (Depends-on): Likewise.
2085         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
2086         * lib/xsetenv.c: Don't include setenv.h.
2087         * lib/getdate.y: Likewise.
2088         * lib/relocwrapper.c: Likewise.
2089         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
2090         (Depends-on): Add stdlib.
2091         * NEWS: Mention the changes.
2092         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2093
2094 2007-12-23  Bruno Haible  <bruno@clisp.org>
2095
2096         * lib/memmem.c (memmem): Use lowercase variable names. Tab
2097         indentation.
2098
2099 2007-12-23  Bruno Haible  <bruno@clisp.org>
2100
2101         * lib/c-strcasestr.c: Add more comments.
2102         * lib/c-strstr.c: Likewise.
2103         * lib/mbscasestr.c: Likewise.
2104         * lib/mbsstr.c: Likewise.
2105         * lib/strcasestr.c: Likewise.
2106         * lib/memmem.c: Likewise.
2107
2108 2007-12-23  Bruno Haible  <bruno@clisp.org>
2109
2110         * tests/test-memmem.c: Include <string.h> first.
2111
2112 2007-12-22  Bruno Haible  <bruno@clisp.org>
2113
2114         * gnulib-tool (func_create_testdir): Change $auxdir while generating
2115         the contents of $testsbase.
2116         Reported by Ralf Wildenhues.
2117
2118 2007-12-22  Bruno Haible  <bruno@clisp.org>
2119
2120         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
2121         two variables local_ldadd_before, local_ldadd_last.
2122
2123 2007-12-20  Eric Blake  <ebb9@byu.net>
2124
2125         Work around circular library issue when cross-compiling.
2126         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
2127         that progname.o does not need to pull in rpl_memcmp.
2128
2129 2007-12-19  Eric Blake  <ebb9@byu.net>
2130
2131         Fix memmem to avoid O(n^2) worst-case complexity.
2132         * lib/memmem.c (knuth_morris_pratt): New function.
2133         (memmem): Use it if first few naive iterations fail.
2134         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
2135         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
2136         * modules/memchr (License): Likewise.
2137         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
2138         malloca.
2139         * tests/test-memmem.c: Rewrite, borrowing ideas from
2140         test-mbsstr1.c; the old version wouldn't even compile!
2141         * modules/memmem-tests: New file.
2142         * lib/string.in.h (rpl_memmem): Add declaration.
2143         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
2144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
2145         REPLACE_MEMMEM.
2146
2147 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2148
2149         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
2150         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
2151         before any system include files, and undef after them all.  This
2152         should fix a problem on VMS reported by John E. Malmberg in
2153         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
2154
2155 2007-12-17  Eric Blake  <ebb9@byu.net>
2156
2157         Revert addition of verify, for BSD/OS.
2158         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
2159         can't handle large files, for the sake of obsolete platforms.
2160         * modules/fseeko (Depends-on): Remove verify.
2161         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
2162         * doc/functions/ftello.texi (ftello): Likewise.
2163         * doc/functions/fgetpos.texi (fgetpos): Likewise.
2164         Reported by Larry Jones.
2165
2166 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
2167
2168         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
2169         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
2170
2171 2007-12-17  Jim Meyering  <meyering@redhat.com>
2172
2173         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
2174         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
2175         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
2176         * modules/getcwd (Depends-on): Add openat.
2177         Reported by Petr Salinger.
2178
2179 2007-12-17  Bruno Haible  <bruno@clisp.org>
2180
2181         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
2182         avoid a segmentation fault of the configure test on x86_64 systems.
2183
2184 2007-12-15  Jim Meyering  <meyering@redhat.com>
2185
2186         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
2187
2188 2007-12-13  Eric Blake  <ebb9@byu.net>
2189
2190         Another fseek test.
2191         * tests/test-fseek.c (main): Also test ungetc handling.
2192         * tests/test-fseeko.c (main): Likewise.
2193         * modules/fseeko (Depends-on): Add verify.
2194         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
2195         large.
2196         Reported by Larry Jones.
2197
2198         Fix fseeko on mingw.
2199         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
2200         seek.
2201
2202         Beef up fseek tests.
2203         * tests/test-fseek.c (main): Also test eof handling.
2204         * tests/test-fseeko.c (main): Likewise.
2205         Reported by Larry Jones.
2206
2207 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
2208
2209         Fix fseeko on BSD-based platforms.
2210         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
2211         successful seek.
2212
2213 2007-12-12  Eric Blake  <ebb9@byu.net>
2214
2215         Allow circular dependency of separate libtests.a
2216         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
2217         when use_libtests.
2218
2219 2007-12-11  Eric Blake  <ebb9@byu.net>
2220
2221         Fix bug with -0.0L in previous patch.
2222         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
2223         * tests/test-isnan.c (main): Also test on zeroes.
2224         * tests/test-isnanf.c (main): Likewise.
2225         * tests/test-isnanl.h (main): Likewise.
2226
2227         Detect pseudo-denormals on x86 even when cross-compiling.
2228         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
2229         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
2230         invalid bit patterns that happen to satisfy ==.
2231
2232         Avoid link failures with separate libtests.a.
2233         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
2234         last, to satisfy circular dependencies.
2235
2236 2007-12-11  Eric Blake  <ebb9@byu.net>
2237         and Bruno Haible  <bruno@clisp.org>
2238
2239         Fix OpenBSD 4.0 <float.h> handling of long double.
2240         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
2241         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
2242         * doc/headers/float.texi (float.h): Document OpenBSD bug.
2243
2244 2007-12-11  Jim Meyering  <meyering@redhat.com>
2245
2246         * users.txt: Add libvirt.
2247
2248         Support versions of autoconf prior to 2.59c.
2249         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
2250         if it is not already defined.
2251
2252 2007-12-09  Bruno Haible  <bruno@clisp.org>
2253
2254         Let 'gnulib-tool --import' collect sources needed for the tests in
2255         tests/ rather than in lib/.
2256         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
2257         argument. If true, add rules to generate libtests.a, and put libtests.a
2258         into $(LDADD). Consider source files in subdirectories and set
2259         uses_subdirs.
2260         (func_emit_initmacro_start, func_emit_initmacro_end,
2261         func_emit_initmacro_done): Pass all arguments explicitly.
2262         (func_import): Determine two module lists main_modules,
2263         testsrelated_modules. Determine use_libtests. Determine two variables
2264         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
2265         instead of just sed_transform_lib_file. Determine two variables
2266         main_files and testsrelated_files. Compute 'files' as the union of
2267         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
2268         func_add_or_update. In the generated gnulib-comp.m4, collect the
2269         object files for tests/ in different variables than those for lib/.
2270         Substitute LIBTESTS_LIBDEPS.
2271         (func_create_testdir): Combine the uses_subdirs results from
2272         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
2273
2274 2007-12-09  Bruno Haible  <bruno@clisp.org>
2275
2276         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
2277         the build-aux directory.
2278
2279 2007-12-09  Bruno Haible  <bruno@clisp.org>
2280
2281         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
2282         introduced on 2006-09-09.
2283
2284 2007-12-07  Jim Meyering  <meyering@redhat.com>
2285
2286         Let these macros work also with autoconf-2.59.
2287         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
2288         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
2289         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2290
2291 2007-12-06  Jim Meyering  <meyering@redhat.com>
2292
2293         Avoid a configure-time syntax error in gl_FUNC_ACL.
2294         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
2295         function in each branch, before testing the cache variable.
2296
2297 2007-12-04  Eric Blake  <ebb9@byu.net>
2298
2299         Make scripts executable.
2300         * build-aux/config.guess: Add execute permissions.
2301         * build-aux/config.sub: Likewise.
2302         * build-aux/gendocs.sh: Likewise.
2303
2304         Fix frexp on mingw.
2305         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
2306         cross-compiling.
2307         * doc/functions/frexp.texi (frexp): Document the bug.
2308
2309         Make cygwin fseeko check more reliable.
2310         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
2311         version numbers, rather than unrelated feature check.
2312         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
2313         * doc/functions/ftello.texi (ftello): Likewise.
2314         Reported by Bruno Haible.
2315
2316         * m4/strerror.m4: Bump version number.
2317
2318 2007-12-03  Bruno Haible  <bruno@clisp.org>
2319
2320         * doc/functions/mprotect.texi: Mention the mingw problem.
2321
2322 2007-12-03  Eric Blake  <ebb9@byu.net>
2323
2324         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
2325         REPLACE_STRERROR is initialized before this macro.
2326
2327 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
2328
2329         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
2330         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
2331         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
2332         put -lsec in even for programs other than 'ls'.  This fixes a problem
2333         for gettext reported by Bruno Haible in
2334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
2335         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
2336         Add support for Solaris 10.  This isn't efficient, but should get the
2337         job done for now.
2338
2339 2007-12-03  James Youngman  <jay@gnu.org>
2340
2341         * doc/regexprops-generic.texi: change "an close-group" to "a
2342         close-group" and "illegal" to "not allowed".
2343
2344 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2345
2346         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
2347         pr_byname.h. Needed for the rare case when the maintainer has done
2348         "make maintainer-clean" in the source directory and then attempts a
2349         build outside the source directory.
2350         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
2351         scripts_byname.h.
2352
2353 2007-12-02  Martin Lambers <marlam@marlam.de>
2354             Bruno Haible  <bruno@clisp.org>
2355
2356         * lib/getpagesize.h: Remove file.
2357         * lib/unistd.in.h: Include declaration of getpagesize here.
2358         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
2359         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
2360         HAVE_SYS_PARAM_H.
2361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
2362         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
2363         * modules/getpagesize (Files): Remove lib/getpagesize.h.
2364         (Depends-on): Add unistd.
2365         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2366         (Include): Use <unistd.h> instead of getpagesize.h.
2367         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
2368         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
2369         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
2370         gl_GETPAGESIZE invocation, already handled by module dependency.
2371         * lib/pagealign_alloc.c: Don't include getpagesize.h.
2372
2373 2007-12-02  Bruno Haible  <bruno@clisp.org>
2374
2375         * modules/strings-tests: New file.
2376         * tests/test-strings.c: New file.
2377
2378         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
2379         * lib/strings.in.h: New file.
2380         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
2381         * m4/strings_h.m4: New file.
2382         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
2383         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
2384         * modules/strings: New file.
2385         * modules/string (Makefile.am): Update.
2386         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
2387         Reported by Karl Berry.
2388
2389 2007-12-01  Eric Blake  <ebb9@byu.net>
2390
2391         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
2392         accomodate fix in cygwin 1.5.25.
2393
2394 2007-12-01  Jim Meyering  <meyering@redhat.com>
2395
2396         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
2397         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2398         that would inhibit utf8-optimization of a regexp containing line-
2399         or buffer-anchors, e.g., `^', `$'.
2400
2401 2007-11-30  Bruno Haible  <bruno@clisp.org>
2402
2403         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
2404         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
2405         glthread_recursive_lock_init.
2406         * lib/lock.c (glthread_recursive_lock_init)
2407         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
2408         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2409
2410 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
2411
2412         New function qset_acl, like set_acl but with syscall semantics.
2413         * lib/acl.h (qset_acl): New decl.
2414         * lib/acl.c (qset_acl): New function.
2415         (set_acl): Use new function.  Use more-consistent diagnostics.
2416
2417 2007-11-28  Jim Meyering  <meyering@redhat.com>
2418
2419         * modules/physmem (License): Change from GPL to LGPLv2+.
2420
2421 2007-11-26  Bruno Haible  <bruno@clisp.org>
2422
2423         * lib/vasnprintf.c (decode_long_double): Don't abort if the
2424         'long double' type has excess precision.
2425         Reported by Jim Meyering in
2426         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
2427
2428 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2429
2430         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
2431         Sync from <http://gnu.org/licenses>.
2432         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
2433         with license text from same location.
2434         * doc/maintain.texi, doc/standards.texi:  Sync from
2435         <http://savannah.gnu.org/projects/gnustandards>.
2436
2437 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
2438         and Jim Meyering  <meyering@redhat.com>
2439
2440         Adjust getdate' grammar to accept a slightly more regular language.
2441         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
2442         Before, the former was rejected.
2443         * lib/getdate.y (digits_to_date_time): New function, factored
2444         out of ...
2445         (number): ...here.  Just call digits_to_date_time.
2446         (hybrid): New non-terminal to handle an <unsigned number,
2447         signed relative offset> sequence consistently.
2448
2449 2007-11-18  Jim Meyering  <meyering@redhat.com>
2450
2451         Pull my changes from coreutils:
2452         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
2453         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
2454         use of $gnulib_tool_option_extras, so that it's separated from the
2455         preceding argument.
2456
2457         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
2458         * build-aux/bootstrap (cp_mark_as_generated): Create any required
2459         parent destination directories before copying a file into place.
2460
2461 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
2462
2463         bootstrap: work also with 4-argument variant of AC_INIT
2464         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
2465
2466 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
2467
2468         Port test-getaddrinfo to Solaris.
2469         Problem reported by Bruno Haible in
2470         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
2471         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
2472         explanation of setting 'hints'.
2473         Don't reject an implementation merely because it returns EAI_SERVICE.
2474         (EAI_SERVICE): Define to 0 if not defined.
2475
2476 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2477
2478         The license of gnu-make and posix-shell is now "GPLed build tool".
2479         * modules/gnu-make (License): Likewise.
2480         * modules/posix-shell (License): Likewise.
2481
2482         New module posix-shell, for determining a POSIX shell
2483         or perhaps something that is close enough to a POSIX shell.
2484         * m4/posix-shell.m4: New file.
2485         * modules/posix-shell: New file.
2486
2487         * MODULES.html.sh: Mention new module.
2488
2489         New module gnu-make, for determining whether we're using GNU Make.
2490         * m4/gnu-make.m4: New file.
2491         * modules/gnu-make: New file.
2492         * MODULES.html.sh: Mention new module.
2493
2494 2007-11-14  Jim Meyering  <meyering@redhat.com>
2495
2496         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
2497         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
2498         use this macro to create a function _definition_.
2499         Remove useless "#undef ARGMATCH_DIE".
2500
2501 2007-11-14  Bruno Haible  <bruno@clisp.org>
2502
2503         * lib/config.charset: Update for OpenBSD 4.1.
2504         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
2505
2506 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
2507
2508         Document 64-bit #if problems in stdint.texi.
2509         * doc/headers/stdint.texi (stdint.h): Mention problems with
2510         64-bit-#if, and how to work around them.
2511
2512         Don't insist on 'long long int' support in the preprocessor.  It
2513         breaks too many things.  For example, PRIdMAX still uses a 'long
2514         long int' format with the latest Sun compiler, even though
2515         HAVE_LONG_LONG_INT isn't defined due to that compiler's
2516         preprocessor problem.  This causes the latest coreutils to dump
2517         core on Solaris 10 sparc with the Sun C compiler.
2518         Instead, fix the 2007-10-16 problem in a different way, by evaluating
2519         the troublesome expressions at configure-time, not at #if-time.
2520         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
2521         preprocessor.
2522         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
2523         compile-time C checks, done at 'configure'-time.
2524         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
2525         * modules/inttypes (Makefile): Substitute the new symbols that
2526         gl_INTTYPES_H now generates.
2527         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
2528
2529 2007-11-12  Bruno Haible  <bruno@clisp.org>
2530
2531         Tests for Unicode character classification functions.
2532
2533         * modules/unictype/bidicategory-byname-tests: New file.
2534         * modules/unictype/bidicategory-name-tests: New file.
2535         * modules/unictype/bidicategory-of-tests: New file.
2536         * modules/unictype/bidicategory-test-tests: New file.
2537         * modules/unictype/block-list-tests: New file.
2538         * modules/unictype/block-of-tests: New file.
2539         * modules/unictype/block-test-tests: New file.
2540         * modules/unictype/category-C-tests: New file.
2541         * modules/unictype/category-Cc-tests: New file.
2542         * modules/unictype/category-Cf-tests: New file.
2543         * modules/unictype/category-Cn-tests: New file.
2544         * modules/unictype/category-Co-tests: New file.
2545         * modules/unictype/category-Cs-tests: New file.
2546         * modules/unictype/category-L-tests: New file.
2547         * modules/unictype/category-Ll-tests: New file.
2548         * modules/unictype/category-Lm-tests: New file.
2549         * modules/unictype/category-Lo-tests: New file.
2550         * modules/unictype/category-Lt-tests: New file.
2551         * modules/unictype/category-Lu-tests: New file.
2552         * modules/unictype/category-M-tests: New file.
2553         * modules/unictype/category-Mc-tests: New file.
2554         * modules/unictype/category-Me-tests: New file.
2555         * modules/unictype/category-Mn-tests: New file.
2556         * modules/unictype/category-N-tests: New file.
2557         * modules/unictype/category-Nd-tests: New file.
2558         * modules/unictype/category-Nl-tests: New file.
2559         * modules/unictype/category-No-tests: New file.
2560         * modules/unictype/category-P-tests: New file.
2561         * modules/unictype/category-Pc-tests: New file.
2562         * modules/unictype/category-Pd-tests: New file.
2563         * modules/unictype/category-Pe-tests: New file.
2564         * modules/unictype/category-Pf-tests: New file.
2565         * modules/unictype/category-Pi-tests: New file.
2566         * modules/unictype/category-Po-tests: New file.
2567         * modules/unictype/category-Ps-tests: New file.
2568         * modules/unictype/category-S-tests: New file.
2569         * modules/unictype/category-Sc-tests: New file.
2570         * modules/unictype/category-Sk-tests: New file.
2571         * modules/unictype/category-Sm-tests: New file.
2572         * modules/unictype/category-So-tests: New file.
2573         * modules/unictype/category-Z-tests: New file.
2574         * modules/unictype/category-Zl-tests: New file.
2575         * modules/unictype/category-Zp-tests: New file.
2576         * modules/unictype/category-Zs-tests: New file.
2577         * modules/unictype/category-and-not-tests: New file.
2578         * modules/unictype/category-and-tests: New file.
2579         * modules/unictype/category-byname-tests: New file.
2580         * modules/unictype/category-name-tests: New file.
2581         * modules/unictype/category-none-tests: New file.
2582         * modules/unictype/category-of-tests: New file.
2583         * modules/unictype/category-or-tests: New file.
2584         * modules/unictype/category-test-withtable-tests: New file.
2585         * modules/unictype/combining-class-tests: New file.
2586         * modules/unictype/ctype-alnum-tests: New file.
2587         * modules/unictype/ctype-alpha-tests: New file.
2588         * modules/unictype/ctype-blank-tests: New file.
2589         * modules/unictype/ctype-cntrl-tests: New file.
2590         * modules/unictype/ctype-digit-tests: New file.
2591         * modules/unictype/ctype-graph-tests: New file.
2592         * modules/unictype/ctype-lower-tests: New file.
2593         * modules/unictype/ctype-print-tests: New file.
2594         * modules/unictype/ctype-punct-tests: New file.
2595         * modules/unictype/ctype-space-tests: New file.
2596         * modules/unictype/ctype-upper-tests: New file.
2597         * modules/unictype/ctype-xdigit-tests: New file.
2598         * modules/unictype/decimal-digit-tests: New file.
2599         * modules/unictype/digit-tests: New file.
2600         * modules/unictype/mirror-tests: New file.
2601         * modules/unictype/numeric-tests: New file.
2602         * modules/unictype/property-alphabetic-tests: New file.
2603         * modules/unictype/property-ascii-hex-digit-tests: New file.
2604         * modules/unictype/property-bidi-arabic-digit-tests: New file.
2605         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
2606         * modules/unictype/property-bidi-block-separator-tests: New file.
2607         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
2608         * modules/unictype/property-bidi-common-separator-tests: New file.
2609         * modules/unictype/property-bidi-control-tests: New file.
2610         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
2611         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
2612         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
2613         * modules/unictype/property-bidi-european-digit-tests: New file.
2614         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
2615         * modules/unictype/property-bidi-left-to-right-tests: New file.
2616         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
2617         * modules/unictype/property-bidi-other-neutral-tests: New file.
2618         * modules/unictype/property-bidi-pdf-tests: New file.
2619         * modules/unictype/property-bidi-segment-separator-tests: New file.
2620         * modules/unictype/property-bidi-whitespace-tests: New file.
2621         * modules/unictype/property-byname-tests: New file.
2622         * modules/unictype/property-combining-tests: New file.
2623         * modules/unictype/property-composite-tests: New file.
2624         * modules/unictype/property-currency-symbol-tests: New file.
2625         * modules/unictype/property-dash-tests: New file.
2626         * modules/unictype/property-decimal-digit-tests: New file.
2627         * modules/unictype/property-default-ignorable-code-point-tests: New file.
2628         * modules/unictype/property-deprecated-tests: New file.
2629         * modules/unictype/property-diacritic-tests: New file.
2630         * modules/unictype/property-extender-tests: New file.
2631         * modules/unictype/property-format-control-tests: New file.
2632         * modules/unictype/property-grapheme-base-tests: New file.
2633         * modules/unictype/property-grapheme-extend-tests: New file.
2634         * modules/unictype/property-grapheme-link-tests: New file.
2635         * modules/unictype/property-hex-digit-tests: New file.
2636         * modules/unictype/property-hyphen-tests: New file.
2637         * modules/unictype/property-id-continue-tests: New file.
2638         * modules/unictype/property-id-start-tests: New file.
2639         * modules/unictype/property-ideographic-tests: New file.
2640         * modules/unictype/property-ids-binary-operator-tests: New file.
2641         * modules/unictype/property-ids-trinary-operator-tests: New file.
2642         * modules/unictype/property-ignorable-control-tests: New file.
2643         * modules/unictype/property-iso-control-tests: New file.
2644         * modules/unictype/property-join-control-tests: New file.
2645         * modules/unictype/property-left-of-pair-tests: New file.
2646         * modules/unictype/property-line-separator-tests: New file.
2647         * modules/unictype/property-logical-order-exception-tests: New file.
2648         * modules/unictype/property-lowercase-tests: New file.
2649         * modules/unictype/property-math-tests: New file.
2650         * modules/unictype/property-non-break-tests: New file.
2651         * modules/unictype/property-not-a-character-tests: New file.
2652         * modules/unictype/property-numeric-tests: New file.
2653         * modules/unictype/property-other-alphabetic-tests: New file.
2654         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
2655         * modules/unictype/property-other-grapheme-extend-tests: New file.
2656         * modules/unictype/property-other-id-continue-tests: New file.
2657         * modules/unictype/property-other-id-start-tests: New file.
2658         * modules/unictype/property-other-lowercase-tests: New file.
2659         * modules/unictype/property-other-math-tests: New file.
2660         * modules/unictype/property-other-uppercase-tests: New file.
2661         * modules/unictype/property-paired-punctuation-tests: New file.
2662         * modules/unictype/property-paragraph-separator-tests: New file.
2663         * modules/unictype/property-pattern-syntax-tests: New file.
2664         * modules/unictype/property-pattern-white-space-tests: New file.
2665         * modules/unictype/property-private-use-tests: New file.
2666         * modules/unictype/property-punctuation-tests: New file.
2667         * modules/unictype/property-quotation-mark-tests: New file.
2668         * modules/unictype/property-radical-tests: New file.
2669         * modules/unictype/property-sentence-terminal-tests: New file.
2670         * modules/unictype/property-soft-dotted-tests: New file.
2671         * modules/unictype/property-space-tests: New file.
2672         * modules/unictype/property-terminal-punctuation-tests: New file.
2673         * modules/unictype/property-test-tests: New file.
2674         * modules/unictype/property-titlecase-tests: New file.
2675         * modules/unictype/property-unassigned-code-value-tests: New file.
2676         * modules/unictype/property-unified-ideograph-tests: New file.
2677         * modules/unictype/property-uppercase-tests: New file.
2678         * modules/unictype/property-variation-selector-tests: New file.
2679         * modules/unictype/property-white-space-tests: New file.
2680         * modules/unictype/property-xid-continue-tests: New file.
2681         * modules/unictype/property-xid-start-tests: New file.
2682         * modules/unictype/property-zero-width-tests: New file.
2683         * modules/unictype/scripts-tests: New file.
2684         * modules/unictype/syntax-c-ident-tests: New file.
2685         * modules/unictype/syntax-c-whitespace-tests: New file.
2686         * modules/unictype/syntax-java-ident-tests: New file.
2687         * modules/unictype/syntax-java-whitespace-tests: New file.
2688         * tests/unictype/test-bidi_byname.c: New file.
2689         * tests/unictype/test-bidi_name.c: New file.
2690         * tests/unictype/test-bidi_of.c: New file.
2691         * tests/unictype/test-bidi_test.c: New file.
2692         * tests/unictype/test-block_list.c: New file.
2693         * tests/unictype/test-block_of.c: New file.
2694         * tests/unictype/test-block_test.c: New file.
2695         * tests/unictype/test-categ_and.c: New file.
2696         * tests/unictype/test-categ_and_not.c: New file.
2697         * tests/unictype/test-categ_byname.c: New file.
2698         * tests/unictype/test-categ_name.c: New file.
2699         * tests/unictype/test-categ_none.c: New file.
2700         * tests/unictype/test-categ_of.c: New file.
2701         * tests/unictype/test-categ_or.c: New file.
2702         * tests/unictype/test-categ_test_withtable.c: New file.
2703         * tests/unictype/test-combining.c: New file.
2704         * tests/unictype/test-decdigit.c: New file.
2705         * tests/unictype/test-digit.c: New file.
2706         * tests/unictype/test-mirror.c: New file.
2707         * tests/unictype/test-numeric.c: New file.
2708         * tests/unictype/test-pr_byname.c: New file.
2709         * tests/unictype/test-pr_test.c: New file.
2710         * tests/unictype/test-predicate-part1.h: New file.
2711         * tests/unictype/test-predicate-part2.h: New file.
2712         * tests/unictype/test-scripts.c: New file.
2713         * tests/unictype/test-sy_c_ident.c: New file.
2714         * tests/unictype/test-sy_java_ident.c: New file.
2715
2716         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
2717         for Unicode 5.0.0.
2718         * tests/unictype/test-categ_Cc.c: Likewise.
2719         * tests/unictype/test-categ_Cf.c: Likewise.
2720         * tests/unictype/test-categ_Cn.c: Likewise.
2721         * tests/unictype/test-categ_Co.c: Likewise.
2722         * tests/unictype/test-categ_Cs.c: Likewise.
2723         * tests/unictype/test-categ_L.c: Likewise.
2724         * tests/unictype/test-categ_Ll.c: Likewise.
2725         * tests/unictype/test-categ_Lm.c: Likewise.
2726         * tests/unictype/test-categ_Lo.c: Likewise.
2727         * tests/unictype/test-categ_Lt.c: Likewise.
2728         * tests/unictype/test-categ_Lu.c: Likewise.
2729         * tests/unictype/test-categ_M.c: Likewise.
2730         * tests/unictype/test-categ_Mc.c: Likewise.
2731         * tests/unictype/test-categ_Me.c: Likewise.
2732         * tests/unictype/test-categ_Mn.c: Likewise.
2733         * tests/unictype/test-categ_N.c: Likewise.
2734         * tests/unictype/test-categ_Nd.c: Likewise.
2735         * tests/unictype/test-categ_Nl.c: Likewise.
2736         * tests/unictype/test-categ_No.c: Likewise.
2737         * tests/unictype/test-categ_P.c: Likewise.
2738         * tests/unictype/test-categ_Pc.c: Likewise.
2739         * tests/unictype/test-categ_Pd.c: Likewise.
2740         * tests/unictype/test-categ_Pe.c: Likewise.
2741         * tests/unictype/test-categ_Pf.c: Likewise.
2742         * tests/unictype/test-categ_Pi.c: Likewise.
2743         * tests/unictype/test-categ_Po.c: Likewise.
2744         * tests/unictype/test-categ_Ps.c: Likewise.
2745         * tests/unictype/test-categ_S.c: Likewise.
2746         * tests/unictype/test-categ_Sc.c: Likewise.
2747         * tests/unictype/test-categ_Sk.c: Likewise.
2748         * tests/unictype/test-categ_Sm.c: Likewise.
2749         * tests/unictype/test-categ_So.c: Likewise.
2750         * tests/unictype/test-categ_Z.c: Likewise.
2751         * tests/unictype/test-categ_Zl.c: Likewise.
2752         * tests/unictype/test-categ_Zp.c: Likewise.
2753         * tests/unictype/test-categ_Zs.c: Likewise.
2754         * tests/unictype/test-ctype_alnum.c: Likewise.
2755         * tests/unictype/test-ctype_alpha.c: Likewise.
2756         * tests/unictype/test-ctype_blank.c: Likewise.
2757         * tests/unictype/test-ctype_cntrl.c: Likewise.
2758         * tests/unictype/test-ctype_digit.c: Likewise.
2759         * tests/unictype/test-ctype_graph.c: Likewise.
2760         * tests/unictype/test-ctype_lower.c: Likewise.
2761         * tests/unictype/test-ctype_print.c: Likewise.
2762         * tests/unictype/test-ctype_punct.c: Likewise.
2763         * tests/unictype/test-ctype_space.c: Likewise.
2764         * tests/unictype/test-ctype_upper.c: Likewise.
2765         * tests/unictype/test-ctype_xdigit.c: Likewise.
2766         * tests/unictype/test-decdigit.h: Likewise.
2767         * tests/unictype/test-digit.h: Likewise.
2768         * tests/unictype/test-numeric.h: Likewise.
2769         * tests/unictype/test-pr_alphabetic.c: Likewise.
2770         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
2771         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
2772         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
2773         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
2774         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
2775         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
2776         * tests/unictype/test-pr_bidi_control.c: Likewise.
2777         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
2778         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
2779         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
2780         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
2781         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
2782         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
2783         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
2784         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
2785         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
2786         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
2787         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
2788         * tests/unictype/test-pr_combining.c: Likewise.
2789         * tests/unictype/test-pr_composite.c: Likewise.
2790         * tests/unictype/test-pr_currency_symbol.c: Likewise.
2791         * tests/unictype/test-pr_dash.c: Likewise.
2792         * tests/unictype/test-pr_decimal_digit.c: Likewise.
2793         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
2794         * tests/unictype/test-pr_deprecated.c: Likewise.
2795         * tests/unictype/test-pr_diacritic.c: Likewise.
2796         * tests/unictype/test-pr_extender.c: Likewise.
2797         * tests/unictype/test-pr_format_control.c: Likewise.
2798         * tests/unictype/test-pr_grapheme_base.c: Likewise.
2799         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
2800         * tests/unictype/test-pr_grapheme_link.c: Likewise.
2801         * tests/unictype/test-pr_hex_digit.c: Likewise.
2802         * tests/unictype/test-pr_hyphen.c: Likewise.
2803         * tests/unictype/test-pr_id_continue.c: Likewise.
2804         * tests/unictype/test-pr_id_start.c: Likewise.
2805         * tests/unictype/test-pr_ideographic.c: Likewise.
2806         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
2807         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
2808         * tests/unictype/test-pr_ignorable_control.c: Likewise.
2809         * tests/unictype/test-pr_iso_control.c: Likewise.
2810         * tests/unictype/test-pr_join_control.c: Likewise.
2811         * tests/unictype/test-pr_left_of_pair.c: Likewise.
2812         * tests/unictype/test-pr_line_separator.c: Likewise.
2813         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
2814         * tests/unictype/test-pr_lowercase.c: Likewise.
2815         * tests/unictype/test-pr_math.c: Likewise.
2816         * tests/unictype/test-pr_non_break.c: Likewise.
2817         * tests/unictype/test-pr_not_a_character.c: Likewise.
2818         * tests/unictype/test-pr_numeric.c: Likewise.
2819         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
2820         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
2821         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
2822         * tests/unictype/test-pr_other_id_continue.c: Likewise.
2823         * tests/unictype/test-pr_other_id_start.c: Likewise.
2824         * tests/unictype/test-pr_other_lowercase.c: Likewise.
2825         * tests/unictype/test-pr_other_math.c: Likewise.
2826         * tests/unictype/test-pr_other_uppercase.c: Likewise.
2827         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
2828         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
2829         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
2830         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
2831         * tests/unictype/test-pr_private_use.c: Likewise.
2832         * tests/unictype/test-pr_punctuation.c: Likewise.
2833         * tests/unictype/test-pr_quotation_mark.c: Likewise.
2834         * tests/unictype/test-pr_radical.c: Likewise.
2835         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
2836         * tests/unictype/test-pr_soft_dotted.c: Likewise.
2837         * tests/unictype/test-pr_space.c: Likewise.
2838         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
2839         * tests/unictype/test-pr_titlecase.c: Likewise.
2840         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
2841         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
2842         * tests/unictype/test-pr_uppercase.c: Likewise.
2843         * tests/unictype/test-pr_variation_selector.c: Likewise.
2844         * tests/unictype/test-pr_white_space.c: Likewise.
2845         * tests/unictype/test-pr_xid_continue.c: Likewise.
2846         * tests/unictype/test-pr_xid_start.c: Likewise.
2847         * tests/unictype/test-pr_zero_width.c: Likewise.
2848         * tests/unictype/test-sy_c_whitespace.c: Likewise.
2849         * tests/unictype/test-sy_java_whitespace.c: Likewise.
2850
2851 2007-11-12  Bruno Haible  <bruno@clisp.org>
2852
2853         Unicode character classification functions.
2854         * lib/unictype.h: New file.
2855         * modules/unictype/base: New file.
2856         * modules/unictype/category-L: New file.
2857         * modules/unictype/category-Lu: New file.
2858         * modules/unictype/category-Ll: New file.
2859         * modules/unictype/category-Lt: New file.
2860         * modules/unictype/category-Lm: New file.
2861         * modules/unictype/category-Lo: New file.
2862         * modules/unictype/category-M: New file.
2863         * modules/unictype/category-Mn: New file.
2864         * modules/unictype/category-Mc: New file.
2865         * modules/unictype/category-Me: New file.
2866         * modules/unictype/category-N: New file.
2867         * modules/unictype/category-Nd: New file.
2868         * modules/unictype/category-Nl: New file.
2869         * modules/unictype/category-No: New file.
2870         * modules/unictype/category-P: New file.
2871         * modules/unictype/category-Pc: New file.
2872         * modules/unictype/category-Pd: New file.
2873         * modules/unictype/category-Ps: New file.
2874         * modules/unictype/category-Pe: New file.
2875         * modules/unictype/category-Pi: New file.
2876         * modules/unictype/category-Pf: New file.
2877         * modules/unictype/category-Po: New file.
2878         * modules/unictype/category-S: New file.
2879         * modules/unictype/category-Sm: New file.
2880         * modules/unictype/category-Sc: New file.
2881         * modules/unictype/category-Sk: New file.
2882         * modules/unictype/category-So: New file.
2883         * modules/unictype/category-Z: New file.
2884         * modules/unictype/category-Zs: New file.
2885         * modules/unictype/category-Zl: New file.
2886         * modules/unictype/category-Zp: New file.
2887         * modules/unictype/category-C: New file.
2888         * modules/unictype/category-Cc: New file.
2889         * modules/unictype/category-Cf: New file.
2890         * modules/unictype/category-Cs: New file.
2891         * modules/unictype/category-Co: New file.
2892         * modules/unictype/category-Cn: New file.
2893         * modules/unictype/category-or: New file.
2894         * modules/unictype/category-of: New file.
2895         * modules/unictype/category-test: New file.
2896         * modules/unictype/category-test-withtable: New file.
2897         * modules/unictype/category-byname: New file.
2898         * modules/unictype/category-none: New file.
2899         * modules/unictype/category-and: New file.
2900         * modules/unictype/category-and-not: New file.
2901         * modules/unictype/category-name: New file.
2902         * modules/unictype/combining-class: New file.
2903         * modules/unictype/category-all: New file.
2904         * modules/unictype/bidicategory-all: New file.
2905         * modules/unictype/bidicategory-byname: New file.
2906         * modules/unictype/bidicategory-name: New file.
2907         * modules/unictype/bidicategory-of: New file.
2908         * modules/unictype/bidicategory-test: New file.
2909         * modules/unictype/decimal-digit: New file.
2910         * modules/unictype/digit: New file.
2911         * modules/unictype/numeric: New file.
2912         * modules/unictype/mirror: New file.
2913         * modules/unictype/property-white-space: New file.
2914         * modules/unictype/property-alphabetic: New file.
2915         * modules/unictype/property-other-alphabetic: New file.
2916         * modules/unictype/property-not-a-character: New file.
2917         * modules/unictype/property-default-ignorable-code-point: New file.
2918         * modules/unictype/property-other-default-ignorable-code-point: New
2919         file.
2920         * modules/unictype/property-deprecated: New file.
2921         * modules/unictype/property-logical-order-exception: New file.
2922         * modules/unictype/property-variation-selector: New file.
2923         * modules/unictype/property-private-use: New file.
2924         * modules/unictype/property-unassigned-code-value: New file.
2925         * modules/unictype/property-uppercase: New file.
2926         * modules/unictype/property-other-uppercase: New file.
2927         * modules/unictype/property-lowercase: New file.
2928         * modules/unictype/property-other-lowercase: New file.
2929         * modules/unictype/property-titlecase: New file.
2930         * modules/unictype/property-soft-dotted: New file.
2931         * modules/unictype/property-id-start: New file.
2932         * modules/unictype/property-other-id-start: New file.
2933         * modules/unictype/property-id-continue: New file.
2934         * modules/unictype/property-other-id-continue: New file.
2935         * modules/unictype/property-xid-start: New file.
2936         * modules/unictype/property-xid-continue: New file.
2937         * modules/unictype/property-pattern-white-space: New file.
2938         * modules/unictype/property-pattern-syntax: New file.
2939         * modules/unictype/property-join-control: New file.
2940         * modules/unictype/property-grapheme-base: New file.
2941         * modules/unictype/property-grapheme-extend: New file.
2942         * modules/unictype/property-other-grapheme-extend: New file.
2943         * modules/unictype/property-grapheme-link: New file.
2944         * modules/unictype/property-bidi-control: New file.
2945         * modules/unictype/property-bidi-left-to-right: New file.
2946         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
2947         * modules/unictype/property-bidi-arabic-right-to-left: New file.
2948         * modules/unictype/property-bidi-european-digit: New file.
2949         * modules/unictype/property-bidi-eur-num-separator: New file.
2950         * modules/unictype/property-bidi-eur-num-terminator: New file.
2951         * modules/unictype/property-bidi-arabic-digit: New file.
2952         * modules/unictype/property-bidi-common-separator: New file.
2953         * modules/unictype/property-bidi-block-separator: New file.
2954         * modules/unictype/property-bidi-segment-separator: New file.
2955         * modules/unictype/property-bidi-whitespace: New file.
2956         * modules/unictype/property-bidi-non-spacing-mark: New file.
2957         * modules/unictype/property-bidi-boundary-neutral: New file.
2958         * modules/unictype/property-bidi-pdf: New file.
2959         * modules/unictype/property-bidi-embedding-or-override: New file.
2960         * modules/unictype/property-bidi-other-neutral: New file.
2961         * modules/unictype/property-hex-digit: New file.
2962         * modules/unictype/property-ascii-hex-digit: New file.
2963         * modules/unictype/property-ideographic: New file.
2964         * modules/unictype/property-unified-ideograph: New file.
2965         * modules/unictype/property-radical: New file.
2966         * modules/unictype/property-ids-binary-operator: New file.
2967         * modules/unictype/property-ids-trinary-operator: New file.
2968         * modules/unictype/property-zero-width: New file.
2969         * modules/unictype/property-space: New file.
2970         * modules/unictype/property-non-break: New file.
2971         * modules/unictype/property-iso-control: New file.
2972         * modules/unictype/property-format-control: New file.
2973         * modules/unictype/property-dash: New file.
2974         * modules/unictype/property-hyphen: New file.
2975         * modules/unictype/property-punctuation: New file.
2976         * modules/unictype/property-line-separator: New file.
2977         * modules/unictype/property-paragraph-separator: New file.
2978         * modules/unictype/property-quotation-mark: New file.
2979         * modules/unictype/property-sentence-terminal: New file.
2980         * modules/unictype/property-terminal-punctuation: New file.
2981         * modules/unictype/property-currency-symbol: New file.
2982         * modules/unictype/property-math: New file.
2983         * modules/unictype/property-other-math: New file.
2984         * modules/unictype/property-paired-punctuation: New file.
2985         * modules/unictype/property-left-of-pair: New file.
2986         * modules/unictype/property-combining: New file.
2987         * modules/unictype/property-composite: New file.
2988         * modules/unictype/property-decimal-digit: New file.
2989         * modules/unictype/property-numeric: New file.
2990         * modules/unictype/property-diacritic: New file.
2991         * modules/unictype/property-extender: New file.
2992         * modules/unictype/property-ignorable-control: New file.
2993         * modules/unictype/property-test: New file.
2994         * modules/unictype/property-byname: New file.
2995         * modules/unictype/property-all: New file.
2996         * modules/unictype/scripts: New file.
2997         * modules/unictype/scripts-all: New file.
2998         * modules/unictype/block-of: New file.
2999         * modules/unictype/block-test: New file.
3000         * modules/unictype/block-list: New file.
3001         * modules/unictype/block-all: New file.
3002         * modules/unictype/syntax-c-whitespace: New file.
3003         * modules/unictype/syntax-java-whitespace: New file.
3004         * modules/unictype/syntax-c-ident: New file.
3005         * modules/unictype/syntax-java-ident: New file.
3006         * modules/unictype/ctype-alnum: New file.
3007         * modules/unictype/ctype-alpha: New file.
3008         * modules/unictype/ctype-cntrl: New file.
3009         * modules/unictype/ctype-digit: New file.
3010         * modules/unictype/ctype-graph: New file.
3011         * modules/unictype/ctype-lower: New file.
3012         * modules/unictype/ctype-print: New file.
3013         * modules/unictype/ctype-punct: New file.
3014         * modules/unictype/ctype-space: New file.
3015         * modules/unictype/ctype-upper: New file.
3016         * modules/unictype/ctype-xdigit: New file.
3017         * modules/unictype/ctype-blank: New file.
3018         * lib/unictype/bidi_byname.c: New file.
3019         * lib/unictype/bidi_name.c: New file.
3020         * lib/unictype/bidi_of.c: New file.
3021         * lib/unictype/bidi_test.c: New file.
3022         * lib/unictype/bitmap.h: New file.
3023         * lib/unictype/block_test.c: New file.
3024         * lib/unictype/blocks.c: New file.
3025         * lib/unictype/categ_C.c: New file.
3026         * lib/unictype/categ_Cc.c: New file.
3027         * lib/unictype/categ_Cf.c: New file.
3028         * lib/unictype/categ_Cn.c: New file.
3029         * lib/unictype/categ_Co.c: New file.
3030         * lib/unictype/categ_Cs.c: New file.
3031         * lib/unictype/categ_L.c: New file.
3032         * lib/unictype/categ_Ll.c: New file.
3033         * lib/unictype/categ_Lm.c: New file.
3034         * lib/unictype/categ_Lo.c: New file.
3035         * lib/unictype/categ_Lt.c: New file.
3036         * lib/unictype/categ_Lu.c: New file.
3037         * lib/unictype/categ_M.c: New file.
3038         * lib/unictype/categ_Mc.c: New file.
3039         * lib/unictype/categ_Me.c: New file.
3040         * lib/unictype/categ_Mn.c: New file.
3041         * lib/unictype/categ_N.c: New file.
3042         * lib/unictype/categ_Nd.c: New file.
3043         * lib/unictype/categ_Nl.c: New file.
3044         * lib/unictype/categ_No.c: New file.
3045         * lib/unictype/categ_P.c: New file.
3046         * lib/unictype/categ_Pc.c: New file.
3047         * lib/unictype/categ_Pd.c: New file.
3048         * lib/unictype/categ_Pe.c: New file.
3049         * lib/unictype/categ_Pf.c: New file.
3050         * lib/unictype/categ_Pi.c: New file.
3051         * lib/unictype/categ_Po.c: New file.
3052         * lib/unictype/categ_Ps.c: New file.
3053         * lib/unictype/categ_S.c: New file.
3054         * lib/unictype/categ_Sc.c: New file.
3055         * lib/unictype/categ_Sk.c: New file.
3056         * lib/unictype/categ_Sm.c: New file.
3057         * lib/unictype/categ_So.c: New file.
3058         * lib/unictype/categ_Z.c: New file.
3059         * lib/unictype/categ_Zl.c: New file.
3060         * lib/unictype/categ_Zp.c: New file.
3061         * lib/unictype/categ_Zs.c: New file.
3062         * lib/unictype/categ_and.c: New file.
3063         * lib/unictype/categ_and_not.c: New file.
3064         * lib/unictype/categ_byname.c: New file.
3065         * lib/unictype/categ_name.c: New file.
3066         * lib/unictype/categ_none.c: New file.
3067         * lib/unictype/categ_of.c: New file.
3068         * lib/unictype/categ_or.c: New file.
3069         * lib/unictype/categ_test.c: New file.
3070         * lib/unictype/combining.c: New file.
3071         * lib/unictype/ctype_alnum.c: New file.
3072         * lib/unictype/ctype_alpha.c: New file.
3073         * lib/unictype/ctype_blank.c: New file.
3074         * lib/unictype/ctype_cntrl.c: New file.
3075         * lib/unictype/ctype_digit.c: New file.
3076         * lib/unictype/ctype_graph.c: New file.
3077         * lib/unictype/ctype_lower.c: New file.
3078         * lib/unictype/ctype_print.c: New file.
3079         * lib/unictype/ctype_punct.c: New file.
3080         * lib/unictype/ctype_space.c: New file.
3081         * lib/unictype/ctype_upper.c: New file.
3082         * lib/unictype/ctype_xdigit.c: New file.
3083         * lib/unictype/decdigit.c: New file.
3084         * lib/unictype/digit.c: New file.
3085         * lib/unictype/identsyntaxmap.h: New file.
3086         * lib/unictype/mirror.c: New file.
3087         * lib/unictype/numeric.c: New file.
3088         * lib/unictype/pr_alphabetic.c: New file.
3089         * lib/unictype/pr_ascii_hex_digit.c: New file.
3090         * lib/unictype/pr_bidi_arabic_digit.c: New file.
3091         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
3092         * lib/unictype/pr_bidi_block_separator.c: New file.
3093         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
3094         * lib/unictype/pr_bidi_common_separator.c: New file.
3095         * lib/unictype/pr_bidi_control.c: New file.
3096         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
3097         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
3098         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
3099         * lib/unictype/pr_bidi_european_digit.c: New file.
3100         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
3101         * lib/unictype/pr_bidi_left_to_right.c: New file.
3102         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
3103         * lib/unictype/pr_bidi_other_neutral.c: New file.
3104         * lib/unictype/pr_bidi_pdf.c: New file.
3105         * lib/unictype/pr_bidi_segment_separator.c: New file.
3106         * lib/unictype/pr_bidi_whitespace.c: New file.
3107         * lib/unictype/pr_byname.c: New file.
3108         * lib/unictype/pr_byname.gperf: New file.
3109         * lib/unictype/pr_combining.c: New file.
3110         * lib/unictype/pr_composite.c: New file.
3111         * lib/unictype/pr_currency_symbol.c: New file.
3112         * lib/unictype/pr_dash.c: New file.
3113         * lib/unictype/pr_decimal_digit.c: New file.
3114         * lib/unictype/pr_default_ignorable_code_point.c: New file.
3115         * lib/unictype/pr_deprecated.c: New file.
3116         * lib/unictype/pr_diacritic.c: New file.
3117         * lib/unictype/pr_extender.c: New file.
3118         * lib/unictype/pr_format_control.c: New file.
3119         * lib/unictype/pr_grapheme_base.c: New file.
3120         * lib/unictype/pr_grapheme_extend.c: New file.
3121         * lib/unictype/pr_grapheme_link.c: New file.
3122         * lib/unictype/pr_hex_digit.c: New file.
3123         * lib/unictype/pr_hyphen.c: New file.
3124         * lib/unictype/pr_id_continue.c: New file.
3125         * lib/unictype/pr_id_start.c: New file.
3126         * lib/unictype/pr_ideographic.c: New file.
3127         * lib/unictype/pr_ids_binary_operator.c: New file.
3128         * lib/unictype/pr_ids_trinary_operator.c: New file.
3129         * lib/unictype/pr_ignorable_control.c: New file.
3130         * lib/unictype/pr_iso_control.c: New file.
3131         * lib/unictype/pr_join_control.c: New file.
3132         * lib/unictype/pr_left_of_pair.c: New file.
3133         * lib/unictype/pr_line_separator.c: New file.
3134         * lib/unictype/pr_logical_order_exception.c: New file.
3135         * lib/unictype/pr_lowercase.c: New file.
3136         * lib/unictype/pr_math.c: New file.
3137         * lib/unictype/pr_non_break.c: New file.
3138         * lib/unictype/pr_not_a_character.c: New file.
3139         * lib/unictype/pr_numeric.c: New file.
3140         * lib/unictype/pr_other_alphabetic.c: New file.
3141         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
3142         * lib/unictype/pr_other_grapheme_extend.c: New file.
3143         * lib/unictype/pr_other_id_continue.c: New file.
3144         * lib/unictype/pr_other_id_start.c: New file.
3145         * lib/unictype/pr_other_lowercase.c: New file.
3146         * lib/unictype/pr_other_math.c: New file.
3147         * lib/unictype/pr_other_uppercase.c: New file.
3148         * lib/unictype/pr_paired_punctuation.c: New file.
3149         * lib/unictype/pr_paragraph_separator.c: New file.
3150         * lib/unictype/pr_pattern_syntax.c: New file.
3151         * lib/unictype/pr_pattern_white_space.c: New file.
3152         * lib/unictype/pr_private_use.c: New file.
3153         * lib/unictype/pr_punctuation.c: New file.
3154         * lib/unictype/pr_quotation_mark.c: New file.
3155         * lib/unictype/pr_radical.c: New file.
3156         * lib/unictype/pr_sentence_terminal.c: New file.
3157         * lib/unictype/pr_soft_dotted.c: New file.
3158         * lib/unictype/pr_space.c: New file.
3159         * lib/unictype/pr_terminal_punctuation.c: New file.
3160         * lib/unictype/pr_test.c: New file.
3161         * lib/unictype/pr_titlecase.c: New file.
3162         * lib/unictype/pr_unassigned_code_value.c: New file.
3163         * lib/unictype/pr_unified_ideograph.c: New file.
3164         * lib/unictype/pr_uppercase.c: New file.
3165         * lib/unictype/pr_variation_selector.c: New file.
3166         * lib/unictype/pr_white_space.c: New file.
3167         * lib/unictype/pr_xid_continue.c: New file.
3168         * lib/unictype/pr_xid_start.c: New file.
3169         * lib/unictype/pr_zero_width.c: New file.
3170         * lib/unictype/scripts.c: New file.
3171         * lib/unictype/sy_c_ident.c: New file.
3172         * lib/unictype/sy_c_whitespace.c: New file.
3173         * lib/unictype/sy_java_ident.c: New file.
3174         * lib/unictype/sy_java_whitespace.c: New file.
3175
3176         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
3177         Unicode 5.0.0.
3178         * lib/unictype/blocks.h: Likewise.
3179         * lib/unictype/categ_C.h: Likewise.
3180         * lib/unictype/categ_Cc.h: Likewise.
3181         * lib/unictype/categ_Cf.h: Likewise.
3182         * lib/unictype/categ_Cn.h: Likewise.
3183         * lib/unictype/categ_Co.h: Likewise.
3184         * lib/unictype/categ_Cs.h: Likewise.
3185         * lib/unictype/categ_L.h: Likewise.
3186         * lib/unictype/categ_Ll.h: Likewise.
3187         * lib/unictype/categ_Lm.h: Likewise.
3188         * lib/unictype/categ_Lo.h: Likewise.
3189         * lib/unictype/categ_Lt.h: Likewise.
3190         * lib/unictype/categ_Lu.h: Likewise.
3191         * lib/unictype/categ_M.h: Likewise.
3192         * lib/unictype/categ_Mc.h: Likewise.
3193         * lib/unictype/categ_Me.h: Likewise.
3194         * lib/unictype/categ_Mn.h: Likewise.
3195         * lib/unictype/categ_N.h: Likewise.
3196         * lib/unictype/categ_Nd.h: Likewise.
3197         * lib/unictype/categ_Nl.h: Likewise.
3198         * lib/unictype/categ_No.h: Likewise.
3199         * lib/unictype/categ_P.h: Likewise.
3200         * lib/unictype/categ_Pc.h: Likewise.
3201         * lib/unictype/categ_Pd.h: Likewise.
3202         * lib/unictype/categ_Pe.h: Likewise.
3203         * lib/unictype/categ_Pf.h: Likewise.
3204         * lib/unictype/categ_Pi.h: Likewise.
3205         * lib/unictype/categ_Po.h: Likewise.
3206         * lib/unictype/categ_Ps.h: Likewise.
3207         * lib/unictype/categ_S.h: Likewise.
3208         * lib/unictype/categ_Sc.h: Likewise.
3209         * lib/unictype/categ_Sk.h: Likewise.
3210         * lib/unictype/categ_Sm.h: Likewise.
3211         * lib/unictype/categ_So.h: Likewise.
3212         * lib/unictype/categ_Z.h: Likewise.
3213         * lib/unictype/categ_Zl.h: Likewise.
3214         * lib/unictype/categ_Zp.h: Likewise.
3215         * lib/unictype/categ_Zs.h: Likewise.
3216         * lib/unictype/categ_of.h: Likewise.
3217         * lib/unictype/combining.h: Likewise.
3218         * lib/unictype/ctype_alnum.h: Likewise.
3219         * lib/unictype/ctype_alpha.h: Likewise.
3220         * lib/unictype/ctype_blank.h: Likewise.
3221         * lib/unictype/ctype_cntrl.h: Likewise.
3222         * lib/unictype/ctype_digit.h: Likewise.
3223         * lib/unictype/ctype_graph.h: Likewise.
3224         * lib/unictype/ctype_lower.h: Likewise.
3225         * lib/unictype/ctype_print.h: Likewise.
3226         * lib/unictype/ctype_punct.h: Likewise.
3227         * lib/unictype/ctype_space.h: Likewise.
3228         * lib/unictype/ctype_upper.h: Likewise.
3229         * lib/unictype/ctype_xdigit.h: Likewise.
3230         * lib/unictype/decdigit.h: Likewise.
3231         * lib/unictype/digit.h: Likewise.
3232         * lib/unictype/mirror.h: Likewise.
3233         * lib/unictype/numeric.h: Likewise.
3234         * lib/unictype/pr_alphabetic.h: Likewise.
3235         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3236         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3237         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3238         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3239         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3240         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3241         * lib/unictype/pr_bidi_control.h: Likewise.
3242         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3243         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3244         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3245         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3246         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3247         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3248         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3249         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3250         * lib/unictype/pr_bidi_pdf.h: Likewise.
3251         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3252         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3253         * lib/unictype/pr_combining.h: Likewise.
3254         * lib/unictype/pr_composite.h: Likewise.
3255         * lib/unictype/pr_currency_symbol.h: Likewise.
3256         * lib/unictype/pr_dash.h: Likewise.
3257         * lib/unictype/pr_decimal_digit.h: Likewise.
3258         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3259         * lib/unictype/pr_deprecated.h: Likewise.
3260         * lib/unictype/pr_diacritic.h: Likewise.
3261         * lib/unictype/pr_extender.h: Likewise.
3262         * lib/unictype/pr_format_control.h: Likewise.
3263         * lib/unictype/pr_grapheme_base.h: Likewise.
3264         * lib/unictype/pr_grapheme_extend.h: Likewise.
3265         * lib/unictype/pr_grapheme_link.h: Likewise.
3266         * lib/unictype/pr_hex_digit.h: Likewise.
3267         * lib/unictype/pr_hyphen.h: Likewise.
3268         * lib/unictype/pr_id_continue.h: Likewise.
3269         * lib/unictype/pr_id_start.h: Likewise.
3270         * lib/unictype/pr_ideographic.h: Likewise.
3271         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3272         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3273         * lib/unictype/pr_ignorable_control.h: Likewise.
3274         * lib/unictype/pr_iso_control.h: Likewise.
3275         * lib/unictype/pr_join_control.h: Likewise.
3276         * lib/unictype/pr_left_of_pair.h: Likewise.
3277         * lib/unictype/pr_line_separator.h: Likewise.
3278         * lib/unictype/pr_logical_order_exception.h: Likewise.
3279         * lib/unictype/pr_lowercase.h: Likewise.
3280         * lib/unictype/pr_math.h: Likewise.
3281         * lib/unictype/pr_non_break.h: Likewise.
3282         * lib/unictype/pr_not_a_character.h: Likewise.
3283         * lib/unictype/pr_numeric.h: Likewise.
3284         * lib/unictype/pr_other_alphabetic.h: Likewise.
3285         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3286         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3287         * lib/unictype/pr_other_id_continue.h: Likewise.
3288         * lib/unictype/pr_other_id_start.h: Likewise.
3289         * lib/unictype/pr_other_lowercase.h: Likewise.
3290         * lib/unictype/pr_other_math.h: Likewise.
3291         * lib/unictype/pr_other_uppercase.h: Likewise.
3292         * lib/unictype/pr_paired_punctuation.h: Likewise.
3293         * lib/unictype/pr_paragraph_separator.h: Likewise.
3294         * lib/unictype/pr_pattern_syntax.h: Likewise.
3295         * lib/unictype/pr_pattern_white_space.h: Likewise.
3296         * lib/unictype/pr_private_use.h: Likewise.
3297         * lib/unictype/pr_punctuation.h: Likewise.
3298         * lib/unictype/pr_quotation_mark.h: Likewise.
3299         * lib/unictype/pr_radical.h: Likewise.
3300         * lib/unictype/pr_sentence_terminal.h: Likewise.
3301         * lib/unictype/pr_soft_dotted.h: Likewise.
3302         * lib/unictype/pr_space.h: Likewise.
3303         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3304         * lib/unictype/pr_titlecase.h: Likewise.
3305         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3306         * lib/unictype/pr_unified_ideograph.h: Likewise.
3307         * lib/unictype/pr_uppercase.h: Likewise.
3308         * lib/unictype/pr_variation_selector.h: Likewise.
3309         * lib/unictype/pr_white_space.h: Likewise.
3310         * lib/unictype/pr_xid_continue.h: Likewise.
3311         * lib/unictype/pr_xid_start.h: Likewise.
3312         * lib/unictype/pr_zero_width.h: Likewise.
3313         * lib/unictype/scripts.h: Likewise.
3314         * lib/unictype/scripts_byname.gperf: Likewise.
3315         * lib/unictype/sy_c_ident.h: Likewise.
3316         * lib/unictype/sy_c_whitespace.h: Likewise.
3317         * lib/unictype/sy_java_ident.h: Likewise.
3318         * lib/unictype/sy_java_whitespace.h: Likewise.
3319
3320         * lib/unictype/Makefile: New file.
3321         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
3322         glibc.
3323         * lib/unictype/3level.h: New file, copied from glibc.
3324         * lib/unictype/3levelbit.h: New file.
3325
3326 2007-11-11  Bruno Haible  <bruno@clisp.org>
3327
3328         * modules/gperf: New file.
3329         * modules/iconv_open (Depends-on): Add it.
3330         (Makefile.am): Remove the GPERF definition.
3331
3332 2007-11-11  Bruno Haible  <bruno@clisp.org>
3333
3334         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
3335         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
3336
3337 2007-11-11  Bruno Haible  <bruno@clisp.org>
3338
3339         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
3340         (usage): Remove function.
3341
3342 2007-11-11  Bruno Haible  <bruno@clisp.org>
3343
3344         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
3345         gl_FUNC_CEILF_LIBS.
3346         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
3347         gl_FUNC_CEIL_LIBS.
3348         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
3349         gl_FUNC_CEILL_LIBS.
3350         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
3351         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
3352         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
3353
3354 2007-11-11  Bruno Haible  <bruno@clisp.org>
3355
3356         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
3357         roundf were declared but do not exist on functions.
3358         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
3359         roundl were declared but do not exist on functions.
3360         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
3361         HAVE_FLOORL_AND_CEILL, respectively.
3362         Needed for Sun C on Solaris 10.
3363
3364 2007-11-11  Bruno Haible  <bruno@clisp.org>
3365
3366         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
3367         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
3368         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
3369         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
3370         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
3371         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
3372         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
3373         HAVE_DECL_ROUNDF.
3374         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
3375         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
3376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
3377         of HAVE_DECL_ROUND*.
3378         * modules/math (Makefile.am): Update.
3379
3380 2007-11-10  Bruno Haible  <bruno@clisp.org>
3381
3382         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
3383         ptrdiff_t as m4/intl.m4.
3384
3385 2007-11-10  Jim Meyering  <meyering@redhat.com>
3386
3387         Avoid link failure for the argmatch test.
3388         * tests/test-argmatch.c (usage): Define function to avoid a link
3389         failure: argmatch_die requires a usage function.
3390
3391 2007-11-09  Bruno Haible  <bruno@clisp.org>
3392
3393         * doc/functions/snprintf.texi: Mention BeOS deficiency.
3394         * doc/functions/vsnprintf.texi: Likewise.
3395         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
3396         with a size argument < 2.
3397
3398 2007-11-09  Bruno Haible  <bruno@clisp.org>
3399
3400         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
3401         buffer. Fixes an inefficiency introduced on 2007-11-03.
3402
3403 2007-11-09  Bruno Haible  <bruno@clisp.org>
3404
3405         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
3406         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
3407
3408 2007-11-08  Jim Meyering  <meyering@redhat.com>
3409
3410         Change cache variable name prefix "jm_" to "gl_" everywhere.
3411         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
3412         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
3413         * m4/uptime.m4: s/gl_/jm_/
3414
3415 2007-11-07  Bruno Haible  <bruno@clisp.org>
3416
3417         Update to GNU gettext 0.17.
3418         * m4/intl.m4: Update to GNU gettext 0.17.
3419         * m4/po.m4: Likewise.
3420         * modules/gettext (Files): Remove m4/ulonglong.m4.
3421         (configure.ac): Require gettext infrastructure from version 0.17.
3422
3423 2007-11-06  Bruno Haible  <bruno@clisp.org>
3424
3425         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
3426         symbolic values are not defined in a public header.
3427         * lib/freadable.c (freadable) [QNX]: Likewise.
3428         * lib/freadahead.c (freadahead) [QNX]: Likewise.
3429         * lib/freading.c (freading) [QNX]: Likewise.
3430         * lib/fseterr.c (fseterr) [QNX]: Likewise.
3431         * lib/fwritable.c (fwritable) [QNX]: Likewise.
3432         * lib/fwriting.c (fwriting) [QNX]: Likewise.
3433         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
3434         Reported by Alain Magloire.
3435
3436         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
3437
3438 2007-11-05  Bruno Haible  <bruno@clisp.org>
3439
3440         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
3441         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
3442         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
3443         Reported by Eric Blake.
3444
3445 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3446             Bruno Haible  <bruno@clisp.org>
3447
3448         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
3449         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
3450         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
3451         (malloc): Undefine also before including <stdlib.h>.
3452         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
3453         Needed on OSF/1 4.0.
3454
3455 2007-11-05  Jim Meyering  <meyering@redhat.com>
3456
3457         git-version-gen: sync from coreutils.
3458         * build-aux/git-version-gen: Add comments.
3459         Change the first '-' to '.' in the snapshot version string,
3460         e.g., 6.9-377-08144 -> 6.9.377-08144
3461         Remove first parameter.
3462         Don't declare a version "-dirty" merely because a time
3463         stamp has changed.
3464
3465 2007-11-04  Bruno Haible  <bruno@clisp.org>
3466
3467         * lib/lock.h: Protect all macro definitions containing an 'if'
3468         statement through a "do { ... } while (0)".
3469         * lib/tls.h: Likewise.
3470
3471 2007-11-04  Bruno Haible  <bruno@clisp.org>
3472
3473         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
3474
3475 2007-11-04  Bruno Haible  <bruno@clisp.org>
3476
3477         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
3478         * modules/fprintf-posix (Depends-on): Add nocrash.
3479         * modules/snprintf-posix (Depends-on): Likewise.
3480         * modules/sprintf-posix (Depends-on): Likewise.
3481         * modules/vasnprintf-posix (Depends-on): Likewise.
3482         * modules/vasprintf-posix (Depends-on): Likewise.
3483         * modules/vfprintf-posix (Depends-on): Likewise.
3484         * modules/vsnprintf-posix (Depends-on): Likewise.
3485         * modules/vsprintf-posix (Depends-on): Likewise.
3486         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3487         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3488         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3489         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3490         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3491         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3492         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3493
3494 2007-11-04  Bruno Haible  <bruno@clisp.org>
3495
3496         * modules/nocrash: New file.
3497         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
3498         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
3499
3500 2007-11-04  Bruno Haible  <bruno@clisp.org>
3501
3502         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
3503         precision handling.
3504         * tests/test-vasprintf-posix.c (test_function): Likewise.
3505         * tests/test-snprintf-posix.h (test_function): Likewise.
3506         * tests/test-sprintf-posix.h (test_function): Likewise.
3507
3508         Fix *printf behaviour for large precisions on mingw and BeOS.
3509         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
3510         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
3511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
3512         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3514         gl_PRINTF_PRECISION and test its result. Invoke
3515         gl_PREREQ_VASNPRINTF_PRECISION.
3516         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3520         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3521         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3522         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3523         * doc/functions/fprintf.texi: Update.
3524         * doc/functions/printf.texi: Update.
3525         * doc/functions/snprintf.texi: Update.
3526         * doc/functions/sprintf.texi: Update.
3527         * doc/functions/vfprintf.texi: Update.
3528         * doc/functions/vprintf.texi: Update.
3529         * doc/functions/vsnprintf.texi: Update.
3530         * doc/functions/vsprintf.texi: Update.
3531
3532 2007-11-04  Bruno Haible  <bruno@clisp.org>
3533
3534         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
3535
3536 2007-11-04  Bruno Haible  <bruno@clisp.org>
3537
3538         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
3539         Reported by Sylvain Beucler <beuc@gnu.org>.
3540
3541 2007-11-03  Bruno Haible  <bruno@clisp.org>
3542
3543         * tests/test-fprintf-posix2.sh: New file.
3544         * tests/test-fprintf-posix2.c: New file.
3545         * modules/fprintf-posix-tests (Files): Add them.
3546         (TESTS): Add test-fprintf-posix2.sh.
3547         (configure.ac): Check for getrlimit and setrlimit.
3548         (check_PROGRAMS): Add test-fprintf-posix2.
3549
3550         * tests/test-printf-posix2.sh: New file.
3551         * tests/test-printf-posix2.c: New file.
3552         * modules/printf-posix-tests (Files): Add them.
3553         (TESTS): Add test-printf-posix2.sh.
3554         (configure.ac): Check for getrlimit and setrlimit.
3555         (check_PROGRAMS): Add test-printf-posix2.
3556
3557         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
3558         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
3559         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
3560         (decode_double): New function, copied from decode_long_double.
3561         (scale10_round_decimal_decoded): New function, extracted from
3562         scale10_round_decimal_long_double.
3563         (scale10_round_decimal_long_double): Use it.
3564         (scale10_round_decimal_double): New function.
3565         (floorlog10): New function.
3566         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
3567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
3568         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3569         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3570         gl_PRINTF_ENOMEM and test its result. Invoke
3571         gl_PREREQ_VASNPRINTF_ENOMEM.
3572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3575         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3576         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3579         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
3580         * modules/snprintf-posix (Depends-on): Likewise.
3581         * modules/sprintf-posix (Depends-on): Likewise.
3582         * modules/vasnprintf-posix (Depends-on): Likewise.
3583         * modules/vasprintf-posix (Depends-on): Likewise.
3584         * modules/vfprintf-posix (Depends-on): Likewise.
3585         * modules/vsnprintf-posix (Depends-on): Likewise.
3586         * modules/vsprintf-posix (Depends-on): Likewise.
3587         * doc/functions/fprintf.texi: Update.
3588         * doc/functions/printf.texi: Update.
3589         * doc/functions/snprintf.texi: Update.
3590         * doc/functions/sprintf.texi: Update.
3591         * doc/functions/vfprintf.texi: Update.
3592         * doc/functions/vprintf.texi: Update.
3593         * doc/functions/vsnprintf.texi: Update.
3594         * doc/functions/vsprintf.texi: Update.
3595
3596 2007-11-03  Bruno Haible  <bruno@clisp.org>
3597
3598         * modules/frexp-nolibm-tests: New file.
3599
3600         * modules/frexp-nolibm: New file.
3601         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
3602
3603 2007-11-03  Bruno Haible  <bruno@clisp.org>
3604
3605         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
3606         value is C99 compliant.
3607         Needed for OSF/1 5.1.
3608
3609 2007-11-03  Bruno Haible  <bruno@clisp.org>
3610
3611         Fix out-of-memory handling of vasnprintf.
3612         * lib/printf-parse.c: Include <errno.h>.
3613         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
3614         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
3615         is already set.
3616
3617 2007-11-02  Eric Blake  <ebb9@byu.net>
3618
3619         Fix tests on cygwin.
3620         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
3621
3622 2007-11-01  Bruno Haible  <bruno@clisp.org>
3623
3624         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
3625         warning.
3626         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
3627         needed for POSIX compatibility.
3628
3629 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3630
3631         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
3632         for compatibility with GNU.
3633
3634 2007-11-01  Bruno Haible  <bruno@clisp.org>
3635
3636         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
3637         (putenv): Renamed from rpl_putenv. Change argument type from
3638         'const char *' to 'char *'.
3639         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
3640         of defining putenv in config.h, just set REPLACE_PUTENV.
3641         * modules/putenv (Depends-on): Add stdlib.
3642         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3643         (Include): Use <stdlib.h>.
3644         * lib/stdlib.in.h (putenv): New declaration.
3645         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
3646         REPLACE_PUTENV.
3647         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
3648         REPLACE_PUTENV.
3649         Needed for MacOS X 10.5.0.
3650         Reported by Peter O'Gorman <peter@pogma.com>.
3651
3652 2007-11-01  Jim Meyering  <meyering@redhat.com>
3653
3654         Treat an empty date string exactly like "0".
3655         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
3656         if the remaining date string (to be parsed) is empty, use "0".
3657         Reported by Mischa Molhoek and discussed in this thread:
3658         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
3659
3660 2007-10-31  Bruno Haible  <bruno@clisp.org>
3661
3662         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
3663         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
3664         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
3665         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
3666         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
3667         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
3668
3669 2007-10-31  Bruno Haible  <bruno@clisp.org>
3670
3671         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
3672         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
3673         (AC_TYPE_LONG_LONG_INT): Use it.
3674         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
3675         it as well.
3676         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
3677         to m4/longlong.m4.
3678         * modules/stdint (Files): Remove m4/ulonglong.m4.
3679         * modules/strtoull (Files): Use m4/longlong.m4 instead of
3680         m4/ulonglong.m4.
3681         * modules/strtoumax (Files): Likewise.
3682
3683 2007-10-30  Bruno Haible  <bruno@clisp.org>
3684
3685         * modules/xvasprintf-posix: New file.
3686         Suggested by Eric Blake.
3687
3688 2007-10-30  Bruno Haible  <bruno@clisp.org>
3689
3690         * modules/xprintf-posix-tests: New file.
3691         * tests/test-xprintf-posix.sh: New file.
3692         * tests/test-xprintf-posix.c: New file.
3693         * tests/test-xfprintf-posix.c: New file.
3694
3695         * modules/xprintf-posix: New file.
3696
3697 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3698
3699         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
3700         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
3701         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
3702
3703 2007-10-29  Bruno Haible  <bruno@clisp.org>
3704
3705         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
3706         contain the special marker '_cv_'.
3707         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3708         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3709         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3710         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3711         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3712         Reported by Ralf Wildenhues.
3713
3714 2007-10-29  Bruno Haible  <bruno@clisp.org>
3715
3716         * gnulib-tool (func_import): When --lgpl is not specified, set
3717         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
3718         GPLv3.
3719         Reported by Simon Josefsson.
3720
3721 2007-10-28  Bruno Haible  <bruno@clisp.org>
3722
3723         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
3724         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
3725         HAVE_DECL_ISFINITE.
3726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
3727         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
3728         HAVE_DECL_ISFINITE.
3729
3730 2007-10-28  Bruno Haible  <bruno@clisp.org>
3731
3732         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
3733         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
3734
3735 2007-10-28  Bruno Haible  <bruno@clisp.org>
3736
3737         Fix link errors with Sun C 5.0 on Solaris 10.
3738         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
3739         function is declared but not present in the compiler's libm.
3740         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3741         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3742         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
3743         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
3744         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
3745         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
3746         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
3747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
3748         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
3749         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
3750         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
3751         HAVE_DECL_FLOORL.
3752
3753 2007-10-28  Bruno Haible  <bruno@clisp.org>
3754
3755         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
3756         gl_FUNC_FLOORL. Cache the result.
3757         (gl_FUNC_FLOORL): Use it.
3758         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
3759         gl_FUNC_CEILL. Cache the result.
3760         (gl_FUNC_CEILL): Use it.
3761
3762         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
3763         gl_FUNC_FLOOR. Cache the result.
3764         (gl_FUNC_FLOOR): Use it.
3765         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
3766         gl_FUNC_CEIL. Cache the result.
3767         (gl_FUNC_CEIL): Use it.
3768
3769         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
3770         gl_FUNC_FLOORF. Cache the result.
3771         (gl_FUNC_FLOORF): Use it.
3772         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
3773         gl_FUNC_CEILF. Cache the result.
3774         (gl_FUNC_CEILF): Use it.
3775
3776 2007-10-28  Bruno Haible  <bruno@clisp.org>
3777
3778         * gnulib-tool: Allow specifying the LGPL version number through
3779         --lgpl=2 or --lgpl=3.
3780         (func_usage): Document --lgpl with argument.
3781         Handle --lgpl=... arguments.
3782         (func_import): Recognize also gl_LGPL calls with an argument. When
3783         --lgpl=2 is used and the module's license is just LGPL, report an
3784         error. Set sed_transform_lib_file according to the lgpl variable. In
3785         the generated files, use --lgpl or gl_LGPL invocations with argument,
3786         if necessary.
3787         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
3788         an LGPv2+ license.
3789         * doc/gnulib-tool.texi (Modified imports): Update explanation of
3790         gl_LGPL macro.
3791
3792 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3793             Bruno Haible  <bruno@clisp.org>
3794
3795         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
3796         (u16_uctomb_aux): Likewise.
3797         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
3798         !HAVE_INLINE.
3799         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
3800
3801 2007-10-28  Bruno Haible  <bruno@clisp.org>
3802
3803         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
3804         Invoke AM_GETTEXT_OPTION if it exists.
3805         * modules/vasprintf: Likewise.
3806         * modules/verror: Likewise.
3807         * modules/xprintf: Likewise.
3808         * modules/xvasprintf: Likewise.
3809
3810 2007-10-27  Ben Pfaff  <blp@gnu.org>
3811
3812         * lib/math.in.h: Define isfinite macro and prototypes for
3813         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
3814         implementations.
3815         * m4/math_h.m4: New substitutions for isfinite module.
3816         * lib/isfinite.c: New file.
3817         * m4/isfinite.m4: New file.
3818         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
3819         * modules/isfinite: New file.
3820         * modules/isfinite-tests: New file.
3821         * tests/tests-isfinite.c: New file.
3822         * doc/functions/isfinite.texi: Mention isfinite module.
3823         * MODULES.html.sh: Mention new module.
3824
3825 2007-10-27  Ben Pfaff  <blp@gnu.org>
3826
3827         Ralf Wildenhues reported that Tru64 4.0D declares the round
3828         functions but does not have definitions.
3829         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
3830         cannot be found in any library, set the output variable to
3831         "missing" instead of "".
3832         * m4/round.m4: Also use our substitute if we cannot find round in
3833         any library, even if it is declared.
3834         * m4/roundf.m4: Likewise for roundf.
3835         * m4/roundl.m4: Likewise for roundl.
3836         * lib/math.in.h: Undefine roundf, round, roundl before defining
3837         their replacements, to allow for hypothetical systems where these
3838         may be defined as macros but not available in libraries.
3839
3840 2007-10-27  Bruno Haible  <bruno@clisp.org>
3841
3842         * doc/gnulib.texi: Invoke @firstparagraphindent.
3843         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
3844         changes in gnulib.
3845         (Source changes): New section.
3846
3847 2007-10-26  Bruno Haible  <bruno@clisp.org>
3848
3849         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
3850         borrowed from autoconf.
3851
3852 2007-10-26  Bruno Haible  <bruno@clisp.org>
3853
3854         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
3855         strerror returned the empty string. Needed on HP-UX 11.00.
3856
3857 2007-10-24  Micah Cowan  <micah@cowan.name>
3858
3859         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
3860         * build-aux/bootstrap: Remove support for now-unnecessary option,
3861         --cvs-user, and envvars CVS_USER, CVS_RSH.
3862
3863 2007-10-24  Jim Meyering  <meyering@redhat.com>
3864
3865         Avoid diagnostics from sha1sum when there is no cached checksum.
3866         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
3867         if the po.s1 file hasn't been created yet.
3868
3869         * build-aux/bootstrap: Sync from coreutils:
3870         2007-10-24  Jim Meyering  <meyering@redhat.com>
3871         Get gnulib from the git repository, not from an obsolete cvs one.
3872         * build-aux/bootstrap: Suggestion from Micah Cowan.
3873         2007-10-04  Jim Meyering  <jim@meyering.net>
3874         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
3875         (update_po_files): Work also when there are no .po files in po/.
3876
3877 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3878
3879         * README: Append ".git" to git and cg examples.
3880         Problem reported by Benoit Sigoure.
3881
3882 2007-10-23  Micah Cowan  <micah@cowan.name>
3883
3884         * users.txt: Add wget.
3885
3886 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3887
3888         Fix linking of some unistdio tests on FreeBSD.
3889         * modules/unistdio/u16-vsnprintf-tests
3890         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
3891         * modules/unistdio/u16-vsprintf-tests
3892         (test_u16_vsnprintf1_LDADD): Likewise.
3893         * modules/unistdio/u32-vsnprintf-tests
3894         (test_u32_vsnprintf1_LDADD): Likewise.
3895         * modules/unistdio/u32-vsprintf-tests
3896         (test_u32_vsprintf1_LDADD): Likewise.
3897         * modules/unistdio/u8-vsnprintf-tests
3898         (test_u8_vsnprintf1_LDADD): Likewise.
3899         * modules/unistdio/u8-vsprintf-tests
3900         (test_u8_vsprintf1_LDADD): Likewise.
3901         * modules/unistdio/ulc-vsnprintf-tests
3902         (test_ulc_vsnprintf1_LDADD): Likewise.
3903         * modules/unistdio/ulc-vsprintf-tests
3904         (test_ulc_vsprintf1_LDADD): Likewise.
3905
3906         Fix linking of some uniconv tests on FreeBSD.
3907         * modules/uniconv/u16-conv-from-enc-tests
3908         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
3909         * modules/uniconv/u16-conv-to-enc-tests
3910         (test_u16_conv_to_enc_LDADD): Likewise.
3911         * modules/uniconv/u16-strconv-from-enc-tests
3912         (test_u16_strconv_from_enc_LDADD): Likewise.
3913         * modules/uniconv/u16-strconv-to-enc-tests
3914         (test_u16_strconv_to_enc_LDADD): Likewise.
3915         * modules/uniconv/u32-conv-from-enc-tests
3916         (test_u32_conv_from_enc_LDADD): Likewise.
3917         * modules/uniconv/u32-conv-to-enc-tests
3918         (test_u32_conv_to_enc_LDADD): Likewise.
3919         * modules/uniconv/u32-strconv-from-enc-tests
3920         (test_u32_strconv_from_enc_LDADD): Likewise.
3921         * modules/uniconv/u32-strconv-to-enc-tests
3922         (test_u32_strconv_to_enc_LDADD): Likewise.
3923         * modules/uniconv/u8-conv-from-enc-tests
3924         (test_u8_conv_from_enc_LDADD): Likewise.
3925         * modules/uniconv/u8-conv-to-enc-tests
3926         (test_u8_conv_to_enc_LDADD): Likewise.
3927         * modules/uniconv/u8-strconv-from-enc-tests
3928         (test_u8_strconv_from_enc_LDADD): Likewise.
3929         * modules/uniconv/u8-strconv-to-enc-tests
3930         (test_u8_strconv_to_enc_LDADD): Likewise.
3931
3932 2007-10-22  Bruno Haible  <bruno@clisp.org>
3933
3934         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
3935         size.
3936
3937 2007-10-22  Eric Blake  <ebb9@byu.net>
3938
3939         Tweak x*printf documentation.
3940         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
3941         variable name and comments.
3942         Suggested by Bruno Haible.
3943
3944 2007-10-22  Bruno Haible  <bruno@clisp.org>
3945
3946         * lib/acl.c (copy_acl): Fix file name in comment.
3947
3948 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
3949
3950         Fix Tru64 problem with stdbool.h.
3951         * lib/stdbool.in.h (false, true):
3952         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
3953         Don't declare as an enum in this situation; it runs afoul of Tru64.
3954         Problem reported by Steven M. Schweda in
3955         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
3956
3957 2007-10-22  Eric Blake  <ebb9@byu.net>
3958
3959         Also wrap vf?printf.
3960         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
3961         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
3962         (xvprintf, xvfprintf): New functions.
3963
3964 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3965
3966         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
3967         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
3968
3969         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
3970         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
3971
3972 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
3973
3974         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
3975         by Bruno Haible.
3976
3977 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3978
3979         * lib/getloadavg.c
3980         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
3981         Undef `sys' after including sys/table.h, for Tru64 4.0D.
3982
3983         * tests/test-i-ring.c: Work for C89.
3984
3985 2007-10-22  Bruno Haible  <bruno@clisp.org>
3986
3987         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
3988         -1u, in preprocessor expression, so that we don't test for the bug
3989         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
3990         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
3991
3992 2007-10-22  Eric Blake  <ebb9@byu.net>
3993
3994         * tests/test-yesno.sh: Silence stderr during test.
3995
3996 2007-10-22  Simon Josefsson  <simon@josefsson.org>
3997
3998         * modules/crypto/gc-camellia: New file.
3999
4000         * m4/gc-camellia.m4: New file.
4001
4002         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
4003
4004         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
4005
4006 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4007
4008         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
4009         --help to stdout.  Reported by sms@antinode.org (Steven
4010         M. Schweda).
4011
4012 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4013
4014         * users.txt: Fix link to libksba.
4015
4016 2007-10-21  Ben Pfaff  <blp@gnu.org>
4017
4018         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
4019         round.c roundf implementation that depends on floorf and ceilf to
4020         be tested unconditionally.
4021
4022 2007-10-21  Ben Pfaff  <blp@gnu.org>
4023
4024         * m4/check-libm-func.m4: Removed.
4025         * m4/check-math-lib.m4: New file.
4026         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
4027         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
4028         definition and lack of AC_LIBOBJ([roundf]).
4029         * m4/roundl.m4: Ditto, and similarly for roundl.
4030         * modules/round: Reference new m4 file.
4031         * modules/roundf: Ditto.
4032         * modules/roundl: Ditto.
4033         * tests/test-round2.c (main): Use ROUND instead of round.
4034         Bug report from Bruno Haible.
4035
4036 2007-10-21  Bruno Haible  <bruno@clisp.org>
4037
4038         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
4039         context.
4040
4041 2007-10-21  Bruno Haible  <bruno@clisp.org>
4042
4043         * tests/test-wcwidth.c (main): Allow negative result for some control
4044         characters.
4045
4046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
4047         Needed on OSF/1 5.1.
4048
4049 2007-10-21  Bruno Haible  <bruno@clisp.org>
4050
4051         * tests/test-floorf1.c: Include isnanf.h.
4052         (main): Use isnanf() instead of isnan().
4053         * tests/test-ceilf1.c: Include isnanf.h.
4054         (main): Use isnanf() instead of isnan().
4055         * tests/test-truncf1.c: Include isnanf.h.
4056         (main): Use isnanf() instead of isnan().
4057         * tests/test-roundf1.c: Include isnanf.h.
4058         (main): Use isnanf() instead of isnan().
4059
4060 2007-10-21  Eric Blake  <ebb9@byu.net>
4061
4062         * users.txt: Update URL for m4.
4063
4064 2007-10-21  Bruno Haible  <bruno@clisp.org>
4065
4066         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
4067
4068 2007-10-21  Bruno Haible  <bruno@clisp.org>
4069
4070         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
4071         Git's management files if the CVS files are not present.
4072
4073 2007-10-20  Bruno Haible  <bruno@clisp.org>
4074
4075         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
4076         gcc-3.4.x.
4077
4078 2007-10-20  Ben Pfaff  <blp@gnu.org>
4079
4080         * lib/math.in.h: Declare round, roundf, roundl if we are providing
4081         implementations.
4082         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
4083         * lib/round.c: New file.
4084         * lib/roundf.c: New file.
4085         * lib/roundl.c: New file.
4086         * m4/round.m4: New file.
4087         * m4/roundf.m4: New file.
4088         * m4/roundl.m4: New file.
4089         * m4/check-libm-func-m4: New file.
4090         * modules/math: Replace round, roundf, roundl related @VARS@ in
4091         math.in.h.
4092         * modules/round: New file.
4093         * modules/round-tests: New file.
4094         * modules/roundf: New file.
4095         * modules/roundf-tests: New file.
4096         * modules/roundl: New file.
4097         * modules/roundl-tests: New file.
4098         * tests/test-round1.c: New file.
4099         * tests/test-round2.c: New file.
4100         * tests/test-roundf1.c: New file.
4101         * tests/test-roundf2.c: New file.
4102         * tests/test-roundl.c: New file.
4103         * doc/functions/round.texi: Mention round module.
4104         * doc/functions/roundf.texi: Mention roundf module.
4105         * doc/functions/roundl.texi: Mention roundl module.
4106         * MODULES.html.sh: Mention new modules.
4107         Thanks to Bruno Haible for suggestions.
4108
4109 2007-10-20  Jim Meyering  <meyering@redhat.com>
4110
4111         * lib/xprintf.c: Include <config.h> unconditionally.
4112
4113         Change xprintf's license to GPL.
4114         * modules/xprintf (License): s/LGPL/GPL/, since this module
4115         depends on modules (exit and exitfail) which are GPL.
4116         Suggestion from Bruno Haible.
4117
4118         xprintf fixes.
4119         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
4120         Use a clearer diagnostic.
4121         Patch from Bruno Haible.
4122
4123 2007-10-20  Bruno Haible  <bruno@clisp.org>
4124
4125         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
4126         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
4127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4128
4129 2007-10-20  Bruno Haible  <bruno@clisp.org>
4130
4131         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
4132         precision in the comparison result > x - 1 or similar.
4133         * tests/test-ceilf2.c (correct_result_p): Likewise.
4134         * tests/test-truncf2.c (correct_result_p): Likewise.
4135         * tests/test-trunc2.c (correct_result_p): Likewise.
4136         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4137
4138 2007-10-20  Bruno Haible  <bruno@clisp.org>
4139
4140         * modules/ceil: New file.
4141         * m4/ceil.m4: New file.
4142         * doc/functions/ceil.texi: Mention the 'ceil' module.
4143
4144 2007-10-20  Bruno Haible  <bruno@clisp.org>
4145
4146         * modules/floor: New file.
4147         * m4/floor.m4: New file.
4148         * doc/functions/floor.texi: Mention the 'floor' module.
4149
4150 2007-10-20  Bruno Haible  <bruno@clisp.org>
4151
4152         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
4153         of %a.
4154         * modules/floorf-tests (Depends-on): Likewise.
4155         * modules/truncf-tests (Depends-on): Likewise.
4156         * modules/trunc-tests (Depends-on): Likewise.
4157         Reported by Ben Pfaff.
4158
4159 2007-10-19  Jim Meyering  <meyering@redhat.com>
4160
4161         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
4162         Don't bother testing specific errno values.  Just test ferror.
4163
4164         New module: xprintf
4165         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
4166
4167 2007-10-19  Bruno Haible  <bruno@clisp.org>
4168
4169         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
4170         syntax.
4171         * modules/javaexec (Makefile.am): Likewise.
4172         * modules/relocatable-prog (Makefile.am): Likewise.
4173         Suggested by Jim Meyering.
4174
4175 2007-10-18  Bruno Haible  <bruno@clisp.org>
4176
4177         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
4178         Reported by Jim Meyering.
4179
4180 2007-10-18  Eric Blake  <ebb9@byu.net>
4181
4182         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
4183
4184 2007-10-18  Bruno Haible  <bruno@clisp.org>
4185
4186         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
4187         the format string into writable memory. Needed in Fortify conditions.
4188
4189 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
4190             Bruno Haible  <bruno@clisp.org>
4191
4192         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
4193         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
4194         * modules/trim (Depends-on): Add mbchar.
4195         (configure.ac): Add gl_FUNC_MBRTOWC.
4196         (Makefile.am): Augment lib_SOURCES.
4197
4198 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
4199
4200         Modify glob.c to use fstatat and dirfd, to simplify it.
4201         Suggested by Eric Blake.
4202         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
4203         Don't include <stdbool.h>; not used.
4204         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
4205         (link_exists_p): Simplify implementation, since we can now assume
4206         dirfd and fstatat.
4207         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
4208
4209 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4210
4211         * gnulib-tool (func_get_dependencies): Fix sed script to
4212         match only tests.
4213
4214 2007-10-17  Bruno Haible  <bruno@clisp.org>
4215
4216         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
4217         allow locale names without encoding suffix.
4218         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4219         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4220
4221 2007-10-16  Bruno Haible  <bruno@clisp.org>
4222
4223         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
4224         * lib/getgroups.c (getgroups): Likewise.
4225         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
4226
4227 2007-10-16  Bruno Haible  <bruno@clisp.org>
4228
4229         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
4230         * modules/malloc-posix (License): Likewise.
4231         * modules/realloc-posix (License): Likewise.
4232         * modules/calloc-posix (License): Likewise.
4233         * modules/intprops (License): Change from GPL to LGPL, with
4234         Paul Eggert's approval.
4235
4236 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4237
4238         Merge glibc changes into lib/glob.c.
4239
4240         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
4241         2007-10-15 04:59:03 UTC.  Here are the changes:
4242
4243         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
4244
4245         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
4246
4247         * lib/glob.c: Add some branch prediction throughout.
4248
4249         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
4250
4251         [BZ #5103]
4252         * lib/glob.c (glob): Recognize patterns starting \/.
4253
4254         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
4255
4256         [BZ #3996]
4257         * lib/glob.c (attribute_hidden): Define if not defined.
4258         (glob): Unescape dirname, filename or username when needed and not
4259         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
4260         is NULL.  Handle unescaped [ in pattern without closing ].
4261         Don't pass GLOB_CHECK down to recursive glob for directories.
4262         (__glob_pattern_type): New function.
4263         (__glob_pattern_p): Implement using __glob_pattern_type.
4264         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
4265         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
4266         Remove unreachable code.
4267
4268         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
4269
4270         * lib/glob.c (glob_in_dir): Add some comments and asserts to
4271         explain why there are no leaks.
4272
4273         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
4274
4275         [BZ #3253]
4276         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
4277         time, rather allocate increasingly bigger arrays of pointers, if
4278         possible with alloca, if too large with malloc.
4279
4280 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4281
4282         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
4283         Problem reported by H.Merijn Brand in
4284         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
4285         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
4286         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
4287
4288 2007-10-15  Bruno Haible  <bruno@clisp.org>
4289
4290         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
4291         with explicit rpl_ prefix.
4292         * lib/fopen.c (fopen): Likewise.
4293         * lib/freopen.c (freopen): Likewise.
4294         * lib/iconv.c (iconv): Likewise.
4295         * lib/iconv_close.c (iconv_close): Likewise.
4296
4297 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4298
4299         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
4300
4301 2007-10-15  Bruno Haible  <bruno@clisp.org>
4302
4303         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
4304         <stddef.h> instead of <stdlib.h> since we only need NULL.
4305         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4306
4307 2007-10-15  Bruno Haible  <bruno@clisp.org>
4308
4309         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
4310         Replace paragraph talking about LIBOBJS.
4311         Reported by Colin Watson <cjwatson@debian.org>.
4312
4313 2007-10-15  Bruno Haible  <bruno@clisp.org>
4314
4315         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
4316         <stdlib.h> before using NULL.
4317
4318 2007-10-15  Simon Josefsson  <simon@josefsson.org>
4319
4320         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
4321         Reported by Albert Chin <china@thewrittenword.com>.
4322
4323 2007-10-14  Bruno Haible  <bruno@clisp.org>
4324
4325         * modules/iconv_open-utf-tests: New file.
4326         * tests/test-iconv-utf.c: New file.
4327
4328         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
4329         * modules/iconv_open-utf: New file.
4330         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
4331         (iconv, iconv_close): New declarations.
4332         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
4333         be defined.
4334         (iconv_open): Add special handling of conversion between UTF-8 and
4335         UTF-{16,32}{BE,LE}.
4336         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
4337         * lib/iconv_close.c: New file.
4338         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
4339         gl_FUNC_ICONV_OPEN.
4340         (gl_FUNC_ICONV_OPEN): Use it.
4341         (gl_FUNC_ICONV_OPEN_UTF): New macro.
4342         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
4343         and REPLACE_ICONV_UTF.
4344         * modules/iconv_open (Depends-on): Add c-strcase.
4345         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
4346         ICONV_CONST.
4347         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
4348
4349 2007-10-13  Albert Chin  <china@thewrittenword.com>
4350             Bruno Haible  <bruno@clisp.org>
4351
4352         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
4353         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
4354
4355 2007-10-13  Bruno Haible  <bruno@clisp.org>
4356
4357         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
4358         defined, use the ISO C99 inline semantics.
4359         * lib/argp.h (ARGP_EI): Likewise.
4360
4361 2007-10-13  Bruno Haible  <bruno@clisp.org>
4362
4363         Handle 'inline' change in gcc 4.3.0.
4364         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
4365         argp_fmtstream_write, argp_fmtstream_set_lmargin,
4366         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
4367         argp_fmtstream_point): Disable 'extern' declaration if the function
4368         definition is going to be provided inline.
4369         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
4370         semantics, not the ISO C99 inline semantics.
4371         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
4372         'extern' declaration if the function definition is going to be provided
4373         inline.
4374         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
4375         the GNU C inline semantics, not the ISO C99 inline semantics. With
4376         GCC 4.2, avoid a warning.
4377
4378 2007-10-13  Bruno Haible  <bruno@clisp.org>
4379
4380         * lib/freading.h (freading): Enable the use of __freading for
4381         glibc >= 2.7.
4382         * lib/freading.c (freading): Likewise.
4383
4384 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
4385
4386         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
4387         "warning: C99 inline functions are not supported; using GNU89".
4388
4389 2007-10-12  Bruno Haible  <bruno@clisp.org>
4390
4391         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
4392         of 2.
4393         * tests/test-ceilf2.c: New file.
4394         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
4395
4396         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
4397         * modules/ceilf-tests: Update.
4398
4399 2007-10-12  Bruno Haible  <bruno@clisp.org>
4400
4401         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
4402         of 2.
4403         * tests/test-floorf2.c: New file.
4404         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
4405
4406         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
4407         * modules/floorf-tests: Update.
4408
4409 2007-10-12  Bruno Haible  <bruno@clisp.org>
4410
4411         * tests/test-trunc2.c: New file.
4412         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
4413
4414         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
4415         * modules/trunc-tests: Update.
4416
4417 2007-10-12  Bruno Haible  <bruno@clisp.org>
4418
4419         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
4420         of 2.
4421         * tests/test-truncf2.c: New file.
4422         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
4423
4424         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
4425         * modules/truncf-tests: Update.
4426
4427 2007-10-11  Eric Blake  <ebb9@byu.net>
4428
4429         Don't claim strerror is broken on Interix.
4430         * doc/functions/strerror.texi (strerror): Known broken systems are
4431         now Solaris 8, and not Interix.
4432         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
4433         Interix on cross-compile.
4434         Reported by Martin Koeppe in
4435         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
4436
4437 2007-10-11  Bruno Haible  <bruno@clisp.org>
4438
4439         * modules/i-ring-tests: New file.
4440         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
4441         instead of assert.
4442
4443 2007-10-11  Bruno Haible  <bruno@clisp.org>
4444
4445         * modules/filenamecat-tests: New file.
4446         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
4447         * lib/filenamecat.c: Remove test code.
4448
4449 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4450
4451         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
4452
4453         * lib/strerror.c: Include <string.h> always, to test interface,
4454         and to remove the need for the dummy.
4455         Include intprops.h to compute width instead of doing it ourselves
4456         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
4457         (strerror): Define it to return NULL if there's no system strerror.
4458         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
4459         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
4460         ancient pre-strerror Unix systems well any more.  Saying "unknown
4461         system error" is enough.
4462         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
4463         simpler strerror.c implementation.
4464         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
4465         Simplify the tests to reflect the simpler strerror implementation.
4466         * modules/strerror (Depends-on): Add intprops.
4467
4468 2007-10-09  Eric Blake  <ebb9@byu.net>
4469
4470         Silence test-fpending.
4471         * modules/fpending-tests (Files): Add wrapper script.
4472         * tests/test-fpending.sh: New file.
4473
4474 2007-10-09  Bruno Haible  <bruno@clisp.org>
4475
4476         * MODULES.html.sh (func_module): Don't create a hyperlink for
4477         function names like 'printf_frexp'.
4478         (Misc): Add crc, memxor.
4479         (Characteristics of floating types): New section.
4480         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
4481         isnanf-nolibm, signbit, trunc, truncf, truncl.
4482         (Enhancements for ISO C 99 functions): New subsection Input/output.
4483         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
4484         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
4485         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
4486         (Compatibility checks for POSIX:2001 functions): Add clock-time.
4487         (Enhancements for POSIX:2001 functions): Add chdir-long.
4488         (File system functions): Add areadlink, chdir-safer, read-file.
4489         Remove cycle-check.
4490         (File system as inode set): New section.
4491         (Date and time): Add gethrxtime.
4492         (Multithreading): Add openmp.
4493         (Internationalization functions): Add localename.
4494         (Unicode string functions): Add unistr/u*-mbsnlen.
4495         (Support for maintaining and releasing projects): Add git-version-gen.
4496         (Lone files): Remove directories.
4497
4498 2007-10-08  Ben Pfaff  <blp@gnu.org>
4499
4500         * lib/xmalloca.h: Fix typo in comment.
4501
4502 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4503
4504         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
4505         when avoiding problems with integer overflow.  Use a portable test
4506         instead.
4507
4508 2007-10-08  Simon Josefsson  <simon@josefsson.org>
4509
4510         * modules/dummy (License): Change to LGPLv2+.
4511         * modules/float (License): Likewise
4512         * modules/realloc (License): Likewise
4513         * modules/stdlib (License): Likewise
4514
4515 2007-10-07  Bruno Haible  <bruno@clisp.org>
4516
4517         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
4518         * floor.c (TWO_MANT_DIG): Likewise.
4519         * ceil.c (TWO_MANT_DIG): Likewise.
4520         Reported by Ben Pfaff.
4521
4522 2007-10-07  Bruno Haible  <bruno@clisp.org>
4523
4524         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
4525         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
4526         * lib/frexp.c (FUNC): Likewise.
4527         * lib/printf-frexp.h (printf_frexp): Likewise.
4528         * lib/printf-frexpl.h (printf_frexpl): Likewise.
4529         * lib/printf-frexp.c (FUNC): Likewise.
4530         Suggested by Jim Meyering.
4531
4532 2007-10-07  Jim Meyering  <meyering@redhat.com>
4533
4534         Make xnanosleep's integer overflow test more robust.
4535         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
4536         so that gcc-4.3.0 doesn't optimize away this test for overflow.
4537
4538 2007-10-07  Bruno Haible  <bruno@clisp.org>
4539
4540         * NEWS: Mention the license change.
4541
4542         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
4543         abbreviations in the modules files.
4544
4545         Change copyright notice from GPLv2+ to GPLv3+.
4546         * README: Change copyright notice.
4547         * MODULES.html.sh: Likewise.
4548         * build-aux/bootstrap.conf: Likewise.
4549         * build-aux/config.libpath: Likewise.
4550         * build-aux/csharpcomp.sh.in: Likewise.
4551         * build-aux/csharpexec.sh.in: Likewise.
4552         * build-aux/install-reloc: Likewise.
4553         * build-aux/javacomp.sh.in: Likewise.
4554         * build-aux/javaexec.sh.in: Likewise.
4555         * build-aux/ldd.sh.in: Likewise.
4556         * build-aux/reloc-ldflags: Likewise.
4557         * build-aux/relocatable.sh.in: Likewise.
4558         * build-aux/x-to-1.in: Likewise.
4559         * check-module: Likewise.
4560         * config/srclistvars.sh: Likewise.
4561         * gnulib-tool: Likewise.
4562         * lib/acl-internal.h: Likewise.
4563         * lib/acl.c: Likewise.
4564         * lib/acl.h: Likewise.
4565         * lib/acl_entries.c: Likewise.
4566         * lib/areadlink-with-size.c: Likewise.
4567         * lib/areadlink.c: Likewise.
4568         * lib/areadlink.h: Likewise.
4569         * lib/argmatch.c: Likewise.
4570         * lib/argmatch.h: Likewise.
4571         * lib/argp-ba.c: Likewise.
4572         * lib/argp-eexst.c: Likewise.
4573         * lib/argp-fmtstream.c: Likewise.
4574         * lib/argp-fmtstream.h: Likewise.
4575         * lib/argp-fs-xinl.c: Likewise.
4576         * lib/argp-help.c: Likewise.
4577         * lib/argp-namefrob.h: Likewise.
4578         * lib/argp-parse.c: Likewise.
4579         * lib/argp-pin.c: Likewise.
4580         * lib/argp-pv.c: Likewise.
4581         * lib/argp-pvh.c: Likewise.
4582         * lib/argp-xinl.c: Likewise.
4583         * lib/argp.h: Likewise.
4584         * lib/at-func.c: Likewise.
4585         * lib/atanl.c: Likewise.
4586         * lib/backupfile.c: Likewise.
4587         * lib/backupfile.h: Likewise.
4588         * lib/basename.c: Likewise.
4589         * lib/binary-io.h: Likewise.
4590         * lib/byteswap.in.h: Likewise.
4591         * lib/c-stack.c: Likewise.
4592         * lib/c-stack.h: Likewise.
4593         * lib/c-strcasestr.c: Likewise.
4594         * lib/c-strcasestr.h: Likewise.
4595         * lib/c-strstr.c: Likewise.
4596         * lib/c-strstr.h: Likewise.
4597         * lib/c-strtod.c: Likewise.
4598         * lib/calloc.c: Likewise.
4599         * lib/canon-host.c: Likewise.
4600         * lib/canon-host.h: Likewise.
4601         * lib/canonicalize-lgpl.c: Likewise.
4602         * lib/canonicalize.c: Likewise.
4603         * lib/canonicalize.h: Likewise.
4604         * lib/ceil.c: Likewise.
4605         * lib/ceilf.c: Likewise.
4606         * lib/ceill.c: Likewise.
4607         * lib/chdir-long.c: Likewise.
4608         * lib/chdir-long.h: Likewise.
4609         * lib/chdir-safer.c: Likewise.
4610         * lib/chdir-safer.h: Likewise.
4611         * lib/chown.c: Likewise.
4612         * lib/classpath.c: Likewise.
4613         * lib/classpath.h: Likewise.
4614         * lib/clean-temp.c: Likewise.
4615         * lib/clean-temp.h: Likewise.
4616         * lib/cloexec.c: Likewise.
4617         * lib/close-stream.c: Likewise.
4618         * lib/closein.c: Likewise.
4619         * lib/closein.h: Likewise.
4620         * lib/closeout.c: Likewise.
4621         * lib/closeout.h: Likewise.
4622         * lib/concat-filename.c: Likewise.
4623         * lib/copy-file.c: Likewise.
4624         * lib/copy-file.h: Likewise.
4625         * lib/count-one-bits.h: Likewise.
4626         * lib/crc.c: Likewise.
4627         * lib/crc.h: Likewise.
4628         * lib/creat-safer.c: Likewise.
4629         * lib/csharpcomp.c: Likewise.
4630         * lib/csharpcomp.h: Likewise.
4631         * lib/csharpexec.c: Likewise.
4632         * lib/csharpexec.h: Likewise.
4633         * lib/cycle-check.c: Likewise.
4634         * lib/cycle-check.h: Likewise.
4635         * lib/diacrit.c: Likewise.
4636         * lib/diacrit.h: Likewise.
4637         * lib/diffseq.h: Likewise.
4638         * lib/dirchownmod.c: Likewise.
4639         * lib/dirent.in.h: Likewise.
4640         * lib/dirfd.c: Likewise.
4641         * lib/dirfd.h: Likewise.
4642         * lib/dirname.c: Likewise.
4643         * lib/dirname.h: Likewise.
4644         * lib/dummy.c: Likewise.
4645         * lib/dup-safer.c: Likewise.
4646         * lib/dup2.c: Likewise.
4647         * lib/eealloc.h: Likewise.
4648         * lib/error.c: Likewise.
4649         * lib/error.h: Likewise.
4650         * lib/euidaccess.c: Likewise.
4651         * lib/exclude.c: Likewise.
4652         * lib/exclude.h: Likewise.
4653         * lib/execute.c: Likewise.
4654         * lib/execute.h: Likewise.
4655         * lib/exitfail.c: Likewise.
4656         * lib/exitfail.h: Likewise.
4657         * lib/expl.c: Likewise.
4658         * lib/fatal-signal.c: Likewise.
4659         * lib/fatal-signal.h: Likewise.
4660         * lib/fbufmode.c: Likewise.
4661         * lib/fbufmode.h: Likewise.
4662         * lib/fchdir.c: Likewise.
4663         * lib/fchmodat.c: Likewise.
4664         * lib/fchownat.c: Likewise.
4665         * lib/fcntl--.h: Likewise.
4666         * lib/fcntl-safer.h: Likewise.
4667         * lib/fcntl.in.h: Likewise.
4668         * lib/fd-safer.c: Likewise.
4669         * lib/fflush.c: Likewise.
4670         * lib/file-has-acl.c: Likewise.
4671         * lib/file-set.c: Likewise.
4672         * lib/file-type.c: Likewise.
4673         * lib/file-type.h: Likewise.
4674         * lib/fileblocks.c: Likewise.
4675         * lib/filemode.c: Likewise.
4676         * lib/filemode.h: Likewise.
4677         * lib/filename.h: Likewise.
4678         * lib/filenamecat.c: Likewise.
4679         * lib/filenamecat.h: Likewise.
4680         * lib/findprog.c: Likewise.
4681         * lib/findprog.h: Likewise.
4682         * lib/float.in.h: Likewise.
4683         * lib/floor.c: Likewise.
4684         * lib/floorf.c: Likewise.
4685         * lib/floorl.c: Likewise.
4686         * lib/fopen-safer.c: Likewise.
4687         * lib/fopen.c: Likewise.
4688         * lib/fpending.c: Likewise.
4689         * lib/fpending.h: Likewise.
4690         * lib/fprintf.c: Likewise.
4691         * lib/fprintftime.h: Likewise.
4692         * lib/fpucw.h: Likewise.
4693         * lib/fpurge.c: Likewise.
4694         * lib/fpurge.h: Likewise.
4695         * lib/freadable.c: Likewise.
4696         * lib/freadable.h: Likewise.
4697         * lib/freadahead.c: Likewise.
4698         * lib/freadahead.h: Likewise.
4699         * lib/freading.c: Likewise.
4700         * lib/freading.h: Likewise.
4701         * lib/free.c: Likewise.
4702         * lib/freopen.c: Likewise.
4703         * lib/frexp.c: Likewise.
4704         * lib/frexpl.c: Likewise.
4705         * lib/fseek.c: Likewise.
4706         * lib/fseterr.c: Likewise.
4707         * lib/fseterr.h: Likewise.
4708         * lib/fstatat.c: Likewise.
4709         * lib/fstrcmp.c: Likewise.
4710         * lib/fstrcmp.h: Likewise.
4711         * lib/fsusage.c: Likewise.
4712         * lib/fsusage.h: Likewise.
4713         * lib/ftell.c: Likewise.
4714         * lib/ftello.c: Likewise.
4715         * lib/fts-cycle.c: Likewise.
4716         * lib/fts.c: Likewise.
4717         * lib/fts_.h: Likewise.
4718         * lib/full-read.c: Likewise.
4719         * lib/full-read.h: Likewise.
4720         * lib/full-write.c: Likewise.
4721         * lib/full-write.h: Likewise.
4722         * lib/fwritable.c: Likewise.
4723         * lib/fwritable.h: Likewise.
4724         * lib/fwriteerror.c: Likewise.
4725         * lib/fwriteerror.h: Likewise.
4726         * lib/fwriting.c: Likewise.
4727         * lib/fwriting.h: Likewise.
4728         * lib/gcd.c: Likewise.
4729         * lib/gcd.h: Likewise.
4730         * lib/getcwd.c: Likewise.
4731         * lib/getdate.h: Likewise.
4732         * lib/getdate.y: Likewise.
4733         * lib/getdomainname.c: Likewise.
4734         * lib/getdomainname.h: Likewise.
4735         * lib/getgroups.c: Likewise.
4736         * lib/gethostname.c: Likewise.
4737         * lib/gethrxtime.c: Likewise.
4738         * lib/gethrxtime.h: Likewise.
4739         * lib/getloadavg.c: Likewise.
4740         * lib/getndelim2.c: Likewise.
4741         * lib/getndelim2.h: Likewise.
4742         * lib/getnline.c: Likewise.
4743         * lib/getnline.h: Likewise.
4744         * lib/getopt.c: Likewise.
4745         * lib/getopt.in.h: Likewise.
4746         * lib/getopt1.c: Likewise.
4747         * lib/getopt_int.h: Likewise.
4748         * lib/getpagesize.h: Likewise.
4749         * lib/getsubopt.c: Likewise.
4750         * lib/gettime.c: Likewise.
4751         * lib/getugroups.c: Likewise.
4752         * lib/getugroups.h: Likewise.
4753         * lib/getusershell.c: Likewise.
4754         * lib/gl_anyavltree_list1.h: Likewise.
4755         * lib/gl_anyavltree_list2.h: Likewise.
4756         * lib/gl_anyhash_list1.h: Likewise.
4757         * lib/gl_anyhash_list2.h: Likewise.
4758         * lib/gl_anylinked_list1.h: Likewise.
4759         * lib/gl_anylinked_list2.h: Likewise.
4760         * lib/gl_anyrbtree_list1.h: Likewise.
4761         * lib/gl_anyrbtree_list2.h: Likewise.
4762         * lib/gl_anytree_list1.h: Likewise.
4763         * lib/gl_anytree_list2.h: Likewise.
4764         * lib/gl_anytree_oset.h: Likewise.
4765         * lib/gl_anytreehash_list1.h: Likewise.
4766         * lib/gl_anytreehash_list2.h: Likewise.
4767         * lib/gl_array_list.c: Likewise.
4768         * lib/gl_array_list.h: Likewise.
4769         * lib/gl_array_oset.c: Likewise.
4770         * lib/gl_array_oset.h: Likewise.
4771         * lib/gl_avltree_list.c: Likewise.
4772         * lib/gl_avltree_list.h: Likewise.
4773         * lib/gl_avltree_oset.c: Likewise.
4774         * lib/gl_avltree_oset.h: Likewise.
4775         * lib/gl_avltreehash_list.c: Likewise.
4776         * lib/gl_avltreehash_list.h: Likewise.
4777         * lib/gl_carray_list.c: Likewise.
4778         * lib/gl_carray_list.h: Likewise.
4779         * lib/gl_linked_list.c: Likewise.
4780         * lib/gl_linked_list.h: Likewise.
4781         * lib/gl_linkedhash_list.c: Likewise.
4782         * lib/gl_linkedhash_list.h: Likewise.
4783         * lib/gl_list.c: Likewise.
4784         * lib/gl_list.h: Likewise.
4785         * lib/gl_oset.c: Likewise.
4786         * lib/gl_oset.h: Likewise.
4787         * lib/gl_rbtree_list.c: Likewise.
4788         * lib/gl_rbtree_list.h: Likewise.
4789         * lib/gl_rbtree_oset.c: Likewise.
4790         * lib/gl_rbtree_oset.h: Likewise.
4791         * lib/gl_rbtreehash_list.c: Likewise.
4792         * lib/gl_rbtreehash_list.h: Likewise.
4793         * lib/gl_sublist.c: Likewise.
4794         * lib/gl_sublist.h: Likewise.
4795         * lib/group-member.c: Likewise.
4796         * lib/group-member.h: Likewise.
4797         * lib/hard-locale.c: Likewise.
4798         * lib/hard-locale.h: Likewise.
4799         * lib/hash-pjw.c: Likewise.
4800         * lib/hash-pjw.h: Likewise.
4801         * lib/hash-triple.c: Likewise.
4802         * lib/hash.c: Likewise.
4803         * lib/hash.h: Likewise.
4804         * lib/human.c: Likewise.
4805         * lib/human.h: Likewise.
4806         * lib/i-ring.c: Likewise.
4807         * lib/i-ring.h: Likewise.
4808         * lib/idcache.c: Likewise.
4809         * lib/imaxabs.c: Likewise.
4810         * lib/imaxdiv.c: Likewise.
4811         * lib/inet_pton.c: Likewise.
4812         * lib/inet_pton.h: Likewise.
4813         * lib/intprops.h: Likewise.
4814         * lib/inttostr.c: Likewise.
4815         * lib/inttostr.h: Likewise.
4816         * lib/inttypes.in.h: Likewise.
4817         * lib/isapipe.c: Likewise.
4818         * lib/isdir.c: Likewise.
4819         * lib/isnan.c: Likewise.
4820         * lib/isnan.h: Likewise.
4821         * lib/isnanf.c: Likewise.
4822         * lib/isnanf.h: Likewise.
4823         * lib/isnanl-nolibm.h: Likewise.
4824         * lib/isnanl.c: Likewise.
4825         * lib/isnanl.h: Likewise.
4826         * lib/javacomp.c: Likewise.
4827         * lib/javacomp.h: Likewise.
4828         * lib/javaexec.c: Likewise.
4829         * lib/javaexec.h: Likewise.
4830         * lib/javaversion.c: Likewise.
4831         * lib/javaversion.h: Likewise.
4832         * lib/javaversion.java: Likewise.
4833         * lib/lbrkprop.h: Likewise.
4834         * lib/lchmod.h: Likewise.
4835         * lib/lchown.c: Likewise.
4836         * lib/ldexpl.c: Likewise.
4837         * lib/linebreak.c: Likewise.
4838         * lib/linebreak.h: Likewise.
4839         * lib/linebuffer.c: Likewise.
4840         * lib/linebuffer.h: Likewise.
4841         * lib/locale.in.h: Likewise.
4842         * lib/logl.c: Likewise.
4843         * lib/long-options.c: Likewise.
4844         * lib/long-options.h: Likewise.
4845         * lib/lstat.c: Likewise.
4846         * lib/lstat.h: Likewise.
4847         * lib/math.in.h: Likewise.
4848         * lib/mbchar.c: Likewise.
4849         * lib/mbchar.h: Likewise.
4850         * lib/mbfile.h: Likewise.
4851         * lib/mbiter.h: Likewise.
4852         * lib/mbscasecmp.c: Likewise.
4853         * lib/mbscasestr.c: Likewise.
4854         * lib/mbschr.c: Likewise.
4855         * lib/mbscspn.c: Likewise.
4856         * lib/mbslen.c: Likewise.
4857         * lib/mbsncasecmp.c: Likewise.
4858         * lib/mbsnlen.c: Likewise.
4859         * lib/mbspbrk.c: Likewise.
4860         * lib/mbspcasecmp.c: Likewise.
4861         * lib/mbsrchr.c: Likewise.
4862         * lib/mbssep.c: Likewise.
4863         * lib/mbsspn.c: Likewise.
4864         * lib/mbsstr.c: Likewise.
4865         * lib/mbstok_r.c: Likewise.
4866         * lib/mbswidth.c: Likewise.
4867         * lib/mbswidth.h: Likewise.
4868         * lib/mbuiter.h: Likewise.
4869         * lib/memcasecmp.c: Likewise.
4870         * lib/memcasecmp.h: Likewise.
4871         * lib/memchr.c: Likewise.
4872         * lib/memcmp.c: Likewise.
4873         * lib/memcoll.c: Likewise.
4874         * lib/memcoll.h: Likewise.
4875         * lib/memcpy.c: Likewise.
4876         * lib/memrchr.c: Likewise.
4877         * lib/mkancesdirs.c: Likewise.
4878         * lib/mkdir-p.c: Likewise.
4879         * lib/mkdir-p.h: Likewise.
4880         * lib/mkdir.c: Likewise.
4881         * lib/mkdirat.c: Likewise.
4882         * lib/mkdtemp.c: Likewise.
4883         * lib/mkstemp-safer.c: Likewise.
4884         * lib/mkstemp.c: Likewise.
4885         * lib/modechange.c: Likewise.
4886         * lib/modechange.h: Likewise.
4887         * lib/mountlist.c: Likewise.
4888         * lib/mountlist.h: Likewise.
4889         * lib/mpsort.c: Likewise.
4890         * lib/nanosleep.c: Likewise.
4891         * lib/obstack.c: Likewise.
4892         * lib/obstack.h: Likewise.
4893         * lib/open-safer.c: Likewise.
4894         * lib/open.c: Likewise.
4895         * lib/openat-die.c: Likewise.
4896         * lib/openat-priv.h: Likewise.
4897         * lib/openat-proc.c: Likewise.
4898         * lib/openat.c: Likewise.
4899         * lib/openat.h: Likewise.
4900         * lib/pagealign_alloc.c: Likewise.
4901         * lib/pagealign_alloc.h: Likewise.
4902         * lib/physmem.c: Likewise.
4903         * lib/physmem.h: Likewise.
4904         * lib/pipe-safer.c: Likewise.
4905         * lib/pipe.c: Likewise.
4906         * lib/pipe.h: Likewise.
4907         * lib/posixtm.c: Likewise.
4908         * lib/posixtm.h: Likewise.
4909         * lib/posixver.c: Likewise.
4910         * lib/printf-frexp.c: Likewise.
4911         * lib/printf-frexp.h: Likewise.
4912         * lib/printf-frexpl.c: Likewise.
4913         * lib/printf-frexpl.h: Likewise.
4914         * lib/printf.c: Likewise.
4915         * lib/progname.c: Likewise.
4916         * lib/progname.h: Likewise.
4917         * lib/progreloc.c: Likewise.
4918         * lib/putenv.c: Likewise.
4919         * lib/quote.c: Likewise.
4920         * lib/quote.h: Likewise.
4921         * lib/quotearg.c: Likewise.
4922         * lib/quotearg.h: Likewise.
4923         * lib/raise.c: Likewise.
4924         * lib/readline.c: Likewise.
4925         * lib/readline.h: Likewise.
4926         * lib/readlink.c: Likewise.
4927         * lib/readtokens.c: Likewise.
4928         * lib/readtokens.h: Likewise.
4929         * lib/readtokens0.c: Likewise.
4930         * lib/readtokens0.h: Likewise.
4931         * lib/readutmp.c: Likewise.
4932         * lib/readutmp.h: Likewise.
4933         * lib/realloc.c: Likewise.
4934         * lib/relocwrapper.c: Likewise.
4935         * lib/rename-dest-slash.c: Likewise.
4936         * lib/rename.c: Likewise.
4937         * lib/rmdir.c: Likewise.
4938         * lib/rpmatch.c: Likewise.
4939         * lib/safe-read.c: Likewise.
4940         * lib/safe-read.h: Likewise.
4941         * lib/safe-write.c: Likewise.
4942         * lib/safe-write.h: Likewise.
4943         * lib/same-inode.h: Likewise.
4944         * lib/same.c: Likewise.
4945         * lib/same.h: Likewise.
4946         * lib/save-cwd.c: Likewise.
4947         * lib/save-cwd.h: Likewise.
4948         * lib/savedir.c: Likewise.
4949         * lib/savedir.h: Likewise.
4950         * lib/savewd.c: Likewise.
4951         * lib/savewd.h: Likewise.
4952         * lib/search.in.h: Likewise.
4953         * lib/setenv.c: Likewise.
4954         * lib/setenv.h: Likewise.
4955         * lib/settime.c: Likewise.
4956         * lib/sh-quote.c: Likewise.
4957         * lib/sh-quote.h: Likewise.
4958         * lib/sig2str.c: Likewise.
4959         * lib/sig2str.h: Likewise.
4960         * lib/signal.in.h: Likewise.
4961         * lib/signbitd.c: Likewise.
4962         * lib/signbitf.c: Likewise.
4963         * lib/signbitl.c: Likewise.
4964         * lib/sigprocmask.c: Likewise.
4965         * lib/sincosl.c: Likewise.
4966         * lib/sleep.c: Likewise.
4967         * lib/sprintf.c: Likewise.
4968         * lib/sqrtl.c: Likewise.
4969         * lib/stat-time.h: Likewise.
4970         * lib/stdio--.h: Likewise.
4971         * lib/stdio-safer.h: Likewise.
4972         * lib/stdlib--.h: Likewise.
4973         * lib/stdlib-safer.h: Likewise.
4974         * lib/stdlib.in.h: Likewise.
4975         * lib/stpcpy.c: Likewise.
4976         * lib/stpncpy.c: Likewise.
4977         * lib/strchrnul.c: Likewise.
4978         * lib/strcspn.c: Likewise.
4979         * lib/strerror.c: Likewise.
4980         * lib/strftime.c: Likewise.
4981         * lib/strftime.h: Likewise.
4982         * lib/striconveh.c: Likewise.
4983         * lib/striconveh.h: Likewise.
4984         * lib/striconveha.c: Likewise.
4985         * lib/striconveha.h: Likewise.
4986         * lib/stripslash.c: Likewise.
4987         * lib/strnlen1.c: Likewise.
4988         * lib/strnlen1.h: Likewise.
4989         * lib/strtod.c: Likewise.
4990         * lib/strtoimax.c: Likewise.
4991         * lib/strtok_r.c: Likewise.
4992         * lib/strtol.c: Likewise.
4993         * lib/strtoll.c: Likewise.
4994         * lib/strtoul.c: Likewise.
4995         * lib/strtoull.c: Likewise.
4996         * lib/sysexits.in.h: Likewise.
4997         * lib/tempname.c: Likewise.
4998         * lib/tempname.h: Likewise.
4999         * lib/timespec.h: Likewise.
5000         * lib/tls.c: Likewise.
5001         * lib/tls.h: Likewise.
5002         * lib/tmpdir.c: Likewise.
5003         * lib/tmpdir.h: Likewise.
5004         * lib/tmpfile-safer.c: Likewise.
5005         * lib/tmpfile.c: Likewise.
5006         * lib/trigl.c: Likewise.
5007         * lib/trigl.h: Likewise.
5008         * lib/trim.c: Likewise.
5009         * lib/trim.h: Likewise.
5010         * lib/trunc.c: Likewise.
5011         * lib/truncf.c: Likewise.
5012         * lib/truncl.c: Likewise.
5013         * lib/tsearch.c: Likewise.
5014         * lib/unicodeio.c: Likewise.
5015         * lib/unicodeio.h: Likewise.
5016         * lib/unistd--.h: Likewise.
5017         * lib/unistd-safer.h: Likewise.
5018         * lib/unistdio/ulc-fprintf.c: Likewise.
5019         * lib/unistdio/ulc-vfprintf.c: Likewise.
5020         * lib/unlinkdir.c: Likewise.
5021         * lib/unlinkdir.h: Likewise.
5022         * lib/unlocked-io.h: Likewise.
5023         * lib/unsetenv.c: Likewise.
5024         * lib/userspec.c: Likewise.
5025         * lib/utime.c: Likewise.
5026         * lib/utimecmp.c: Likewise.
5027         * lib/utimecmp.h: Likewise.
5028         * lib/utimens.c: Likewise.
5029         * lib/verify.h: Likewise.
5030         * lib/verror.c: Likewise.
5031         * lib/verror.h: Likewise.
5032         * lib/version-etc-fsf.c: Likewise.
5033         * lib/version-etc.c: Likewise.
5034         * lib/version-etc.h: Likewise.
5035         * lib/vfprintf.c: Likewise.
5036         * lib/vprintf.c: Likewise.
5037         * lib/vsprintf.c: Likewise.
5038         * lib/w32spawn.h: Likewise.
5039         * lib/wait-process.c: Likewise.
5040         * lib/wait-process.h: Likewise.
5041         * lib/wcwidth.c: Likewise.
5042         * lib/write-any-file.c: Likewise.
5043         * lib/xalloc-die.c: Likewise.
5044         * lib/xalloc.h: Likewise.
5045         * lib/xasprintf.c: Likewise.
5046         * lib/xgetcwd.c: Likewise.
5047         * lib/xgetcwd.h: Likewise.
5048         * lib/xgetdomainname.c: Likewise.
5049         * lib/xgetdomainname.h: Likewise.
5050         * lib/xgethostname.c: Likewise.
5051         * lib/xmalloc.c: Likewise.
5052         * lib/xmalloca.c: Likewise.
5053         * lib/xmalloca.h: Likewise.
5054         * lib/xmemcoll.c: Likewise.
5055         * lib/xnanosleep.c: Likewise.
5056         * lib/xreadlink.c: Likewise.
5057         * lib/xreadlink.h: Likewise.
5058         * lib/xsetenv.c: Likewise.
5059         * lib/xsetenv.h: Likewise.
5060         * lib/xstriconv.c: Likewise.
5061         * lib/xstriconv.h: Likewise.
5062         * lib/xstrndup.c: Likewise.
5063         * lib/xstrndup.h: Likewise.
5064         * lib/xstrtod.c: Likewise.
5065         * lib/xstrtod.h: Likewise.
5066         * lib/xstrtol-error.c: Likewise.
5067         * lib/xstrtol.c: Likewise.
5068         * lib/xstrtol.h: Likewise.
5069         * lib/xtime.h: Likewise.
5070         * lib/xvasprintf.c: Likewise.
5071         * lib/xvasprintf.h: Likewise.
5072         * lib/yesno.c: Likewise.
5073         * lib/yesno.h: Likewise.
5074         * posix-modules: Likewise.
5075         * tests/test-alloca-opt.c: Likewise.
5076         * tests/test-arcfour.c: Likewise.
5077         * tests/test-arctwo.c: Likewise.
5078         * tests/test-argmatch.c: Likewise.
5079         * tests/test-argp-2.sh: Likewise.
5080         * tests/test-argp.c: Likewise.
5081         * tests/test-arpa_inet.c: Likewise.
5082         * tests/test-array_list.c: Likewise.
5083         * tests/test-array_oset.c: Likewise.
5084         * tests/test-atexit.c: Likewise.
5085         * tests/test-avltree_list.c: Likewise.
5086         * tests/test-avltree_oset.c: Likewise.
5087         * tests/test-avltreehash_list.c: Likewise.
5088         * tests/test-base64.c: Likewise.
5089         * tests/test-binary-io.c: Likewise.
5090         * tests/test-byteswap.c: Likewise.
5091         * tests/test-c-ctype.c: Likewise.
5092         * tests/test-c-strcasecmp.c: Likewise.
5093         * tests/test-c-strcasestr.c: Likewise.
5094         * tests/test-c-strncasecmp.c: Likewise.
5095         * tests/test-c-strstr.c: Likewise.
5096         * tests/test-canonicalize-lgpl.c: Likewise.
5097         * tests/test-canonicalize.c: Likewise.
5098         * tests/test-carray_list.c: Likewise.
5099         * tests/test-ceilf.c: Likewise.
5100         * tests/test-ceill.c: Likewise.
5101         * tests/test-count-one-bits.c: Likewise.
5102         * tests/test-crc.c: Likewise.
5103         * tests/test-dirname.c: Likewise.
5104         * tests/test-fbufmode.c: Likewise.
5105         * tests/test-fcntl.c: Likewise.
5106         * tests/test-fflush.c: Likewise.
5107         * tests/test-floorf.c: Likewise.
5108         * tests/test-floorl.c: Likewise.
5109         * tests/test-fopen.c: Likewise.
5110         * tests/test-fprintf-posix.c: Likewise.
5111         * tests/test-fprintf-posix.h: Likewise.
5112         * tests/test-fpurge.c: Likewise.
5113         * tests/test-freadable.c: Likewise.
5114         * tests/test-freadahead.c: Likewise.
5115         * tests/test-freading.c: Likewise.
5116         * tests/test-freopen.c: Likewise.
5117         * tests/test-frexp.c: Likewise.
5118         * tests/test-frexpl.c: Likewise.
5119         * tests/test-fseek.c: Likewise.
5120         * tests/test-fseeko.c: Likewise.
5121         * tests/test-fseterr.c: Likewise.
5122         * tests/test-fstrcmp.c: Likewise.
5123         * tests/test-ftell.c: Likewise.
5124         * tests/test-ftello.c: Likewise.
5125         * tests/test-fwritable.c: Likewise.
5126         * tests/test-fwriting.c: Likewise.
5127         * tests/test-getaddrinfo.c: Likewise.
5128         * tests/test-getpass.c: Likewise.
5129         * tests/test-gettimeofday.c: Likewise.
5130         * tests/test-hmac-md5.c: Likewise.
5131         * tests/test-hmac-sha1.c: Likewise.
5132         * tests/test-iconv.c: Likewise.
5133         * tests/test-iconvme.c: Likewise.
5134         * tests/test-inttypes.c: Likewise.
5135         * tests/test-isnan.c: Likewise.
5136         * tests/test-isnanf.c: Likewise.
5137         * tests/test-isnanl-nolibm.c: Likewise.
5138         * tests/test-isnanl.c: Likewise.
5139         * tests/test-isnanl.h: Likewise.
5140         * tests/test-ldexpl.c: Likewise.
5141         * tests/test-linked_list.c: Likewise.
5142         * tests/test-linkedhash_list.c: Likewise.
5143         * tests/test-locale.c: Likewise.
5144         * tests/test-localename.c: Likewise.
5145         * tests/test-lock.c: Likewise.
5146         * tests/test-lseek.c: Likewise.
5147         * tests/test-malloca.c: Likewise.
5148         * tests/test-math.c: Likewise.
5149         * tests/test-mbscasecmp.c: Likewise.
5150         * tests/test-mbscasestr1.c: Likewise.
5151         * tests/test-mbscasestr2.c: Likewise.
5152         * tests/test-mbscasestr3.c: Likewise.
5153         * tests/test-mbscasestr4.c: Likewise.
5154         * tests/test-mbschr.c: Likewise.
5155         * tests/test-mbscspn.c: Likewise.
5156         * tests/test-mbsncasecmp.c: Likewise.
5157         * tests/test-mbspbrk.c: Likewise.
5158         * tests/test-mbspcasecmp.c: Likewise.
5159         * tests/test-mbsrchr.c: Likewise.
5160         * tests/test-mbsspn.c: Likewise.
5161         * tests/test-mbsstr1.c: Likewise.
5162         * tests/test-mbsstr2.c: Likewise.
5163         * tests/test-mbsstr3.c: Likewise.
5164         * tests/test-md5.c: Likewise.
5165         * tests/test-memmem.c: Likewise.
5166         * tests/test-netinet_in.c: Likewise.
5167         * tests/test-open.c: Likewise.
5168         * tests/test-printf-frexp.c: Likewise.
5169         * tests/test-printf-frexpl.c: Likewise.
5170         * tests/test-printf-posix.c: Likewise.
5171         * tests/test-printf-posix.h: Likewise.
5172         * tests/test-rbtree_list.c: Likewise.
5173         * tests/test-rbtree_oset.c: Likewise.
5174         * tests/test-rbtreehash_list.c: Likewise.
5175         * tests/test-read-file.c: Likewise.
5176         * tests/test-rijndael.c: Likewise.
5177         * tests/test-search.c: Likewise.
5178         * tests/test-signbit.c: Likewise.
5179         * tests/test-sleep.c: Likewise.
5180         * tests/test-snprintf-posix.c: Likewise.
5181         * tests/test-snprintf-posix.h: Likewise.
5182         * tests/test-snprintf.c: Likewise.
5183         * tests/test-sprintf-posix.c: Likewise.
5184         * tests/test-sprintf-posix.h: Likewise.
5185         * tests/test-stat-time.c: Likewise.
5186         * tests/test-stdbool.c: Likewise.
5187         * tests/test-stdint.c: Likewise.
5188         * tests/test-stdio.c: Likewise.
5189         * tests/test-stdlib.c: Likewise.
5190         * tests/test-stpncpy.c: Likewise.
5191         * tests/test-strcasestr.c: Likewise.
5192         * tests/test-striconv.c: Likewise.
5193         * tests/test-striconveh.c: Likewise.
5194         * tests/test-striconveha.c: Likewise.
5195         * tests/test-string.c: Likewise.
5196         * tests/test-sys_select.c: Likewise.
5197         * tests/test-sys_socket.c: Likewise.
5198         * tests/test-sys_stat.c: Likewise.
5199         * tests/test-sys_time.c: Likewise.
5200         * tests/test-sysexits.c: Likewise.
5201         * tests/test-time.c: Likewise.
5202         * tests/test-tls.c: Likewise.
5203         * tests/test-trunc.c: Likewise.
5204         * tests/test-truncf.c: Likewise.
5205         * tests/test-truncl.c: Likewise.
5206         * tests/test-unistd.c: Likewise.
5207         * tests/test-vasnprintf-posix.c: Likewise.
5208         * tests/test-vasnprintf-posix2.c: Likewise.
5209         * tests/test-vasnprintf.c: Likewise.
5210         * tests/test-vasprintf-posix.c: Likewise.
5211         * tests/test-vasprintf.c: Likewise.
5212         * tests/test-verify.c: Likewise.
5213         * tests/test-vfprintf-posix.c: Likewise.
5214         * tests/test-vprintf-posix.c: Likewise.
5215         * tests/test-vsnprintf-posix.c: Likewise.
5216         * tests/test-vsnprintf.c: Likewise.
5217         * tests/test-vsprintf-posix.c: Likewise.
5218         * tests/test-wchar.c: Likewise.
5219         * tests/test-wctype.c: Likewise.
5220         * tests/test-wcwidth.c: Likewise.
5221         * tests/test-xstrtol.c: Likewise.
5222         * tests/test-xvasprintf.c: Likewise.
5223         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5224         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5225         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5226         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5227         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5228         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5229         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5230         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5231         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5232         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5233         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5234         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5235         * tests/uniname/test-uninames.c: Likewise.
5236         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5237         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
5238         * tests/unistdio/test-u16-printf1.h: Likewise.
5239         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5240         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5241         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5242         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5243         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5244         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5245         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5246         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
5247         * tests/unistdio/test-u32-printf1.h: Likewise.
5248         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5249         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5250         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5251         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5252         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5253         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5254         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5255         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
5256         * tests/unistdio/test-u8-printf1.h: Likewise.
5257         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5258         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5259         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5260         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5261         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5262         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5263         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5264         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
5265         * tests/unistdio/test-ulc-printf1.h: Likewise.
5266         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5267         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5268         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5269         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5270         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5271         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5272         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5273         * tests/uniwidth/test-u16-width.c: Likewise.
5274         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5275         * tests/uniwidth/test-u32-width.c: Likewise.
5276         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5277         * tests/uniwidth/test-u8-width.c: Likewise.
5278         * tests/uniwidth/test-uc_width.c: Likewise.
5279         * config/srclist-update: Likewise.
5280         (fixlicense): Update to GPLv3+.
5281
5282         Change copyright notice from LGPLv2.1+ to LGPLv3+.
5283         * tests/test-tsearch.c: Change copyright notice.
5284
5285         Change copyright notice from LGPLv2.0+ to LGPLv3+.
5286         * lib/c-strcaseeq.h: Change copyright notice.
5287         * lib/streq.h: Likewise.
5288         * lib/uniconv.h: Likewise.
5289         * lib/uniconv/u-conv-from-enc.h: Likewise.
5290         * lib/uniconv/u-conv-to-enc.h: Likewise.
5291         * lib/uniconv/u-strconv-from-enc.h: Likewise.
5292         * lib/uniconv/u-strconv-to-enc.h: Likewise.
5293         * lib/uniconv/u16-conv-from-enc.c: Likewise.
5294         * lib/uniconv/u16-conv-to-enc.c: Likewise.
5295         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
5296         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
5297         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
5298         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
5299         * lib/uniconv/u32-conv-from-enc.c: Likewise.
5300         * lib/uniconv/u32-conv-to-enc.c: Likewise.
5301         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
5302         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
5303         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
5304         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
5305         * lib/uniconv/u8-conv-from-enc.c: Likewise.
5306         * lib/uniconv/u8-conv-to-enc.c: Likewise.
5307         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
5308         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
5309         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
5310         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
5311         * lib/uniname.h: Likewise.
5312         * lib/uniname/uniname.c: Likewise.
5313         * lib/unistdio.h: Likewise.
5314         * lib/unistdio/u-asnprintf.h: Likewise.
5315         * lib/unistdio/u-asprintf.h: Likewise.
5316         * lib/unistdio/u-printf-args.c: Likewise.
5317         * lib/unistdio/u-printf-args.h: Likewise.
5318         * lib/unistdio/u-printf-parse.h: Likewise.
5319         * lib/unistdio/u-snprintf.h: Likewise.
5320         * lib/unistdio/u-sprintf.h: Likewise.
5321         * lib/unistdio/u-vasprintf.h: Likewise.
5322         * lib/unistdio/u-vsnprintf.h: Likewise.
5323         * lib/unistdio/u-vsprintf.h: Likewise.
5324         * lib/unistdio/u16-asnprintf.c: Likewise.
5325         * lib/unistdio/u16-asprintf.c: Likewise.
5326         * lib/unistdio/u16-printf-parse.c: Likewise.
5327         * lib/unistdio/u16-snprintf.c: Likewise.
5328         * lib/unistdio/u16-sprintf.c: Likewise.
5329         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
5330         * lib/unistdio/u16-u16-asprintf.c: Likewise.
5331         * lib/unistdio/u16-u16-snprintf.c: Likewise.
5332         * lib/unistdio/u16-u16-sprintf.c: Likewise.
5333         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
5334         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
5335         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
5336         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
5337         * lib/unistdio/u16-vasnprintf.c: Likewise.
5338         * lib/unistdio/u16-vasprintf.c: Likewise.
5339         * lib/unistdio/u16-vsnprintf.c: Likewise.
5340         * lib/unistdio/u16-vsprintf.c: Likewise.
5341         * lib/unistdio/u32-asnprintf.c: Likewise.
5342         * lib/unistdio/u32-asprintf.c: Likewise.
5343         * lib/unistdio/u32-printf-parse.c: Likewise.
5344         * lib/unistdio/u32-snprintf.c: Likewise.
5345         * lib/unistdio/u32-sprintf.c: Likewise.
5346         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
5347         * lib/unistdio/u32-u32-asprintf.c: Likewise.
5348         * lib/unistdio/u32-u32-snprintf.c: Likewise.
5349         * lib/unistdio/u32-u32-sprintf.c: Likewise.
5350         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
5351         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
5352         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
5353         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
5354         * lib/unistdio/u32-vasnprintf.c: Likewise.
5355         * lib/unistdio/u32-vasprintf.c: Likewise.
5356         * lib/unistdio/u32-vsnprintf.c: Likewise.
5357         * lib/unistdio/u32-vsprintf.c: Likewise.
5358         * lib/unistdio/u8-asnprintf.c: Likewise.
5359         * lib/unistdio/u8-asprintf.c: Likewise.
5360         * lib/unistdio/u8-printf-parse.c: Likewise.
5361         * lib/unistdio/u8-snprintf.c: Likewise.
5362         * lib/unistdio/u8-sprintf.c: Likewise.
5363         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
5364         * lib/unistdio/u8-u8-asprintf.c: Likewise.
5365         * lib/unistdio/u8-u8-snprintf.c: Likewise.
5366         * lib/unistdio/u8-u8-sprintf.c: Likewise.
5367         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
5368         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
5369         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
5370         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
5371         * lib/unistdio/u8-vasnprintf.c: Likewise.
5372         * lib/unistdio/u8-vasprintf.c: Likewise.
5373         * lib/unistdio/u8-vsnprintf.c: Likewise.
5374         * lib/unistdio/u8-vsprintf.c: Likewise.
5375         * lib/unistdio/ulc-asnprintf.c: Likewise.
5376         * lib/unistdio/ulc-asprintf.c: Likewise.
5377         * lib/unistdio/ulc-printf-parse.c: Likewise.
5378         * lib/unistdio/ulc-snprintf.c: Likewise.
5379         * lib/unistdio/ulc-sprintf.c: Likewise.
5380         * lib/unistdio/ulc-vasnprintf.c: Likewise.
5381         * lib/unistdio/ulc-vasprintf.c: Likewise.
5382         * lib/unistdio/ulc-vsnprintf.c: Likewise.
5383         * lib/unistdio/ulc-vsprintf.c: Likewise.
5384         * lib/unistr.h: Likewise.
5385         * lib/unistr/u-cpy-alloc.h: Likewise.
5386         * lib/unistr/u-cpy.h: Likewise.
5387         * lib/unistr/u-endswith.h: Likewise.
5388         * lib/unistr/u-move.h: Likewise.
5389         * lib/unistr/u-set.h: Likewise.
5390         * lib/unistr/u-startswith.h: Likewise.
5391         * lib/unistr/u-stpcpy.h: Likewise.
5392         * lib/unistr/u-stpncpy.h: Likewise.
5393         * lib/unistr/u-strcat.h: Likewise.
5394         * lib/unistr/u-strcpy.h: Likewise.
5395         * lib/unistr/u-strcspn.h: Likewise.
5396         * lib/unistr/u-strdup.h: Likewise.
5397         * lib/unistr/u-strlen.h: Likewise.
5398         * lib/unistr/u-strncat.h: Likewise.
5399         * lib/unistr/u-strncpy.h: Likewise.
5400         * lib/unistr/u-strnlen.h: Likewise.
5401         * lib/unistr/u-strpbrk.h: Likewise.
5402         * lib/unistr/u-strspn.h: Likewise.
5403         * lib/unistr/u-strstr.h: Likewise.
5404         * lib/unistr/u-strtok.h: Likewise.
5405         * lib/unistr/u16-check.c: Likewise.
5406         * lib/unistr/u16-chr.c: Likewise.
5407         * lib/unistr/u16-cmp.c: Likewise.
5408         * lib/unistr/u16-cpy-alloc.c: Likewise.
5409         * lib/unistr/u16-cpy.c: Likewise.
5410         * lib/unistr/u16-endswith.c: Likewise.
5411         * lib/unistr/u16-mblen.c: Likewise.
5412         * lib/unistr/u16-mbsnlen.c: Likewise.
5413         * lib/unistr/u16-mbtouc-aux.c: Likewise.
5414         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
5415         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
5416         * lib/unistr/u16-mbtouc.c: Likewise.
5417         * lib/unistr/u16-mbtoucr.c: Likewise.
5418         * lib/unistr/u16-move.c: Likewise.
5419         * lib/unistr/u16-next.c: Likewise.
5420         * lib/unistr/u16-prev.c: Likewise.
5421         * lib/unistr/u16-set.c: Likewise.
5422         * lib/unistr/u16-startswith.c: Likewise.
5423         * lib/unistr/u16-stpcpy.c: Likewise.
5424         * lib/unistr/u16-stpncpy.c: Likewise.
5425         * lib/unistr/u16-strcat.c: Likewise.
5426         * lib/unistr/u16-strchr.c: Likewise.
5427         * lib/unistr/u16-strcmp.c: Likewise.
5428         * lib/unistr/u16-strcpy.c: Likewise.
5429         * lib/unistr/u16-strcspn.c: Likewise.
5430         * lib/unistr/u16-strdup.c: Likewise.
5431         * lib/unistr/u16-strlen.c: Likewise.
5432         * lib/unistr/u16-strmblen.c: Likewise.
5433         * lib/unistr/u16-strmbtouc.c: Likewise.
5434         * lib/unistr/u16-strncat.c: Likewise.
5435         * lib/unistr/u16-strncmp.c: Likewise.
5436         * lib/unistr/u16-strncpy.c: Likewise.
5437         * lib/unistr/u16-strnlen.c: Likewise.
5438         * lib/unistr/u16-strpbrk.c: Likewise.
5439         * lib/unistr/u16-strrchr.c: Likewise.
5440         * lib/unistr/u16-strspn.c: Likewise.
5441         * lib/unistr/u16-strstr.c: Likewise.
5442         * lib/unistr/u16-strtok.c: Likewise.
5443         * lib/unistr/u16-to-u32.c: Likewise.
5444         * lib/unistr/u16-to-u8.c: Likewise.
5445         * lib/unistr/u16-uctomb-aux.c: Likewise.
5446         * lib/unistr/u16-uctomb.c: Likewise.
5447         * lib/unistr/u32-check.c: Likewise.
5448         * lib/unistr/u32-chr.c: Likewise.
5449         * lib/unistr/u32-cmp.c: Likewise.
5450         * lib/unistr/u32-cpy-alloc.c: Likewise.
5451         * lib/unistr/u32-cpy.c: Likewise.
5452         * lib/unistr/u32-endswith.c: Likewise.
5453         * lib/unistr/u32-mblen.c: Likewise.
5454         * lib/unistr/u32-mbsnlen.c: Likewise.
5455         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
5456         * lib/unistr/u32-mbtouc.c: Likewise.
5457         * lib/unistr/u32-mbtoucr.c: Likewise.
5458         * lib/unistr/u32-move.c: Likewise.
5459         * lib/unistr/u32-next.c: Likewise.
5460         * lib/unistr/u32-prev.c: Likewise.
5461         * lib/unistr/u32-set.c: Likewise.
5462         * lib/unistr/u32-startswith.c: Likewise.
5463         * lib/unistr/u32-stpcpy.c: Likewise.
5464         * lib/unistr/u32-stpncpy.c: Likewise.
5465         * lib/unistr/u32-strcat.c: Likewise.
5466         * lib/unistr/u32-strchr.c: Likewise.
5467         * lib/unistr/u32-strcmp.c: Likewise.
5468         * lib/unistr/u32-strcpy.c: Likewise.
5469         * lib/unistr/u32-strcspn.c: Likewise.
5470         * lib/unistr/u32-strdup.c: Likewise.
5471         * lib/unistr/u32-strlen.c: Likewise.
5472         * lib/unistr/u32-strmblen.c: Likewise.
5473         * lib/unistr/u32-strmbtouc.c: Likewise.
5474         * lib/unistr/u32-strncat.c: Likewise.
5475         * lib/unistr/u32-strncmp.c: Likewise.
5476         * lib/unistr/u32-strncpy.c: Likewise.
5477         * lib/unistr/u32-strnlen.c: Likewise.
5478         * lib/unistr/u32-strpbrk.c: Likewise.
5479         * lib/unistr/u32-strrchr.c: Likewise.
5480         * lib/unistr/u32-strspn.c: Likewise.
5481         * lib/unistr/u32-strstr.c: Likewise.
5482         * lib/unistr/u32-strtok.c: Likewise.
5483         * lib/unistr/u32-to-u16.c: Likewise.
5484         * lib/unistr/u32-to-u8.c: Likewise.
5485         * lib/unistr/u32-uctomb.c: Likewise.
5486         * lib/unistr/u8-check.c: Likewise.
5487         * lib/unistr/u8-chr.c: Likewise.
5488         * lib/unistr/u8-cmp.c: Likewise.
5489         * lib/unistr/u8-cpy-alloc.c: Likewise.
5490         * lib/unistr/u8-cpy.c: Likewise.
5491         * lib/unistr/u8-endswith.c: Likewise.
5492         * lib/unistr/u8-mblen.c: Likewise.
5493         * lib/unistr/u8-mbsnlen.c: Likewise.
5494         * lib/unistr/u8-mbtouc-aux.c: Likewise.
5495         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
5496         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
5497         * lib/unistr/u8-mbtouc.c: Likewise.
5498         * lib/unistr/u8-mbtoucr.c: Likewise.
5499         * lib/unistr/u8-move.c: Likewise.
5500         * lib/unistr/u8-next.c: Likewise.
5501         * lib/unistr/u8-prev.c: Likewise.
5502         * lib/unistr/u8-set.c: Likewise.
5503         * lib/unistr/u8-startswith.c: Likewise.
5504         * lib/unistr/u8-stpcpy.c: Likewise.
5505         * lib/unistr/u8-stpncpy.c: Likewise.
5506         * lib/unistr/u8-strcat.c: Likewise.
5507         * lib/unistr/u8-strchr.c: Likewise.
5508         * lib/unistr/u8-strcmp.c: Likewise.
5509         * lib/unistr/u8-strcpy.c: Likewise.
5510         * lib/unistr/u8-strcspn.c: Likewise.
5511         * lib/unistr/u8-strdup.c: Likewise.
5512         * lib/unistr/u8-strlen.c: Likewise.
5513         * lib/unistr/u8-strmblen.c: Likewise.
5514         * lib/unistr/u8-strmbtouc.c: Likewise.
5515         * lib/unistr/u8-strncat.c: Likewise.
5516         * lib/unistr/u8-strncmp.c: Likewise.
5517         * lib/unistr/u8-strncpy.c: Likewise.
5518         * lib/unistr/u8-strnlen.c: Likewise.
5519         * lib/unistr/u8-strpbrk.c: Likewise.
5520         * lib/unistr/u8-strrchr.c: Likewise.
5521         * lib/unistr/u8-strspn.c: Likewise.
5522         * lib/unistr/u8-strstr.c: Likewise.
5523         * lib/unistr/u8-strtok.c: Likewise.
5524         * lib/unistr/u8-to-u16.c: Likewise.
5525         * lib/unistr/u8-to-u32.c: Likewise.
5526         * lib/unistr/u8-uctomb-aux.c: Likewise.
5527         * lib/unistr/u8-uctomb.c: Likewise.
5528         * lib/unitypes.h: Likewise.
5529         * lib/uniwidth.h: Likewise.
5530         * lib/uniwidth/cjk.h: Likewise.
5531         * lib/uniwidth/u16-strwidth.c: Likewise.
5532         * lib/uniwidth/u16-width.c: Likewise.
5533         * lib/uniwidth/u32-strwidth.c: Likewise.
5534         * lib/uniwidth/u32-width.c: Likewise.
5535         * lib/uniwidth/u8-strwidth.c: Likewise.
5536         * lib/uniwidth/u8-width.c: Likewise.
5537         * lib/uniwidth/width.c: Likewise.
5538
5539 2007-10-07  Bruno Haible  <bruno@clisp.org>
5540
5541         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
5542         The file is still under LGPL (see modules/inttypes).
5543
5544 2007-10-06  Bruno Haible  <bruno@clisp.org>
5545
5546         * modules/trunc (Dependencies): Add 'extensions'.
5547         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
5548         Reported by Ben Pfaff <blp@gnu.org>.
5549
5550 2007-10-06  Bruno Haible  <bruno@clisp.org>
5551
5552         * modules/freopen-tests: New file.
5553         * tests/test-freopen.c: New file.
5554
5555         * modules/fopen-tests: New file.
5556         * tests/test-fopen.c: New file.
5557
5558         * modules/fopen: New file.
5559         * lib/fopen.c: New file.
5560         * m4/fopen.m4: New file.
5561         * modules/freopen: New file.
5562         * lib/freopen.c: New file.
5563         * m4/freopen.m4: New file.
5564         * lib/stdio.in.h (fopen, freopen): New declarations.
5565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
5566         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
5567         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
5568         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
5569         * doc/functions/fopen.texi: Mention the 'fopen' module.
5570         * doc/functions/freopen.texi: Mention the 'freopen' module.
5571
5572 2007-10-06  Bruno Haible  <bruno@clisp.org>
5573
5574         * modules/open-tests: New file.
5575         * tests/test-open.c: New file.
5576
5577         * modules/open: New file.
5578         * lib/open.c: New file.
5579         * m4/open.m4: New file.
5580         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
5581         lib/open.c does.
5582         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
5583         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
5584         macros.
5585         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
5586         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
5587         REPLACE_OPEN.
5588         * doc/functions/open.texi: Mention the 'open' module.
5589
5590 2007-10-04  Bruno Haible  <bruno@clisp.org>
5591
5592         * modules/ceill-tests: New file.
5593         * tests/test-ceill.c: New file.
5594
5595         * modules/ceill: New file.
5596         * lib/ceill.c: Replace entire file.
5597         * m4/ceill.m4: New file.
5598         * lib/math.in.h (ceill): Replace declaration.
5599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
5600         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
5601         * doc/functions/ceill.texi: Mention the 'ceill' module.
5602         * modules/mathl (Files): Remove lib/ceill.c.
5603         (Depends-on): Add ceill.
5604
5605 2007-10-04  Bruno Haible  <bruno@clisp.org>
5606
5607         * modules/ceilf-tests: New file.
5608         * tests/test-ceilf.c: New file.
5609
5610         * modules/ceilf: New file.
5611         * lib/ceil.c: New file.
5612         * lib/ceilf.c: New file.
5613         * m4/ceilf.m4: New file.
5614         * lib/math.in.h (ceilf): New declaration.
5615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
5616         HAVE_DECL_CEILF.
5617         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
5618         HAVE_DECL_CEILF.
5619         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
5620
5621 2007-10-04  Bruno Haible  <bruno@clisp.org>
5622
5623         * modules/floorl-tests: New file.
5624         * tests/test-floorl.c: New file.
5625
5626         * modules/floorl: New file.
5627         * lib/floorl.c: Replace entire file.
5628         * m4/floorl.m4: New file.
5629         * lib/math.in.h (floorl): Replace declaration.
5630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
5631         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
5632         * doc/functions/floorl.texi: Mention the 'floorl' module.
5633         * modules/mathl (Files): Remove lib/floorl.c.
5634         (Depends-on): Add floorl.
5635
5636 2007-10-04  Bruno Haible  <bruno@clisp.org>
5637
5638         * modules/floorf-tests: New file.
5639         * tests/test-floorf.c: New file.
5640
5641         * modules/floorf: New file.
5642         * lib/floor.c: New file.
5643         * lib/floorf.c: New file.
5644         * m4/floorf.m4: New file.
5645         * lib/math.in.h (floorf): New declaration.
5646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
5647         HAVE_DECL_FLOORF.
5648         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
5649         HAVE_DECL_FLOORF.
5650         * doc/functions/floorf.texi: Mention the 'floorf' module.
5651
5652 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
5653             Bruno Haible  <bruno@clisp.org>
5654
5655         Advertise for the Git server instead of the CVS server.
5656         * doc/gnulib-intro.texi (Steady Development): Mention the Git
5657         repository instead of the CVS one.
5658         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
5659         about all VCS systems generically.
5660         * doc/gnulib.texi (Introduction): Capitalize `Git'.
5661
5662 2007-10-04  Bruno Haible  <bruno@clisp.org>
5663
5664         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
5665         means.
5666         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
5667
5668 2007-10-04  Bruno Haible  <bruno@clisp.org>
5669
5670         * modules/truncl-tests: New file.
5671         * tests/test-truncl.c: New file.
5672
5673         * modules/truncl: New file.
5674         * lib/truncl.c: New file.
5675         * m4/truncl.m4: New file.
5676         * lib/math.in.h (truncl): New declaration.
5677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
5678         HAVE_DECL_TRUNCL.
5679         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
5680         HAVE_DECL_TRUNCL.
5681         * doc/functions/truncl.texi: Mention the 'truncl' module.
5682
5683 2007-10-04  Bruno Haible  <bruno@clisp.org>
5684
5685         * modules/truncf-tests: New file.
5686         * tests/test-truncf.c: New file.
5687
5688         * modules/truncf: New file.
5689         * lib/trunc.c: Make paramerizable through USE_* macros.
5690         * lib/truncf.c: New file.
5691         * m4/truncf.m4: New file.
5692         * lib/math.in.h (truncf): New declaration.
5693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
5694         HAVE_DECL_TRUNCF.
5695         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
5696         HAVE_DECL_TRUNCF.
5697         * doc/functions/truncf.texi: Mention the 'truncf' module.
5698
5699 2007-10-03  Bruno Haible  <bruno@clisp.org>
5700
5701         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
5702         augmentation also for tests modules.
5703         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
5704         * modules/atexit-tests (Makefile.am): Likewise.
5705         * modules/binary-io-tests (Makefile.am): Likewise.
5706         * modules/c-strcase-tests (Makefile.am): Likewise.
5707         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
5708         * modules/canonicalize-tests (Makefile.am): Likewise.
5709         * modules/closein-tests (Makefile.am): Likewise.
5710         * modules/fprintf-posix-tests (Makefile.am): Likewise.
5711         * modules/freadahead-tests (Makefile.am): Likewise.
5712         * modules/fseek-tests (Makefile.am): Likewise.
5713         * modules/fseeko-tests (Makefile.am): Likewise.
5714         * modules/ftell-tests (Makefile.am): Likewise.
5715         * modules/ftello-tests (Makefile.am): Likewise.
5716         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
5717         * modules/isnanl-tests (Makefile.am): Likewise.
5718         * modules/lseek-tests (Makefile.am): Likewise.
5719         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5720         * modules/mbscasestr-tests (Makefile.am): Likewise.
5721         * modules/mbschr-tests (Makefile.am): Likewise.
5722         * modules/mbscspn-tests (Makefile.am): Likewise.
5723         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5724         * modules/mbspbrk-tests (Makefile.am): Likewise.
5725         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5726         * modules/mbsrchr-tests (Makefile.am): Likewise.
5727         * modules/mbsspn-tests (Makefile.am): Likewise.
5728         * modules/mbsstr-tests (Makefile.am): Likewise.
5729         * modules/printf-posix-tests (Makefile.am): Likewise.
5730         * modules/snprintf-posix-tests (Makefile.am): Likewise.
5731         * modules/sprintf-posix-tests (Makefile.am): Likewise.
5732         * modules/tsearch-tests (Makefile.am): Likewise.
5733         * modules/uniname/uniname-tests (Makefile.am): Likewise.
5734         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
5735         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
5736         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
5737         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5738         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
5739         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
5740         * modules/vprintf-posix-tests (Makefile.am): Likewise.
5741         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
5742         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
5743         * modules/xstrtoimax-tests (Makefile.am): Likewise.
5744         * modules/xstrtol-tests (Makefile.am): Likewise.
5745         * modules/xstrtoumax-tests (Makefile.am): Likewise.
5746         * modules/yesno-tests (Makefile.am): Likewise.
5747
5748 2007-10-03  Bruno Haible  <bruno@clisp.org>
5749
5750         * modules/trunc-tests: New file.
5751         * tests/test-trunc.c: New file.
5752
5753         * modules/trunc: New file.
5754         * lib/trunc.c: New file.
5755         * m4/trunc.m4: New file.
5756         * lib/math.in.h (trunc): New declaration.
5757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
5758         HAVE_DECL_TRUNC.
5759         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
5760         HAVE_DECL_TRUNC.
5761         * doc/functions/trunc.texi: Mention the 'trunc' module.
5762
5763 2007-10-03  Bruno Haible  <bruno@clisp.org>
5764
5765         * tests/test-fpending.c: New file, mostly copied
5766         from coreutils/lib/t-fpending.c.
5767         * modules/fpending-tests: New file.
5768
5769 2007-10-03  Bruno Haible  <bruno@clisp.org>
5770
5771         Port the stdio extensions to QNX (untested).
5772         * lib/fseterr.c (fseterr): Add support for QNX.
5773         * lib/fbufmode.c (fbufmode): Likewise.
5774         * lib/freadable.c (freadable): Likewise.
5775         * lib/fwritable.c (fwritable): Likewise.
5776         * lib/freading.c (freading): Likewise.
5777         * lib/fwriting.c (fwriting): Likewise.
5778         * lib/freadahead.c (freadahed): Likewise.
5779         * lib/fpurge.c (fpurge): Likewise.
5780         * lib/fseeko.c (rpl_fseeko): Likewise.
5781
5782 2007-10-03  Bruno Haible  <bruno@clisp.org>
5783             Jim Meyering  <jim@meyering.net>
5784             Eric Blake  <ebb9@byu.net>
5785
5786         * doc/relocatable.texi: Use @command instead of @program.
5787
5788 2007-10-02  Jim Meyering  <jim@meyering.net>
5789
5790         Perform one more "_.h" -> ".in.h" substitution.
5791         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
5792         instead of unistd_.h here, too.
5793
5794 2007-10-01  Bruno Haible  <bruno@clisp.org>
5795
5796         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
5797         Needed for the alloca-opt module.
5798
5799 2007-09-30  Bruno Haible  <bruno@clisp.org>
5800
5801         * lib/alloca.in.h: Renamed from lib/alloca_.h.
5802         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
5803         alloca_.h.
5804         * lib/argz.in.h: Renamed from lib/argz_.h.
5805         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
5806         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
5807         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
5808         byteswap_.h.
5809         * lib/dirent.in.h: Renamed from lib/dirent_.h.
5810         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
5811         dirent_.h.
5812         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
5813         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
5814         fcntl_.h.
5815         * lib/float.in.h: Renamed from lib/float_.h.
5816         * modules/float (Files, Makefile.am): Use float.in.h instead of
5817         float_.h.
5818         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
5819         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
5820         fnmatch_.h.
5821         * lib/getopt.in.h: Renamed from lib/getopt_.h.
5822         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
5823         getopt_.h.
5824         * lib/glob.in.h: Renamed from lib/glob_.h.
5825         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
5826         * lib/iconv.in.h: Renamed from lib/iconv_.h.
5827         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
5828         iconv_.h.
5829         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
5830         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
5831         inttypes_.h.
5832         * lib/locale.in.h: Renamed from lib/locale_.h.
5833         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
5834         locale_.h.
5835         * lib/math.in.h: Renamed from lib/math_.h.
5836         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
5837         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
5838         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
5839         of netinet_in_.h. Add dependency.
5840         * lib/poll.in.h: Renamed from lib/poll_.h.
5841         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
5842         * lib/search.in.h: Renamed from lib/search_.h.
5843         * modules/search (Files, Makefile.am): Use search.in.h instead of
5844         search_.h.
5845         * lib/signal.in.h: Renamed from lib/signal_.h.
5846         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
5847         _signal.h.
5848         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
5849         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
5850         stdbool_.h.
5851         * lib/stdint.in.h: Renamed from lib/stdint_.h.
5852         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
5853         stdint_.h.
5854         * lib/stdio.in.h: Renamed from lib/stdio_.h.
5855         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
5856         stdio_.h.
5857         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
5858         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
5859         stdlib_.h.
5860         * lib/string.in.h: Renamed from lib/string_.h.
5861         * modules/string (Files, Makefile.am): Use string.in.h instead of
5862         string_.h.
5863         * doc/gnulib-tool.texi (Initial import): Update.
5864         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
5865         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
5866         of sys_select_.h. Add dependency.
5867         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
5868         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
5869         of sys_socket_.h.
5870         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
5871         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
5872         sys_stat_.h.
5873         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
5874         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
5875         sys_time_.h.
5876         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
5877         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
5878         sysexits_.h.
5879         * lib/time.in.h: Renamed from lib/time_.h.
5880         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
5881         * lib/unistd.in.h: Renamed from lib/unistd_.h.
5882         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
5883         unistd_.h.
5884         * lib/wchar.in.h: Renamed from lib/wchar_.h.
5885         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
5886         wchar_.h.
5887         * lib/wctype.in.h: Renamed from lib/wctype_.h.
5888         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
5889         wctype_.h.
5890         * build-aux/bootstrap (slurp): Update.
5891         * lib/.cppi-disable: Update.
5892
5893 2007-09-30  Bruno Haible  <bruno@clisp.org>
5894
5895         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
5896         Needed on BeOS.
5897
5898 2007-09-30  Bruno Haible  <bruno@clisp.org>
5899
5900         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
5901
5902 2007-09-29  Bruno Haible  <bruno@clisp.org>
5903
5904         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
5905
5906 2007-09-29  Bruno Haible  <bruno@clisp.org>
5907
5908         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
5909         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
5910         * build-aux/install-reloc: Compile also areadlink.c.
5911         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
5912
5913 2007-09-29  Bruno Haible  <bruno@clisp.org>
5914
5915         * gnulib-tool (func_emit_initmacro_done): Indentation.
5916
5917 2007-09-29  Bruno Haible  <bruno@clisp.org>
5918
5919         * README: Add CVS checkout update instructions.
5920         Info from Bob Proulx <bob@proulx.com>.
5921
5922 2007-09-28  Eric Blake  <ebb9@byu.net>
5923
5924         Provide move-if-change.
5925         * build-aux/move-if-change: New file, based on best practice
5926         rather than any canonical upstream location.
5927
5928 2007-09-28  Jim Meyering  <jim@meyering.net>
5929
5930         Fix canonicalize loop-detection corner case.
5931         Do not attempt to stat the symlink values stored via seen_triple.
5932         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
5933         on linux-2.6.18, (but not 2.6.22).
5934         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
5935         triple_compare.  The former compares dev,ino,filename, while the latter
5936         would actually stat dirname(filename) when dev and ino were equal.
5937         * lib/hash-triple.c: Install <string.h>.
5938         (STREQ): Define.
5939         (triple_compare_ino_str): New function.
5940         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
5941
5942 2007-09-28  Eric Blake  <ebb9@byu.net>
5943
5944         Enforce that AC_REPLACE_FUNCS files exist.
5945         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
5946         override check for typos.
5947
5948         Fix test-closein on Solaris 10.
5949         * tests/test-closein.c (main): Don't assume stdin can be inherited
5950         closed on all systems.
5951         * tests/test-closein.sh: Likewise.
5952         Reported by Piotr Tarnowski.
5953
5954 2007-09-28  Jim Meyering  <jim@meyering.net>
5955
5956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
5957
5958 2007-09-27  Jim Meyering  <jim@meyering.net>
5959
5960         canonicalize: Avoid a false-positive cycle failure.
5961         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
5962         Sort.  Remove cycle-check.
5963         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
5964         not cycle-check.h.
5965         (seen_triple): New function.
5966         (canonicalize_filename_mode): Use it instead of cycle-check.
5967         * tests/test-canonicalize.c: Add a test for this bug.
5968         * tests/test-canonicalize.sh: Set up and run the test.
5969
5970         New module, file-set, from coreutils.
5971         * modules/file-set: Define it.
5972         * lib/file-set.c, lib/file-set.h: Implement.
5973
5974         New module, hash-triple, from coreutils.
5975         * modules/hash-triple: Define it.
5976         * lib/hash-triple.c, lib/hash-triple.h: Implement.
5977
5978 2007-09-25  Eric Blake  <ebb9@byu.net>
5979
5980         Fix strerror on Interix.
5981         * lib/string_.h (strerror): Declare replacement.
5982         * doc/functions/strerror.texi (strerror): Document the Interix
5983         shortcoming.
5984         * modules/string (Makefile.am): Support new hooks.
5985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
5986         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
5987         gl_FUNC_STRERROR_SEPARATE.
5988         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
5989         * lib/strerror.c (rpl_strerror): Provide replacement.
5990         * modules/strerror (Depends-on): Add string.
5991         (configure.ac): Detect use of module.
5992         * tests/test-strerror.c: New file.
5993         * modules/strerror-tests: New test module.
5994         * modules/argp (Depends-on): Add strerror.
5995         * modules/error (Depends-on): Likewise.
5996         Reported by Martin Koeppe.
5997
5998 2007-09-24  Bruno Haible  <bruno@clisp.org>
5999
6000         * README: Update git instructions.
6001
6002 2007-09-24  Eric Blake  <ebb9@byu.net>
6003
6004         Revert fpending breakage from 2007-09-08.
6005         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
6006         __fpending.c.
6007
6008 2007-09-24  Jim Meyering  <jim@meyering.net>
6009
6010         filenamecat.c: Add a test.
6011         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
6012         showing how the function works when DIR is the empty string.
6013
6014 2007-09-21  Simon Josefsson  <simon@josefsson.org>
6015
6016         * tests/test-canonicalize.sh: Turn on executable bit.
6017
6018 2007-09-19  Eric Blake  <ebb9@byu.net>
6019
6020         * README: Update CVS instructions.
6021
6022 2007-09-18  Bruno Haible  <bruno@clisp.org>
6023
6024         * modules/areadlink: New file.
6025         * lib/areadlink.h (areadlink): New declaration.
6026         * lib/areadlink.c: New file, based on lib/xreadlink.c.
6027
6028 2007-09-17  Jim Meyering  <jim@meyering.net>
6029
6030         * lib/savewd.c (ESTALE) [!defined]: Define.
6031         Reported to be required on Interix by Martin Koeppe.
6032
6033 2007-09-17  Bruno Haible  <bruno@clisp.org>
6034
6035         * gnulib-tool (func_version): Use $version.
6036
6037 2007-09-16  Bruno Haible  <bruno@clisp.org>
6038
6039         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
6040         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
6041         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
6042         Reported by Greg Schafer <gschafer@zip.com.au>.
6043
6044 2007-09-15  Bruno Haible  <bruno@clisp.org>
6045
6046         * gnulib-tool (sed): Try a little harder to make bash understand the
6047         alias.
6048         Reported by Bruce Korb <bruce.korb@gmail.com>.
6049
6050 2007-09-13  Eric Blake  <ebb9@byu.net>
6051
6052         * ChangeLog: Remove conflict markers.
6053
6054 2007-09-13  Simon Josefsson  <simon@josefsson.org>
6055
6056         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
6057         Reported by Bruno Haible <bruno@clisp.org>.
6058
6059 2007-09-12  Bruno Haible  <bruno@clisp.org>
6060
6061         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
6062         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
6063         is not defined.
6064
6065 2007-09-12  Eric Blake  <ebb9@byu.net>
6066
6067         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
6068         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
6069         Autoconf definition.
6070         * modules/euidaccess (Depends-on): Add extensions, for
6071         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
6072         * modules/fnmatch (Depends-on): Likewise.
6073         * modules/getaddrinfo (Depends-on): Likewise.
6074         * modules/getdelim (Depends-on): Likewise.
6075         * modules/getline (Depends-on): Likewise.
6076         * modules/getsubopt (Depends-on): Likewise.
6077         * modules/gettext (Depends-on): Likewise.
6078         * modules/group-member (Depends-on): Likewise.
6079         * modules/mbchar (Depends-on): Likewise.
6080         * modules/memmem (Depends-on): Likewise.
6081         * modules/mempcpy (Depends-on): Likewise.
6082         * modules/memrchr (Depends-on): Likewise.
6083         * modules/pagealign_alloc (Depends-on): Likewise.
6084         * modules/readutmp (Depends-on): Likewise.
6085         * modules/stpcpy (Depends-on): Likewise.
6086         * modules/stpncpy (Depends-on): Likewise.
6087         * modules/strchrnul (Depends-on): Likewise.
6088         * modules/strndup (Depends-on): Likewise.
6089         * modules/strsep (Depends-on): Likewise.
6090         * modules/strverscmp (Depends-on): Likewise.
6091         * modules/vasprintf (Depends-on): Likewise.
6092         * modules/wcwidth (Depends-on): Likewise.
6093         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
6094         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
6095         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
6096         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
6097         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6098         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6099         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
6100         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6101         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
6102         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
6103         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6104         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
6105         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
6106         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6107         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
6108         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6109         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6110         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
6111         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6112         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
6113         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6114         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
6115         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
6116         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
6117         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
6118         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6119         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
6120         so that lock.m4 can be used in gettext without extensions module.
6121
6122 2007-09-11  Bruno Haible  <bruno@clisp.org>
6123
6124         * m4/isc-posix.m4: Remove file.
6125         Suggested by Eric Blake.
6126
6127 2007-09-11  Eric Blake  <ebb9@byu.net>
6128
6129         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
6130
6131 2007-09-10  Bruno Haible  <bruno@clisp.org>
6132
6133         * posix-modules: Fix typo in error message.
6134         Reported by Matt <mkraai@beckman.com>.
6135
6136 2007-09-09  Bruno Haible  <bruno@clisp.org>
6137
6138         * doc/functions/getdelim.texi: Update list of platforms lacking the
6139         function.
6140         * doc/functions/getline.texi: Likewise.
6141
6142 2007-09-09  Jim Meyering  <jim@meyering.net>
6143
6144         * lib/hash.c (hash_initialize): Detect calloc failure.
6145         Reported by Bruno Haible.
6146
6147 2007-09-09  Bruno Haible  <bruno@clisp.org>
6148
6149         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
6150         malloc or realloc fails.
6151
6152 2007-09-09  Bruno Haible  <bruno@clisp.org>
6153
6154         * modules/getcwd (Depends-on): Add malloc-posix.
6155         * modules/glob (Depends-on): Likewise.
6156         * modules/putenv (Depends-on): Likewise.
6157         * modules/strdup (Depends-on): Likewise.
6158         * modules/getdelim (Depends-on): Add realloc-posix.
6159         * modules/read-file (Depends-on): Likewise.
6160
6161 2007-09-09  Bruno Haible  <bruno@clisp.org>
6162
6163         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
6164         (gl_FUNC_MALLOC_POSIX): Require it.
6165         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
6166         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
6167         * modules/realloc (Files): Add m4/malloc.m4.
6168         * modules/calloc (Files): Likewise.
6169
6170 2007-09-09  Bruno Haible  <bruno@clisp.org>
6171
6172         * modules/malloc-posix: New file.
6173         * modules/malloc (Depends-on): Add malloc-posix.
6174         * lib/malloc.c: Include errno.h.
6175         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
6176         and a POSIX-compatible malloc into a single function. Set ENOMEM
6177         when returning NULL.
6178         * m4/malloc.m4: New file.
6179         * doc/functions/malloc.texi: Mention the malloc-posix module.
6180         * lib/stdlib_.h (malloc): New declaration.
6181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6182         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
6183         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
6184         and HAVE_MALLOC_POSIX.
6185
6186 2007-09-09  Bruno Haible  <bruno@clisp.org>
6187
6188         * modules/realloc-posix: New file.
6189         * modules/realloc (Depends-on): Add realloc-posix.
6190         * lib/realloc.c: Include errno.h.
6191         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
6192         and a POSIX-compatible realloc into a single function. Set ENOMEM
6193         when returning NULL.
6194         * m4/realloc.m4: New file.
6195         * doc/functions/realloc.texi: Mention the realloc-posix module.
6196         * lib/stdlib_.h (realloc): New declaration.
6197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6198         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
6199         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
6200         and HAVE_REALLOC_POSIX.
6201
6202 2007-09-09  Bruno Haible  <bruno@clisp.org>
6203
6204         * modules/calloc-posix: New file.
6205         * modules/calloc (Depends-on): Add calloc-posix.
6206         * lib/calloc.c: Include errno.h.
6207         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
6208         and a POSIX-compatible calloc into a single function. Set ENOMEM
6209         when returning NULL.
6210         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
6211         * doc/functions/calloc.texi: Mention the calloc-posix module.
6212         * lib/stdlib_.h (calloc): New declaration.
6213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6214         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
6215         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
6216         and HAVE_CALLOC_POSIX.
6217
6218 2007-09-09  Bruno Haible  <bruno@clisp.org>
6219
6220         Allow for modules to show an arbitrary notice.
6221         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
6222         * gnulib-tool: New option --extract-notice.
6223         (func_usage): Document it.
6224         (sed_extract_prog): Update.
6225         (func_get_notice): New function.
6226         (func_modules_notice): New function.
6227         (func_import, func_create_testdir): Invoke it.
6228         Suggested by Jim Meyering.
6229
6230 2007-09-09  Bruno Haible  <bruno@clisp.org>
6231
6232         * gnulib-tool: New options --verbose, --quiet.
6233         (func_usage): Document them.
6234         (verbose): New variable.
6235         (func_execute_command): New function.
6236         (func_import): Don't show the module list and the file list if
6237         $verbose < 0.
6238         (func_create_testdir): Likewise. Use func_execute_command.
6239         (func_create_megatestdir): Use func_execute_command.
6240
6241 2007-09-08  Bruno Haible  <bruno@clisp.org>
6242
6243         * gnulib-tool (func_import): Prefer rsync over wget when available,
6244         for fetching the PO files.
6245
6246 2007-09-08  Bruno Haible  <bruno@clisp.org>
6247
6248         * posix-modules: New file. Portions copied from gnulib-tool.
6249         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
6250
6251 2007-09-08  Jim Meyering  <jim@meyering.net>
6252
6253         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
6254         * lib/fpending.h: Rename from __fpending.h.
6255         * lib/fpending.c: Rename from __fpending.c.
6256         Include "fpending.h", not "__fpending.h".
6257         * lib/__fpending.h, lib/__fpending.c: Remove files.
6258         * modules/fpending (Files): Reflect new file names.
6259         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
6260
6261 2007-09-08  Bruno Haible  <bruno@clisp.org>
6262
6263         * m4/inttypes-h.m4: Remove stub file.
6264
6265 2007-09-07  Simon Josefsson  <simon@josefsson.org>
6266
6267         * doc/headers/stdint.texi: Discuss #include_next issue.
6268
6269 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
6270
6271         * build-aux/bootstrap: Remove obsolete comment about wget --help.
6272
6273 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6274
6275         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
6276         in variable name.
6277
6278 2007-09-03  Jim Meyering  <jim@meyering.net>
6279
6280         New module: git-version-gen.
6281         * modules/git-version-gen: New file.
6282
6283         Import changes from coreutils for bootstrap script.
6284
6285         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
6286
6287         bootstrap: uses rsync to download the .po files
6288         * build-aux/bootstrap (po_download_command_format): New global.
6289         (download_po_files): Use rsync.
6290         (update_po_files): Don't remove .po files after download,
6291         so future rsync runs can take advantage of the copies.
6292
6293         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
6294
6295         Solve the unnecessary-.po-file-regeneration problem once and for all.
6296         * build-aux/bootstrap (download_po_files): New function, renamed from
6297         get_translations.  Now, downloads, but doesn't update LINGUAS.
6298         (update_po_files): New function.
6299
6300         bootstrap: Ignore more.
6301         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
6302         uniwidth to e.g., lib/.gitignore.
6303         (slurp): Handle the sys_stat_.h -> sys mapping, too.
6304
6305         * build-aux/bootstrap: New setting: vc_ignore.
6306         (insert_sorted_if_absent): Create $file if absent.
6307         Adapt to new, possibly empty, list: $vc_ignore.
6308
6309         bootstrap: generate more ignorable names
6310         * build-aux/bootstrap (slurp): When generating ignorable names,
6311         also map .sin to .sed, .gperf to .c, and .y to .c.
6312
6313 2007-09-03  Jim Meyering  <jim@meyering.net>
6314
6315         * build-aux/git-version-gen: New file, from coreutils.  For details, see
6316         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
6317
6318 2007-09-02  Bruno Haible  <bruno@clisp.org>
6319
6320         Fix mis-recognition of 'mcs' on QNX 6.
6321         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
6322         output contains the string "Mono".
6323         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
6324         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
6325
6326 2007-09-01  Bruno Haible  <bruno@clisp.org>
6327
6328         Fix collision between uniwidth/* and linebreak modules.
6329         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
6330         u32_width): Remove declarations.
6331         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
6332         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
6333         streq3, streq2, streq1, streq0): Remove functions.
6334         (STREQ): Remove macro.
6335         (is_cjk_encoding): Remove function.
6336         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
6337         (uc_width, u8_width, u16_width, u32_width): Remove functions.
6338         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
6339         * NEWS: Document the change.
6340
6341 2007-09-01  Bruno Haible  <bruno@clisp.org>
6342
6343         * lib/streq.h: Add double-inclusion guard.
6344
6345 2007-09-01  Karl Berry  <karl@gnu.org>
6346
6347         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
6348
6349 2007-08-28  Jim Meyering  <jim@meyering.net>
6350
6351         Rename mreadlink_with_size to areadlink_with_size.
6352         * NEWS: Document the change.
6353         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
6354         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
6355         * lib/mreadlink.h: Rename this to...
6356         * lib/areadlink.h: ...this.
6357         * modules/mreadlink-with-size: Rename this to...
6358         * modules/areadlink-with-size: ...this.
6359         * lib/canonicalize.c: Reflect the renaming.
6360         * modules/canonicalize: Likewise.
6361
6362 2007-08-26  Bruno Haible  <bruno@clisp.org>
6363
6364         * gnulib-tool (func_import): When deciding which files to remove,
6365         consider also dangling symbolic links.
6366         Reported by Eric Blake.
6367
6368 2007-08-26  Bruno Haible  <bruno@clisp.org>
6369
6370         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
6371
6372 2007-08-23  Simon Josefsson  <simon@josefsson.org>
6373
6374         * lib/readline.c: Don't include getline.h, the prototype is now
6375         found in stdio.h.
6376
6377 2007-08-23  Jim Meyering  <jim@meyering.net>
6378
6379         Getdelim touchup.
6380         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
6381         around the funlockfile call, since funlockfile never sets errno.
6382         Don't set errno upon failed realloc.
6383
6384 2007-08-22  Eric Blake  <ebb9@byu.net>
6385
6386         Getline touchups.
6387         * lib/getdelim.c (getdelim): Revert regression that required *n to
6388         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
6389         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
6390         getdelim, rather than whether implementation is missing.
6391         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
6392         * lib/stdio_.h (getline): Also declare if replacement is
6393         required.
6394         * doc/functions/getdelim.texi: New file.
6395         * doc/functions/getline.texi: Likewise.
6396         * doc/gnulib.texi (Function Substitutes): Add new files.
6397         Reported by Bruno Haible.
6398
6399 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
6400
6401         * users.txt: Add Guile.
6402
6403 2007-08-22  Eric Blake  <ebb9@byu.net>
6404
6405         * tests/test-getdelim.c (main): Use remove, not unlink.
6406         * tests/test-getline.c (main): Likewise.
6407
6408         Move getline and getdelim into stdio.h, per POSIX 200x.
6409         * modules/getline (Files): Remove getline.h.
6410         (Depends-on): Add stdio.
6411         (configure.ac): Add module indicator.
6412         * modules/getdelim (Files): Remove getdelim.h.
6413         (Depends-on): Add stdio.
6414         (configure.ac): Add module indicator.
6415         * modules/stdio (Makefile.am): Work with new indicators.
6416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
6417         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
6418         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6419         * lib/getdelim.h: Delete.
6420         * lib/getline.h: Delete.
6421         * lib/stdio_.h (getdelim, getline): Declare.
6422         * modules/getdelim-tests: New module.
6423         * modules/getline-tests: Likewise.
6424         * tests/test-getdelim.c: New file.
6425         * tests/test-getline.c: Likewise.
6426         * NEWS: Document the change.
6427         * lib/getline.c: Update choice of header.
6428         * lib/csharpcomp.c: Likewise.
6429         * lib/getpass.c: Likewise.
6430         * lib/javacomp.c: Likewise.
6431         * lib/javaversion.c: Likewise.
6432         * lib/yesno.c: Likewise.
6433         * lib/getdelim.c: Likewise.
6434         (getdelim): Set errno on failure, and avoid memory leak.
6435
6436 2007-08-19  Bruno Haible  <bruno@clisp.org>
6437
6438         * modules/closein (Depends-on): Add freadahead.
6439         * lib/closein.c: Include freadahead.h.
6440         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
6441         is zero.
6442
6443 2007-08-19  Bruno Haible  <bruno@clisp.org>
6444
6445         * modules/freadahead-tests: New file.
6446         * tests/test-freadahead.sh: New file.
6447         * tests/test-freadahead.c: New file.
6448
6449         * modules/freadahead: New file.
6450         * lib/freadahead.h: New file.
6451         * lib/freadahead.c: New file.
6452         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
6453         fbufmode, fpurge, freadable, fwritable.
6454
6455 2007-08-19  Eric Blake  <ebb9@byu.net>
6456
6457         Test yesno in combination with closein.
6458         * lib/yesno.c (yesno): Document use of stdin.
6459         * modules/yesno-tests (Files): New module.
6460         * tests/test-yesno.c (main): New file.
6461         * tests/test-yesno.sh: Likewise.
6462
6463 2007-08-19  Bruno Haible  <bruno@clisp.org>
6464
6465         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
6466         * lib/fseeko.c (rpl_fseeko): Likewise.
6467         * lib/fseterr.c (fseterr): Likewise.
6468
6469 2007-08-19  Bruno Haible  <bruno@clisp.org>
6470
6471         * tests/test-lseek.c (main): Disable a test for BeOS.
6472         * doc/functions/lseek.texi: Document the BeOS bug.
6473
6474 2007-08-19  Bruno Haible  <bruno@clisp.org>
6475             Eric Blake  <ebb9@byu.net>
6476
6477         * lib/lseek.c: Include <sys/stat.h>.
6478         (rpl_lseek): Add workaround code also for Unix platforms.
6479         Needed for BeOS.
6480         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
6481         * doc/functions/lseek.texi: Document BeOS definiency.
6482
6483 2007-08-18  Bruno Haible  <bruno@clisp.org>
6484
6485         * modules/fstrcmp-tests: New file.
6486         * tests/test-fstrcmp.c: New file.
6487
6488 2007-08-18  Bruno Haible  <bruno@clisp.org>
6489
6490         * modules/fstrcmp: New file, from GNU gettext with modifications.
6491         * lib/fstrcmp.h: New file, from GNU gettext.
6492         * lib/fstrcmp.c: New file, from GNU gettext.
6493         * MODULES.html.sh (String handling): Add fstrcmp.
6494
6495 2007-08-18  Bruno Haible  <bruno@clisp.org>
6496
6497         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
6498         'bool'.
6499         (diag, compareseq): Remove const from the ctxt argument.
6500         (USE_HEURISTIC): Undefine at the end.
6501
6502 2007-08-18  Jim Meyering  <jim@meyering.net>
6503
6504         New file: lib/idcache.h
6505         * NEWS: Mention the addition.
6506         * modules/idcache (Files): Add lib/idcache.h
6507         * lib/idcache.c: Include "idcache.h".
6508         Don't include <sys/types.h>.
6509         Add a FIXME comment.
6510         Move file-scoped "static" declarations to the top.
6511         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
6512
6513 2007-08-17  Bruno Haible  <bruno@clisp.org>
6514         and Paul Eggert  <eggert@cs.ucla.edu>
6515
6516         * MODULES.html.sh: Add diffseq.
6517         * modules/diffseq: New file.
6518         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
6519         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
6520
6521 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6522
6523         Import changes from coreutils for bootstrap script.
6524
6525         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
6526
6527         * build-aux/bootstrap (slurp): Work even in environments where
6528         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
6529         current code does not slurp files whose names start with ".", and
6530         this looks like it might be a troublesome area.
6531
6532         2007-07-11  Jim Meyering  <jim@meyering.net>
6533
6534         If there's a GPL vN copyright comment, require that N == 3.
6535
6536         2007-07-08  Jim Meyering  <jim@meyering.net>
6537
6538         Run the coreutils-specific code only if tests/Makefile.am.in exists.
6539         * build-aux/bootstrap (mam_template): Move definition out of loop.
6540
6541         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
6542
6543         * build-aux/bootstrap (symlink_to_dir): Rename function from
6544         symlink_to_gnulib.  Add a directory parameter.  Update all
6545         callers.
6546         (cp_mark_as_generated): Also check for -- and link to -- files in
6547         gl/.
6548
6549         2007-07-08  Jim Meyering  <jim@meyering.net>
6550
6551         Adapt to deeper hierarchy in gnulib.
6552         * build-aux/bootstrap (symlink_to_dir): If the destination
6553         directory doesn't exist, create it. This is required at least for
6554         "lib/uniwidth/cjk.h".
6555
6556         2007-05-15  Jim Meyering  <jim@meyering.net>
6557
6558         * build-aux/bootstrap: Now that generated Makefile.am files
6559         are no longer under version control, they must be created at
6560         bootstrap time.
6561
6562 2007-08-14  Ben Pfaff  <blp@gnu.org>
6563
6564         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
6565
6566 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6567
6568         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
6569         given the changes below.
6570         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
6571         even on hosts that have padding bits beyond the supported 64.
6572
6573 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6574
6575         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
6576         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
6577         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
6578         depends on it.
6579         (xstrtol_error): Remove.
6580         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
6581         but with a different signature.
6582         (ATTRIBUTE_NORETURN, __attribute__): New macros.
6583         * lib/xstrtol-error.c: Include exitfail.h.
6584         (xstrtol_fatal): New function, with a different signature from the
6585         old xstrtol_error, so that the caller need not worry about passing
6586         in an exit status, or about storage management of the option argument.
6587         (xstrtol_error): Now a static function.  Redo signature to
6588         implement xstrtol_fatal.  Output the correct number of hyphens in
6589         front of the option so that the caller need not worry about
6590         storage management.
6591         (N_): New macro.
6592         (_): Remove; not used now.
6593         * modules/xstrtol: Depend on getopt.
6594         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
6595         of old STRTOL_FATAL_ERROR macro.
6596         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
6597         of test program.
6598         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
6599         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
6600
6601 2007-08-08  Eric Blake  <ebb9@byu.net>
6602
6603         * lib/xstrtol-error.c: Add missing include.
6604
6605         Move xstrtol messages into gnulib domain, when --pobase is used.
6606         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
6607         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
6608         * modules/xstrtol (Files): Distribute new file.
6609         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
6610         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
6611         * tests/test-xstrtol.c: ...into new file.
6612         * tests/test-xstrtoul.c: Also test xstrtoul.
6613         * tests/test-xstrtoimax.c: Also test xstrtoimax.
6614         * tests/test-xstrtoumax.c: Also test xstrtoumax.
6615         * tests/test-xstrtol.sh: Drive the tests.
6616         * tests/test-xstrtoimax.sh: Likewise.
6617         * tests/test-xstrtoumax.sh: Likewise.
6618         * modules/xstrtol-tests: New module.
6619         * modules/xstrtoimax-tests: Likewise.
6620         * modules/xstrtoumax-tests: Likewise.
6621
6622 2007-08-08  Jim Meyering  <jim@meyering.net>
6623
6624         New function: mfile_name_concat.
6625         * lib/filenamecat.c (mfile_name_concat): New function, just like
6626         file_name_concat, but return NULL upon failure rather than exiting
6627         with a diagnostic.
6628         * lib/filenamecat.h: Declare it.
6629
6630 2007-08-07  Bruno Haible  <bruno@clisp.org>
6631
6632         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
6633         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
6634         warning from gcc.
6635         Reported by Eric Blake.
6636
6637 2007-08-07  Simon Josefsson  <simon@josefsson.org>
6638
6639         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
6640         * modules/crypto/arcfour (License): Likewise.
6641         * modules/crypto/des-tests (License): Likewise.
6642         * modules/crypto/gc-arctwo-tests (License): Likewise.
6643         * modules/crypto/gc-des-tests (License): Likewise.
6644         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
6645         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
6646         * modules/crypto/gc-md2-tests (License): Likewise.
6647         * modules/crypto/gc-md4-tests (License): Likewise.
6648         * modules/crypto/gc-md5-tests (License): Likewise.
6649         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
6650         * modules/crypto/gc-rijndael-tests (License): Likewise.
6651         * modules/crypto/gc-sha1-tests (License): Likewise.
6652         * modules/crypto/gc-tests (License): Likewise.
6653         * modules/crypto/hmac-md5 (License): Likewise.
6654         * modules/crypto/hmac-sha1 (License): Likewise.
6655         * modules/crypto/md2-tests (License): Likewise.
6656         * modules/crypto/md4-tests (License): Likewise.
6657         * modules/crypto/md5 (License): Likewise.
6658         * modules/crypto/rijndael (License): Likewise.
6659         * modules/crypto/sha1 (License): Likewise.
6660         * modules/memxor (License): Likewise.
6661
6662 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
6663         and Bruno Haible  <bruno@clisp.org>
6664
6665         * NEWS: Describe interface changes to human, xstrtol.
6666         * lib/human.h: Include <xstrtol.h>.
6667         (human_options): Return enum strtol_error, not int.  Remove
6668         bool arg; take int * instead.
6669         * lib/human.c: Don't include "gettext.h".
6670         (_): Remove; no longer used.
6671         Don't include <xstrtol.h>, since human.h does it.
6672         (human_options): Adjust to abovementioned interface changes.
6673         Do not report error to stderr; that's now the caller's
6674         responsibility.
6675         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
6676         interface change.
6677         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
6678         Str, Argument_type_string.  All uses changed.  Put " argument"
6679         in diagnostics to make them clearer.  Change wording of suffix
6680         message for clarity.
6681         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
6682         Argument_type_string.
6683         (STRTOL_FATAL_WARN): Remove; no longer used.
6684         * modules/human (Depends-on): Remove gettext-h.
6685
6686 2007-08-06  Simon Josefsson  <simon@josefsson.org>
6687
6688         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
6689
6690 2007-07-31  Bruno Haible  <bruno@clisp.org>
6691
6692         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
6693         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
6694         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
6695
6696 2007-07-31  Bruno Haible  <bruno@clisp.org>
6697
6698         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
6699         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
6700
6701 2007-07-30  Bruno Haible  <bruno@clisp.org>
6702
6703         * modules/base64 (License): Use the synonymous term "LGPLv2+".
6704         * modules/c-ctype (License): Likewise.
6705         * modules/c-strcase (License): Likewise.
6706         * modules/check-version (License): Likewise.
6707         * modules/iconv (License): Likewise.
6708         * modules/iconv_open (License): Likewise.
6709         * modules/read-file (License): Likewise.
6710         * modules/striconv (License): Likewise.
6711         * modules/strverscmp (License): Likewise.
6712         * modules/vasprintf (License): Likewise.
6713         * modules/crypto/des (License): Likewise.
6714         * modules/crypto/gc (License): Likewise.
6715         * modules/crypto/gc-arcfour (License): Likewise.
6716         * modules/crypto/gc-arctwo (License): Likewise.
6717         * modules/crypto/gc-des (License): Likewise.
6718         * modules/crypto/gc-hmac-md5 (License): Likewise.
6719         * modules/crypto/gc-hmac-sha1 (License): Likewise.
6720         * modules/crypto/gc-md2 (License): Likewise.
6721         * modules/crypto/gc-md4 (License): Likewise.
6722         * modules/crypto/gc-md5 (License): Likewise.
6723         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
6724         * modules/crypto/gc-random (License): Likewise.
6725         * modules/crypto/gc-rijndael (License): Likewise.
6726         * modules/crypto/gc-sha1 (License): Likewise.
6727         * modules/crypto/md2 (License): Likewise.
6728         * modules/crypto/md4 (License): Likewise.
6729
6730 2007-07-30  Jim Meyering  <jim@meyering.net>
6731
6732         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
6733         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
6734         it has valid stat data.  This bug would cause du not to count the
6735         sizes of inaccessible directories.
6736         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
6737         in <http://bugzilla.redhat.com/250077>.
6738
6739 2007-07-25  Peter O'Gorman  <peter@pogma.com>
6740             Bruno Haible  <bruno@clisp.org>
6741
6742         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
6743         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
6744         #include_next, gives a diagnostic about it, but reports no error in
6745         the exit code.
6746         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
6747
6748 2007-07-24  Ben Pfaff  <blp@gnu.org>
6749
6750         Improve name: "count-one-bits" is better than "popcount".
6751         * MODULES.html.sh: Update name.
6752         * lib/popcount.h: Renamed lib/count-one-bits.h.
6753         (popcount): Renamed count_one_bits.
6754         (popcountl): Renamed count_one_bits_l.
6755         (popcountll): Renamed count_one_bits_ll.
6756         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
6757         * modules/popcount: Renamed module/count-one-bits.
6758         * modules/popcount-tests: Renamed module/count-one-bits-tests.
6759         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
6760
6761 2007-07-23  Ben Pfaff  <blp@gnu.org>
6762
6763         * lib/popcount.h (popcount32): Reduce size of constants, to allow
6764         better code generation, and add U to large constants to avoid
6765         warnings, in non-GCC case.
6766         Suggested by Bruno Haible.
6767
6768 2007-07-23  Ben Pfaff  <blp@gnu.org>
6769
6770         * lib/popcount.h: Use verify_true instead of if...abort.
6771         * modules/popcount: Depend on verify module.
6772         Suggested by Jim Meyering.
6773
6774 2007-07-23  Bruno Haible  <bruno@clisp.org>
6775
6776         * gnulib-tool (func_import): Create a .cvsignore file also when the
6777         directory is not yet in CVS but the toplevel directory is. When
6778         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
6779         Reported by Karl Berry.
6780
6781 2007-07-22  Ben Pfaff  <blp@gnu.org>
6782
6783         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
6784         case.
6785         Suggested by Eric Blake.
6786
6787 2007-07-22  Ben Pfaff  <blp@gnu.org>
6788
6789         New module: popcount.
6790         * MODULES.html.sh: Add popcount.
6791         * modules/popcount: New file.
6792         * modules/popcount-tests: New file.
6793         * tests/test-popcount.c: New file.
6794         * lib/popcount.h: New file.
6795         * m4/popcount.m4: New file.
6796
6797 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6798
6799         * build-aux/announce-gen: Update to GPLv3.
6800
6801         * build-aux/config.guess: Update from config.
6802
6803 2007-07-21  Bruno Haible  <bruno@clisp.org>
6804
6805         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
6806         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
6807
6808 2007-07-20  Jim Meyering  <jim@meyering.net>
6809
6810         * check-module: Diagnose a self-dependency.
6811
6812 2007-07-19  Bruno Haible  <bruno@clisp.org>
6813
6814         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
6815         empty.
6816         Reported by Eric Blake.
6817
6818 2007-07-18  Bruno Haible  <bruno@clisp.org>
6819
6820         * gnulib-tool: New options --po-base, --po-domain.
6821         (func_usage): Document them.
6822         (pobase, po_domain): New variables.
6823         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
6824         DEFAULT_TEXT_DOMAIN.
6825         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
6826         (func_import): Consider pobase and po_domain. Create a po/ directory.
6827         (func_create_testdir): Set pobase and po_domain to empty.
6828         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
6829         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
6830
6831 2007-07-18  Bruno Haible  <bruno@clisp.org>
6832
6833         * gnulib-tool (func_get_automake_snippet): Synthesize also an
6834         EXTRA_DIST augmentation for files in build-aux/.
6835
6836 2007-07-16  Bruno Haible  <bruno@clisp.org>
6837
6838         * modules/lseek (License): Use the synonymous term "LGPLv2+".
6839         * modules/getdelim (License): Likewise.
6840
6841 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6842
6843         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
6844         * modules/d-type (License): Likewise.
6845         * modules/extensions (License): Likewise.
6846         * modules/fnmatch (License): Likewise.
6847         * modules/fseeko (License): Likewise.
6848         * modules/getaddrinfo (License): Likewise.
6849         * modules/getline (License): Likewise.
6850         * modules/getlogin_r (License): Likewise.
6851         * modules/getpass (License): Likewise.
6852         * modules/gettimeofday (License): Likewise.
6853         * modules/glob (License): Likewise.
6854         * modules/inet_ntop (License): Likewise.
6855         * modules/malloc (License): Likewise.
6856         * modules/malloca (License): Likewise.
6857         * modules/memmem (License): Likewise.
6858         * modules/mempcpy (License): Likewise.
6859         * modules/memset (License): Likewise.
6860         * modules/minmax (License): Likewise.
6861         * modules/mktime (License): Likewise.
6862         * modules/netinet_in (License): Likewise.
6863         * modules/pathmax (License): Likewise.
6864         * modules/poll (License): Likewise.
6865         * modules/regex (License): Likewise.
6866         * modules/snprintf (License): Likewise.
6867         * modules/stdbool (License): Likewise.
6868         * modules/stdint (License): Likewise.
6869         * modules/stdio (License): Likewise.
6870         * modules/strcase (License): Likewise.
6871         * modules/strcasestr (License): Likewise.
6872         * modules/strdup (License): Likewise.
6873         * modules/string (License): Likewise.
6874         * modules/strndup (License): Likewise.
6875         * modules/strnlen (License): Likewise.
6876         * modules/strpbrk (License): Likewise.
6877         * modules/strptime (License): Likewise.
6878         * modules/strsep (License): Likewise.
6879         * modules/sys_select (License): Likewise.
6880         * modules/sys_socket (License): Likewise.
6881         * modules/sys_stat (License): Likewise.
6882         * modules/sys_time (License): Likewise.
6883         * modules/time (License): Likewise.
6884         * modules/time_r (License): Likewise.
6885         * modules/timegm (License): Likewise.
6886         * modules/unistd (License): Likewise.
6887         * modules/vsnprintf (License): Likewise.
6888         * modules/wctype (License): Likewise.
6889
6890 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6891
6892         * modules/argz (License): LGPLv2+.
6893
6894 2007-07-15  Karl Berry  <karl@gnu.org>
6895
6896         * doc/gnulib.texi: revise node structure per new fdl.texi.
6897
6898 2007-07-14  Bruno Haible  <bruno@clisp.org>
6899
6900         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
6901         the output file.
6902         * lib/uniname/uninames.h: Regenerated.
6903
6904 2007-07-14  Karl Berry  <karl@gnu.org>
6905
6906         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
6907         omitting sectioning and index commands.
6908
6909 2007-07-13  Bruno Haible  <bruno@clisp.org>
6910
6911         New gnulib-tool option --more-symlinks.
6912         * gnulib-tool (func_usage): Document --more-symlinks.
6913         (do_copyrights): New variable.
6914         Recognize option --more-symlinks.
6915         (func_import): Don't add a copyright notice transform to
6916         sed_transform_lib_file if do_copyrights is empty.
6917
6918 2007-07-13  Bruno Haible  <bruno@clisp.org>
6919
6920         * lib/vasnprintf.c (decimal_point_char): Define also if
6921         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
6922         && !NEED_PRINTF_DIRECTIVE_A.
6923         Reported by Clemens Koller <clemens.koller@anagramm.de> via
6924         Gary V. Vaughan <gary@gnu.org>.
6925
6926 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
6927
6928         * lib/inttypes_.h: Undo previous change, since it was fixed
6929         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
6930
6931 2007-07-13  Bruno Haible  <bruno@clisp.org>
6932
6933         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
6934         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
6935
6936 2007-07-13  Jim Meyering  <jim@meyering.net>
6937
6938         df: Don't fail for Tru64's "file-on-file mount".
6939         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
6940         so we fall through and use statfs instead.  Details here:
6941         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
6942         Reported by Albert Chin.
6943
6944 2007-07-13  Bruno Haible  <bruno@clisp.org>
6945
6946         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
6947         * modules/configmake (License): Likewise.
6948         * modules/gettext (License): Likewise.
6949         * modules/gettext-h (License): Likewise.
6950         * modules/include_next (License): Likewise.
6951         * modules/link-warning (License): Likewise.
6952         * modules/localcharset (License): Likewise.
6953         * modules/localename (License): Likewise.
6954         * modules/lock (License): Likewise.
6955         * modules/relocatable-lib-lgpl (License): Likewise.
6956         * modules/size_max (License): Likewise.
6957         * modules/vasnprintf (License): Likewise.
6958         * modules/wchar (License): Likewise.
6959         * modules/xsize (License): Likewise.
6960
6961 2007-07-13  Bruno Haible  <bruno@clisp.org>
6962
6963         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
6964         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
6965
6966 2007-07-12  Bruno Haible  <bruno@clisp.org>
6967
6968         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
6969         in the modules files.
6970
6971 2007-07-11  Karl Berry  <karl@gnu.org>
6972
6973         * MODULES.html.sh (func_module): use
6974          sed -e '\|^'"${includefile}"'$|d'
6975          instead of /.../d, to avoid errors on $includefile's containing /.
6976
6977 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
6978
6979         * gnulib-tool (func_import): Avoid duplication of --avoid
6980         statements
6981         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
6982         names to `_' in variable names.
6983
6984 2007-07-10  Eric Blake  <ebb9@byu.net>
6985
6986         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
6987         * NEWS: Document this change.
6988
6989 2007-07-08  Bruno Haible  <bruno@clisp.org>
6990
6991         Update to Unicode 5.0.
6992         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
6993         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
6994         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
6995         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
6996         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
6997         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
6998         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
6999         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
7000         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
7001         U+10A3F, U+1D242..U+1D244.
7002         (nonspacing_table_ind): Update.
7003         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
7004         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
7005
7006 2007-07-08  Bruno Haible  <bruno@clisp.org>
7007
7008         Update to Unicode 5.0.
7009         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
7010         code transform. Extend the name index field of unicode_name_to_code and
7011         unicode_code_to_name from 16 to 24 bits.
7012         * lib/uniname/uniname.c (unicode_character_name,
7013         unicode_name_character): Add the range 0x12xxx to the code transform.
7014         * lib/uniname/uninames.h: Regenerated.
7015         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
7016
7017 2007-07-07  Bruno Haible  <bruno@clisp.org>
7018
7019         * modules/wcwidth-tests: New file.
7020         * tests/test-wcwidth.c: New file.
7021
7022         Work around MacOS X wcwidth() bug.
7023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
7024         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
7025         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
7026         original wcwidth in non-UTF-8 locales.
7027         * modules/wcwidth (Depends-on): Add localcharset, streq,
7028         uniwidth/width.
7029         * doc/functions/wcwidth.texi: Update.
7030
7031 2007-07-07  Bruno Haible  <bruno@clisp.org>
7032
7033         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
7034         (wcwidth): New declaration.
7035         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
7036         macros.
7037         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
7038         here. Prepare for creating <wchar.h> unconditionally.
7039         * modules/wchar (Depends-on): Add link-warning.
7040         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
7041         REPLACE_WCWIDTH, and GL_LINK_WARNING.
7042         * lib/wcwidth.h: Remove file.
7043         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
7044         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
7045         * modules/wcwidth (Files): Remove lib/wcwidth.h.
7046         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
7047         (Include): Replace wcwidth.h with <wchar.h>.
7048         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
7049         * lib/mbchar.h: Don't include wcwidth.h.
7050         * lib/mbswidth.c: Likewise.
7051         * NEWS: Mention the change.
7052
7053 2007-07-07  Bruno Haible  <bruno@clisp.org>
7054
7055         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
7056         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
7057         definition with an external declaration.
7058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
7059         defined as a function. Remove AC_C_INLINE requirement.
7060         * modules/wcwidth (Files): Add lib/wcwidth.c.
7061         (Makefile.am): Remove redundant statement.
7062
7063 2007-07-07  Bruno Haible  <bruno@clisp.org>
7064
7065         * MODULES.html.sh (Unicode string functions): Add the new modules.
7066
7067         * tests/uniwidth/test-u32-strwidth.c: New file.
7068         * modules/uniwidth/u32-strwidth-tests: New file.
7069
7070         * lib/uniwidth/u32-strwidth.c: New file.
7071         * modules/uniwidth/u32-strwidth: New file.
7072
7073         * tests/uniwidth/test-u16-strwidth.c: New file.
7074         * modules/uniwidth/u16-strwidth-tests: New file.
7075
7076         * lib/uniwidth/u16-strwidth.c: New file.
7077         * modules/uniwidth/u16-strwidth: New file.
7078
7079         * tests/uniwidth/test-u8-strwidth.c: New file.
7080         * modules/uniwidth/u8-strwidth-tests: New file.
7081
7082         * lib/uniwidth/u8-strwidth.c: New file.
7083         * modules/uniwidth/u8-strwidth: New file.
7084
7085         * tests/uniwidth/test-u32-width.c: New file.
7086         * modules/uniwidth/u32-width-tests: New file.
7087
7088         * lib/uniwidth/u32-width.c: New file.
7089         * modules/uniwidth/u32-width: New file.
7090
7091         * tests/uniwidth/test-u16-width.c: New file.
7092         * modules/uniwidth/u16-width-tests: New file.
7093
7094         * lib/uniwidth/u16-width.c: New file.
7095         * modules/uniwidth/u16-width: New file.
7096
7097         * tests/uniwidth/test-u8-width.c: New file.
7098         * modules/uniwidth/u8-width-tests: New file.
7099
7100         * lib/uniwidth/u8-width.c: New file.
7101         * modules/uniwidth/u8-width: New file.
7102
7103         * tests/uniwidth/test-uc_width.c: New file.
7104         * modules/uniwidth/width-tests: New file.
7105
7106         * lib/uniwidth/width.c: New file, from GNU libiconv.
7107         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
7108         * modules/uniwidth/width: New file.
7109
7110         * lib/uniwidth.h: New file, from GNU libiconv.
7111         * modules/uniwidth/base: New file.
7112
7113 2007-07-07  Bruno Haible  <bruno@clisp.org>
7114
7115         * lib/uniname.h: New file, from GNU gettext.
7116         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
7117         * lib/uniname/uninames.h: New file, from GNU gettext.
7118         * lib/uniname/uniname.c: New file, from GNU gettext.
7119         * tests/uniname/test-uninames.sh: New file.
7120         * tests/uniname/test-uninames.c: New file, from GNU gettext.
7121         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
7122         * modules/uniname/base: New file.
7123         * modules/uniname/uniname: New file.
7124         * modules/uniname/uniname-tests: New file.
7125         * MODULES.html.sh (Unicode string functions): Add the new modules.
7126
7127 2007-07-06  Bruno Haible  <bruno@clisp.org>
7128
7129         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
7130
7131 2007-07-06  Bruno Haible  <bruno@clisp.org>
7132
7133         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
7134         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
7135         includes <cygwin/sys_time.h> which includes <sys/select.h> which
7136         include <sys/time.h>.
7137         Reported by Eric Blake.
7138
7139 2007-07-06  Eric Blake  <ebb9@byu.net>
7140
7141         Fix testing canonicalize on cygwin.
7142         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
7143         Revert patch from 2007-06-19.
7144         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
7145         canonicalize module is also in use.
7146         * tests/test-canonicalize.c: New file.
7147         * tests/test-canonicalize.sh: Likewise.
7148         * modules/canonicalize-tests: Likewise.
7149
7150 2007-07-06  Jim Meyering  <jim@meyering.net>
7151
7152         * lib/getugroups.c (getugroups): Detect getgrent failure.
7153         Adjust comment to reflect reality: this function may return -1.
7154
7155 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7156
7157         * build-aux/bootstrap (TP_URL,get_translations): Update to use
7158         the new TP address.
7159         (usage): Fix typo
7160         (gnulib_mk): New variable.
7161
7162 2007-07-05  Jim Meyering  <jim@meyering.net>
7163
7164         Don't let endgrent clobber errno, no matter how improbable.
7165         * lib/getugroups.c (getugroups): Save and restore errno around
7166         endgrent call.
7167
7168         Close the group DB even when failing with 2^31 or more members.
7169         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
7170
7171 2007-07-04  Jim Meyering  <jim@meyering.net>
7172
7173         * lib/getugroups.h: New file.
7174         * lib/getugroups.c: Include "getugroups.h".
7175         Remove uses of "register" keyword.
7176         Move local variable, "cp", down into scope where used.
7177         Give "username" parameter the "const" attribute.
7178         * modules/getugroups (Files): Add lib/getugroups.h
7179
7180 2007-07-04  Karl Berry  <karl@gnu.org>
7181
7182         * MODULES.html.sh (func_all_modules): Complete rename of
7183         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
7184
7185 2007-07-02  Bruno Haible  <bruno@clisp.org>
7186
7187         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
7188         mode, when inttypes.h comes from gnulib.
7189         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
7190
7191 2007-07-02  Simon Josefsson  <simon@josefsson.org>
7192
7193         * NEWS: Mention lgpl module name change.
7194
7195         * modules/lgpl-2.1: Renamed from lgpl.
7196
7197         * NEWS: Mention gpl module name change.
7198
7199         * modules/gpl-3.0: New file, based on gpl-2.0.
7200
7201         * modules/gpl-2.0: Renamed from gpl.
7202
7203         * modules/gpl: Fix filename, doc/gpl.texi is now found at
7204         doc/gpl-2.0.texi.
7205
7206 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7207
7208         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
7209         #define __STDC_LIMIT_MACROS temporarily while including
7210         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
7211         Problem reported by Joel E. Denny in
7212         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
7213
7214 2007-07-01  Bruno Haible  <bruno@clisp.org>
7215
7216         * lib/unistdio.h: New file.
7217         * lib/unistdio/u-asnprintf.h: New file.
7218         * lib/unistdio/u-asprintf.h: New file.
7219         * lib/unistdio/u-printf-args.c: New file.
7220         * lib/unistdio/u-printf-args.h: New file.
7221         * lib/unistdio/u-printf-parse.h: New file.
7222         * lib/unistdio/u-snprintf.h: New file.
7223         * lib/unistdio/u-sprintf.h: New file.
7224         * lib/unistdio/u-vasprintf.h: New file.
7225         * lib/unistdio/u-vsnprintf.h: New file.
7226         * lib/unistdio/u-vsprintf.h: New file.
7227         * lib/unistdio/ulc-asnprintf.c: New file.
7228         * lib/unistdio/ulc-asprintf.c: New file.
7229         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
7230         * lib/unistdio/ulc-printf-parse.c: New file.
7231         * lib/unistdio/ulc-snprintf.c: New file.
7232         * lib/unistdio/ulc-sprintf.c: New file.
7233         * lib/unistdio/ulc-vasnprintf.c: New file.
7234         * lib/unistdio/ulc-vasprintf.c: New file.
7235         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
7236         * lib/unistdio/ulc-vsnprintf.c: New file.
7237         * lib/unistdio/ulc-vsprintf.c: New file.
7238         * lib/unistdio/u8-asnprintf.c: New file.
7239         * lib/unistdio/u8-asprintf.c: New file.
7240         * lib/unistdio/u8-printf-parse.c: New file.
7241         * lib/unistdio/u8-snprintf.c: New file.
7242         * lib/unistdio/u8-sprintf.c: New file.
7243         * lib/unistdio/u8-vasnprintf.c: New file.
7244         * lib/unistdio/u8-vasprintf.c: New file.
7245         * lib/unistdio/u8-vsnprintf.c: New file.
7246         * lib/unistdio/u8-vsprintf.c: New file.
7247         * lib/unistdio/u8-u8-asnprintf.c: New file.
7248         * lib/unistdio/u8-u8-asprintf.c: New file.
7249         * lib/unistdio/u8-u8-snprintf.c: New file.
7250         * lib/unistdio/u8-u8-sprintf.c: New file.
7251         * lib/unistdio/u8-u8-vasnprintf.c: New file.
7252         * lib/unistdio/u8-u8-vasprintf.c: New file.
7253         * lib/unistdio/u8-u8-vsnprintf.c: New file.
7254         * lib/unistdio/u8-u8-vsprintf.c: New file.
7255         * lib/unistdio/u16-asnprintf.c: New file.
7256         * lib/unistdio/u16-asprintf.c: New file.
7257         * lib/unistdio/u16-printf-parse.c: New file.
7258         * lib/unistdio/u16-snprintf.c: New file.
7259         * lib/unistdio/u16-sprintf.c: New file.
7260         * lib/unistdio/u16-vasnprintf.c: New file.
7261         * lib/unistdio/u16-vasprintf.c: New file.
7262         * lib/unistdio/u16-vsnprintf.c: New file.
7263         * lib/unistdio/u16-vsprintf.c: New file.
7264         * lib/unistdio/u16-u16-asnprintf.c: New file.
7265         * lib/unistdio/u16-u16-asprintf.c: New file.
7266         * lib/unistdio/u16-u16-snprintf.c: New file.
7267         * lib/unistdio/u16-u16-sprintf.c: New file.
7268         * lib/unistdio/u16-u16-vasnprintf.c: New file.
7269         * lib/unistdio/u16-u16-vasprintf.c: New file.
7270         * lib/unistdio/u16-u16-vsnprintf.c: New file.
7271         * lib/unistdio/u16-u16-vsprintf.c: New file.
7272         * lib/unistdio/u32-asnprintf.c: New file.
7273         * lib/unistdio/u32-asprintf.c: New file.
7274         * lib/unistdio/u32-printf-parse.c: New file.
7275         * lib/unistdio/u32-snprintf.c: New file.
7276         * lib/unistdio/u32-sprintf.c: New file.
7277         * lib/unistdio/u32-vasnprintf.c: New file.
7278         * lib/unistdio/u32-vasprintf.c: New file.
7279         * lib/unistdio/u32-vsnprintf.c: New file.
7280         * lib/unistdio/u32-vsprintf.c: New file.
7281         * lib/unistdio/u32-u32-asnprintf.c: New file.
7282         * lib/unistdio/u32-u32-asprintf.c: New file.
7283         * lib/unistdio/u32-u32-snprintf.c: New file.
7284         * lib/unistdio/u32-u32-sprintf.c: New file.
7285         * lib/unistdio/u32-u32-vasnprintf.c: New file.
7286         * lib/unistdio/u32-u32-vasprintf.c: New file.
7287         * lib/unistdio/u32-u32-vsnprintf.c: New file.
7288         * lib/unistdio/u32-u32-vsprintf.c: New file.
7289         * tests/unistdio/test-ulc-asnprintf1.c: New file.
7290         * tests/unistdio/test-ulc-asnprintf1.h: New file.
7291         * tests/unistdio/test-ulc-printf1.h: New file.
7292         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
7293         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
7294         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
7295         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
7296         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
7297         * tests/unistdio/test-ulc-vasprintf1.c: New file.
7298         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
7299         * tests/unistdio/test-ulc-vsprintf1.c: New file.
7300         * tests/unistdio/test-u8-asnprintf1.c: New file.
7301         * tests/unistdio/test-u8-asnprintf1.h: New file.
7302         * tests/unistdio/test-u8-printf1.h: New file.
7303         * tests/unistdio/test-u8-vasnprintf1.c: New file.
7304         * tests/unistdio/test-u8-vasnprintf2.c: New file.
7305         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
7306         * tests/unistdio/test-u8-vasnprintf3.c: New file.
7307         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
7308         * tests/unistdio/test-u8-vasprintf1.c: New file.
7309         * tests/unistdio/test-u8-vsnprintf1.c: New file.
7310         * tests/unistdio/test-u8-vsprintf1.c: New file.
7311         * tests/unistdio/test-u16-asnprintf1.c: New file.
7312         * tests/unistdio/test-u16-asnprintf1.h: New file.
7313         * tests/unistdio/test-u16-printf1.h: New file.
7314         * tests/unistdio/test-u16-vasnprintf1.c: New file.
7315         * tests/unistdio/test-u16-vasnprintf2.c: New file.
7316         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
7317         * tests/unistdio/test-u16-vasnprintf3.c: New file.
7318         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
7319         * tests/unistdio/test-u16-vasprintf1.c: New file.
7320         * tests/unistdio/test-u16-vsnprintf1.c: New file.
7321         * tests/unistdio/test-u16-vsprintf1.c: New file.
7322         * tests/unistdio/test-u32-asnprintf1.c: New file.
7323         * tests/unistdio/test-u32-asnprintf1.h: New file.
7324         * tests/unistdio/test-u32-printf1.h: New file.
7325         * tests/unistdio/test-u32-vasnprintf1.c: New file.
7326         * tests/unistdio/test-u32-vasnprintf2.c: New file.
7327         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
7328         * tests/unistdio/test-u32-vasnprintf3.c: New file.
7329         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
7330         * tests/unistdio/test-u32-vasprintf1.c: New file.
7331         * tests/unistdio/test-u32-vsnprintf1.c: New file.
7332         * tests/unistdio/test-u32-vsprintf1.c: New file.
7333         * modules/unistdio/base: New file.
7334         * modules/unistdio/u-printf-args: New file.
7335         * modules/unistdio/ulc-asnprintf: New file.
7336         * modules/unistdio/ulc-asprintf: New file.
7337         * modules/unistdio/ulc-fprintf: New file.
7338         * modules/unistdio/ulc-printf-parse: New file.
7339         * modules/unistdio/ulc-snprintf: New file.
7340         * modules/unistdio/ulc-sprintf: New file.
7341         * modules/unistdio/ulc-vasnprintf: New file.
7342         * modules/unistdio/ulc-vasprintf: New file.
7343         * modules/unistdio/ulc-vfprintf: New file.
7344         * modules/unistdio/ulc-vsnprintf: New file.
7345         * modules/unistdio/ulc-vsprintf: New file.
7346         * modules/unistdio/u8-asnprintf: New file.
7347         * modules/unistdio/u8-asprintf: New file.
7348         * modules/unistdio/u8-printf-parse: New file.
7349         * modules/unistdio/u8-snprintf: New file.
7350         * modules/unistdio/u8-sprintf: New file.
7351         * modules/unistdio/u8-vasnprintf: New file.
7352         * modules/unistdio/u8-vasprintf: New file.
7353         * modules/unistdio/u8-vsnprintf: New file.
7354         * modules/unistdio/u8-vsprintf: New file.
7355         * modules/unistdio/u8-u8-asnprintf: New file.
7356         * modules/unistdio/u8-u8-asprintf: New file.
7357         * modules/unistdio/u8-u8-snprintf: New file.
7358         * modules/unistdio/u8-u8-sprintf: New file.
7359         * modules/unistdio/u8-u8-vasnprintf: New file.
7360         * modules/unistdio/u8-u8-vasprintf: New file.
7361         * modules/unistdio/u8-u8-vsnprintf: New file.
7362         * modules/unistdio/u8-u8-vsprintf: New file.
7363         * modules/unistdio/u16-asnprintf: New file.
7364         * modules/unistdio/u16-asprintf: New file.
7365         * modules/unistdio/u16-printf-parse: New file.
7366         * modules/unistdio/u16-snprintf: New file.
7367         * modules/unistdio/u16-sprintf: New file.
7368         * modules/unistdio/u16-vasnprintf: New file.
7369         * modules/unistdio/u16-vasprintf: New file.
7370         * modules/unistdio/u16-vsnprintf: New file.
7371         * modules/unistdio/u16-vsprintf: New file.
7372         * modules/unistdio/u16-u16-asnprintf: New file.
7373         * modules/unistdio/u16-u16-asprintf: New file.
7374         * modules/unistdio/u16-u16-snprintf: New file.
7375         * modules/unistdio/u16-u16-sprintf: New file.
7376         * modules/unistdio/u16-u16-vasnprintf: New file.
7377         * modules/unistdio/u16-u16-vasprintf: New file.
7378         * modules/unistdio/u16-u16-vsnprintf: New file.
7379         * modules/unistdio/u16-u16-vsprintf: New file.
7380         * modules/unistdio/u32-asnprintf: New file.
7381         * modules/unistdio/u32-asprintf: New file.
7382         * modules/unistdio/u32-printf-parse: New file.
7383         * modules/unistdio/u32-snprintf: New file.
7384         * modules/unistdio/u32-sprintf: New file.
7385         * modules/unistdio/u32-vasnprintf: New file.
7386         * modules/unistdio/u32-vasprintf: New file.
7387         * modules/unistdio/u32-vsnprintf: New file.
7388         * modules/unistdio/u32-vsprintf: New file.
7389         * modules/unistdio/u32-u32-asnprintf: New file.
7390         * modules/unistdio/u32-u32-asprintf: New file.
7391         * modules/unistdio/u32-u32-snprintf: New file.
7392         * modules/unistdio/u32-u32-sprintf: New file.
7393         * modules/unistdio/u32-u32-vasnprintf: New file.
7394         * modules/unistdio/u32-u32-vasprintf: New file.
7395         * modules/unistdio/u32-u32-vsnprintf: New file.
7396         * modules/unistdio/u32-u32-vsprintf: New file.
7397         * modules/unistdio/ulc-asnprintf-tests: New file.
7398         * modules/unistdio/ulc-vasnprintf-tests: New file.
7399         * modules/unistdio/ulc-vasprintf-tests: New file.
7400         * modules/unistdio/ulc-vsnprintf-tests: New file.
7401         * modules/unistdio/ulc-vsprintf-tests: New file.
7402         * modules/unistdio/u8-asnprintf-tests: New file.
7403         * modules/unistdio/u8-vasnprintf-tests: New file.
7404         * modules/unistdio/u8-vasprintf-tests: New file.
7405         * modules/unistdio/u8-vsnprintf-tests: New file.
7406         * modules/unistdio/u8-vsprintf-tests: New file.
7407         * modules/unistdio/u16-asnprintf-tests: New file.
7408         * modules/unistdio/u16-vasnprintf-tests: New file.
7409         * modules/unistdio/u16-vasprintf-tests: New file.
7410         * modules/unistdio/u16-vsnprintf-tests: New file.
7411         * modules/unistdio/u16-vsprintf-tests: New file.
7412         * modules/unistdio/u32-asnprintf-tests: New file.
7413         * modules/unistdio/u32-vasnprintf-tests: New file.
7414         * modules/unistdio/u32-vasprintf-tests: New file.
7415         * modules/unistdio/u32-vsnprintf-tests: New file.
7416         * modules/unistdio/u32-vsprintf-tests: New file.
7417         * MODULES.html.sh (Unicode string functions): Add the new modules.
7418
7419 2007-07-01  Bruno Haible  <bruno@clisp.org>
7420
7421         * lib/sprintf.c (sprintf): Limit the available length estimation,
7422         to avoid address wraparound.
7423         * lib/vsprintf.c (vsprintf): Likewise.
7424         * modules/sprintf-posix (Dependencies): Add stdint.
7425         * modules/vsprintf-posix (Dependencies): Likewise.
7426
7427 2007-07-01  Bruno Haible  <bruno@clisp.org>
7428
7429         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
7430         Windows PATH as well. Conservative double-quoting. Comments.
7431
7432 2007-07-01  Bruno Haible  <bruno@clisp.org>
7433             Eric Blake  <ebb9@byu.net>
7434             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7435
7436         * gnulib-tool (self_abspathname): Fix algorithm to cope with
7437         empty components in $PATH, denoting '.'.
7438
7439 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7440
7441         * gnulib-tool: Fix indentation.
7442         (func_create_megatestdir): Likewise.
7443         Report by Bruno Haible.
7444
7445 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7446
7447         Sync from Automake.
7448         * build-aux/gnupload: Fix shell portability issues with for loops.
7449         Report by Karl Berry.
7450
7451 2007-06-29  Simon Josefsson  <simon@josefsson.org>
7452
7453         * build-aux/maint.mk (POURL): Use translationproject.org.
7454
7455 2007-06-27  Simon Josefsson  <simon@josefsson.org>
7456             Bruno Haible  <bruno@clisp.org>
7457
7458         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
7459         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
7460         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
7461         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
7462         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
7463
7464 2007-06-27  Bruno Haible  <bruno@clisp.org>
7465
7466         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
7467         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
7468
7469 2007-06-26  Karl Berry  <karl@gnu.org>
7470
7471         * MODULES.html.sh: remove xreadlink-with-size.
7472
7473 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7474
7475         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
7476         method that I hope also handles the double-include problem noted
7477         by Bruno Haible in
7478         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
7479
7480 2007-06-23  Bruno Haible  <bruno@clisp.org>
7481
7482         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7483         Don't let the 'mostlyclean' target fail if the last subdirectory could
7484         not be removed.
7485         Reported by Karl Berry.
7486
7487 2007-06-23  Bruno Haible  <bruno@clisp.org>
7488
7489         * gnulib-tool (echo): Add a speedier workaround for ksh.
7490         * tests/test-echo.sh: Likewise.
7491
7492 2007-06-23  Bruno Haible  <bruno@clisp.org>
7493
7494         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
7495         * tests/test-echo.sh: Likewise.
7496
7497 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7498
7499         * gnulib-tool (IFS): Initialize early, so we don't set it to
7500         empty later.
7501         (self_abspathname): Rewrite algorithm to set it, reindent.
7502         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
7503         (func_create_megatestdir): Merge some sed scripts.
7504
7505 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7506
7507         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
7508         exposed by Sun Studio 11 cc on Solaris 8.
7509
7510 2007-06-22  Bruno Haible  <bruno@clisp.org>
7511
7512         * gnulib-tool (echo): Ensure the echo primitive does not interpret
7513         backslashes.
7514         * tests/test-echo.sh: New file.
7515
7516 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7517
7518         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
7519         simplify `sed_replace_build_aux' scripts, they are portable but
7520         echoing them with `echo' is not.
7521         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
7522
7523 2007-06-21  Karl Berry  <karl@gnu.org>
7524
7525         * config/srclist.txt: guess we can't handle the licenses via
7526         srclist at the moment.
7527
7528 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
7529
7530         * MODULES.html.sh: Add include_next.
7531         * modules/include_next: New file.
7532
7533 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7534
7535         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
7536         INCLUDE_NEXT.
7537         (gl_CHECK_NEXT_HEADERS): New macro.
7538         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
7539         the obsolescent gl_ABSOLUTE_HEADER.
7540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
7541         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
7542         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7543         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7544         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7545         * m4/math_h.m4 (gl_MATH_H): Likewise.
7546         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
7547         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7548         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7549         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7550         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7551         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7552         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7553         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7554         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7555         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7556         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7557         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7558         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
7559         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7560         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7561         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7562         * m4/inttypes.m4 (gl_INTTYPES_H): Define
7563         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
7564         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
7565         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
7566         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
7567         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
7568         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
7569         * lib/float_.h: Likewise.
7570         * lib/inttypes_.h: Likewise.
7571         * lib/math_.h: Likewise.
7572         * lib/search_.h: Likewise.
7573         * lib/signal_.h: Likewise.
7574         * lib/stdint_.h: Likewise.
7575         * lib/stdio_.h: Likewise.
7576         * lib/stdlib_.h: Likewise.
7577         * lib/string_.h: Likewise.
7578         * lib/sys_stat_.h: Likewise.
7579         * lib/sys_time_.h: Likewise.
7580         * lib/time_.h: Likewise.
7581         * lib/unistd_.h: Likewise.
7582         * lib/wchar_.h: Likewise.
7583         * lib/wctype_.h: Likewise.
7584         * lib/dirent_.h: Likewise.
7585         * lib/iconv_.h: Likewise.
7586         * lib/locale_.h: Likewise.
7587         * lib/netinet_in_.h: Likewise.
7588         * lib/sys_select_.h: Likewise.
7589         * lib/sys_socket_.h: Likewise.
7590         * lib/sysexits_.h: Likewise.
7591         * modules/fcntl (Depends-on): Depend on include_next, not
7592         absolute_header.
7593         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
7594         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
7595         * modules/fchdir: Likewise.
7596         * modules/float: Likewise.
7597         * modules/iconv_open: Likewise.
7598         * modules/inttypes: Likewise.
7599         * modules/locale: Likewise.
7600         * modules/math: Likewise.
7601         * modules/netinet_in: Likewise.
7602         * modules/search: Likewise.
7603         * modules/signal: Likewise.
7604         * modules/stdint: Likewise.
7605         * modules/stdio: Likewise.
7606         * modules/stdlib: Likewise.
7607         * modules/string: Likewise.
7608         * modules/sys_select: Likewise.
7609         * modules/sys_socket: Likewise.
7610         * modules/sys_stat: Likewise.
7611         * modules/sys_time: Likewise.
7612         * modules/sysexits: Likewise.
7613         * modules/time: Likewise.
7614         * modules/unistd: Likewise.
7615         * modules/wchar: Likewise.
7616         * modules/wctype: Likewise.
7617         * modules/sys_stat: Change maintainer to "all".
7618         * modules/unistd: Likewise.
7619
7620 2007-06-20  Karl Berry  <karl@gnu.org>
7621
7622         * config/srclist.txt: track www changes in license files.
7623
7624 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
7625
7626         * build-aux/bootstrap: Remove stray dot.
7627         Make sure build_aux settings are honored when linking
7628         gnulib_extra_files.
7629
7630 2007-06-19  Eric Blake  <ebb9@byu.net>
7631
7632         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
7633         Allow compilation on cygwin.
7634
7635 2007-06-19  Jim Meyering  <jim@meyering.net>
7636
7637         xreadlink-with-size: Remove module.  No longer used.
7638         Ex-callers now use xreadlink or mreadlink-with-size.
7639         * modules/xreadlink-with-size: Remove module.
7640         * lib/xreadlink-with-size.c: Remove file.
7641         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
7642         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
7643         just before the function definition *is* accurate.
7644
7645         Eliminate one way canonicalize_filename_mode could exit.
7646         * lib/canonicalize.c (canonicalize_filename_mode):
7647         Use mreadlink_with_size, not xreadlink_with_size.
7648
7649 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
7650
7651         Detect porting problems to FreeBSD/arm, which has time_t wider than
7652         long int.  Original problem reported for GNU diff by Xin Li in
7653         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
7654         * modules/getdate (Depends-on): Add intprops, verify.
7655         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
7656         is an integer type no wider than long int.
7657
7658 2007-06-18  Jim Meyering  <jim@meyering.net>
7659
7660         New module: mreadlink-with-size.
7661         * MODULES.html.sh: Add mreadlink-with-size.
7662         * modules/mreadlink-with-size: New module
7663         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
7664         not xreadlink-with-size.
7665         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
7666
7667 2007-06-16  Bruno Haible  <bruno@clisp.org>
7668
7669         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
7670         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
7671         Reported by Gary V. Vaughan <gary@gnu.org>.
7672
7673 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7674
7675         Revamp lchown so that it lives in unistd.h where it belongs.
7676         * lib/lchown.h: Remove.
7677         * lib/dirchownmod.c: Don't include lib/lchown.h.
7678         * lib/fchownat.c: Likewise.
7679         * lib/openat.c: Likewise.
7680         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
7681         does not follow symlinks.
7682         (EOPNOTSUPP): Define if not defined.
7683         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
7684         is defined to 0.
7685         (lchown): New decl.
7686         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
7687         Do not check for lchown decl.
7688         Set REPLACE_LCHOWN.
7689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
7690         REPLACE_LCHOWN.
7691         * modules/chown: Make it clear it follows symlinks.
7692         * modules/lchown: Make it clear it doesn't follow symlinks.
7693         (Files): Remove lib/lchown.h
7694         (Depends-on): Add unistd.
7695         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
7696         (Include): Include <unistd.h>, not "lchown.h".
7697         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
7698         REPLACE_LCHOWN.
7699
7700 2007-06-15  Jim Meyering  <jim@meyering.net>
7701
7702         Change license (GPL to LGPL) of fsusage and dependents.
7703         * modules/fsusage (License): Change to LGPL.
7704         * modules/full-read (License): Likewise.
7705         * modules/full-write (License): Likewise.
7706         * modules/safe-read (License): Likewise.
7707         * modules/safe-write (License): Likewise.
7708
7709 2007-06-14  Ben Pfaff  <blp@gnu.org>
7710
7711         Missing part of allocsa -> malloca transition.
7712         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
7713         gl_MALLOCA.
7714
7715 2007-06-12  Bruno Haible  <bruno@clisp.org>
7716
7717         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
7718         to ia64, x86_64, i386.
7719         Reported by Eric Blake.
7720
7721 2007-06-12  Bruno Haible  <bruno@clisp.org>
7722
7723         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
7724         cross-compiling to x86_64.
7725
7726 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
7727
7728         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
7729         glitch reported by Ralf Wildenhues in
7730         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
7731
7732         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
7733         Vin Shelton.
7734
7735 2007-06-11  Bruno Haible  <bruno@clisp.org>
7736
7737         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
7738         replacement string.
7739         Reported by Eric Blake.
7740
7741 2007-06-10  Bruno Haible  <bruno@clisp.org>
7742
7743         Prepare vasnprintf code for use with Unicode strings.
7744         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
7745         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
7746         TYPE_U32_STRING.
7747         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
7748         a_u32_string variants.
7749         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
7750         * lib/printf-args.c: Don't include config.h and the specification
7751         header if PRINTF_FETCHARGS is already defined.
7752         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
7753         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
7754         TYPE_U16_STRING, TYPE_U32_STRING.
7755         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
7756         u16_directive, u16_directives, u32_directive, u32_directives): New
7757         types.
7758         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
7759         New declarations.
7760         * lib/printf-parse.c: Don't include config.h and the specification
7761         header if PRINTF_PARSE is already defined. Eliminate the set of
7762         parameters for WIDE_CHAR_VERSION; the user of this file must provide
7763         them now. Include c-ctype.h.
7764         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
7765         directive and CHAR_T_ONLY_ASCII.
7766         * lib/vasnprintf.c: Don't include config.h and the specification header
7767         if VASNPRINTF is already defined.
7768         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
7769         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
7770         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
7771         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
7772         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
7773         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
7774         code accordingly.
7775         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
7776         pad_ourselves also in this case, with the 'c' and 's' directives, and
7777         with a different notion of "width".
7778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
7779
7780 2007-06-10  Bruno Haible  <bruno@clisp.org>
7781
7782         * modules/unistr/u32-mbsnlen: New file.
7783         * lib/unistr/u32-mbsnlen.c: New file.
7784
7785         * modules/unistr/u16-mbsnlen: New file.
7786         * lib/unistr/u16-mbsnlen.c: New file.
7787
7788         * modules/unistr/u8-mbsnlen: New file.
7789         * lib/unistr/u8-mbsnlen.c: New file.
7790
7791         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
7792         declarations.
7793
7794 2007-06-10  Bruno Haible  <bruno@clisp.org>
7795
7796         * lib/string_.h (mbsnlen): New declaration.
7797         * lib/mbsnlen.c: New file.
7798         * m4/mbsnlen.m4: New file.
7799         * modules/mbsnlen: New file.
7800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
7801         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
7802         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
7803
7804 2007-06-10  Bruno Haible  <bruno@clisp.org>
7805
7806         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
7807
7808 2007-06-10  Bruno Haible  <bruno@clisp.org>
7809
7810         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
7811         * lib/mbuiter.h: Likewise.
7812
7813 2007-06-10  Bruno Haible  <bruno@clisp.org>
7814
7815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
7816         declaration.
7817
7818 2007-06-10  Karl Berry  <karl@gnu.org>
7819
7820         * config/srclist.txt: remove gettext entries, Bruno prefers
7821         to update individually.
7822
7823 2007-06-10  Bruno Haible  <bruno@clisp.org>
7824
7825         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
7826         'maxlen'. Ensure only length + width bytes are allocated, not
7827         length + 1 + width.
7828
7829 2007-06-09  Bruno Haible  <bruno@clisp.org>
7830
7831         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
7832         (CHAR_T): Remove macro.
7833         (VASNPRINTF): Update.
7834
7835 2007-06-09  Bruno Haible  <bruno@clisp.org>
7836
7837         * MODULES.html.sh (Unicode string functions): Add the new modules.
7838
7839         * modules/uniconv/u32-conv-to-enc: New file.
7840         * lib/uniconv/u32-conv-to-enc.c: New file.
7841         * modules/uniconv/u32-conv-to-enc-tests: New file.
7842         * tests/uniconv/test-u32-conv-to-enc.c: New file.
7843
7844         * modules/uniconv/u16-conv-to-enc: New file.
7845         * lib/uniconv/u16-conv-to-enc.c: New file.
7846         * lib/uniconv/u-conv-to-enc.h: New file.
7847         * modules/uniconv/u16-conv-to-enc-tests: New file.
7848         * tests/uniconv/test-u16-conv-to-enc.c: New file.
7849
7850         * modules/uniconv/u8-conv-to-enc: New file.
7851         * lib/uniconv/u8-conv-to-enc.c: New file.
7852         * modules/uniconv/u8-conv-to-enc-tests: New file.
7853         * tests/uniconv/test-u8-conv-to-enc.c: New file.
7854
7855         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
7856         u32_conv_to_encoding): New declarations.
7857
7858 2007-06-09  Bruno Haible  <bruno@clisp.org>
7859
7860         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
7861
7862 2007-06-09  Bruno Haible  <bruno@clisp.org>
7863
7864         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
7865         * modules/malloca: Renamed from modules/allocsa, updated.
7866         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
7867         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
7868         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
7869         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
7870         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
7871         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
7872         * modules/xmalloca: Renamed from modules/xallocsa, updated.
7873         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
7874         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
7875         * modules/c-strcasestr (Depends-on): Update.
7876         * lib/c-strcasestr.c: Update.
7877         * modules/c-strstr (Depends-on): Update.
7878         * lib/c-strstr.c: Update.
7879         * modules/canonicalize-lgpl (Depends-on): Update.
7880         * lib/canonicalize-lgpl.c: Update.
7881         * modules/clean-temp (Depends-on): Update.
7882         * lib/clean-temp.c: Update.
7883         * modules/csharpcomp (Depends-on): Update.
7884         * lib/csharpcomp.c: Update.
7885         * modules/csharpexec (Depends-on): Update.
7886         * lib/csharpexec.c: Update.
7887         * modules/javacomp (Depends-on): Update.
7888         * lib/javacomp.c: Update.
7889         * modules/javaexec (Depends-on): Update.
7890         * lib/javaexec.c: Update.
7891         * modules/mbscasestr (Depends-on): Update.
7892         * lib/mbscasestr.c: Update.
7893         * modules/mbsstr (Depends-on): Update.
7894         * lib/mbsstr.c: Update.
7895         * modules/setenv (Depends-on): Update.
7896         * lib/setenv.c: Update.
7897         * modules/strcasestr (Depends-on): Update.
7898         * lib/strcasestr.c: Update.
7899         * modules/striconveha (Depends-on): Update.
7900         * lib/striconveha.c: Update.
7901         * modules/relocatable-prog-wrapper (Files): Update.
7902         * lib/relocwrapper.c: Update.
7903         * build-aux/install-reloc: Update.
7904         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
7905
7906 2007-06-08  Bruno Haible  <bruno@clisp.org>
7907
7908         Port to uClibc.
7909         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
7910         * lib/fpurge.c (fpurge): Likewise.
7911         * lib/freading.c (freading): Likewise.
7912         * lib/fseeko.c (rpl_fseeko): Likewise.
7913         * lib/fseterr.c (fseterr): Likewise.
7914         * lib/fwriting.c (fwriting): Likewise.
7915         * tests/test-fflush.c (main): Avoid a failure on uClibc.
7916
7917 2007-06-08  Bruno Haible  <bruno@clisp.org>
7918
7919         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
7920         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
7921         * modules/gettext (Files): Add m4/intlmacosx.m4.
7922
7923 2007-06-07  Bruno Haible  <bruno@clisp.org>
7924
7925         * modules/localename-tests: New file.
7926         * tests/test-localename.c: New file.
7927
7928         New module 'localename'.
7929         * lib/localename.h: New file.
7930         * lib/localename.c: New file, from GNU gettext.
7931         * m4/localename.m4: New file.
7932         * modules/localename: New file.
7933
7934 2007-06-07  Bruno Haible  <bruno@clisp.org>
7935
7936         Work around the lack of <wchar.h> on some builds of uClibc.
7937         * doc/headers/wchar.texi: Update.
7938         * lib/wchar_.h: Include <wchar.h> only if it exists.
7939         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
7940         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
7941         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
7942         doesn't exist.
7943         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
7944         * modules/mbfile (Depends-on): Add wchar.
7945         * modules/mbiter (Depends-on): Likewise.
7946         * modules/mbuiter (Depends-on): Likewise.
7947         Reported by Simon Josefsson.
7948
7949 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
7950
7951         Work around problem reported by Steven M. Schweda in
7952         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
7953         Tru64 5.1B with the Compaq compiler environment installed declares
7954         an 'isblank' function but does not define it in the C library.
7955         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
7956         * lib/regex_internal.h (isblank): Likewise.
7957         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
7958         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7959
7960 2007-06-05  Bruno Haible  <bruno@clisp.org>
7961
7962         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
7963         ia64.
7964         * modules/printf-safe: New file.
7965         * modules/fprintf-posix (Depends-on): Add printf-safe.
7966         * modules/printf-posix (Depends-on): Likewise.
7967         * modules/snprintf-posix (Depends-on): Likewise.
7968         * modules/sprintf-posix (Depends-on): Likewise.
7969         * modules/vasnprintf-posix (Depends-on): Likewise.
7970         * modules/vasprintf-posix (Depends-on): Likewise.
7971         * modules/vfprintf-posix (Depends-on): Likewise.
7972         * modules/vprintf-posix (Depends-on): Likewise.
7973         * modules/vsnprintf-posix (Depends-on): Likewise.
7974         * modules/vsprintf-posix (Depends-on): Likewise.
7975         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7976         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
7977         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
7978         "no" on i386, x86_64, ia64.
7979         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
7980         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7981         on i386, x86_64, ia64.
7982         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
7983         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7984         on i386, x86_64, ia64.
7985         * tests/test-vasnprintf-posix.c: Include float.h.
7986         (LDBL80_WORDS): New macro.
7987         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7988         on i386, x86_64, ia64.
7989         * tests/test-vasprintf-posix.c: Include float.h.
7990         (LDBL80_WORDS): New macro.
7991         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7992         on i386, x86_64, ia64.
7993         * tests/test-snprintf-posix.c: Include float.h.
7994         * tests/test-sprintf-posix.c: Likewise.
7995         * tests/test-vsnprintf-posix.c: Likewise.
7996         * tests/test-vsprintf-posix.c: Likewise.
7997
7998 2007-06-05  Bruno Haible  <bruno@clisp.org>
7999
8000         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
8001         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
8002         non-IEEE numbers on i386, x86_64, ia64.
8003         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
8004         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
8005         * tests/test-isnanl.h: Include float.h.
8006         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
8007
8008 2007-06-05  Bruno Haible  <bruno@clisp.org>
8009
8010         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
8011         also the %a / %A. Handle the %a / %A code before this extra handling.
8012
8013 2007-06-05  Bruno Haible  <bruno@clisp.org>
8014
8015         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
8016         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
8017
8018 2007-06-05  Bruno Haible  <bruno@clisp.org>
8019
8020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
8021         typo in variable name.
8022
8023 2007-06-05  Eric Blake  <ebb9@byu.net>
8024
8025         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
8026         Reported by Simon Josefsson.
8027
8028 2007-06-04  Bruno Haible  <bruno@clisp.org>
8029
8030         Avoid test failures on some PowerPC platforms.
8031         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
8032         Define differently for PowerPC.
8033         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
8034         Reported by Gary V. Vaughan <gary@gnu.org>.
8035
8036 2007-06-02  Bruno Haible  <bruno@clisp.org>
8037
8038         Fix test-stdint failure on FreeBSD/ia64.
8039         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
8040         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
8041         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
8042         * doc/headers/stdint.texi: Update.
8043
8044 2007-06-01  Bruno Haible  <bruno@clisp.org>
8045
8046         * tests/test-binary-io.c (main): Pass a third argument to open().
8047         Reported by Gary V. Vaughan <gary@gnu.org>.
8048
8049 2007-06-01  Bruno Haible  <bruno@clisp.org>
8050
8051         * doc/functions/frexpl.texi: Update for mingw.
8052
8053 2007-06-01  Bruno Haible  <bruno@clisp.org>
8054
8055         * tests/test-lseek.c (main): Disable test of errno for invalid third
8056         argument.
8057         * doc/functions/lseek.texi: Update.
8058         Reported by Gary V. Vaughan <gary@gnu.org>.
8059
8060 2007-05-28  Bruno Haible  <bruno@clisp.org>
8061
8062         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
8063
8064 2007-05-31  Eric Blake  <ebb9@byu.net>
8065
8066         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
8067         cross compiling.
8068
8069 2007-05-30  Eric Blake  <ebb9@byu.net>
8070         and Bruno Haible  <bruno@clisp.org>
8071
8072         Work around mingw test failures exposed by m4-1.4.9b.
8073         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
8074         * tests/test-unistd.c: Disable uid_t and git_t tests for the
8075         moment.
8076
8077 2007-05-30  Bruno Haible  <bruno@clisp.org>
8078
8079         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
8080         assuming that they are closed. Needed on HP-UX 11.
8081
8082 2007-05-29  Bruno Haible  <bruno@clisp.org>
8083
8084         Fix a problem with #include_next.
8085         * lib/dirent_.h: Split the double-inclusion guard.
8086         * lib/fcntl_.h: Likewise.
8087         * lib/float_.h: Likewise.
8088         * lib/iconv_.h: Likewise.
8089         * lib/inttypes_.h: Likewise.
8090         * lib/locale_.h: Likewise.
8091         * lib/math_.h: Likewise.
8092         * lib/netinet_in_.h: Likewise.
8093         * lib/search_.h: Likewise.
8094         * lib/signal_.h: Likewise.
8095         * lib/stdint_.h: Likewise.
8096         * lib/stdio_.h: Likewise.
8097         * lib/stdlib_.h: Likewise.
8098         * lib/string_.h: Likewise.
8099         * lib/sys_select_.h: Likewise.
8100         * lib/sys_socket_.h: Likewise.
8101         * lib/sys_stat_.h: Likewise.
8102         * lib/sys_time_.h: Likewise.
8103         * lib/sysexits_.h: Likewise.
8104         * lib/time_.h: Likewise.
8105         * lib/unistd_.h: Likewise.
8106         * lib/wchar_.h: Likewise.
8107         * lib/wctype_.h: Likewise.
8108
8109 2007-05-29  Bruno Haible  <bruno@clisp.org>
8110
8111         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
8112         for the moment.
8113
8114 2007-05-29  Bruno Haible  <bruno@clisp.org>
8115
8116         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
8117         invocation.
8118         Reported by Eric Blake.
8119
8120 2007-05-29  Bruno Haible  <bruno@clisp.org>
8121
8122         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
8123         compiling case.
8124
8125 2007-05-29  Eric Blake  <ebb9@byu.net>
8126             Bruno Haible  <bruno@clisp.org>
8127
8128         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
8129         cross compiles.
8130
8131 2007-05-28  Eric Blake  <ebb9@byu.net>
8132
8133         * modules/closein-tests (test_closein_LDADD): Support test on
8134         cygwin with libtool.
8135
8136 2007-05-28  Bruno Haible  <bruno@clisp.org>
8137
8138         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
8139         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8140         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8141         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8142         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8143         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8144         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8145         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8146         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8147
8148 2007-05-28  Eric Blake  <ebb9@byu.net>
8149
8150         Unconditionally include <config.h> in unit tests.
8151         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
8152         * tests/test-allocsa.c, tests/test-arcfour.c,
8153         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
8154         tests/test-array_list.c, tests/test-array_oset.c,
8155         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
8156         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
8157         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
8158         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
8159         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
8160         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
8161         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
8162         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
8163         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
8164         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
8165         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
8166         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
8167         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
8168         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
8169         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
8170         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
8171         test-md5.c, test-memmem.c, test-printf-posix.c,
8172         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
8173         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
8174         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
8175         test-strcasestr.c, test-striconv.c, test-striconveh.c,
8176         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
8177         test-vasnprintf-posix2.c, test-vasnprintf.c,
8178         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
8179         test-vfprintf-posix.c, test-vprintf-posix.c,
8180         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
8181         test-xvasprintf.c: Likewise.
8182
8183 2007-05-28  Bruno Haible  <bruno@clisp.org>
8184
8185         * gnulib-tool (func_import): Remember the --with-tests command-line
8186         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
8187         Reported by Eric Blake.
8188
8189 2007-05-28  Bruno Haible  <bruno@clisp.org>
8190
8191         * modules/ftell-tests: New file.
8192         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
8193         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
8194
8195         * lib/ftell.c: New file.
8196         * modules/ftell: New file.
8197         * m4/ftell.m4: New file.
8198         * doc/functions/ftell.texi: Update.
8199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
8200         REPLACE_FTELL.
8201         * lib/stdio_.h (rpl_ftell): New declaration.
8202         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
8203         REPLACE_FTELL.
8204
8205 2007-05-28  Eric Blake  <ebb9@byu.net>
8206
8207         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
8208
8209 2007-05-28  Bruno Haible  <bruno@clisp.org>
8210
8211         * modules/fseek-tests: New file.
8212         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
8213         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
8214
8215         * lib/fseek.c: New file.
8216         * modules/fseek: New file.
8217         * m4/fseek.m4: New file.
8218         * doc/functions/fseek.texi: Update.
8219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
8220         REPLACE_FSEEK.
8221         * lib/stdio_.h (rpl_fseek): New declaration.
8222         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
8223         REPLACE_FSEEK.
8224
8225 2007-05-28  Bruno Haible  <bruno@clisp.org>
8226
8227         * lib/stdio_.h (fflush): More comments.
8228
8229 2007-05-28  Bruno Haible  <bruno@clisp.org>
8230
8231         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
8232         runtime test.
8233
8234 2007-05-28  Eric Blake  <ebb9@byu.net>
8235
8236         Improve lseek module.
8237         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
8238         * lib/unistd_.h (lseek): Scale back link warning message.
8239         * tests/test-lseek.c: Beef up test.
8240         * tests/test-lseek.sh: Exercise more facets of lseek.
8241         Reported by Bruno Haible.
8242
8243 2007-05-28  Bruno Haible  <bruno@clisp.org>
8244
8245         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
8246         to define.
8247
8248 2007-05-27  Bruno Haible  <bruno@clisp.org>
8249
8250         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
8251
8252 2007-05-27  Bruno Haible  <bruno@clisp.org>
8253
8254         * modules/openmp: New file.
8255         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
8256         Noah Misch.
8257
8258 2007-05-26  Bruno Haible  <bruno@clisp.org>
8259
8260         * modules/chdir-long (Depends-on): Add fchdir.
8261         * modules/chdir-safer (Depends-on): Likewise.
8262         * modules/fts (Depends-on): Likewise.
8263         * modules/fts-lgpl (Depends-on): Likewise.
8264         * modules/openat (Depends-on): Likewise.
8265         * modules/savewd (Depends-on): Likewise.
8266
8267 2007-05-24  Eric Blake  <ebb9@byu.net>
8268
8269         Fix lseek on mingw.
8270         * modules/lseek: New module.
8271         * m4/lseek.m4: New file.
8272         * lib/lseek.c: New file.
8273         * modules/lseek-tests: New file.
8274         * tests/test-lseek.c: New file.
8275         * tests/test-lseek.sh: New file.
8276         * MODULES.html.sh: Document lseek module.
8277         * modules/fflush (Depends-on): Add lseek, fseeko.
8278         * modules/fseeko (Depends-on): Likewise.
8279         * modules/ftello (Depends-on): Likewise.
8280         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
8281         broken.
8282         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
8283         broken.
8284         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
8285         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
8286         * lib/ftello.c (rpl_ftello): Likewise.
8287         * tests/test-fseeko.c (main): Test this.
8288         * tests/test-fseeko.sh: Likewise.
8289         * tests/test-ftello.c (main): Likewise.
8290         * tests/test-ftello.sh: Likewise.
8291         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
8292         implies replacing fseek.
8293         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
8294         HAVE_FTELLO.
8295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
8296         * modules/unistd (Makefile.am): Likewise.
8297         * lib/unistd_.h (lseek): Declare a replacement.
8298         * doc/functions/lseek.texi (lseek): Document this fix.
8299         * doc/functions/fseek.texi (fseek): Likewise.
8300         * doc/functions/ftell.texi (ftell): Likewise.
8301
8302 2007-05-24  Bruno Haible  <bruno@clisp.org>
8303
8304         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
8305         in the printed representation of a NaN.
8306         * tests/test-vasprintf-posix.c (test_function): Likewise.
8307         * tests/test-snprintf-posix.h (test_function): Likewise.
8308         * tests/test-sprintf-posix.h (test_function): Likewise.
8309         Reported by Eric Blake.
8310
8311 2007-05-23  Eric Blake  <ebb9@byu.net>
8312
8313         Fix fseeko/ftello on cygwin 1.5.24.
8314         * doc/functions/fseeko.texi (fseeko): Document the fix.
8315         * doc/functions/ftello.texi (ftello): Document the fix.
8316         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
8317         * doc/functions/stdout.text (stdout): New file.
8318         * doc/functions/stderr.text (stderr): New file.
8319         * doc/gnulib.texi (Function Substitutes): Use new files.
8320         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
8321         prior to 1.7.0.
8322         * tests/test-ftello.c (main): Likewise for ftello.
8323         * tests/test-fseeko.sh: New file.
8324         * tests/test-ftello.sh: New file.
8325         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
8326         with seekable stdin.
8327         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
8328         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
8329         (gl_REPLACE_FSEEKO): New macro.
8330         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
8331         * modules/fseeko (Files): Distribute fseeko.c.
8332         * modules/ftello (Files): Distribute ftello.c.
8333         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
8334         mode.
8335         * lib/ftello.c (rpl_ftello): New file.
8336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
8337         fseeko, ftello.
8338         (gl_STDIN_LARGE_OFFSET): New macro.
8339         * modules/stdio (Makefile.am): Perform the replacement.
8340         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
8341
8342 2007-05-23  Bruno Haible  <bruno@clisp.org>
8343
8344         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
8345         GNULIB_POSIXCHECK is defined.
8346
8347 2007-05-21  Bruno Haible  <bruno@clisp.org>
8348
8349         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
8350         Check also the output for NaN arguments. When cross-compiling, guess
8351         no on IRIX.
8352         * lib/vasnprintf.c: Update comments.
8353         * tests/test-vasnprintf-posix.c (strisnan): New function.
8354         (test_function): Use it.
8355         * tests/test-vasprintf-posix.c (strisnan): New function.
8356         (test_function): Use it.
8357         * tests/test-snprintf-posix.h (strisnan): New function.
8358         (test_function): Use it.
8359         * tests/test-sprintf-posix.h (strisnan): New function.
8360         (test_function): Use it.
8361         Reported by Eric Blake.
8362
8363 2007-05-20  Bruno Haible  <bruno@clisp.org>
8364
8365         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
8366         numbers that fails on BeOS.
8367         * doc/functions/frexpl.texi: Update.
8368
8369 2007-05-20  Jim Meyering  <jim@meyering.net>
8370
8371         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
8372         forced upon us by glibc-2.6.
8373
8374 2007-05-20  Bruno Haible  <bruno@clisp.org>
8375
8376         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
8377         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
8378         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
8379         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
8380         NEED_PRINTF_INFINITE.
8381         (is_infinitel): New function.
8382         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
8383         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
8384         gl_PREREQ_VASNPRINTF_INFINITE.
8385         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
8386         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8387         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
8388         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
8389         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
8390         gl_PREREQ_VASNPRINTF_INFINITE.
8391         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8392         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8393         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8394         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8395         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8396         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8397         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8398         * doc/functions/fprintf.texi: Update.
8399         * doc/functions/printf.texi: Update.
8400         * doc/functions/snprintf.texi: Update.
8401         * doc/functions/sprintf.texi: Update.
8402         * doc/functions/vfprintf.texi: Update.
8403         * doc/functions/vprintf.texi: Update.
8404         * doc/functions/vsnprintf.texi: Update.
8405         * doc/functions/vsprintf.texi: Update.
8406
8407 2007-05-20  Bruno Haible  <bruno@clisp.org>
8408
8409         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
8410         was not found in libc.
8411         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8412
8413 2007-05-20  Bruno Haible  <bruno@clisp.org>
8414
8415         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
8416         printed as "-nan" instead of "nan".
8417         * tests/test-vasprintf-posix.c (test_function): Likewise.
8418         * tests/test-snprintf-posix.h (test_function): Likewise.
8419         * tests/test-sprintf-posix.h (test_function): Likewise.
8420         Needed for HP-UX 11.
8421
8422 2007-05-20  Jim Meyering  <jim@meyering.net>
8423
8424         Fix buggy test for the fchownat-deref bug.
8425         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
8426         symlink required for the run-test.  Without it, this test would
8427         always declare that fchownat doesn't work, and client code would
8428         unnecessarily use the replacement function with fixed libc.
8429         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
8430         Reported by Greg Schafer.
8431
8432 2007-05-19  Bruno Haible  <bruno@clisp.org>
8433
8434         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
8435         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
8436         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
8437         Needed for IRIX 6.5 and Solaris 2.5.1.
8438
8439 2007-05-19  Bruno Haible  <bruno@clisp.org>
8440
8441         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
8442         (test_function): Skip tests involving -0.0 on platforms where
8443         -0.0 = 0.0.
8444         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
8445         (test_function): Skip tests involving -0.0 on platforms where
8446         -0.0 = 0.0.
8447         * tests/test-snprintf-posix.h (have_minus_zero): New function.
8448         (test_function): Skip tests involving -0.0 on platforms where
8449         -0.0 = 0.0.
8450         * tests/test-sprintf-posix.h (have_minus_zero): New function.
8451         (test_function): Skip tests involving -0.0 on platforms where
8452         -0.0 = 0.0.
8453         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
8454         tests.
8455         * tests/test-printf-posix.h (test_function): Likewise.
8456         * tests/test-printf-posix.output: Remove all -0.0 related results.
8457         Needed for IRIX 6.5.
8458
8459 2007-05-19  Bruno Haible  <bruno@clisp.org>
8460
8461         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
8462         printed as "nan0x7fffffff" instead of "nan".
8463         * tests/test-vasprintf-posix.c (test_function): Likewise.
8464         * tests/test-snprintf-posix.h (test_function): Likewise.
8465         * tests/test-sprintf-posix.h (test_function): Likewise.
8466         * tests/test-fprintf-posix.h (NaN): Remove macro.
8467         (test_function): Remove all NaN related tests.
8468         * tests/test-printf-posix.h (NaN): Remove macro.
8469         (test_function): Remove all NaN related tests.
8470         * tests/test-printf-posix.output: Remove all NaN related results.
8471         Needed for IRIX 6.5.
8472
8473 2007-05-19  Bruno Haible  <bruno@clisp.org>
8474
8475         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
8476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8477
8478 2007-05-19  Bruno Haible  <bruno@clisp.org>
8479
8480         * lib/float_.h: New file.
8481         * m4/float_h.m4: New file.
8482         * modules/float: New file.
8483         * modules/isnanl (Dependencies): Add float.
8484         * modules/isnanl-nolibm (Dependencies): Likewise.
8485         * modules/mathl (Dependencies): Likewise.
8486         * modules/printf-frexpl (Dependencies): Likewise.
8487         * modules/signbit (Dependencies): Likewise.
8488         * modules/vasnprintf (Dependencies): Likewise.
8489         * doc/headers/float.texi: Update.
8490
8491 2007-05-19  Jim Meyering  <jim@meyering.net>
8492
8493         * lib/utimens.c (gl_futimens): Rename from futimens,
8494         now that glibc-2.6 declares futimens.
8495         * lib/utimens.h: Likewise.
8496
8497 2007-05-19  Bruno Haible  <bruno@clisp.org>
8498
8499         Avoid test failures on mingw.
8500         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
8501         * tests/test-printf-posix.sh: Likewise.
8502         * tests/test-vfprintf-posix.sh: Likewise.
8503         * tests/test-vprintf-posix.sh: Likewise.
8504
8505 2007-05-19  Bruno Haible  <bruno@clisp.org>
8506
8507         Fix *printf result for NaN, Inf, -0.0 on mingw.
8508         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
8509         * lib/vasnprintf.c: Include math.h and isnan.h.
8510         (is_infinite_or_zero): New function.
8511         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
8512         values in the %f, %F, %e, %E, %g, %G directives.
8513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
8514         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8515         gl_PRINTF_INFINITE and test its result. Invoke
8516         gl_PREREQ_VASNPRINTF_INFINITE.
8517         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8518         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8520         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8521         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8523         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8524         * doc/functions/fprintf.texi: Update.
8525         * doc/functions/printf.texi: Update.
8526         * doc/functions/snprintf.texi: Update.
8527         * doc/functions/sprintf.texi: Update.
8528         * doc/functions/vfprintf.texi: Update.
8529         * doc/functions/vprintf.texi: Update.
8530         * doc/functions/vsnprintf.texi: Update.
8531         * doc/functions/vsprintf.texi: Update.
8532
8533 2007-05-19  Bruno Haible  <bruno@clisp.org>
8534
8535         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
8536         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
8537         Instead of multiplying with 10^k, set extra_zeroes to k.
8538         (scale10_round_long_double): Remove function.
8539
8540 2007-05-18  Bruno Haible  <bruno@clisp.org>
8541
8542         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
8543         introduced on 2007-05-06.
8544
8545 2007-05-18  Bruno Haible  <bruno@clisp.org>
8546
8547         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
8548         %g directives.
8549         * tests/test-vasprintf-posix.c (test_function): Likewise.
8550         * tests/test-snprintf-posix.h (test_function): Likewise.
8551         * tests/test-sprintf-posix.h (test_function): Likewise.
8552
8553 2007-05-18  Bruno Haible  <bruno@clisp.org>
8554
8555         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
8556         (strmatch): New function.
8557         (test_function): Test the %f directive on numbers of various exponents.
8558         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
8559         (strmatch): New function.
8560         (test_function): Test the %f directive on numbers of various exponents.
8561         * tests/test-snprintf-posix.h (strmatch): New function.
8562         (test_function): Test the %f directive on numbers of various exponents.
8563         * tests/test-sprintf-posix.h (strmatch): New function.
8564         (test_function): Test the %f directive on numbers of various exponents.
8565         * tests/test-snprintf-posix.c (SIZEOF): New macro.
8566         * tests/test-sprintf-posix.c (SIZEOF): New macro.
8567         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
8568         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
8569
8570 2007-05-18  Bruno Haible  <bruno@clisp.org>
8571
8572         Add support for 'long double' number output.
8573         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
8574         * lib/vasnprintf.c: Include math.h and float+.h.
8575         (mp_limb_t): New type.
8576         (GMP_LIMB_BITS): New macro.
8577         (mp_twolimb_t): New type.
8578         (GMP_TWOLIMB_BITS): New macro.
8579         (mpn_t): New type.
8580         (multiply, divide, convert_to_decimal, decode_long_double,
8581         scale10_round_long_double, scale10_round_decimal_long_double,
8582         floorlog10l): New functions.
8583         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
8584         for the %f, %F, %e, %E, %g, %G directives.
8585         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
8586         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8587         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
8588         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
8589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8590         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8592         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8593         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8594         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8595         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8596         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
8597         * modules/snprintf-posix (Depends-on): Likewise.
8598         * modules/sprintf-posix (Depends-on): Likewise.
8599         * modules/vasnprintf-posix (Depends-on): Likewise.
8600         * modules/vasprintf-posix (Depends-on): Likewise.
8601         * modules/vfprintf-posix (Depends-on): Likewise.
8602         * modules/vsnprintf-posix (Depends-on): Likewise.
8603         * modules/vsprintf-posix (Depends-on): Likewise.
8604         * modules/vasnprintf (Files): Add lib/float+.h.
8605         * doc/functions/fprintf.texi: Update.
8606         * doc/functions/printf.texi: Update.
8607         * doc/functions/snprintf.texi: Update.
8608         * doc/functions/sprintf.texi: Update.
8609         * doc/functions/vfprintf.texi: Update.
8610         * doc/functions/vprintf.texi: Update.
8611         * doc/functions/vsnprintf.texi: Update.
8612         * doc/functions/vsprintf.texi: Update.
8613
8614 2007-05-18  Bruno Haible  <bruno@clisp.org>
8615
8616         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
8617
8618 2007-05-18  Bruno Haible  <bruno@clisp.org>
8619
8620         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
8621         for printing 64-bit integers. Needed for mingw.
8622
8623 2007-05-18  Bruno Haible  <bruno@clisp.org>
8624
8625         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
8626         gl_FUNC_FREXPL_WORKS.
8627         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
8628
8629 2007-05-18  Bruno Haible  <bruno@clisp.org>
8630
8631         * modules/frexpl-nolibm-tests: New file.
8632
8633         * modules/frexpl-nolibm: New file.
8634         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
8635
8636 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
8637
8638         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
8639         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
8640         GCC 4.2, which otherwise issues a lot of warnings.
8641         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
8642         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
8643         Likewise.
8644         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
8645         * modules/iconv_open (iconv.h): Likewise.
8646         * modules/locale (locale.h): Likewise.
8647         * modules/netinet_in (netinet/in.h): Likewise.
8648         * modules/sys_select (sys_select.h): Likewise.
8649         * modules/sys_socket (sys/socket.h): Likewise.
8650         * modules/sys_stat (sys/stat.h): Likewise.
8651         * modules/sysexits (sysexits.h): Likewise.
8652         * modules/unistd (unistd.h): Likewise.
8653
8654 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8655
8656         * modules/closein-tests (Makefile.am): Distribute
8657         `test-closein.sh'.
8658
8659 2007-05-17  Bruno Haible  <bruno@clisp.org>
8660
8661         * tests/test-printf-posix.output: Renamed from
8662         tests/test-fprintf-posix.out.
8663         * modules/fprintf-posix-tests: Update.
8664         * modules/printf-posix-tests: Update.
8665         * modules/vfprintf-posix-tests: Update.
8666         * modules/vprintf-posix-tests: Update.
8667         * tests/test-fprintf-posix.sh: Update.
8668         * tests/test-printf-posix.sh: Update.
8669         * tests/test-vfprintf-posix.sh: Update.
8670         * tests/test-vprintf-posix.sh: Update.
8671         Reported by Ralf Wildenhues.
8672
8673 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8674
8675         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
8676         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
8677         GCC 4.2, which otherwise issues a lot of warnings.
8678         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
8679         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
8680         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
8681         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
8682         it should no longer be needed.
8683         * lib/string_.h: Likewise.
8684         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
8685         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
8686         * modules/inttypes (inttypes.h): Likewise.
8687         * modules/math (math.h): Likewise.
8688         * modules/search (search.h): Likewise.
8689         * modules/signal (signal.h): Likewise.
8690         * modules/stdint (stdint.h): Likewise.
8691         * modules/stdio (stdio.h): Likewise.
8692         * modules/stdlib (stdlib.h): Likewise.
8693         * modules/string (string.h): Likewise.
8694         * modules/sys_time (sys/time.h): Likewise.
8695         * modules/time (time.h): Likewise.
8696         * modules/wchar (wchar.h): Likewise.
8697         * modules/wctype (wtype.h): Likewise.
8698
8699 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8700
8701         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
8702
8703 2007-05-13  Bruno Haible  <bruno@clisp.org>
8704
8705         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
8706         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8707         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
8708         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
8709         (gl_PREREQ_STRTOK_R): Don't require it here.
8710
8711 2007-05-13  Bruno Haible  <bruno@clisp.org>
8712
8713         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
8714         when used in C++ mode.
8715
8716 2007-05-12  Bruno Haible  <bruno@clisp.org>
8717
8718         * lib/linebuffer.h: Tweak doc.
8719         * lib/linebuffer.c: Likewise.
8720
8721 2007-05-12  James Youngman  <jay@gnu.org>
8722
8723         * lib/linebuffer.c (readlinebuffer_delim): New function,
8724         like readlinebuffer, but use a caller-specified delimiter.
8725         (readlinebuffer): Just call readlinebuffer_delim with '\n'
8726         as the delimiter.
8727         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
8728
8729 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8730
8731         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
8732         * modules/openat (Files): Remove openat-die.c.
8733         (Depends-on): Add openat-die.
8734         * modules/openat-die: New module.
8735
8736 2007-05-06  Bruno Haible  <bruno@clisp.org>
8737
8738         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
8739         Update with info about Cygwin.
8740         * doc/functions/fprintf.texi: Update.
8741         * doc/functions/printf.texi: Update.
8742         * doc/functions/snprintf.texi: Update.
8743         * doc/functions/sprintf.texi: Update.
8744         * doc/functions/vfprintf.texi: Update.
8745         * doc/functions/vprintf.texi: Update.
8746         * doc/functions/vsnprintf.texi: Update.
8747         * doc/functions/vsprintf.texi: Update.
8748         Reported by Eric Blake.
8749
8750 2007-05-06  Bruno Haible  <bruno@clisp.org>
8751
8752         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
8753         padding ourselves for the floating-point directives.
8754         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
8755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
8756         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8757         gl_PRINTF_FLAG_ZERO and test its result. Invoke
8758         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
8759         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8760         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
8761         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8762         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8763         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8764         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8765         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8766         * tests/test-snprintf-posix.h (test_function): Also check the width
8767         and some flags in the %f directive.
8768         * tests/test-sprintf-posix.h (test_function): Likewise.
8769         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8770         * tests/test-vasprintf-posix.c (test_function): Likewise.
8771         * doc/functions/fprintf.texi: Update.
8772         * doc/functions/printf.texi: Update.
8773         * doc/functions/snprintf.texi: Update.
8774         * doc/functions/sprintf.texi: Update.
8775         * doc/functions/vfprintf.texi: Update.
8776         * doc/functions/vprintf.texi: Update.
8777         * doc/functions/vsnprintf.texi: Update.
8778         * doc/functions/vsprintf.texi: Update.
8779
8780 2007-05-06  Bruno Haible  <bruno@clisp.org>
8781
8782         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
8783         pass the ' flag character to sprintf or snprintf.
8784         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
8785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
8786         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8787         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
8788         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
8789         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8790         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
8791         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8792         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8793         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8794         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8795         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8796         * tests/test-snprintf-posix.h (test_function): Also check the grouping
8797         flag.
8798         * tests/test-sprintf-posix.h (test_function): Likewise.
8799         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8800         * tests/test-vasprintf-posix.c (test_function): Likewise.
8801         * doc/functions/fprintf.texi: Update.
8802         * doc/functions/printf.texi: Update.
8803         * doc/functions/snprintf.texi: Update.
8804         * doc/functions/sprintf.texi: Update.
8805         * doc/functions/vfprintf.texi: Update.
8806         * doc/functions/vprintf.texi: Update.
8807         * doc/functions/vsnprintf.texi: Update.
8808         * doc/functions/vsprintf.texi: Update.
8809
8810 2007-05-01  Bruno Haible  <bruno@clisp.org>
8811
8812         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
8813
8814 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
8815
8816         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
8817         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
8818
8819 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8820
8821         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
8822         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
8823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
8824
8825 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
8826
8827         * lib/argp-help.c (struct hol_entry): New member `ord'.
8828         (HOL_ENTRY_PTRCMP): Use ord for comparison
8829         (hol_sort): Initialize ord.
8830
8831 2007-05-01  Bruno Haible  <bruno@clisp.org>
8832
8833         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
8834         Reported by Eric Blake.
8835         * doc/gnulib.texi (Function Substitutes): Update.
8836
8837 2007-05-01  Bruno Haible  <bruno@clisp.org>
8838
8839         * doc/functions.texi: Remove file, now redundant through
8840         doc/functions/*.texi.
8841
8842 2007-05-01  Bruno Haible  <bruno@clisp.org>
8843
8844         * modules/argp (Depends-on): Add sleep.
8845
8846 2007-05-01  Bruno Haible  <bruno@clisp.org>
8847
8848         * modules/sleep-tests: New file.
8849         * tests/test-sleep.c: New file.
8850
8851         * modules/sleep: New file.
8852         * lib/sleep.c: New file.
8853         * m4/sleep.m4: New file.
8854         * lib/unistd_.h (sleep): New declaration.
8855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
8856         HAVE_SLEEP.
8857         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
8858         * doc/functions/sleep.texi: Document the sleep module.
8859
8860 2007-05-01  Bruno Haible  <bruno@clisp.org>
8861
8862         * lib/sigprocmask.h: Remove file.
8863         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
8864         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
8865         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
8866         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
8867         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8868         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
8869         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
8870         HAVE_SIGSET_T as a shell variable.
8871         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
8872         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
8873         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
8874         (Depends-on): Add signal. Remove verify.
8875         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
8876         (Include): Mention <signal.h> instead of sigprocmask.h.
8877         * NEWS: Mention the change.
8878         * lib/fatal-signal.c: Don't include sigprocmask.h.
8879
8880 2007-05-01  Bruno Haible  <bruno@clisp.org>
8881
8882         * modules/signal: New file.
8883         * lib/signal_.h: New file.
8884         * m4/signal_h.m4: New file.
8885
8886 2007-05-01  Bruno Haible  <bruno@clisp.org>
8887
8888         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
8889         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
8890         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
8891         HAVE_WCTYPE_CTMP_BUG into wctype.h.
8892
8893 2007-05-01  Bruno Haible  <bruno@clisp.org>
8894
8895         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
8896         configure time.
8897         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
8898         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
8899         * modules/sys_stat (Makefile.am): Substitute their values into
8900         sys/stat.h.
8901
8902 2007-05-01  Bruno Haible  <bruno@clisp.org>
8903
8904         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
8905         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
8906         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
8907
8908 2007-05-01  Bruno Haible  <bruno@clisp.org>
8909
8910         * doc/header/assert.texi: Undo last change: don't mention the gnulib
8911         'assert' module here.
8912
8913 2007-05-01  Bruno Haible  <bruno@clisp.org>
8914
8915         * doc/functions/*.texi: New files.
8916         * doc/functions/google-ranking.txt: New file.
8917         * doc/gnulib.texi (Function Substitutes): New chapter.
8918         (ctime, inet_ntoa): Remove sections.
8919         * doc/ctime.texi: Remove file.
8920         * doc/inet_ntoa.texi: Remove file.
8921         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
8922         dependencies.
8923         (%.info): New rule, specifying a --reference-limit.
8924
8925 2007-05-01  Bruno Haible  <bruno@clisp.org>
8926
8927         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
8928
8929 2007-05-01  Bruno Haible  <bruno@clisp.org>
8930
8931         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
8932         the portability of 'mkdir' to mingw systems.
8933
8934 2007-05-01  Bruno Haible  <bruno@clisp.org>
8935
8936         * doc/headers/google-ranking.txt: New file.
8937
8938 2007-04-30  Eric Blake  <ebb9@byu.net>
8939
8940         Prefer fseeko to fseek.
8941         * modules/getpass (Depends-on): Add fseeko.
8942         * lib/getpass.c (getpass): Use fseeko, not fseek.
8943
8944 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
8945
8946         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
8947         assumes the sorting is stable, while most qsort implementations
8948         are not.  Use argument addresses to ensure they never compare as
8949         equal.
8950
8951         * tests/test-argp-2.sh (usage-indent test): Fix output
8952         (func_compare): Restore diff options
8953         * tests/test-argp.c: Restore #include "progname.h"
8954
8955 2007-04-29  Bruno Haible  <bruno@clisp.org>
8956
8957         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
8958         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8959         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
8960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8961         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
8962         (configure.ac): Define CHECK_SNPRINTF_POSIX.
8963         (TESTS, check_PROGRAMS): Add test-snprintf.
8964         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
8965         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
8966         (TESTS, check_PROGRAMS): Add test-vsnprintf.
8967         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
8968         assertions that fail on HP-UX, OSF/1, or IRIX.
8969         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
8970
8971 2007-04-29  Bruno Haible  <bruno@clisp.org>
8972
8973         * MODULES.html.sh (posix_functions): Remove 'contents'.
8974
8975 2007-04-29  Karl Berry  <karl@gnu.org>
8976
8977         * config/srclist.txt (gendocs_template_min): new entry.
8978
8979 2007-04-29  Bruno Haible  <bruno@clisp.org>
8980
8981         Work around fpurge bug on BSD systems.
8982         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
8983         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
8984         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
8985         fpurge to rpl_fpurge if the system already has this function.
8986         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
8987         the case where the system already has this function. Correct invariants
8988         on BSD systems.
8989         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
8990         BSD systems.
8991
8992 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
8993
8994         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
8995         proposed by Sven Verdoolaege.
8996
8997         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
8998         options.
8999         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
9000         (usage and help tests): Update
9001
9002 2007-04-29  Bruno Haible  <bruno@clisp.org>
9003
9004         * tests/test-fflush.c (main): Use a file of size 17, not 10.
9005         Print more information in case of failure. Disable a test on BeOS.
9006
9007 2007-04-29  Bruno Haible  <bruno@clisp.org>
9008
9009         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
9010         This helps debugging on systems on which no gdb is available.
9011
9012 2007-04-29  Bruno Haible  <bruno@clisp.org>
9013
9014         * lib/freading.h: Improve comments.
9015         * lib/fwriting.h: Likewise.
9016         * tests/test-freading.c (main): Don't check freading immediately after
9017         repositioning. Needed for glibc.
9018
9019 2007-04-29  Bruno Haible  <bruno@clisp.org>
9020
9021         * lib/freading.c (freading): Trivial simplification.
9022
9023 2007-04-28  Bruno Haible  <bruno@clisp.org>
9024
9025         * tests/test-fwriting.c (main): Also test the interaction between
9026         fflush and fwriting.
9027         * modules/fwriting-tests (Depends-on): Add fflush.
9028
9029         * tests/test-freading.c (main): Also test the interaction between
9030         fflush and freading.
9031         * modules/freading-tests (Depends-on): Add fflush.
9032
9033 2007-04-28  Bruno Haible  <bruno@clisp.org>
9034
9035         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
9036         fseeko and ftello.
9037         Suggested by Eric Blake.
9038
9039 2007-04-28  Jim Meyering  <jim@meyering.net>
9040
9041         Avoid false-negative in gl_STDINT_H's C99 conformance test.
9042         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
9043         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
9044
9045 2007-04-27  Eric Blake  <ebb9@byu.net>
9046
9047         * doc/headers/assert.texi (assert.h): Document assert module use.
9048
9049 2007-04-27  Bruno Haible  <bruno@clisp.org>
9050
9051         * doc/headers/*.texi: New files.
9052         * doc/gnulib.texi (Header File Substitutes): New chapter.
9053         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
9054         dependencies.
9055         (standards.info ,standards.html, standards.dvi): Update dependencies.
9056         (mostlyclean, clean): New targets.
9057
9058 2007-04-27  Bruno Haible  <bruno@clisp.org>
9059
9060         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
9061         * modules/sysexits (Files, Makefile.am): Update.
9062
9063         * lib/sys_socket_.h: Renamed from lib/socket_.h.
9064         * modules/sys_socket (Files, Makefile.am): Update.
9065
9066         * lib/sys_stat_.h: Renamed from lib/stat_.h.
9067         * modules/sys_stat (Files, Makefile.am): Update.
9068
9069 2007-04-27  Eric Blake  <ebb9@byu.net>
9070
9071         * lib/freading.h: Improve comments.
9072         * lib/fwriting.h: Likewise.
9073         * lib/fflush.c: Likewise.
9074
9075         Fix closein for mingw.
9076         * modules/closein-tests: Add tests for closein.
9077         * tests/test-closein.c: New file.
9078         * tests/test-closein.sh: Likewise.
9079         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
9080         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
9081
9082 2007-04-27  Bruno Haible  <bruno@clisp.org>
9083
9084         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
9085         version is < 6.
9086         * lib/math_.h [__DECC]: Likewise.
9087         * lib/stdio_.h [__DECC]: Likewise.
9088         * lib/stdlib_.h [__DECC]: Likewise.
9089         * lib/string_.h [__DECC]: Likewise.
9090         * lib/time_.h [__DECC]: Likewise.
9091         * lib/wchar_.h [__DECC]: Likewise.
9092         * lib/wctype_.h [__DECC]: Likewise.
9093
9094 2007-04-27  Bruno Haible  <bruno@clisp.org>
9095
9096         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
9097
9098 2007-04-27  Bruno Haible  <bruno@clisp.org>
9099
9100         * lib/fflush.c: Add comments.
9101         * modules/fpurge-tests (Depends-on): Add fflush.
9102         * modules/freadable-tests (Depends-on): Likewise.
9103         * modules/fwritable-tests (Depends-on): Likewise.
9104
9105 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
9106
9107         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
9108         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
9109         Report by Bruno Haible <bruno@clisp.org>.
9110
9111 2007-04-26  Eric Blake  <ebb9@byu.net>
9112
9113         Fix fflush on mingw.
9114         * modules/fflush (Depends-on): Add freading.
9115         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
9116         but unread data.
9117
9118 2007-04-26  Eric Blake  <ebb9@byu.net>
9119         and Bruno Haible  <bruno@clisp.org>
9120
9121         Implement freading and fwriting.
9122         * lib/freading.c: New file.
9123         * lib/freading.h: Likewise.
9124         * m4/freading.m4: Likewise.
9125         * modules/freading: Likewise.
9126         * modules/freading-tests: Likewise.
9127         * tests/test-freading.c: Likewise.
9128         * lib/fwriting.c: New file.
9129         * lib/fwriting.h: Likewise.
9130         * m4/fwriting.m4: Likewise.
9131         * modules/fwriting: Likewise.
9132         * modules/fwriting-tests: Likewise.
9133         * tests/test-fwriting.c: Likewise.
9134         * MODULES.html.sh (File stream based Input/Output): Mention them.
9135
9136 2007-04-26  Bruno Haible  <bruno@clisp.org>
9137
9138         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
9139         'long' when we assume it.
9140         Suggested by Eric Blake.
9141
9142 2007-04-26  Bruno Haible  <bruno@clisp.org>
9143
9144         Ensure fseeko, ftello are declared on glibc systems.
9145         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
9146         * modules/fseeko (configure.ac-early): Likewise.
9147         * modules/ftello (configure.ac-early): Likewise.
9148         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
9149         AC_FUNC_FSEEKO for this.
9150         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
9151         (gl_CHECK_FSEEKO): Remove macro.
9152
9153 2007-04-26  Bruno Haible  <bruno@clisp.org>
9154
9155         * tests/test-fflush.c (main): Also check the ftell result after
9156         fflush and fseek/fseeko.
9157         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
9158         file descriptor position cache in the stream.
9159         * lib/fseeko.c (rpl_fseeko): Likewise.
9160
9161 2007-04-26  Bruno Haible  <bruno@clisp.org>
9162
9163         * modules/fflush-tests (Depends-on): Add fseeko.
9164
9165 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
9166             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9167
9168         * lib/argz_.h: ensure error_t definition is obtained in same
9169         mechanism system argz.h would have.
9170         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
9171         argz facilities are known bad.  Err on the side of caution if
9172         cross-compiling.
9173
9174 2007-04-25  Eric Blake  <ebb9@byu.net>
9175
9176         * lib/fpurge.c (includes): Use stdlib.h for free.
9177         * tests/test-fflush.c (main): Also test fflush-fseeko.
9178
9179 2007-04-25  Bruno Haible  <bruno@clisp.org>
9180
9181         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
9182         * lib/fseeko.c: New file.
9183         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
9184         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
9185         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
9186         gl_FUNC_FSEEKO.
9187         (gl_FUNC_FSEEKO): Invoke it.
9188         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
9189         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
9190         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
9191
9192 2007-04-25  Bruno Haible  <bruno@clisp.org>
9193
9194         * modules/fflush (Depends-on): Add ftello.
9195
9196 2007-04-25  Bruno Haible  <bruno@clisp.org>
9197
9198         * modules/ftello-tests: New file.
9199         * tests/test-ftello.c: New file.
9200
9201         * modules/ftello: New file.
9202         * m4/ftello.m4: New file.
9203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
9204         HAVE_FTELLO.
9205         * lib/stdio_.h (ftello): New declaration.
9206         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
9207         HAVE_FTELLO.
9208
9209 2007-04-25  Bruno Haible  <bruno@clisp.org>
9210
9211         * modules/fseeko-tests: New file.
9212         * tests/test-fseeko.c: New file.
9213
9214         * modules/fseeko: New file.
9215         * m4/fseeko.m4: New file.
9216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
9217         HAVE_FSEEKO.
9218         * lib/stdio_.h (fseeko): New declaration.
9219         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
9220         HAVE_FSEEKO.
9221
9222 2007-04-25  Bruno Haible  <bruno@clisp.org>
9223
9224         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
9225
9226 2007-04-25  Bruno Haible  <bruno@clisp.org>
9227
9228         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
9229         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
9230         * tests/test-unistd.c: Likewise.
9231         * tests/test-fcntl.c: Likewise.
9232
9233 2007-04-23  Eric Blake  <ebb9@byu.net>
9234
9235         * lib/fflush.c: Fix missing include.
9236         Reported by Bruno Haible.
9237
9238 2007-04-23  Bruno Haible  <bruno@clisp.org>
9239
9240         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
9241         Reported by Eric Blake.
9242
9243 2007-04-23  Bruno Haible  <bruno@clisp.org>
9244
9245         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
9246
9247 2007-04-23  Bruno Haible  <bruno@clisp.org>
9248
9249         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
9250
9251 2007-04-23  Bruno Haible  <bruno@clisp.org>
9252
9253         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
9254         Needed on HP-UX 11.
9255
9256 2007-04-16  Eric Blake  <ebb9@byu.net>
9257
9258         Make fflush rely on fpurge.
9259         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
9260         open coding all variants.
9261         * modules/fflush (Depends-on): Add fpurge and unistd.
9262         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
9263         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
9264
9265         Fix --with-tests compilation on cygwin.
9266         * modules/argmatch-tests (Makefile.am): List gnulib library first
9267         in LDADD.
9268         * modules/argp-tests (Makefile.am): Likewise.
9269         * modules/array-list-tests (Makefile.am): Likewise.
9270         * modules/array-oset-tests (Makefile.am): Likewise.
9271         * modules/avltree-list-tests (Makefile.am): Likewise.
9272         * modules/avltree-oset-tests (Makefile.am): Likewise.
9273         * modules/avltreehash-list-tests (Makefile.am): Likewise.
9274         * modules/carray-list-tests (Makefile.am): Likewise.
9275         * modules/dirname-tests (Makefile.am): Likewise.
9276         * modules/frexp-tests (Makefile.am): Likewise.
9277         * modules/isnanl-tests (Makefile.am): Likewise.
9278         * modules/linked-list-tests (Makefile.am): Likewise.
9279         * modules/linkedhash-list-tests (Makefile.am): Likewise.
9280         * modules/lock-tests (Makefile.am): Likewise.
9281         * modules/rbtree-list-tests (Makefile.am): Likewise.
9282         * modules/rbtree-oset-tests (Makefile.am): Likewise.
9283         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
9284         * modules/tls-tests (Makefile.am): Likewise.
9285         * modules/tsearch-tests (Makefile.am): Likewise.
9286         * modules/xvasprintf-tests (Makefile.am): Likewise.
9287
9288         Fix fpurge for cygwin.
9289         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
9290         value.
9291         * modules/fpurge-tests (Depends-on): Clean up trash.
9292
9293 2007-04-16  Simon Josefsson  <simon@josefsson.org>
9294
9295         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
9296
9297         * m4/autobuild.m4: Re-indent.
9298
9299 2007-04-13  Bruno Haible  <bruno@clisp.org>
9300
9301         * modules/fpurge-tests: New file.
9302         * tests/test-fpurge.c: New file.
9303
9304         * modules/fpurge: New file.
9305         * lib/fpurge.h: New file.
9306         * lib/fpurge.c: New file.
9307         * m4/fpurge.m4: New file.
9308
9309 2007-04-13  Bruno Haible  <bruno@clisp.org>
9310
9311         * modules/fbufmode-tests: New file.
9312         * tests/test-fbufmode.c: New file.
9313
9314         * modules/fbufmode: New file.
9315         * lib/fbufmode.h: New file.
9316         * lib/fbufmode.c: New file.
9317         * m4/fbufmode.m4: New file.
9318
9319 2007-04-13  Bruno Haible  <bruno@clisp.org>
9320
9321         * modules/fwritable-tests: New file.
9322         * tests/test-fwritable.c: New file.
9323
9324         * modules/fwritable: New file.
9325         * lib/fwritable.h: New file.
9326         * lib/fwritable.c: New file.
9327         * m4/fwritable.m4: New file.
9328
9329 2007-04-13  Bruno Haible  <bruno@clisp.org>
9330
9331         * modules/freadable-tests: New file.
9332         * tests/test-freadable.c: New file.
9333
9334         * modules/freadable: New file.
9335         * lib/freadable.h: New file.
9336         * lib/freadable.c: New file.
9337         * m4/freadable.m4: New file.
9338
9339 2007-04-13  Bruno Haible  <bruno@clisp.org>
9340
9341         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
9342         MOSTLYCLEANFILES.
9343
9344 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
9345
9346         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
9347         gzip bootstrap.conf to avoid dragging in i18n machinery.
9348         (gnulib_tool_option): Use it.
9349
9350 2007-04-13  Bruno Haible  <bruno@clisp.org>
9351
9352         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
9353         %F directives.
9354         * tests/test-vasprintf-posix.c (test_function): Likewise.
9355         * tests/test-snprintf-posix.h (test_function): Likewise.
9356         * tests/test-sprintf-posix.h (test_function): Likewise.
9357         * tests/test-fprintf-posix.h (test_function): Likewise.
9358         * tests/test-printf-posix.h (test_function): Likewise.
9359         * tests/test-fprintf-posix.out: Likewise.
9360
9361 2007-04-13  Bruno Haible  <bruno@clisp.org>
9362
9363         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
9364         * modules/tls-tests (configure.ac): Likewise.
9365         Reported by Arto C. Nirkko <anirkko@insel.ch>.
9366
9367 2007-04-13  Bruno Haible  <bruno@clisp.org>
9368
9369         * lib/tls.c (glthread_tls_get): Fix return type.
9370         Patch by Arto C. Nirkko <anirkko@insel.ch>.
9371
9372 2007-04-12  Eric Blake  <ebb9@byu.net>
9373
9374         * modules/gettime (Depends-on): Remove gettime.
9375         Reported by Dmitry V. Levin.
9376
9377 2007-04-12  Bruno Haible  <bruno@clisp.org>
9378
9379         * modules/fflush (Include): Mention <stdio.h>.
9380         * modules/strtoimax (Include): Mention <inttypes.h>.
9381         * modules/strtoumax (Include): Likewise.
9382
9383 2007-04-12  Eric Blake  <ebb9@byu.net>
9384
9385         * .cvsignore: New file.
9386         * .gitignore: Likewise.
9387
9388 2007-04-12  Bruno Haible  <bruno@clisp.org>
9389
9390         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
9391         not before, since $(LDADD) often contains libgnu.a.
9392         * modules/striconv-tests (test_striconv_LDADD): Likewise.
9393         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
9394         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
9395         Needed on Cygwin.
9396
9397 2007-04-12  Eric Blake  <ebb9@byu.net>
9398
9399         Work around glibc's failure to flush stdin on fclose.
9400         * lib/closein.c (close_stdin): Flush stdin before closing.
9401
9402         Work around glibc's failure to reset seekable stdin on exit.
9403         * modules/closein: New module.
9404         * lib/closein.c: New file.
9405         * lib/closein.h: Likewise.
9406         * m4/closein.m4: Likewise.
9407         * MODULES.html.sh (File stream based Input/Output): Document it.
9408
9409 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9410
9411         * gnulib-tool: Rename generated 'autobuild' script to
9412         'do-autobuild' in --create-megatestdir output.
9413
9414         * doc/gnulib.texi (Build robot for gnulib): Fix.
9415
9416 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9417
9418         * modules/sysexits (Depends-on): Add absolute-header.
9419
9420 2007-04-12  Eric Blake  <ebb9@byu.net>
9421
9422         No need to preserve errno on success.
9423         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
9424         Reported by Bruno Haible.
9425
9426 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9427
9428         * MODULES.html.sh (Support for maintaining and releasing
9429         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
9430
9431 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9432
9433         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
9434
9435 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9436
9437         * modules/autobuild: New module.
9438
9439         * m4/autobuild.m4: New file.
9440
9441 2007-04-11  Bruno Haible  <bruno@clisp.org>
9442
9443         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
9444         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
9445         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
9446         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
9447         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9448         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9449         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9450         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9451         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9452         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9453         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
9454         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9455         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9456         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
9457         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9458         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9459         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
9460         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9461         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9462         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
9463         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9464         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
9466         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9467         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9468         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
9469         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9470         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9471         Reported by Eric Blake.
9472
9473 2007-04-11  Bruno Haible  <bruno@clisp.org>
9474
9475         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
9476
9477 2007-04-10  Bruno Haible  <bruno@clisp.org>
9478
9479         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
9480         for NaN and Infinity. Needed on FreeBSD 6.1.
9481         * tests/test-vasnprintf-posix.c (test_function): Undo last change
9482         regarding results for "%010a" of Infinity and NaN.
9483         * tests/test-vasprintf-posix.c (test_function): Likewise.
9484         * tests/test-snprintf-posix.h (test_function): Likewise.
9485         * tests/test-sprintf-posix.h (test_function): Likewise.
9486         * tests/test-fprintf-posix.h (test_function): Likewise.
9487         * tests/test-printf-posix.h (test_function): Likewise.
9488         * tests/test-fprintf-posix.out: Likewise.
9489
9490 2007-04-10  Bruno Haible  <bruno@clisp.org>
9491
9492         * modules/locale-tests: New file.
9493         * tests/test-locale.c: New file.
9494
9495         * modules/locale: New file.
9496         * lib/locale_.h: New file.
9497         * m4/locale_h.m4: New file.
9498
9499 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
9500             Bruno Haible  <bruno@clisp.org>
9501
9502         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
9503         be determined, test for availability of the copysignf, copysign,
9504         copysignl functions.
9505         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
9506         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
9507         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
9508
9509 2007-04-09  Eric Blake  <ebb9@byu.net>
9510
9511         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
9512         * modules/stdio (Makefile.am): Support fflush.
9513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9514         * modules/fflush: New file.
9515         * lib/fflush.c: Likewise.
9516         * m4/fflush.m4: Likewise.
9517         * modules/fflush-tests: New test.
9518         * tests/test-fflush.c: Likewise.
9519         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
9520
9521 2007-04-06  Bruno Haible  <bruno@clisp.org>
9522
9523         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
9524         (VASNPRINTF): Use signbit for faster determination whether to print a
9525         minus sign.
9526         * modules/vasnprintf (Files): Remove lib/float+.h.
9527         * modules/fprintf-posix (Depends-on): Add signbit.
9528         * modules/snprintf-posix (Depends-on): Likewise.
9529         * modules/sprintf-posix (Depends-on): Likewise.
9530         * modules/vasnprintf-posix (Depends-on): Likewise.
9531         * modules/vasprintf-posix (Depends-on): Likewise.
9532         * modules/vfprintf-posix (Depends-on): Likewise.
9533         * modules/vsnprintf-posix (Depends-on): Likewise.
9534         * modules/vsprintf-posix (Depends-on): Likewise.
9535
9536 2007-04-06  Bruno Haible  <bruno@clisp.org>
9537
9538         * tests/test-frexp.c (main): Test also the sign bit of zero results.
9539         * tests/test-frexpl.c (main): Likewise.
9540         * tests/test-ldexpl.c (main): Likewise.
9541         * modules/frexp-tests (Depends-on): Add signbit.
9542         * modules/frexpl-tests (Depdends-on): Likewise.
9543         * modules/ldexpl-tests (Depdends-on): Likewise.
9544
9545 2007-04-06  Bruno Haible  <bruno@clisp.org>
9546
9547         * modules/signbit-tests: New file.
9548         * tests/test-signbit.c: New file.
9549
9550         * modules/signbit: New file.
9551         * lib/signbitf.c: New file.
9552         * lib/signbitd.c: New file.
9553         * lib/signbitl.c: New file.
9554         * m4/signbit.m4: New file.
9555         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
9556         (signbit): New macro.
9557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
9558         REPLACE_SIGNBIT.
9559         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
9560         REPLACE_FREXPL into math.h.
9561
9562 2007-04-06  Bruno Haible  <bruno@clisp.org>
9563
9564         * modules/isnanf-nolibm-tests: New file.
9565         * tests/test-isnanf.c: New file.
9566
9567         * modules/isnanf-nolibm: New file.
9568         * lib/isnanf.h: New file.
9569         * lib/isnanf.c: New file.
9570         * lib/isnan.c: Consider the USE_FLOAT macro.
9571         * m4/isnanf.m4: New file.
9572
9573 2007-04-06  Bruno Haible  <bruno@clisp.org>
9574
9575         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
9576         (Link): New section.
9577
9578         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
9579
9580 2007-04-06  Bruno Haible  <bruno@clisp.org>
9581
9582         Assume the 'long double' type.
9583         * m4/longdouble.m4: Remove file.
9584         * config/srclist.txt: Don't mention longdouble.m4.
9585         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
9586         * lib/float+.h: Likewise.
9587         * lib/frexp.c: Likewise.
9588         * lib/printf-args.h: Likewise.
9589         * lib/printf-args.c: Likewise.
9590         * lib/printf-frexp.c: Likewise.
9591         * lib/printf-parse.c: Likewise.
9592         * lib/vasnprintf.c: Likewise.
9593         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
9594         * m4/intl.m4: Likewise.
9595         * m4/isnanl.m4: Likewise.
9596         * m4/printf.m4: Likewise.
9597         * m4/printf-frexpl.m4: Likewise.
9598         * m4/vasnprintf.m4: Likewise.
9599         * modules/allocsa (Files): Remove m4/longdouble.m4.
9600         * modules/gettext (Files): Likewise.
9601         * modules/relocatable-prog-wrapper (Files): Likewise.
9602         * modules/vasnprintf (Files): Likewise.
9603         * modules/isnanl (Files): Likewise.
9604         (Include): Simplify.
9605         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
9606         (Include): Simplify.
9607         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
9608         (Include): Simplify.
9609         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
9610         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9611         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
9612         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9613         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
9614         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9615         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
9616         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9617         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
9618         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9619         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
9620         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9621         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
9622         * tests/test-isnanl.c: Likewise.
9623         * tests/test-snprintf-posix.h: Likewise.
9624         * tests/test-sprintf-posix.h: Likewise.
9625         * tests/test-vasnprintf-posix.c: Likewise.
9626         * tests/test-vasnprintf-posix2.c: Likewise.
9627         * tests/test-vasprintf-posix.c: Likewise.
9628
9629 2007-04-06  Bruno Haible  <bruno@clisp.org>
9630
9631         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
9632         * lib/math_.h [__DECC]: Include the overridden include file through
9633         #include_next, outside the double-inclusion guard.
9634         * lib/stdio_.h [__DECC]: Likewise.
9635         * lib/stdlib_.h [__DECC]: Likewise.
9636         * lib/string_.h [__DECC]: Likewise.
9637         * lib/time_.h [__DECC]: Likewise.
9638         * lib/wchar_.h [__DECC]: Likewise.
9639         * lib/wctype_.h [__DECC]: Likewise.
9640         * lib/inttypes_.h [__DECC]: Likewise.
9641         Reported by Albert Chin <china@thewrittenword.com> in
9642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
9643
9644 2007-04-04  Eric Blake  <ebb9@byu.net>
9645
9646         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
9647         1.5.x.
9648
9649 2007-04-04  Bruno Haible  <bruno@clisp.org>
9650
9651         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
9652         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
9653
9654 2007-04-04  Bruno Haible  <bruno@clisp.org>
9655
9656         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
9657         results for "%010a" of Infinity and NaN.
9658         * tests/test-vasprintf-posix.c (test_function): Likewise.
9659         * tests/test-snprintf-posix.h (test_function): Likewise.
9660         * tests/test-sprintf-posix.h (test_function): Likewise.
9661         * tests/test-fprintf-posix.h (test_function): Remove these tests.
9662         * tests/test-printf-posix.h (test_function): Likewise.
9663         * tests/test-fprintf-posix.out: Update.
9664         Needed for FreeBSD 6.1.
9665
9666 2007-04-04  Bruno Haible  <bruno@clisp.org>
9667
9668         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
9669         directly used by the gnulib modules nor by gnulib-tool.
9670
9671 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
9672
9673         * DEPENDENCIES: Give overall description of version dependency
9674         desirability.  Use more-typical names for apps.
9675         Add shell, coreutils, diffutils, grep, tar, gzip.
9676
9677 2007-04-04  Simon Josefsson  <simon@josefsson.org>
9678
9679         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
9680
9681 2007-04-04  Karl Berry  <karl@gnu.org>
9682
9683         * MODULES.html.sh (func_module): missing '.
9684
9685 2007-04-03  Bruno Haible  <bruno@clisp.org>
9686
9687         * modules/argmatch-tests (Makefile.am): New variable
9688         test_argmatch_LDADD.
9689         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
9690         * modules/array-list-tests (Makefile.am): New variable
9691         test_array_list_LDADD.
9692         * modules/array-oset-tests (Makefile.am): New variable
9693         test_array_oset_LDADD.
9694         * modules/avltree-list-tests (Makefile.am): New variable
9695         test_avltree_list_LDADD.
9696         * modules/avltree-oset-tests (Makefile.am): New variable
9697         test_avltree_oset_LDADD.
9698         * modules/avltreehash-list-tests (Makefile.am): New variable
9699         test_avltreehash_list_LDADD.
9700         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
9701         test_canonicalize_lgpl_LDADD.
9702         * modules/carray-list-tests (Makefile.am): New variable
9703         test_carray_list_LDADD.
9704         * modules/dirname-tests (Makefile.am): New variable
9705         test_dirname_LDADD.
9706         * modules/linked-list-tests (Makefile.am): New variable
9707         test_linked_list_LDADD.
9708         * modules/linkedhash-list-tests (Makefile.am): New variable
9709         test_linkedhash_list_LDADD.
9710         * modules/rbtree-list-tests (Makefile.am): New variable
9711         test_rbtree_list_LDADD.
9712         * modules/rbtree-oset-tests (Makefile.am): New variable
9713         test_rbtree_oset_LDADD.
9714         * modules/rbtreehash-list-tests (Makefile.am): New variable
9715         test_rbtreehash_list_LDADD.
9716         * modules/xvasprintf-tests (Makefile.am): New variable
9717         test_xvasprintf_LDADD.
9718         Reported by Eric Blake.
9719
9720 2007-04-03  Eric Blake  <ebb9@byu.net>
9721
9722         * DEPENDENCIES: Weaken m4 requirements.
9723
9724 2007-04-03  Bruno Haible  <bruno@clisp.org>
9725
9726         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
9727         * modules/isnanl-tests (configure.ac): Likewise.
9728
9729 2007-04-03  Ben Pfaff  <blp@gnu.org>
9730
9731         * modules/iconv_open: Add $(srcdir)/ to source directory
9732         references in Makefile fragments that call gperf, to fix VPATH
9733         builds.
9734
9735 2007-04-03  Bruno Haible  <bruno@clisp.org>
9736
9737         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
9738         * lib/ldexpl.c: Undo last change.
9739
9740 2007-04-03  Bruno Haible  <bruno@clisp.org>
9741
9742         * modules/printf-frexpl (Depends-on): Undo last change.
9743         (Files): Add m4/ldexpl.m4.
9744
9745 2007-04-03  Bruno Haible  <bruno@clisp.org>
9746
9747         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
9748         * modules/isnanl (Link): New section.
9749
9750         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
9751         * modules/frexp (Link): New section.
9752
9753         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
9754         * modules/frexpl (Link): New section.
9755
9756         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
9757         * modules/ldexpl (Link): New section.
9758
9759 2007-04-03  Bruno Haible  <bruno@clisp.org>
9760
9761         * modules/TEMPLATE-EXTENDED: New file.
9762         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
9763
9764 2007-04-03  Bruno Haible  <bruno@clisp.org>
9765
9766         * DEPENDENCIES: New file.
9767         Suggested by Simon Josefsson.
9768
9769 2007-04-03  Bruno Haible  <bruno@clisp.org>
9770
9771         * doc/gnulib.texi: Escape @.
9772
9773 2007-04-03  James Youngman  <jay@gnu.org>
9774         and Paul Eggert  <eggert@cs.ucla.edu>
9775
9776         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
9777         birthtime on all systems that have birthtime, not just those which
9778         use st_birthtimensec rather than st_birthtim.  Putting zero in
9779         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
9780         that the birth time is not available for files on an NFS mount.
9781
9782 2007-04-03  Simon Josefsson  <simon@josefsson.org>
9783
9784         * modules/memxor: Move back from crypto/, suggested by Bruno.
9785         * modules/crypto/hmac-sha1: Fix memxor dependency.
9786
9787         * modules/crypto/gc: Moved from ../.
9788
9789 2007-04-02  Eric Blake  <ebb9@byu.net>
9790
9791         * lib/ldexpl.c (includes): Avoid libm.
9792
9793         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
9794
9795 2007-04-02  Bruno Haible  <bruno@clisp.org>
9796
9797         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
9798         on IRIX.
9799
9800 2007-04-02  Bruno Haible  <bruno@clisp.org>
9801
9802         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
9803         x86 or x86_64 platforms running MacOS X.
9804         Reported by Ryan Schmidt <@ryandesign.com>.
9805
9806 2007-04-02  Bruno Haible  <bruno@clisp.org>
9807
9808         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
9809         i386.
9810
9811 2007-04-01  Simon Josefsson  <simon@josefsson.org>
9812
9813         * modules/crypto/arcfour: Moved from ../.
9814         * modules/crypto/arcfour-tests: Moved from ../.
9815         * modules/crypto/arctwo: Moved from ../.
9816         * modules/crypto/arctwo-tests: Moved from ../.
9817         * modules/crypto/des: Moved from ../.
9818         * modules/crypto/des-tests: Moved from ../.
9819         * modules/crypto/gc-arcfour: Moved from ../.
9820         * modules/crypto/gc-arcfour-tests: Moved from ../.
9821         * modules/crypto/gc-arctwo: Moved from ../.
9822         * modules/crypto/gc-arctwo-tests: Moved from ../.
9823         * modules/crypto/gc-des: Moved from ../.
9824         * modules/crypto/gc-des-tests: Moved from ../.
9825         * modules/crypto/gc-hmac-md5: Moved from ../.
9826         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
9827         * modules/crypto/gc-hmac-sha1: Moved from ../.
9828         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
9829         * modules/crypto/gc-md2: Moved from ../.
9830         * modules/crypto/gc-md2-tests: Moved from ../.
9831         * modules/crypto/gc-md4: Moved from ../.
9832         * modules/crypto/gc-md4-tests: Moved from ../.
9833         * modules/crypto/gc-md5: Moved from ../.
9834         * modules/crypto/gc-md5-tests: Moved from ../.
9835         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
9836         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
9837         * modules/crypto/gc-random: Moved from ../.
9838         * modules/crypto/gc-rijndael: Moved from ../.
9839         * modules/crypto/gc-rijndael-tests: Moved from ../.
9840         * modules/crypto/gc-sha1: Moved from ../.
9841         * modules/crypto/gc-sha1-tests: Moved from ../.
9842         * modules/crypto/gc-tests: Moved from ../.
9843         * modules/crypto/hmac-md5: Moved from ../.
9844         * modules/crypto/hmac-md5-tests: Moved from ../.
9845         * modules/crypto/hmac-sha1: Moved from ../.
9846         * modules/crypto/hmac-sha1-tests: Moved from ../.
9847         * modules/crypto/md2: Moved from ../.
9848         * modules/crypto/md2-tests: Moved from ../.
9849         * modules/crypto/md4: Moved from ../.
9850         * modules/crypto/md4-tests: Moved from ../.
9851         * modules/crypto/md5: Moved from ../.
9852         * modules/crypto/md5-tests: Moved from ../.
9853         * modules/crypto/memxor: Moved from ../.
9854         * modules/crypto/rijndael: Moved from ../.
9855         * modules/crypto/rijndael-tests: Moved from ../.
9856         * modules/crypto/sha1: Moved from ../.
9857
9858 2007-03-30  James Youngman  <jay@gnu.org>
9859
9860         * tests/test-stat-time.c (prepare_test): use chmod() rather than
9861         rename() to change the ctime of a file (because ctime is unaffected
9862         by rename on jfs2 on AIX 5.1).
9863         (main): Start by doing cleanup, in case a previous run failed leaving
9864         test files behind.
9865
9866 2007-03-31  Bruno Haible  <bruno@clisp.org>
9867
9868         Support old proprietary implementations of iconv.
9869         * modules/iconv_open: New file.
9870         * lib/iconv_.h: New file.
9871         * m4/iconv_h.m4: New file.
9872         * lib/iconv_open.c: New file.
9873         * lib/iconv_open-aix.gperf: New file.
9874         * lib/iconv_open-hpux.gperf: New file.
9875         * lib/iconv_open-irix.gperf: New file.
9876         * lib/iconv_open-osf.gperf: New file.
9877         * m4/iconv_open.m4: New file.
9878         * modules/linebreak (Depends-on): Add iconv_open.
9879         * modules/striconv (Depends-on): Likewise.
9880         * modules/striconveh (Depends-on): Likewise.
9881         * modules/unicodeio (Depends-on): Likewise.
9882         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
9883         (iconv_t)(-1).
9884         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
9885         conversion if cd is (iconv_t)(-1).
9886         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
9887         is not possible.
9888
9889 2007-03-31  Bruno Haible  <bruno@clisp.org>
9890
9891         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
9892         work on Solaris either. Protect also second use of "autodetect_jp".
9893
9894 2007-03-31  Bruno Haible  <bruno@clisp.org>
9895
9896         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
9897         the function is not present.
9898
9899 2007-03-31  Bruno Haible  <bruno@clisp.org>
9900
9901         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
9902         the function is not present.
9903
9904 2007-03-31  Bruno Haible  <bruno@clisp.org>
9905
9906         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
9907         a bug in HP-UX iconv_open().
9908
9909 2007-03-31  Bruno Haible  <bruno@clisp.org>
9910
9911         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
9912         (Mathematics <math.h>): New section, add fpieee.
9913         (Input/output <stdio.h>): Add fseterr.
9914         (Mathematics <math.h>): New section, add printf-frexp.
9915         (Container data structures): Add sublist.
9916         (Core language properties): Add fpucw, inline.
9917         (Functions for greatest-width integer types <inttypes.h>): Add
9918         imaxabs, imaxdiv, inttypes.
9919         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
9920         isnanl-nolibm, ldexp.
9921         (Mathematics <math.h>): New section, add printf-frexpl.
9922         (Support for systems lacking POSIX:2001): Add fprintf-posix,
9923         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
9924         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
9925         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
9926         (Unicode string functions): Add unistr/u*-mbtoucr.
9927         (Java): Add javacomp-script, javaexec-script.
9928         (C#): Add csharpcomp-script, csharpexec-script.
9929         (Support for building libraries and executables): Add havelib,
9930         relocatable-*.
9931         (Support for maintaining and releasing projects): Renamed from
9932         'Support for maintaining and release projects'. Add announce-gen.
9933
9934 2007-03-31  Bruno Haible  <bruno@clisp.org>
9935
9936         * README: Talk primarily about git.
9937         (git and CVS): Renamed from CVS.
9938         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
9939         gnulib is available through git.
9940         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
9941
9942 2007-03-30  Bruno Haible  <bruno@clisp.org>
9943
9944         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
9945         * lib/poll_.h: Likewise.
9946         * lib/stat_.h: Likewise.
9947         * lib/sys_time_.h: Likewise.
9948         * lib/sysexit_.h: Likewise.
9949         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
9950         * lib/stdbool_.h: Likewise.
9951         * lib/byteswap_.h: Add double-inclusion guard.
9952
9953 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
9954
9955         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
9956
9957 2007-03-30  Karl Berry  <karl@gnu.org>
9958
9959         * config/srclist-update: double space after USA in the license
9960         substitution, since that's how it's usually (?) written.
9961
9962 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
9963
9964         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
9965         reported by Bruno Haible.
9966
9967 2007-03-29  Bruno Haible  <bruno@clisp.org>
9968
9969         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
9970         a bug in AIX iconv().
9971
9972 2007-03-29  Bruno Haible  <bruno@clisp.org>
9973
9974         * modules/ldexpl-tests: New file.
9975         * tests/test-ldexpl.c: New file.
9976
9977 2007-03-29  Bruno Haible  <bruno@clisp.org>
9978
9979         * lib/ldexpl.c: Include fpucw.h.
9980         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
9981         multiplication.
9982         * modules/ldexpl (Depends-on): Add fpucw.
9983
9984 2007-03-29  Bruno Haible  <bruno@clisp.org>
9985
9986         * modules/ldexpl: New file.
9987         * m4/ldexpl.m4: New file.
9988         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
9989         set.
9990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
9991         REPLACE_LDEXPL.
9992         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
9993         REPLACE_LDEXPL.
9994         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
9995         gl_FUNC_LDEXPL_WORKS.
9996         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
9997         * modules/mathl (Files): Remove lib/ldexpl.c.
9998         (Depends-on): Add ldexpl.
9999
10000 2007-03-29  Bruno Haible  <bruno@clisp.org>
10001
10002         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
10003
10004 2007-03-29  Bruno Haible  <bruno@clisp.org>
10005
10006         * tests/test-striconveh.c (main): Don't assume that a direct conversion
10007         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
10008         and possibly also HP-UX.
10009         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
10010         work on AIX, IRIX, HP-UX, OSF/1.
10011         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10012         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10013         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10014         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10015         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
10016         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10017
10018 2007-03-29  Bruno Haible  <bruno@clisp.org>
10019
10020         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
10021
10022 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
10023
10024         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
10025         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
10026
10027 2007-03-29  Eric Blake  <ebb9@byu.net>
10028
10029         * lib/acl-internal.h: Remove redundant include.
10030         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
10031         Cygwin when a file is locked.
10032
10033 2007-03-29  Bruno Haible  <bruno@clisp.org>
10034
10035         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
10036         file.
10037         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
10038
10039 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
10040
10041         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
10042         try to remove a parent directory if the child couldn't be removed
10043         (except for the first rmdir, which could fail because the child
10044         doesn't exist).  Problem reported by Jeff Blaine in
10045         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
10046
10047 2007-03-28  Bruno Haible  <bruno@clisp.org>
10048
10049         * lib/striconveh.c (utf8conv_carefully): New function.
10050         (mem_cd_iconveh_internal): Invoke it.
10051
10052 2007-03-28  Bruno Haible  <bruno@clisp.org>
10053
10054         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
10055         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
10056         input.
10057         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
10058         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
10059         unistr/u8-uctomb.
10060
10061 2007-03-28  Bruno Haible  <bruno@clisp.org>
10062
10063         * modules/unistr/u8-mbtoucr: New file.
10064         * lib/unistr/u8-mbtoucr.c: New file.
10065         * modules/unistr/u16-mbtoucr: New file.
10066         * lib/unistr/u16-mbtoucr.c: New file.
10067         * modules/unistr/u16-mbtoucr: New file.
10068         * lib/unistr/u16-mbtoucr.c: New file.
10069         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
10070
10071 2007-03-27  Simon Josefsson  <simon@josefsson.org>
10072             Bruno Haible  <bruno@clisp.org>
10073
10074         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
10075         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
10076         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
10077
10078         * m4/stdio_h.m4: Add stubs for vasprintf too.
10079
10080         * modules/stdio: Support vasprintf in sed command.
10081
10082         * modules/vasprintf: Depend on stdio for prototypes.  Remove
10083         vasprintf.h.  Add stdio module indicator.
10084
10085         * lib/stdio_.h: Declare asprintf and vasprintf, based on
10086         vasprintf.h.
10087
10088         * lib/vasprintf.h: File removed.
10089
10090         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
10091         * lib/vasprintf.c: Ditto.
10092         * lib/xvasprintf.c: Ditto.
10093         * tests/test-vasprintf-posix.c: Ditto.
10094         * tests/test-vasprintf.c: Ditto.
10095
10096 2007-03-27  Bruno Haible  <bruno@clisp.org>
10097
10098         Make vasnprintf multithread-safe.
10099         * lib/vasnprintf.c (decimal_point_char): New function.
10100         (VASNPRINTF): Use it.
10101         Suggested by Simon Josefsson.
10102
10103 2007-03-27  Eric Blake  <ebb9@byu.net>
10104
10105         Support sub-second birthtime on cygwin.
10106         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
10107         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
10108         (get_stat_birthtime): Also work with st_birthtim.
10109
10110 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
10111
10112         * lib/stat-time.h (USE_BIRTHTIME): Remove.
10113         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
10114         (get_stat_birthtime_ns): Do not try to use "spare" fields.
10115         (get_stat_birthtime_ns): Simplify compile-time tests.
10116         (get_stat_birthtime): Change the API to look like
10117         get_stat_mtime etc., except return a negative tv_nsec on error.
10118         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
10119         Don't check for "spare" fields.
10120         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
10121         or for struct stat.st_birthtime, as these tests aren't used.
10122         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
10123
10124 2007-03-27  Bruno Haible  <bruno@clisp.org>
10125
10126         * lib/stat-time.h: Include <sys/stat.h>.
10127
10128 2007-03-27  James Youngman  <jay@gnu.org>
10129
10130         * lib/stat-time.h (get_stat_birthtime): New function for
10131           retrieving st_birthtime as provided by UFS2 (hence *BSD).
10132         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
10133           and its variants.
10134         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
10135         * modules/stat-time-test: New file.
10136         * tests/test-stat-time.c: New test, devised by Bruno Haible.
10137
10138 2007-03-26  Bruno Haible  <bruno@clisp.org>
10139
10140         Better support of signalling NaNs.
10141         * lib/atanl.c: Include isnanl.h.
10142         (atanl): Perform test for NaN at the beginning of the function and
10143         through a call to isnanl.
10144         * lib/cosl.c: Include isnanl.h.
10145         (cosl): Perform test for NaN at the beginning of the function and
10146         through a call to isnanl.
10147         * lib/ldexpl.c: Include isnanl.h.
10148         (ldexpl): Perform test for NaN through a call to isnanl.
10149         * lib/logl.c: Include isnanl.h.
10150         (logl): Perform test for NaN at the beginning of the function and
10151         through a call to isnanl.
10152         * lib/sinl.c: Include isnanl.h.
10153         (sinl): Perform test for NaN at the beginning of the function and
10154         through a call to isnanl.
10155         * lib/sqrtl.c: Include isnanl.h.
10156         (sqrtl): Perform test for NaN at the beginning of the function and
10157         through a call to isnanl.
10158         * lib/tanl.c: Include isnanl.h.
10159         (tanl): Perform test for NaN at the beginning of the function and
10160         through a call to isnanl.
10161         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
10162         * modules/mathl (Depends-on): Add isnanl.
10163
10164 2007-03-26  Eric Blake  <ebb9@byu.net>
10165
10166         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
10167         regression in logic sense of previous patch.
10168
10169 2007-03-26  Bruno Haible  <bruno@clisp.org>
10170
10171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
10172         unportable shell command "if ! ...".
10173         Reported by Ralf Wildenhues.
10174
10175 2007-03-25  Bruno Haible  <bruno@clisp.org>
10176
10177         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
10178         <sysexits.h> file, and only add EX_CONFIG.
10179         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
10180         absolute file name and whether it is sufficient. Substitute also
10181         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
10182         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
10183         ABSOLUTE_SYSEXITS_H into sysexits.h.
10184
10185 2007-03-25  Bruno Haible  <bruno@clisp.org>
10186
10187         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
10188         hints is NULL.
10189
10190 2007-03-25  Bruno Haible  <bruno@clisp.org>
10191
10192         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
10193         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10194
10195 2007-03-25  Bruno Haible  <bruno@clisp.org>
10196
10197         * lib/vasnprintf.c: Include langinfo.h.
10198         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
10199         multithread-safe.
10200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
10201         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
10202         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10203         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
10208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10209         Reported by Simon Josefsson.
10210
10211 2007-03-25  Bruno Haible  <bruno@clisp.org>
10212
10213         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
10214         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
10215         * modules/vasnprintf (Depends-on): Add stdint.
10216
10217 2007-03-25  Bruno Haible  <bruno@clisp.org>
10218
10219         * modules/fpieee: New file.
10220         * m4/fpieee.m4: New file.
10221         * modules/isnan-nolibm (Depends-on): Add fpieee.
10222         * modules/isnanl-nolibm (Depends-on): Add fpieee.
10223         * modules/isnanl (Depends-on): Add fpieee.
10224
10225 2007-03-25  Bruno Haible  <bruno@clisp.org>
10226
10227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
10228
10229 2007-03-25  Bruno Haible  <bruno@clisp.org>
10230
10231         Avoid test failures on IRIX 6.5.
10232         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
10233         (main): Use it.
10234         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
10235         macros.
10236         (main): Use them.
10237
10238 2007-03-25  Bruno Haible  <bruno@clisp.org>
10239
10240         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
10241         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
10242         exists but doesn't work.
10243         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
10244         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
10245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
10246         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
10247
10248 2007-03-25  Bruno Haible  <bruno@clisp.org>
10249
10250         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
10251         returns inf. Needed on IRIX 6.5.
10252
10253 2007-03-25  Bruno Haible  <bruno@clisp.org>
10254
10255         * tests/test-frexpl.c: Include isnanl-nolibm.h.
10256         (main): Use isnanl instead of x != x idiom.
10257         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
10258
10259         * tests/test-frexp.c: Include isnan.h.
10260         (main): Use isnan instead of x != x idiom.
10261         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
10262
10263 2007-03-25  Bruno Haible  <bruno@clisp.org>
10264
10265         * tests/test-frexp.c (NaN): New function/macro.
10266         (main): Use it instead of 0.0 / 0.0.
10267         * tests/test-isnan.c (NaN): New function/macro.
10268         (main): Use it instead of 0.0 / 0.0.
10269         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
10270         (test_function): Use it instead of 0.0 / 0.0.
10271         * tests/test-vasprintf-posix.c (NaN): New function/macro.
10272         (test_function): Use it instead of 0.0 / 0.0.
10273         * tests/test-snprintf-posix.h (NaN): New function/macro.
10274         (test_function): Use it instead of 0.0 / 0.0.
10275         * tests/test-sprintf-posix.h (NaN): New function/macro.
10276         (test_function): Use it instead of 0.0 / 0.0.
10277         * tests/test-fprintf-posix.h (NaN): New function/macro.
10278         (test_function): Use it instead of 0.0 / 0.0.
10279         * tests/test-printf-posix.h (NaN): New function/macro.
10280         (test_function): Use it instead of 0.0 / 0.0.
10281
10282         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
10283
10284 2007-03-25  Bruno Haible  <bruno@clisp.org>
10285
10286         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
10287
10288 2007-03-25  Bruno Haible  <bruno@clisp.org>
10289
10290         * lib/regexec.c (merge_state_with_log): Make static.
10291
10292 2007-03-25  Bruno Haible  <bruno@clisp.org>
10293
10294         * lib/trigl.c (kernel_rem_pio2): Make static.
10295
10296 2007-03-25  Bruno Haible  <bruno@clisp.org>
10297
10298         * lib/sincosl.c (sincosl_table): Make static.
10299
10300 2007-03-25  Bruno Haible  <bruno@clisp.org>
10301
10302         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
10303         if the compiler does not support C99.
10304
10305 2007-03-25  Bruno Haible  <bruno@clisp.org>
10306
10307         * modules/time (Makefile.am): Ensure all rule action lines start with a
10308         tab.
10309
10310 2007-03-24  Bruno Haible  <bruno@clisp.org>
10311
10312         * modules/tsearch-tests: New file.
10313         * tests/test-tsearch.sh: New file.
10314         * tests/test-tsearch.c: New file, mostly copied from glibc.
10315
10316         * modules/search-tests: New file.
10317         * tests/test-search.c: New file.
10318
10319         * modules/search: New file.
10320         * lib/search_.h: New file, incorporating lib/tsearch.h.
10321         * m4/search_h.m4: New file.
10322         * lib/tsearch.h: Remove file.
10323         * lib/tsearch.c: Include search.h instead of tsearch.h.
10324         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
10325         HAVE_TSEARCH.
10326         * modules/tsearch (Files): Remove lib/tsearch.h.
10327         (Depends-on): Add search.
10328         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
10329         (Include): Change tsearch.h into search.h.
10330
10331 2007-03-24  Bruno Haible  <bruno@clisp.org>
10332
10333         * modules/fpucw: New file.
10334         * lib/fpucw.h: New file.
10335         * lib/frexp.c: Include fpucw.h.
10336         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
10337         (FUNC): Use them.
10338         * lib/printf-frexp.c: Include fpucw.h.
10339         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
10340         (FUNC): Use them.
10341         * lib/vasnprintf.c: Include fpucw.h.
10342         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
10343         'long double' calculations.
10344         * tests/test-frexpl.c: Include fpucw.h.
10345         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
10346         * tests/test-printf-frexpl.c: Include fpucw.h.
10347         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
10348         * modules/frexpl (Depends-on): Add fpucw.
10349         * modules/printf-frexpl (Depends-on): Likewise.
10350         * modules/fprintf-posix (Depends-on): Likewise.
10351         * modules/snprintf-posix (Depends-on): Likewise.
10352         * modules/sprintf-posix (Depends-on): Likewise.
10353         * modules/vasnprintf-posix (Depends-on): Likewise.
10354         * modules/vasprintf-posix (Depends-on): Likewise.
10355         * modules/vfprintf-posix (Depends-on): Likewise.
10356         * modules/vsnprintf-posix (Depends-on): Likewise.
10357         * modules/vsprintf-posix (Depends-on): Likewise.
10358         * modules/frexpl-tests (Depends-on): Likewise.
10359         * modules/printf-frexpl-tests (Depends-on): Likewise.
10360
10361 2007-03-24  Bruno Haible  <bruno@clisp.org>
10362
10363         * lib/float+.h: New file.
10364         * lib/isnan.c: Include float+.h.
10365         (SIZE): New macro.
10366         (FUNC): Compare only SIZE bytes of the value.
10367         * lib/vasnprintf.c: Include float+.h.
10368         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
10369         SIZEOF_LDBL or SIZEOF_DBL bytes.
10370         * modules/isnan-nolibm (Files): Add lib/float+.h.
10371         * modules/isnanl-nolibm (Files): Add lib/float+.h.
10372         * modules/isnanl (Files): Add lib/float+.h.
10373         * modules/vasnprintf (Files): Add lib/float+.h.
10374
10375 2007-03-24  Bruno Haible  <bruno@clisp.org>
10376
10377         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
10378         include isnanl-nolibm.h.
10379
10380 2007-03-24  Bruno Haible  <bruno@clisp.org>
10381
10382         * tests/test-read-file.c (main): Don't produce spurious output for
10383         expected situations. Make the test fail if it encountered unexpected
10384         results.
10385
10386 2007-03-24  Bruno Haible  <bruno@clisp.org>
10387
10388         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
10389         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
10390
10391 2007-03-24  Bruno Haible  <bruno@clisp.org>
10392
10393         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
10394
10395 2007-03-24  Bruno Haible  <bruno@clisp.org>
10396
10397         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
10398         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
10399
10400         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
10401         * modules/utf8-ucs4: Turn into a symbolic link to module
10402         unistr/u8-mbtouc.
10403
10404         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
10405         utf8-ucs4-unsafe.
10406         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
10407         unistr/u8-mbtouc-unsafe.
10408
10409         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
10410         * modules/utf16-ucs4: Turn into a symbolic link to module
10411         unistr/u16-mbtouc.
10412
10413         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
10414         utf16-ucs4-unsafe.
10415         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
10416         unistr/u16-mbtouc-unsafe.
10417
10418         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
10419         * modules/ucs4-utf8: Turn into a symbolic link to module
10420         unistr/u8-ubtomb.
10421
10422         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
10423         * modules/ucs4-utf16: Turn into a symbolic link to module
10424         unistr/u16-ubtomb.
10425
10426 2007-03-24  Bruno Haible  <bruno@clisp.org>
10427
10428         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
10429         Enable the function only if HAVE_INLINE.
10430         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
10431         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
10432         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
10433         Enable the function only if HAVE_INLINE.
10434         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
10435         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
10436         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
10437         Enable the function only if HAVE_INLINE.
10438         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
10439         Enable the function only if HAVE_INLINE.
10440         * modules/utf8-ucs4: Update.
10441         * modules/utf8-ucs4-unsafe: Update.
10442         * modules/utf16-ucs4: Update.
10443         * modules/utf16-ucs4-unsafe: Update.
10444         * modules/ucs4-utf8: Update.
10445         * modules/ucs4-utf16: Update.
10446
10447 2007-03-24  Bruno Haible  <bruno@clisp.org>
10448
10449         * lib/utf8-ucs4.h: Remove file.
10450         * lib/utf8-ucs4-unsafe.h: Remove file.
10451         * lib/utf16-ucs4.h: Remove file.
10452         * lib/utf16-ucs4-unsafe.h: Remove file.
10453         * lib/ucs4-utf8.h: Remove file.
10454         * lib/ucs4-utf16.h: Remove file.
10455         * lib/unistr.h: Include their previous contents.
10456         * m4/utf-ucs4.m4: Remove file.
10457         * m4/ucs4-utf.m4: Remove file.
10458         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
10459         (Depends-on): Add unistr/base.
10460         (configure.ac): Remove gl_UTF_UCS4.
10461         (Makefile.am): Update.
10462         (Include): Change to unistr.h.
10463         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
10464         (Depends-on): Add unistr/base.
10465         (configure.ac): Remove gl_UTF_UCS4.
10466         (Makefile.am): Update.
10467         (Include): Change to unistr.h.
10468         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
10469         (Depends-on): Add unistr/base.
10470         (configure.ac): Remove gl_UTF_UCS4.
10471         (Makefile.am): Update.
10472         (Include): Change to unistr.h.
10473         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
10474         (Depends-on): Add unistr/base.
10475         (configure.ac): Remove gl_UTF_UCS4.
10476         (Makefile.am): Update.
10477         (Include): Change to unistr.h.
10478         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
10479         (Depends-on): Add unistr/base.
10480         (configure.ac): Remove gl_UCS4_UTF.
10481         (Makefile.am): Update.
10482         (Include): Change to unistr.h.
10483         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
10484         (Depends-on): Add unistr/base.
10485         (configure.ac): Remove gl_UCS4_UTF.
10486         (Makefile.am): Update.
10487         (Include): Change to unistr.h.
10488         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
10489         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
10490         utf8-ucs4-unsafe.h.
10491         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
10492         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
10493         utf16-ucs4-unsafe.h.
10494         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
10495         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
10496         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
10497         * lib/unistr/u8-strchr.c: Likewise.
10498         * lib/unistr/u8-strrchr.c: Likewise.
10499         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
10500         * lib/unistr/u16-strchr.c: Likewise.
10501         * lib/unistr/u16-strrchr.c: Likewise.
10502         * lib/striconveh.c: Update.
10503         * lib/linebreak.c: Update.
10504
10505 2007-03-24  Bruno Haible  <bruno@clisp.org>
10506
10507         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
10508         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
10509
10510 2007-03-22  Bruno Haible  <bruno@clisp.org>
10511
10512         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
10513
10514 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
10515
10516         * MODULES.html.sh (File system functions): New module write-any-file.
10517         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
10518         * m4/write-any-file.m4: New files.
10519
10520 2007-03-23  Eric Blake  <ebb9@byu.net>
10521
10522         * gnulib-tool: Rearrange space-tab sequences, since some editors
10523         like to eat them.
10524
10525 2007-03-23  Eric Blake  <ebb9@byu.net>
10526
10527         * lib/version-etc.c (version_etc_va): Update license wording to
10528         be more concise.  Recommended by Richard Stallman.
10529
10530 2007-03-22  Bruno Haible  <bruno@clisp.org>
10531
10532         * lib/poll.c (MSG_PEEK): New fallback definition.
10533
10534 2007-03-22  Bruno Haible  <bruno@clisp.org>
10535
10536         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
10537         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
10538         (main): Update.
10539         Fixes a compilation error on BeOS.
10540
10541 2007-03-22  Bruno Haible  <bruno@clisp.org>
10542
10543         * modules/frexpl-tests: New file.
10544         * tests/test-frexpl.c: New file.
10545
10546         * modules/frexpl: New file.
10547         * m4/frexpl.m4: New file.
10548         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
10549         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
10550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
10551         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
10552         (Depends-on): Add frexpl. Remove isnanl-nolibm.
10553         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
10554
10555 2007-03-22  Bruno Haible  <bruno@clisp.org>
10556
10557         * lib/frexpl.c: Share code with lib/frexp.c.
10558         * modules/mathl (Files): Add lib/frexp.c.
10559         (Depends-on): Add isnanl-nolibm.
10560
10561 2007-03-22  Bruno Haible  <bruno@clisp.org>
10562
10563         * modules/printf-frexp (Files): Add m4/frexp.m4.
10564         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
10565         only if the found frexp function actually works.
10566
10567 2007-03-22  Bruno Haible  <bruno@clisp.org>
10568
10569         * lib/frexp.c: Remove older implementation that uses divisions.
10570
10571 2007-03-21  Bruno Haible  <bruno@clisp.org>
10572
10573         * modules/frexp-tests: New file.
10574         * tests/test-frexp.c: New file.
10575
10576         * modules/frexp: New file.
10577         * lib/frexp.c: New file.
10578         * m4/frexp.m4: New file.
10579         * lib/math_.h (frexp): New declaration.
10580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
10581         REPLACE_FREXP.
10582         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
10583
10584 2007-03-21  Bruno Haible  <bruno@clisp.org>
10585
10586         * modules/isnanl-tests: New file.
10587         * tests/test-isnanl.c: New file.
10588
10589         * modules/isnanl: New file.
10590         * lib/isnanl.h: New file.
10591         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
10592         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
10593         gl_FUNC_ISNANL_WORKS.
10594         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
10595         New macros.
10596
10597 2007-03-21  Bruno Haible  <bruno@clisp.org>
10598
10599         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
10600         lib/isnanl.h.
10601         (Include): Update.
10602         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
10603         * lib/vasnprintf.c: Update.
10604         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
10605         tests/test-isnanl.h, remove tests/test-isnanl.c.
10606         (Makefile.am): Update.
10607         * tests/test-isnanl-nolibm.c: New file.
10608         * tests/test-isnanl.h: New file.
10609         * tests/test-isnanl.c: Remove file.
10610
10611 2007-03-21  Jim Meyering  <jim@meyering.net>
10612
10613         When trying to open ".", treat ESTALE like EACCES.
10614         * lib/savewd.c (savewd_save): Resort to forking not just upon
10615         failure with EACCES, but also when errno is ESTALE.
10616
10617 2007-03-20  Bruno Haible  <bruno@clisp.org>
10618
10619         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
10620         Needed on AIX 5.1. Reported by Matthew Woehlke.
10621
10622 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10623
10624         Suggestions by Bruno Haible:
10625         * lib/acl-internal.h: Include "gettext.h" rather than rolling
10626         our own.
10627         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
10628         * modules/acl (Depends-on): Add gettext.
10629
10630 2007-03-19  Bruno Haible  <bruno@clisp.org>
10631
10632         * modules/iconvme: Remove file.
10633         * lib/iconvme.h: Remove file.
10634         * lib/iconvme.c: Remove file.
10635         * m4/iconvme.m4: Remove file.
10636
10637 2007-03-19  Bruno Haible  <bruno@clisp.org>
10638
10639         * doc/relocatable-maint.texi: Break long shell script line.
10640         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
10641
10642 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10643
10644         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
10645         handle file_has_acl.
10646         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
10647         * lib/acl.c: Move header inclusions and related macro defns into
10648         lib/acl-internal.h.
10649         (S_ISLNK): Remove defn, since that's now done for us.
10650         (file_has_acl): Move to lib/file-has-acl.c.
10651         Call acl_trivial if available.  This is the crucial part of the fix.
10652         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
10653         shared within the library.  Rewrite a bit, partly to make it compatible
10654         with the GNU coding style.
10655         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
10656         Remove unnecessary double-quotes.
10657         Don't test for acl_to_text; the build will catch that.
10658         Replace acl_entries if it doesn't exist and it is needed.
10659         Check for -lsec and acl_trivial (as used on Solaris 10).
10660         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
10661         lib/file-has-acl.c.
10662         (Depends-on): Add sys_stat, for S_ISLNK.
10663
10664 2007-03-19  Ben Pfaff  <blp@gnu.org>
10665
10666         * doc/gnulib.texi: Fix typos.
10667         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
10668
10669 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10670
10671         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
10672         If size is zero here, buf must be zero.
10673
10674 2007-03-19  Simon Josefsson  <simon@josefsson.org>
10675
10676         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
10677         <bruno@clisp.org>.
10678
10679 2007-03-18  Bruno Haible  <bruno@clisp.org>
10680
10681         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
10682         Suggested by Eric Blake.
10683
10684 2007-03-18  Ben Pfaff  <blp@gnu.org>
10685
10686         * doc/relocatable.texi: Recommend using as prefix a directory
10687         that does not exist and will never be created.  Based on
10688         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
10689         and others.
10690
10691 2007-03-17  Bruno Haible  <bruno@clisp.org>
10692
10693         * lib/fchownat.c: Include lchown.h.
10694
10695 2007-03-17  Bruno Haible  <bruno@clisp.org>
10696
10697         Fix endless loop when the given allocated size was > INT_MAX.
10698         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
10699         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
10700         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
10701         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
10702         * lib/sprintf.c (sprintf): Likewise.
10703
10704 2007-03-17  Bruno Haible  <bruno@clisp.org>
10705
10706         * tests/test-argp-2.sh (func_compare): Output a context diff.
10707
10708 2007-03-17  Bruno Haible  <bruno@clisp.org>
10709
10710         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
10711         locale's decimal-point character.
10712
10713 2007-03-17  Bruno Haible  <bruno@clisp.org>
10714
10715         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
10716         before comparing it. Needed because on some platforms (e.g. x86) a
10717         'long double' occupies less bytes than sizeof (long double).
10718
10719 2007-03-17  Bruno Haible  <bruno@clisp.org>
10720
10721         * tests/test-crc.c (main): Make printf statements 64-bit clean.
10722         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
10723         * tests/test-getaddrinfo.c (simple): Likewise.
10724         * tests/test-read-file.c (main): Likewise.
10725
10726 2007-03-17  Bruno Haible  <bruno@clisp.org>
10727
10728         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
10729
10730 2007-03-17  Bruno Haible  <bruno@clisp.org>
10731
10732         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
10733         unused variable.
10734
10735 2007-03-17  Bruno Haible  <bruno@clisp.org>
10736
10737         * tests/test-c-strcasecmp.c: Include c-strcase.h.
10738         * tests/test-c-strncasecmp.c: Likewise.
10739
10740 2007-03-17  Bruno Haible  <bruno@clisp.org>
10741
10742         * modules/stdlib (Depends-on): Add unistd.
10743         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
10744         Needed for MacOS X 10.3.
10745
10746 2007-03-17  Bruno Haible  <bruno@clisp.org>
10747
10748         * lib/unistr/u-strdup.h: Include <stdlib.h>.
10749
10750 2007-03-17  Bruno Haible  <bruno@clisp.org>
10751
10752         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
10753
10754 2007-03-17  Bruno Haible  <bruno@clisp.org>
10755
10756         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
10757         to reflect files copied from gnulib (with or without modifications).
10758         Suggested by Jim Meyering.
10759
10760 2007-03-17  Eric Blake  <ebb9@byu.net>
10761
10762         * NEWS: Document stdlib change from 2007-02-18.
10763
10764 2007-03-17  Jim Meyering  <jim@meyering.net>
10765
10766         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
10767         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
10768         someone uses a name containing shell meta-characters.
10769         Reported by Alfred M. Szmidt.
10770
10771         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
10772
10773 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
10774
10775         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
10776         and copy gettext configuration files only if configure.ac contains
10777         a use of AM_GNU_GETTEXT_VERSION.
10778
10779 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
10780
10781         * build-aux/bootstrap (gnulib_name): New variable.
10782         (gnulib_tool_options): Use it.
10783
10784 2007-03-13  Simon Josefsson  <simon@josefsson.org>
10785
10786         * tests/test-des.c: Use new namespace.
10787
10788 2007-03-15  Bruno Haible  <bruno@clisp.org>
10789
10790         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
10791         Reported by James Youngman <jay@gnu.org>.
10792
10793 2007-03-15  Bruno Haible  <bruno@clisp.org>
10794
10795         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
10796         declared prototype. Needed with cc on OSF/1 5.1.
10797
10798 2007-03-15  Bruno Haible  <bruno@clisp.org>
10799
10800         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
10801         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
10802         (struct gl_list_implementation): Add dispose_fn argument to the
10803         'create_empty', 'create' methods.
10804         (struct gl_list_impl_base): Add field 'dispose_fn'.
10805         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
10806         argument.
10807         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
10808         dispose_fn argument.
10809         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
10810         dispose_fn on the dropped values.
10811         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
10812         dispose_fn argument.
10813         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
10814         dropped values.
10815         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
10816         (gl_tree_remove_node): Call dispose_fn on the dropped value.
10817         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
10818         (gl_tree_remove_node): Call dispose_fn on the dropped value.
10819         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
10820         argument.
10821         (gl_tree_list_free): Call dispose_fn on the dropped values.
10822         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
10823         the dropped values.
10824         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
10825         Add dispose_fn argument.
10826         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
10827         Call dispose_fn on the dropped values.
10828         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
10829         Add dispose_fn argument.
10830         (gl_sublist_create): Initialize the 'dispose_fn' field.
10831         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
10832         * tests/test-array_list.c (main): Update.
10833         * tests/test-carray_list.c (main): Update.
10834         * tests/test-avltree_list.c (main): Update.
10835         * tests/test-rbtree_list.c (main): Update.
10836         * tests/test-avltreehash_list.c (main): Update.
10837         * tests/test-rbtreehash_list.c (main): Update.
10838         * tests/test-linked_list.c (main): Update.
10839         * tests/test-linkedhash_list.c (main): Update.
10840         * tests/test-array_oset.c (main): Update.
10841
10842 2007-03-15  Bruno Haible  <bruno@clisp.org>
10843
10844         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
10845         (gl_oset_create_empty): Add dispose_fn argument.
10846         (struct gl_oset_implementation): Add dispose_fn argument to
10847         'create_empty' method.
10848         (struct gl_oset_impl_base): Add dispose_fn field.
10849         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
10850         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
10851         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
10852         values.
10853         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
10854         (gl_tree_oset_free): Call dispose_fn on the dropped values.
10855         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
10856         dropped value.
10857         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
10858         dropped value.
10859         * tests/test-array_oset.c (main): Update.
10860         * tests/test-avltree_oset.c (main): Update.
10861         * tests/test-rbtree_oset.c (main): Update.
10862         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
10863
10864 2007-03-13  Bruno Haible  <bruno@clisp.org>
10865
10866         * tests/test-stdbool.c (i): Update after last patch.
10867
10868 2007-03-12  Bruno Haible  <bruno@clisp.org>
10869
10870         * lib/quotearg.c: Include <wctype.h> early, before the definition of
10871         the iswprint macro. Needed on Solaris 2.5.1.
10872
10873 2007-03-12  Bruno Haible  <bruno@clisp.org>
10874
10875         * tests/test-printf-frexp.c (main): Declare x as volatile.
10876
10877 2007-03-12  Simon Josefsson  <simon@josefsson.org>
10878
10879         * doc/gnulib.texi (Build robot for gnulib): New section.
10880
10881 2007-03-12  Jim Meyering  <jim@meyering.net>
10882
10883         * build-aux/bootstrap: New file.
10884         * build-aux/bootstrap.conf: New file, from coreutils.
10885
10886 2007-03-11  Bruno Haible  <bruno@clisp.org>
10887
10888         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
10889
10890 2007-03-12  Simon Josefsson  <simon@josefsson.org>
10891
10892         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
10893         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
10894         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
10895
10896 2007-03-11  Bruno Haible  <bruno@clisp.org>
10897
10898         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
10899         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
10900
10901 2007-03-11  Bruno Haible  <bruno@clisp.org>
10902
10903         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
10904         formula. Needed for SunPRO C 5.0.
10905
10906 2007-03-11  Bruno Haible  <bruno@clisp.org>
10907
10908         * modules/long-options (Depends-on): Add getopt.
10909
10910 2007-03-11  Bruno Haible  <bruno@clisp.org>
10911
10912         * modules/modechange (Depends-on): Add stdbool.
10913
10914 2007-03-11  Bruno Haible  <bruno@clisp.org>
10915
10916         * modules/i-ring (Depends-on): Add stdbool.
10917
10918 2007-03-11  Bruno Haible  <bruno@clisp.org>
10919
10920         * modules/gc-des (Depends-on): Add stdbool.
10921
10922 2007-03-11  Bruno Haible  <bruno@clisp.org>
10923
10924         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
10925
10926 2007-03-11  Bruno Haible  <bruno@clisp.org>
10927
10928         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
10929
10930 2007-03-11  Bruno Haible  <bruno@clisp.org>
10931
10932         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
10933
10934 2007-03-11  Bruno Haible  <bruno@clisp.org>
10935
10936         * lib/vasnprintf.c (sprintf): Undefine.
10937
10938 2007-03-11  Bruno Haible  <bruno@clisp.org>
10939
10940         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
10941         initializers in SunPRO C and Compaq C compilers.
10942
10943 2007-03-11  Bruno Haible  <bruno@clisp.org>
10944
10945         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
10946         decrementing code ANSI C compliant.
10947
10948 2007-03-11  Bruno Haible  <bruno@clisp.org>
10949
10950         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
10951         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
10952
10953 2007-03-11  Bruno Haible  <bruno@clisp.org>
10954
10955         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
10956         <stdbool.h> substitute doesn't pass.
10957
10958 2007-03-11  Bruno Haible  <bruno@clisp.org>
10959
10960         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
10961
10962 2007-03-11  Bruno Haible  <bruno@clisp.org>
10963
10964         * gnulib-tool (func_create_megatestdir): Create also an autobuild
10965         script, for submission to autobuild.josefsson.org.
10966
10967 2007-03-10  Bruno Haible  <bruno@clisp.org>
10968
10969         * modules/canonicalize-lgpl-tests: New file.
10970         * tests/test-canonicalize-lgpl.sh: New file.
10971         * tests/test-canonicalize-lgpl.c: New file.
10972
10973         * modules/c-strcase-tests: New file.
10974         * tests/test-c-strcase.sh: New file.
10975         * tests/test-c-strcasecmp.c: New file.
10976         * tests/test-c-strncasecmp.c: New file.
10977
10978         * modules/atexit-tests: New file.
10979         * tests/test-atexit.sh: New file.
10980         * tests/test-atexit.c: New file.
10981
10982 2007-03-10  Bruno Haible  <bruno@clisp.org>
10983
10984         * tests/test-binary-io.sh: Use temporary filenames that are not so
10985         likely to clash with those of other tests (in a parallel make).
10986         * tests/test-binary-io.c: Likewise.
10987
10988 2007-03-10  Bruno Haible  <bruno@clisp.org>
10989
10990         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
10991         fallback; use #error instead.
10992         Suggested by Simon Josefsson.
10993
10994 2007-03-10  Bruno Haible  <bruno@clisp.org>
10995
10996         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
10997         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
10998         first and the last.
10999
11000 2007-03-10  Bruno Haible  <bruno@clisp.org>
11001
11002         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
11003
11004 2007-03-10  Bruno Haible  <bruno@clisp.org>
11005
11006         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
11007         "make distcheck".
11008         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
11009         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
11010         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
11011
11012 2007-03-10  Bruno Haible  <bruno@clisp.org>
11013
11014         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
11015         variable.
11016         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
11017         variable.
11018
11019 2007-03-09  Eric Blake  <ebb9@byu.net>
11020         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
11021
11022         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
11023         types are not being provided by gnulib.
11024         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
11025         types are supported.
11026
11027 2007-03-10  Bruno Haible  <bruno@clisp.org>
11028
11029         * lib/stdio_.h (__attribute__): New macro.
11030         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
11031         vsprintf): Specify __attribute__ __format__ for GCC.
11032         Suggested by Eric Blake.
11033
11034 2007-03-09  Bruno Haible  <bruno@clisp.org>
11035
11036         * modules/printf-posix-tests: New file.
11037         * tests/test-printf-posix.sh: New file.
11038         * tests/test-printf-posix.c: New file.
11039
11040         * modules/printf-posix: New file.
11041         * lib/printf.c: New file.
11042         * m4/printf-posix-rpl.m4: New file.
11043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
11044         REPLACE_PRINTF.
11045         * lib/stdio_.h (printf): New declaration.
11046         (format, __format__, ____printf____, ____scanf____, ____strftime____,
11047         ____strfmon____): New macros.
11048         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
11049         REPLACE_PRINTF.
11050
11051 2007-03-09  Bruno Haible  <bruno@clisp.org>
11052
11053         * tests/test-vasnprintf-posix2.sh: New file.
11054         * tests/test-vasnprintf-posix2.c: New file.
11055         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
11056         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
11057         (Makefile.am): Activate test-vasnprintf-posix2.sh.
11058
11059         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
11060         a locale dependent decimal point, rather than always '.'.
11061
11062 2007-03-09  Eric Blake  <ebb9@byu.net>
11063
11064         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
11065         spite of platforms like Tandem/NSK that define it to -1.
11066
11067 2007-03-08  Bruno Haible  <bruno@clisp.org>
11068
11069         * modules/vprintf-posix-tests: New file.
11070         * tests/test-vprintf-posix.sh: New file.
11071         * tests/test-vprintf-posix.c: New file.
11072         * tests/test-printf-posix.h: New file.
11073
11074         * modules/vprintf-posix: New file.
11075         * lib/vprintf.c: New file.
11076         * m4/vprintf-posix.m4: New file.
11077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
11078         REPLACE_VPRINTF.
11079         * lib/stdio_.h (vprintf): New declaration.
11080         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
11081         REPLACE_VPRINTF.
11082
11083 2007-03-08  Bruno Haible  <bruno@clisp.org>
11084
11085         * modules/fprintf-posix-tests: New file.
11086         * tests/test-fprintf-posix.sh: New file.
11087         * tests/test-fprintf-posix.c: New file.
11088
11089         * modules/fprintf-posix: New file.
11090         * lib/fprintf.c: New file.
11091         * m4/fprintf-posix.m4: New file.
11092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
11093         REPLACE_FPRINTF.
11094         * lib/stdio_.h (fprintf): New declaration.
11095         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
11096         REPLACE_FPRINTF.
11097
11098 2007-03-08  Bruno Haible  <bruno@clisp.org>
11099
11100         * modules/vfprintf-posix-tests: New file.
11101         * tests/test-vfprintf-posix.sh: New file.
11102         * tests/test-vfprintf-posix.c: New file.
11103         * tests/test-fprintf-posix.h: New file.
11104         * tests/test-fprintf-posix.out: New file.
11105
11106         * modules/vfprintf-posix: New file.
11107         * lib/vfprintf.c: New file.
11108         * m4/vfprintf-posix.m4: New file.
11109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
11110         REPLACE_VFPRINTF.
11111         * lib/stdio_.h (vfprintf): New declaration.
11112         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
11113         REPLACE_VFPRINTF.
11114
11115 2007-03-08  Bruno Haible  <bruno@clisp.org>
11116
11117         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
11118
11119 2007-03-08  Bruno Haible  <bruno@clisp.org>
11120
11121         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
11122         instead of 'expr' invocations.
11123         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11124         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11125         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11126         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11127         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11128         Suggested by Paul Eggert.
11129
11130 2007-03-08  Bruno Haible  <bruno@clisp.org>
11131
11132         * modules/fseterr-tests: New file.
11133         * tests/test-fseterr.c: New file.
11134
11135         * modules/fseterr: New file.
11136         * lib/fseterr.h: New file.
11137         * lib/fseterr.c: New file.
11138
11139 2007-03-08  Bruno Haible  <bruno@clisp.org>
11140
11141         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
11142         * lib/getopt_.h: Likewise.
11143         * lib/mbswidth.h: Likewise.
11144         * lib/setenv.h: Likewise.
11145         * lib/vasnprintf.h: Likewise.
11146         * lib/vasprintf.h: Likewise.
11147         * lib/verror.h: Likewise.
11148         * lib/xsetenv.h: Likewise.
11149         * lib/xvasprintf.h: Likewise.
11150
11151 2007-03-08  Jim Meyering  <jim@meyering.net>
11152
11153         * users.txt: Add parted.
11154
11155         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
11156
11157 2007-03-07  Bruno Haible  <bruno@clisp.org>
11158
11159         * m4/printf.m4: Make the shell script snippets copy&pastable.
11160
11161 2007-03-02  Bruno Haible  <bruno@clisp.org>
11162
11163         * lib/netinet_in_.h: New file.
11164         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
11165         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
11166         * modules/netinet_in (Files): Add lib/netinet_in_.h.
11167         (Depends-on): Add absolute-header.
11168         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
11169         into netinet/in.h.
11170
11171 2007-03-03  Bruno Haible  <bruno@clisp.org>
11172
11173         * lib/sys_select_.h: New file.
11174         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
11175         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
11176         * modules/sys_select (Files): Add lib/sys_select_.h.
11177         (Depends-on): Add absolute-header.
11178         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
11179         into sys/select.h.
11180
11181 2007-03-02  Bruno Haible  <bruno@clisp.org>
11182
11183         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
11184         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
11185         values.
11186         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
11187         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
11188         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
11189         * modules/sys_socket (Depends-on): Add absolute-header.
11190         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
11191         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
11192         (Include): Remove requirement of inclusion of <sys/types.h>.
11193
11194 2007-03-02  Bruno Haible  <bruno@clisp.org>
11195
11196         * lib/byteswap_.h (bswap_32): Fix formula.
11197
11198 2007-03-06  Bruno Haible  <bruno@clisp.org>
11199
11200         * modules/sprintf-posix-tests: New file.
11201         * tests/test-sprintf-posix.c: New file.
11202
11203         * modules/sprintf-posix: New file.
11204         * lib/sprintf.c: New file.
11205         * m4/sprintf-posix.m4: New file.
11206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
11207         REPLACE_SPRINTF.
11208         * lib/stdio_.h (sprintf): New declaration.
11209         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
11210         REPLACE_SPRINTF.
11211
11212 2007-03-06  Bruno Haible  <bruno@clisp.org>
11213
11214         * modules/vsprintf-posix-tests: New file.
11215         * tests/test-vsprintf-posix.c: New file.
11216         * tests/test-sprintf-posix.h: New file.
11217
11218         * modules/vsprintf-posix: New file.
11219         * lib/vsprintf.c: New file.
11220         * m4/vsprintf-posix.m4: New file.
11221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
11222         REPLACE_VSPRINTF.
11223         * lib/stdio_.h (vsprintf): New declaration.
11224         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
11225         REPLACE_VSPRINTF.
11226
11227 2007-03-06  Bruno Haible  <bruno@clisp.org>
11228
11229         * modules/vsnprintf (Depend-on): Remove minmax.
11230
11231 2007-03-06  Bruno Haible  <bruno@clisp.org>
11232
11233         * modules/snprintf-posix-tests: New file.
11234         * tests/test-snprintf-posix.c: New file.
11235
11236         * modules/snprintf-posix: New file.
11237         * m4/snprintf-posix.m4: New file.
11238         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
11239         gl_FUNC_SNPRINTF.
11240         (gl_FUNC_SNPRINTF): Invoke it.
11241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
11242         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
11243         is set.
11244         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
11245
11246 2007-03-06  Bruno Haible  <bruno@clisp.org>
11247
11248         * modules/vsnprintf-posix-tests: New file.
11249         * tests/test-vsnprintf-posix.c: New file.
11250         * tests/test-snprintf-posix.h: New file.
11251
11252         * modules/vsnprintf-posix: New file.
11253         * m4/vsnprintf-posix.m4: New file.
11254         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
11255         gl_FUNC_VSNPRINTF.
11256         (gl_FUNC_VSNPRINTF): Invoke it.
11257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
11258         * lib/stdio_.h (vsnprintf): Define as a replacement if
11259         REPLACE_VSNPRINTF is set.
11260         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
11261
11262 2007-03-06  Bruno Haible  <bruno@clisp.org>
11263
11264         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
11265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
11266
11267 2007-03-06  Bruno Haible  <bruno@clisp.org>
11268
11269         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
11270         (asinl): Declare also if HAVE_DECL_ASINL is set.
11271         (atanl): Declare also if HAVE_DECL_ATANL is set.
11272         (ceill): Declare also if HAVE_DECL_CEILL is set.
11273         (cosl): Declare also if HAVE_DECL_COSL is set.
11274         (expl): Declare also if HAVE_DECL_EXPL is set.
11275         (floorl): Declare also if HAVE_DECL_FLOORL is set.
11276         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
11277         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
11278         (logl): Declare also if HAVE_DECL_LOGL is set.
11279         (sinl): Declare also if HAVE_DECL_SINL is set.
11280         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
11281         (tanl): Declare also if HAVE_DECL_TANL is set.
11282         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
11283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
11284         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
11285         declaration of frexpl, ldexpl.
11286         * modules/printf-frexpl (Depends-on): Add math.
11287         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
11288
11289 2007-03-05  Bruno Haible  <bruno@clisp.org>
11290
11291         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
11292         frexpl and ldexpl are declared.
11293         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
11294
11295 2007-03-05  Bruno Haible  <bruno@clisp.org>
11296
11297         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
11298         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
11299
11300 2007-03-05  Bruno Haible  <bruno@clisp.org>
11301
11302         * lib/stdio_.h: Include <stddef.h>.
11303
11304 2007-03-05  Bruno Haible  <bruno@clisp.org>
11305
11306         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
11307
11308 2007-03-05  Bruno Haible  <bruno@clisp.org>
11309
11310         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
11311         NetBSD 4, from Ralf Wildenhues.
11312
11313 2007-03-04  Bruno Haible  <bruno@clisp.org>
11314
11315         * lib/vasprintf.h: Update #if logic for the case when the functions
11316         exist but are overridden.
11317
11318 2007-03-04  Bruno Haible  <bruno@clisp.org>
11319
11320         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
11321         implementations: glibc-2.4 and MacOS X 10.3.
11322         * tests/test-vasnprintf-posix.c (test_function): Test also the case
11323         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
11324         * tests/test-vasprintf-posix.c (test_function): Likewise.
11325
11326 2007-03-04  Bruno Haible  <bruno@clisp.org>
11327
11328         * modules/vasprintf-posix-tests: New file.
11329         * tests/test-vasprintf-posix.c: New file.
11330
11331         * modules/vasprintf-posix: New file.
11332         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
11333         defined.
11334         * m4/vasprintf-posix.m4: New file.
11335         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
11336         gl_FUNC_VASPRINTF.
11337         (gl_FUNC_VASPRINTF): Invoke it.
11338         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
11339         here.
11340         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
11341
11342 2007-03-04  Bruno Haible  <bruno@clisp.org>
11343
11344         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
11345         REPLACE_GETTIMEOFDAY.
11346         * modules/sys_time (Makefile.am): Likewise.
11347         * m4/sys_time_h.m4: Likewise.
11348         * m4/gettimeofday.m4: Likewise.
11349
11350 2007-03-04  Bruno Haible  <bruno@clisp.org>
11351
11352         * modules/vasnprintf-posix-tests: New file.
11353         * tests/test-vasnprintf-posix.c: New file.
11354
11355         * modules/vasnprintf-posix: New file.
11356         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
11357         printf-frexpl.h.
11358         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
11359         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
11360         REPLACE_VASNPRINTF is defined.
11361         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
11362         gl_FUNC_VASNPRINTF.
11363         (gl_FUNC_VASNPRINTF): Invoke it.
11364         * m4/vasnprintf-posix.m4: New file.
11365         * m4/printf.m4: New file.
11366
11367 2007-03-04  Bruno Haible  <bruno@clisp.org>
11368
11369         Compile progreloc.c only if --enable-relocatable is specified.
11370         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
11371         if --enable-relocatable was specified.
11372         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
11373         lib_SOURCES.
11374
11375 2007-03-04  Jim Meyering  <jim@meyering.net>
11376
11377         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
11378         Use it consistently, rather than enumerating errno constants.
11379
11380 2007-03-04  Bruno Haible  <bruno@clisp.org>
11381
11382         * modules/xvasprintf-tests: New file.
11383         * tests/test-xvasprintf.c: New file.
11384
11385         * modules/vasprintf-tests: New file.
11386         * tests/test-vasprintf.c: New file.
11387
11388         * modules/vasnprintf-tests: New file.
11389         * tests/test-vasnprintf.c: New file.
11390
11391         * modules/vsnprintf-tests: New file.
11392         * tests/test-vsnprintf.c: New file.
11393
11394         * modules/snprintf-tests: New file.
11395         * tests/test-snprintf.c: New file.
11396
11397 2007-03-04  Bruno Haible  <bruno@clisp.org>
11398
11399         Compile relocatable.c only if --enable-relocatable is specified.
11400         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
11401         gl_RELOCATABLE_LIBRARY.
11402         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
11403         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
11404         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
11405         gl_RELOCATABLE_LIBRARY.
11406         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
11407         (Makefile.am): Remove lib_SOURCES.
11408         * modules/relocatable-lib-lgpl (configure.ac): Invoke
11409         gl_RELOCATABLE_LIBRARY.
11410         (Makefile.am): Remove lib_SOURCES.
11411         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
11412         always.
11413         * modules/relocatable-prog-wrapper (configure.ac): Invoke
11414         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
11415
11416 2007-03-04  Bruno Haible  <bruno@clisp.org>
11417
11418         * modules/argmatch-tests: New file.
11419         * tests/test-argmatch.c: New file.
11420
11421         * tests/test-allocsa.c (main): Halve the number of loop runs.
11422
11423         * modules/alloca-opt-tests: New file.
11424         * tests/test-alloca-opt.c: New file.
11425
11426 2007-03-04  Jim Meyering  <jim@meyering.net>
11427
11428         Work around difference between Linux ACLs and Solaris 10 ZFS.
11429         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
11430         for EINVAL.
11431
11432 2007-03-03  Bruno Haible  <bruno@clisp.org>
11433
11434         * modules/relocatable-prog (Depends-on): Add back progreloc's
11435         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
11436
11437 2007-03-03  Bruno Haible  <bruno@clisp.org>
11438
11439         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
11440         * modules/relocatable-lib: New file.
11441
11442 2007-03-03  Bruno Haible  <bruno@clisp.org>
11443
11444         * modules/relocatable-prog: Renamed from modules/relocatable.
11445         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
11446
11447 2007-03-03  Bruno Haible  <bruno@clisp.org>
11448
11449         * modules/relocatable-script (Files): Add doc/relocatable.texi,
11450         m4/relocatable-lib.m4.
11451         (Depends-on): Remove 'relocatable'.
11452         (configure.ac): Add gl_RELOCATABLE_NOP.
11453
11454 2007-03-03  Bruno Haible  <bruno@clisp.org>
11455
11456         * modules/relocatable-prog-wrapper: New file.
11457         * modules/relocatable (Depends-on): Add it. Remove all other
11458         dependencies except progname.
11459         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
11460
11461         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
11462         (gl_FUNC_STRERROR): Nop.
11463         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
11464
11465         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
11466         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
11467
11468         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
11469         (gl_FUNC_READLINK): Update.
11470
11471         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
11472
11473 2007-03-03  Bruno Haible  <bruno@clisp.org>
11474
11475         * lib/xreadlink.c: Include <unistd.h> unconditionally.
11476         * modules/xreadlink (Depends-on): Add unistd.
11477         * modules/xreadlink-with-size (Depends-on): Likewise.
11478
11479 2007-03-03  Bruno Haible  <bruno@clisp.org>
11480
11481         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
11482         extracted from gt_FUNC_SETENV.
11483         (gt_FUNC_SETENV): Remove macro.
11484         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
11485         remove gt_FUNC_SETENV.
11486
11487 2007-03-03  Bruno Haible  <bruno@clisp.org>
11488
11489         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
11490         ENABLE_RELOCATABLE here.
11491         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
11492
11493 2007-03-03  Bruno Haible  <bruno@clisp.org>
11494
11495         * modules/rbtreehash-list-tests (Depends-on): Add progname.
11496         * tests/test-rbtreehash_list.c: Include progname.h.
11497         (main): Call set_program_name.
11498
11499         * modules/rbtree-oset-tests (Depends-on): Add progname.
11500         * tests/test-rbtree_oset.c: Include progname.h.
11501         (main): Call set_program_name.
11502
11503         * modules/rbtree-list-tests (Depends-on): Add progname.
11504         * tests/test-rbtree_list.c: Include progname.h.
11505         (main): Call set_program_name.
11506
11507         * modules/linked-list-tests (Depends-on): Add progname.
11508         * tests/test-linked_list.c: Include progname.h.
11509         (main): Call set_program_name.
11510
11511 2007-03-03  Bruno Haible  <bruno@clisp.org>
11512
11513         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
11514         All uses of __restrict changed to _Restrict_.
11515         * lib/glob_.h (__restrict): Remove macro.
11516
11517 2007-03-02  Bruno Haible  <bruno@clisp.org>
11518
11519         * modules/gettext (configure.ac): Require gettext infrastructure
11520         from version 0.16.1.
11521
11522 2007-03-02  Bruno Haible  <bruno@clisp.org>
11523
11524         * modules/linkedhash-list-tests (Depends-on): Add progname.
11525         * tests/test-linkedhash_list.c: Include progname.h.
11526         (main): Call set_program_name.
11527
11528         * modules/carray-list-tests (Depends-on): Add progname.
11529         * tests/test-carray_list.c: Include progname.h.
11530         (main): Call set_program_name.
11531
11532         * modules/avltreehash-list-tests (Depends-on): Add progname.
11533         * tests/test-avltreehash_list.c: Include progname.h.
11534         (main): Call set_program_name.
11535
11536         * modules/avltree-oset-tests (Depends-on): Add progname.
11537         * tests/test-avltree_oset.c: Include progname.h.
11538         (main): Call set_program_name.
11539
11540         * modules/avltree-list-tests (Depends-on): Add progname.
11541         * tests/test-avltree_list.c: Include progname.h.
11542         (main): Call set_program_name.
11543
11544         * modules/array-oset-tests (Depends-on): Add progname.
11545         * tests/test-array_oset.c: Include progname.h.
11546         (main): Call set_program_name.
11547
11548         * modules/array-list-tests (Depends-on): Add progname.
11549         * tests/test-array_list.c: Include progname.h.
11550         (main): Call set_program_name.
11551
11552         * modules/argp-tests (Depends-on): Add progname.
11553         * tests/test-argp.c: Include argp.h first. Include progname.h.
11554         (main): Call set_program_name.
11555
11556 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
11557
11558         * doc/gnulib-tool.texi (Initial import): Reword description of
11559         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
11560         limited effect even if defined after the first system include.
11561
11562 2007-03-01  Bruno Haible  <bruno@clisp.org>
11563
11564         * build-aux/config.libpath: Update to libtool-1.5.22.
11565         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11566
11567 2007-03-01  Bruno Haible  <bruno@clisp.org>
11568
11569         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
11570         foo_CFLAGS.
11571         Reported by Ralf Wildenhues.
11572
11573 2007-03-01  Bruno Haible  <bruno@clisp.org>
11574
11575         * build-aux/install-reloc: Remove object files left over by some
11576         compilers.
11577         Reported by Ralf Wildenhues.
11578
11579 2007-03-01  Bruno Haible  <bruno@clisp.org>
11580
11581         * build-aux/install-reloc: Break long lines.
11582
11583 2007-03-01  Bruno Haible  <bruno@clisp.org>
11584
11585         * doc/relocatable.texi: Document that it may not work on OpenBSD.
11586         Reported by Ralf Wildenhues.
11587
11588 2007-03-01  Bruno Haible  <bruno@clisp.org>
11589
11590         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
11591         include ordering constraints.
11592
11593 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
11594
11595         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
11596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
11597         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
11598         as another example.
11599         * lib/time_.h: Fix misspelling.
11600         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
11601         Require gl_HEADER_TIME_H_DEFAULTS.
11602         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
11603         * m4/time_r.m4 (gl_TIME_R): Likewise.
11604         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
11605
11606 2007-03-01  Bruno Haible  <bruno@clisp.org>
11607
11608         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
11609         * m4/utimens.m4 (gl_UTIMENS): Likewise.
11610
11611 2007-03-01  Jim Meyering  <jim@meyering.net>
11612
11613         * modules/xreadlink (Maintainer): Add my name.
11614         * modules/xreadlink-with-size (Depends-on): Alphabetize.
11615
11616 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
11617             Bruno Haible  <bruno@clisp.org>
11618
11619         * build-aux/install-reloc: Compile also c-ctype.c.
11620         * build-aux/relocatable.sh.in: New file.
11621         * doc/relocatable.texi: New file.
11622         * doc/relocatable-maint.texi: New file.
11623         * doc/gnulib.texi: Include relocatable-maint.texi.
11624         * lib/progreloc.c: Include unistd.h unconditionally.
11625         * lib/relocwrapper.c: Include unistd.h unconditionally.
11626         Include c-ctype.h.
11627         (add_dotbin): Use c_tolower.
11628         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
11629         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
11630         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
11631         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
11632         to m4/relocatable-lib.m4.
11633         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
11634         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
11635         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
11636         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
11637         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
11638         * modules/relocatable: New file.
11639         * modules/relocatable-lib: New file.
11640         * modules/relocatable-script: New file.
11641
11642 2007-02-28  Bruno Haible  <bruno@clisp.org>
11643
11644         Import --enable-relocatable infrastructure.
11645         * build-aux/config.libpath: New file, from GNU gettext.
11646         * build-aux/install-reloc: New file, from GNU gettext.
11647         * build-aux/reloc-ldflags: New file, from GNU gettext.
11648         * lib/relocatable.h: New file, from GNU gettext.
11649         * lib/relocatable.c: New file, from GNU gettext.
11650         * lib/relocwrapper.c: New file, from GNU gettext.
11651         * m4/relocatable.m4: New file, from GNU gettext.
11652
11653 2007-02-28  Bruno Haible  <bruno@clisp.org>
11654
11655         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
11656
11657         * modules/xreadlink: New file, from GNU gettext with modifications.
11658         * lib/xreadlink.c: New file, from GNU gettext.
11659         * lib/xreadlink.h: Add comments.
11660         (xreadlink): New declaration.
11661
11662         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
11663         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
11664         lib/xreadlink-with-size.c.
11665         (configure.ac): Remove gl_XREADLINK invocation.
11666         (Makefile.am): Augment lib_SOURCES.
11667         * m4/xreadlink.m4: Remove file.
11668         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
11669         (xreadlink_with_size): Renamed from xreadink.
11670         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
11671         * modules/canonicalize (Depends-on): Replace xreadlink with
11672         xreadlink-with-size.
11673         * lib/canonicalize.c (canonicalize_filename_mode): Update.
11674
11675 2007-02-25  Jim Meyering  <jim@meyering.net>
11676
11677         * build-aux/announce-gen: When complaining about excess arguments,
11678         list them.
11679
11680 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11681
11682         * README: Document signed integer overflow situation more
11683         accurately.
11684
11685 2007-02-25  Bruno Haible  <bruno@clisp.org>
11686
11687         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
11688         'a' or 'A' conversion.
11689
11690 2007-02-25  Bruno Haible  <bruno@clisp.org>
11691
11692         * modules/filename: Renamed from modules/pathname.
11693         (Files): Replace lib/pathname.h with lib/filename.h. Replace
11694         lib/concatpath.c with lib/concat-filename.c.
11695         (Makefile.am): Update.
11696         (Include): Replace pathname.h with filename.h.
11697         * lib/filename.h: Renamed from lib/pathname.h.
11698         (concatenated_filename): Renamed from concatenated_pathname.
11699         * lib/concat-filename.c: Renamed from lib/concatpath.c.
11700         (concatenated_filename): Renamed from concatenated_pathname.
11701         * lib/findprog.c: Include filename.h instead of pathname.h.
11702         (find_in_path): Update.
11703         * lib/javacomp.c: Include filename.h instead of pathname.h.
11704         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
11705         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
11706         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
11707         is_oldgcj_14_13_usable, is_javac_usable): Update.
11708         * lib/javaexec.c: Include filename.h instead of pathname.h.
11709         (execute_java_class): Update.
11710         * modules/findprog: Update.
11711         * modules/javacomp: Update.
11712         * modules/javaexec: Update.
11713         * MODULES.html.sh (File system functions): Add 'filename', remove
11714         'pathname'.
11715
11716 2007-02-25  Bruno Haible  <bruno@clisp.org>
11717
11718         * modules/printf-frexpl-tests: New file.
11719         * tests/test-printf-frexpl.c: New file.
11720
11721         * modules/printf-frexpl: New file.
11722         * lib/printf-frexpl.h: New file.
11723         * lib/printf-frexpl.c: New file.
11724         * m4/printf-frexpl.m4: New file.
11725
11726 2007-02-25  Bruno Haible  <bruno@clisp.org>
11727
11728         * modules/printf-frexp-tests: New file.
11729         * tests/test-printf-frexp.c: New file.
11730
11731         * modules/printf-frexp: New file.
11732         * lib/printf-frexp.h: New file.
11733         * lib/printf-frexp.c: New file.
11734         * m4/printf-frexp.m4: New file.
11735
11736 2007-02-25  Bruno Haible  <bruno@clisp.org>
11737
11738         Assume automake >= 1.10 for the tests.
11739         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
11740         * modules/arctwo-tests: Likewise.
11741         * modules/argp-tests: Likewise.
11742         * modules/avltree-list-tests: Likewise.
11743         * modules/avltree-oset-tests: Likewise.
11744         * modules/avltreehash-list-tests: Likewise.
11745         * modules/carray-list-tests: Likewise.
11746         * modules/crc-tests: Likewise.
11747         * modules/des-tests: Likewise.
11748         * modules/gc-arcfour-tests: Likewise.
11749         * modules/gc-arctwo-tests: Likewise.
11750         * modules/gc-des-tests: Likewise.
11751         * modules/gc-hmac-md5-tests: Likewise.
11752         * modules/gc-hmac-sha1-tests: Likewise.
11753         * modules/gc-md2-tests: Likewise.
11754         * modules/gc-md4-tests: Likewise.
11755         * modules/gc-md5-tests: Likewise.
11756         * modules/gc-pbkdf2-sha1-tests: Likewise.
11757         * modules/gc-rijndael-tests: Likewise.
11758         * modules/gc-sha1-tests: Likewise.
11759         * modules/gc-tests: Likewise.
11760         * modules/getaddrinfo-tests: Likewise.
11761         * modules/hmac-md5-tests: Likewise.
11762         * modules/hmac-sha1-tests: Likewise.
11763         * modules/linked-list-tests: Likewise.
11764         * modules/linkedhash-list-tests: Likewise.
11765         * modules/lock-tests: Likewise.
11766         * modules/md2-tests: Likewise.
11767         * modules/md4-tests: Likewise.
11768         * modules/md5-tests: Likewise.
11769         * modules/rbtree-list-tests: Likewise.
11770         * modules/rbtree-oset-tests: Likewise.
11771         * modules/rbtreehash-list-tests: Likewise.
11772         * modules/read-file-tests: Likewise.
11773         * modules/rijndael-tests: Likewise.
11774         * modules/stdint-tests: Likewise.
11775         * modules/tls-tests: Likewise.
11776
11777 2007-02-24  Bruno Haible  <bruno@clisp.org>
11778
11779         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
11780         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
11781         function; instead check whether isnan with a double argument links.
11782         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
11783         function; instead check whether isnan with a 'long double' argument
11784         links.
11785         Reported by Eric Blake <ebb9@byu.net>.
11786
11787 2007-02-24  Bruno Haible  <bruno@clisp.org>
11788
11789         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
11790         defined.
11791         * lib/isnanl.c: Remove all code. Just include isnan.c.
11792         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
11793
11794 2007-02-25  Jim Meyering  <jim@meyering.net>
11795
11796         Avoid conflicting types for 'unsetenv' on FreeBSD.
11797         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
11798         conflicting with FreeBSD's (5.0 and 6.1) function declaration
11799         in stdlib.h.
11800
11801 2007-02-24  Bruno Haible  <bruno@clisp.org>
11802
11803         * modules/isnanl-nolibm-tests: New file.
11804         * tests/test-isnanl.c: New file.
11805
11806         * modules/isnanl-nolibm: New file.
11807         * lib/isnanl.h: New file.
11808         * lib/isnanl.c: New file.
11809         * m4/isnanl.m4: New file.
11810
11811 2007-02-24  Bruno Haible  <bruno@clisp.org>
11812
11813         * modules/isnan-nolibm-tests: New file.
11814         * tests/test-isnan.c: New file.
11815
11816         * modules/isnan-nolibm: New file.
11817         * lib/isnan.h: New file.
11818         * lib/isnan.c: New file.
11819         * m4/isnan.m4: New file.
11820
11821 2007-02-24  Bruno Haible  <bruno@clisp.org>
11822
11823         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
11824         assume that an exponent fits in 20 bits.
11825
11826 2007-02-24  Jim Meyering  <jim@meyering.net>
11827
11828         * m4/regex.m4: Update the description of the configure-time option,
11829         --without-included-regex, to state accurately what the defaults are,
11830         and perhaps to give people an idea why using this option is risky.
11831
11832 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11833
11834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
11835         loops on small arguments.  This attempts to avoid the problem
11836         Bruno Haible reported for AIX 4.3.2 in
11837         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
11838
11839 2007-02-23  Bruno Haible  <bruno@clisp.org>
11840
11841         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
11842         Needed for help2man.
11843
11844 2007-02-23  Karl Berry  <karl@gnu.org>
11845
11846         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
11847         exists, foo.h should be cvs-ignored, not committed.
11848
11849 2007-02-23  Eric Blake  <ebb9@byu.net>
11850
11851         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
11852         * lib/stat-time.h (includes): Likewise.
11853         * lib/utimecmp.c (includes): Likewise.
11854         * lib/utimens.h (includes): Likewise.
11855         * lib/getdate.y (includes): Also include "timespec.h" for use
11856         internal to the module.
11857         * modules/utimens (Depends-on): Revert yesterday's patch.
11858         * modules/nanosleep (Depends-on): Add missing dependency.
11859
11860 2007-02-22  Bruno Haible  <bruno@clisp.org>
11861
11862         * lib/glob.c: Don't include getlogin_r.h.
11863
11864 2007-02-22  Jim Meyering  <jim@meyering.net>
11865
11866         * modules/utimens (Depends-on): Add timespec, required for
11867         utimens.h's inclusion of timespec.h.
11868
11869 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11870
11871         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
11872         long unreadable paths in GNU/Linux.  Problem reported by Andreas
11873         Schwab in
11874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
11875         I'll try to think of a better way to fix the Solaris problem.
11876
11877         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
11878         like glibc; on Solaris 10, it fails with errno == EINVAL.
11879         POSIX says the behavior is unspecified if the first argument is NULL,
11880         so play it safe and never pass NULL to the system getcwd.
11881
11882 2007-02-21  Jim Meyering  <jim@meyering.net>
11883
11884         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
11885         of gettimeofday.  It would conflict with the one now always
11886         provided via sys_time_.h.  Reported by Matthew Woehlke, as
11887         an IRIX 6.5 build failure.
11888
11889 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
11890
11891         Minor fixups to port to Solaris 10 with Sun C 5.8.
11892         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
11893         * modules/getcwd (Depends-on): Add dirfd.
11894         * lib/putenv.c (putenv): #undef it.
11895         (rpl_putenv): New decl.
11896         (malloc, free): Include <stdlib.h> rather than prototyping separately.
11897
11898 2007-02-20  Bruno Haible  <bruno@clisp.org>
11899
11900         * modules/stdio-tests: New file.
11901         * tests/test-stdio.c: New file.
11902
11903         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
11904         (Depends-on): Add stdio.
11905         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
11906         (Include): Use <stdio.h> instead of vsnprintf.h.
11907         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
11908         HAVE_DECL_VSNPRINTF.
11909         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
11910
11911         * modules/snprintf (Files): Remove lib/snprintf.h.
11912         (Depends-on): Add stdio.
11913         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
11914         (Include): Use <stdio.h> instead of snprintf.h.
11915         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
11916         HAVE_DECL_SNPRINTF.
11917         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
11918         * lib/getaddrinfo.c: Likewise.
11919
11920         * modules/stdio: New file.
11921         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
11922         * lib/snprintf.h: Remove file.
11923         * lib/vsnprintf.h: Remove file.
11924         * lib/.cppi-disable: Remove snprintf.h.
11925         * m4/stdio_h.m4: New file.
11926         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
11927
11928 2007-02-20  Jim Meyering  <jim@meyering.net>
11929
11930         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
11931         used by e.g., mingw.  From Bruno Haible.
11932
11933 2007-02-19  Bruno Haible  <bruno@clisp.org>
11934
11935         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
11936         warnings.
11937         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11938
11939 2007-02-19  Bruno Haible  <bruno@clisp.org>
11940
11941         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
11942         from mingw users.
11943
11944 2007-02-19  Bruno Haible  <bruno@clisp.org>
11945
11946         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
11947         warnings.
11948         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
11949
11950 2007-02-19  Jim Meyering  <jim@meyering.net>
11951
11952         Don't use FD after a successful "fdopendir (fd)".
11953         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
11954         Reset it by calling dirfd on the just-obtained DIR*.
11955
11956         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
11957         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
11958
11959 2007-02-18  Bruno Haible  <bruno@clisp.org>
11960
11961         * lib/readlink.c: Include <unistd.h>.
11962         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
11963         HAVE_READLINK.
11964         * modules/readlink (Depends-on): Add unistd.
11965         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11966         (Include): Add <unistd.h>.
11967
11968         * lib/getlogin_r.h: Remove file.
11969         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
11970         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
11971         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
11972         HAVE_DECL_GETLOGIN_R.
11973         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
11974         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11975         (Include): Use <unistd.h> instead of getlogin_r.h.
11976
11977         * lib/getcwd.h: Remove file.
11978         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
11979         * lib/xgetcwd.c: Likewise.
11980         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
11981         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
11982         * modules/getcwd (Files): Remove lib/getcwd.h.
11983         (Depends-on): Add unistd.
11984         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11985         (Include): Use <unistd.h> instad of getcwd.h.
11986
11987         * lib/ftruncate.c: Include <unistd.h> first.
11988         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
11989         Set HAVE_FTRUNCATE.
11990         * modules/ftruncate (Depends-on): Add unistd.
11991         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11992
11993         * lib/fchdir.c: Include <unistd.h> first.
11994         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
11995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
11996         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
11997         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11998         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
11999
12000         * lib/dup2.c: Include <unistd.h> first.
12001         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
12002         HAVE_DUP2.
12003         * modules/dup2 (Depends-on): Add unistd.
12004         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12005
12006         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
12007         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
12008         REPLACE_CHOWN. Don't define chown as a macro here.
12009         * modules/chown (Depends-on): Add unistd.
12010         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12011
12012         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
12013         Add definition for GL_LINK_WARNING.
12014         (chown, dup2): New declarations.
12015         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
12016         link warning.
12017         (ftruncate): New declaration.
12018         (getcwd): New declaration, taken from old getcwd.h.
12019         (getlogin_r): New declaration, taken from old getlogin_r.h.
12020         (readlink): New declaration.
12021         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
12022         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
12023         (gl_PREREQ_UNISTD): Remove macro.
12024         (gl_UNISTD_MODULE_INDICATOR): New macro.
12025         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
12026         many new variables. Don't set UNISTD_H.
12027         * modules/unistd (Description): Change.
12028         (Depends-on): Add link-warning.
12029         (configure.ac): Update.
12030         (Makefile.am): Create unistd.h always. Substitute many new variables
12031         into it.
12032
12033 2007-02-18  Bruno Haible  <bruno@clisp.org>
12034
12035         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
12036         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
12037         HAVE_GETSUBOPT.
12038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
12039         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
12040         * lib/getsubopt.h: Remove file.
12041         * modules/getsubopt (Files): Remove lib/getsubopt.h.
12042         (Depends-on): Add stdlib.
12043         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12044         (Includes): Use <stdlib.h> instead of getsubopt.h.
12045         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
12046         Set HAVE_GETSUBOPT.
12047         * lib/getsubopt.c: Don't include getsubopt.h.
12048
12049 2007-02-18  Bruno Haible  <bruno@clisp.org>
12050
12051         * modules/fchdir (Depends-on): Add dup2.
12052
12053 2007-02-18  Bruno Haible  <bruno@clisp.org>
12054
12055         * lib/stdlib_.h: Handle glibc's special invocation convention
12056         specially.
12057
12058 2007-02-18  Bruno Haible  <bruno@clisp.org>
12059
12060         * modules/stdlib-tests: New file.
12061         * tests/test-stdlib.c: New file.
12062
12063         * modules/mkstemp (Files): Remove lib/mkstemp.h.
12064         (Depends-on): Add stdlib.
12065         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12066         (Includes): Use <stdlib.h> instead of mkstemp.h.
12067         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12068         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
12069         * lib/mkstemp.c: Don't include mkstemp.h.
12070         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
12071         * lib/stdlib--.h: Don't include mkstemp.h.
12072
12073         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
12074         (Depends-on): Add stdlib.
12075         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12076         (Includes): Use <stdlib.h> instead of mkdtemp.h.
12077         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12078         HAVE_MKDTEMP.
12079         * lib/mkdtemp.c: Don't include mkdtemp.h.
12080         * lib/clean-temp.c: Don't include mkdtemp.h.
12081
12082         * modules/exit (Files): Remove lib/exit.h.
12083         (Depends-on): Add stdlib.
12084         (Makefile.am): Remove lib_SOURCES.
12085         (Include): Use <stdlib.h> instead of exit.h.
12086         * lib/argmatch.c: Don't include exit.h.
12087         * lib/execute.c: Likewise.
12088         * lib/pagealign_alloc.c: Likewise.
12089         * lib/pipe.c: Likewise.
12090         * lib/wait-process.c: Likewise.
12091         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
12092         * lib/exitfail.c: Likewise.
12093         * lib/savewd.c: Likewise.
12094         * lib/xsetenv.c: Likewise.
12095
12096         * modules/stdlib: New file.
12097         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
12098         and extra comments about mkstemp().
12099         * lib/exit.h: Remove file.
12100         * lib/mkdtemp.h: Remove file.
12101         * lib/mkstemp.h: Remove file.
12102         * m4/stdlib_h.m4: New file.
12103         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
12104
12105 2007-02-18  Bruno Haible  <bruno@clisp.org>
12106
12107         * modules/math-tests: New file.
12108         * tests/test-math.c: New file.
12109
12110         * modules/math: New file.
12111         * modules/mathl (Files): Remove lib/mathl.h.
12112         (Depends-on): Add math.
12113         (Makefile.am): Don't mention mathl.h.
12114         (Include): Use <math.h> instead of mathl.h.
12115         * lib/math_.h: New file.
12116         * lib/mathl.h: Remove file.
12117         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
12118         mathl.h.
12119         * lib/asinl.c: Likewise.
12120         * lib/atanl.c: Likewise.
12121         * lib/ceill.c: Likewise.
12122         * lib/cosl.c: Likewise.
12123         * lib/expl.c: Likewise.
12124         * lib/floorl.c: Likewise.
12125         * lib/frexpl.c: Likewise.
12126         * lib/ldexpl.c: Likewise.
12127         * lib/logl.c: Likewise.
12128         * lib/sincosl.c: Likewise.
12129         * lib/sinl.c: Likewise.
12130         * lib/sqrtl.c: Likewise.
12131         * lib/tanl.c: Likewise.
12132         * lib/trigl.c: Likewise.
12133         * m4/math_h.m4: New file.
12134         * MODULES.html.sh (Mathematics): Add math.
12135
12136 2007-02-17  Bruno Haible  <bruno@clisp.org>
12137
12138         * modules/wctype-tests: New file.
12139         * tests/test-wctype.c: New file.
12140
12141         * modules/wchar-tests: New file.
12142         * tests/test-wchar.c: New file.
12143
12144         * modules/unistd-tests: New file.
12145         * tests/test-unistd.c: New file.
12146
12147         * modules/time-tests: New file.
12148         * tests/test-time.c: New file.
12149
12150         * modules/sysexits-tests: New file.
12151         * tests/test-sysexits.c: New file.
12152
12153         * modules/sys_time-tests: New file.
12154         * tests/test-sys_time.c: New file.
12155
12156         * modules/sys_stat-tests: New file.
12157         * tests/test-sys_stat.c: New file.
12158
12159         * modules/sys_socket-tests: New file.
12160         * tests/test-sys_socket.c: New file.
12161
12162         * modules/sys_select-tests: New file.
12163         * tests/test-sys_select.c: New file.
12164
12165         * modules/string-tests: New file.
12166         * tests/test-string.c: New file.
12167
12168         * modules/stdbool-tests: New file.
12169         * tests/test-stdbool.c: New file.
12170
12171         * modules/netinet_in-tests: New file.
12172         * tests/test-netinet_in.c: New file.
12173
12174         * modules/inttypes-tests: New file.
12175         * tests/test-inttypes.c: New file.
12176
12177         * modules/fcntl-tests: New file.
12178         * tests/test-fcntl.c: New file.
12179
12180         * modules/byteswap-tests: New file.
12181         * tests/test-byteswap.c: New file.
12182
12183         * modules/arpa_inet-tests: New file.
12184         * tests/test-arpa_inet.c: New file.
12185
12186 2007-02-17  Bruno Haible  <bruno@clisp.org>
12187
12188         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
12189         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
12190         if the corresponding module is not enabled. Emit link warnings if
12191         the function is used nevertheless.
12192         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
12193         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
12194         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
12195         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
12196         * modules/inttypes (Depends-on): Add link-warning.
12197         (Makefile.am): Copy the contents of build-aux/link-warning.h into
12198         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
12199         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
12200         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
12201         * modules/imaxdiv (configure.ac): Likewise.
12202         * modules/strtoimax (configure.ac): Likewise.
12203         * modules/strtoumax (configure.ac): Likewise.
12204
12205 2007-02-17  Bruno Haible  <bruno@clisp.org>
12206
12207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
12208         gl_STRING_MODULE_INDICATOR_DEFAULTS.
12209         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
12210         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
12211
12212 2007-02-17  Bruno Haible  <bruno@clisp.org>
12213
12214         * modules/link-warning: New file.
12215         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
12216         * lib/string_.h (GL_LINK_WARNING): Remove definition.
12217         * modules/string (Depends-on): Add link-warning.
12218         (Makefile.am): Copy the contents of build-aux/link-warning.h into
12219         string.h.
12220         * MODULES.html.sh (Support for building libraries and executables): Add
12221         link-warning.
12222
12223 2007-02-17  Bruno Haible  <bruno@clisp.org>
12224
12225         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
12226         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
12227         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
12228         long lines.
12229
12230 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
12231             Bruno Haible  <bruno@clisp.org>
12232
12233         * modules/tmpfile: New file.
12234         * lib/tmpfile.c: New file.
12235         * m4/tmpfile.m4: New file.
12236         * MODULES.html.sh (func_all_modules): New section "Input/output".
12237
12238 2007-02-15  Bruno Haible  <bruno@clisp.org>
12239
12240         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
12241         (supports_delete_on_close): New function.
12242         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
12243
12244 2007-02-14  Bruno Haible  <bruno@clisp.org>
12245
12246         * modules/mbspcasecmp-tests: New file.
12247         * tests/test-mbspcasecmp.sh: New file.
12248         * tests/test-mbspcasecmp.c: New file.
12249
12250         New module mbspcasecmp.
12251         * modules/mbspcasecmp: New file.
12252         * lib/mbspcasecmp.c: New file.
12253         * lib/string_.h (strncasecmp): Change warning message.
12254         (mbspcasecmp): New declaration.
12255         * m4/mbspcasecmp.m4: New file.
12256         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12257         GNULIB_MBSPCASECMP.
12258         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
12259         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
12260
12261 2007-02-14  Bruno Haible  <bruno@clisp.org>
12262
12263         * modules/mbsncasecmp-tests: New file.
12264         * tests/test-mbsncasecmp.sh: New file.
12265         * tests/test-mbsncasecmp.c: New file.
12266
12267         New module mbsncasecmp.
12268         * modules/mbsncasecmp: New file.
12269         * lib/mbsncasecmp.c: New file.
12270         * lib/string_.h (mbsncasecmp): New declaration.
12271         * m4/mbsncasecmp.m4: New file.
12272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12273         GNULIB_MBSNCASECMP.
12274         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
12275         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
12276
12277 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
12278
12279         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
12280         Verify that it doesn't overlap with our flags.
12281         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
12282         do not have the desired effect in multibyte locales; instead, use
12283         mbscasecmp.
12284         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
12285         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
12286         we don't require GNU fnmatch ourselves (if our users require it, they
12287         should do so explicitly).
12288
12289         Fix regex code so it doesn't rely on strcasecmp.
12290         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
12291         Otherwise, include gnulib's langinfo.h.
12292         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
12293         undesirable behavior in non-C locales.  Instead, rely on localecharset.
12294         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
12295         * modules/regex (FILES): Remove m4/codeset.m4.
12296         (Depends-on): Add localcharset.  Remove strcase.
12297
12298 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12299
12300         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
12301         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12302
12303 2007-02-13  Bruno Haible  <bruno@clisp.org>
12304
12305         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
12306         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12307
12308 2007-02-12  Bruno Haible  <bruno@clisp.org>
12309
12310         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
12311         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
12312         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
12313         time warning rather than a link error.
12314
12315 2007-02-12  Bruno Haible  <bruno@clisp.org>
12316
12317         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
12318         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12319         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12320
12321 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12322
12323         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
12324         args, not 2.
12325
12326 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12327
12328         New module 'time', so that apps can include <time.h> as per
12329         POSIX and GNU instead of separate include files like time_r.h
12330         and timegm.h.  This implementation tries out a simpler approach
12331         for replacing decls in standard include files (as compared to
12332         the string module), somewhat as an experiment.
12333
12334         * config/srclist.txt: Comment out mktime.c for now.
12335         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
12336         since it doesn't apply any more.  Use generic wording instead.
12337         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
12338         'time'.
12339         * lib/time_.h, m4/time_h.m4, modules/time: New files.
12340         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
12341         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
12342         Don't include <sys/types.h>; no longer needed since we assume C89.
12343         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
12344         * lib/strftime.c: Likewise.
12345         * lib/time_r.c: Likewise.
12346         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
12347         * lib/nanosleep.c: Include <time.h> first, to check interface.
12348         * lib/strptime.c: Likewise.
12349         * lib/time_r.c: Likewise.
12350         * lib/timegm.c: Likewise.
12351         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
12352         needed.
12353         * lib/timegm.c: Don't include timegm.h; no longer needed.
12354         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
12355         time.h now handles any problems in that area.
12356         (struct timespec, nanosleep): Remove; time.h now arranges for these.
12357         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
12358         that time.h defines struct timespec.
12359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
12360         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
12361         handles that.
12362         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
12363         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
12364         needed.  Set REPLACE_LOCALTIME.
12365         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
12366         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
12367         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
12368         nanosleep; time_h.m4 now does that.  Don't require
12369         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
12370         module handles this now.
12371         * modules/getdate (Depends-on): Remove timespec.  Add time.
12372         * modules/nanosleep (Depends-on): Likewise.
12373         * modules/stat-time (Depends-on): Likewise.
12374         * modules/nanosleep (Include): Include time.h, not timespec.h.
12375         * modules/strptime (Files): Remove lib/strptime.h.
12376         (Depends-on): Add extensions, time.
12377         (Include): Include time.h, not strptime.h.
12378         * modules/time_r (Files): Remove lib/time_r.h.
12379         (Depends-on): Add time.
12380         (Include): Include time.h, not time_r.h.
12381         * modules/timegm: Likewise.
12382         * modules/timespec (Description): Now does timespec-related decls
12383         of our own, instead of struct timespec itself.
12384         (Depends-on): Add time; remove extensions.
12385         (Maintainer): Add self.
12386         * modules/utimecmp (Depends-on): Add time; remove timespec.
12387         * modules/utimens (Depends-on): Likewise.
12388         * modules/xnanosleep (Depends-on): Likewise.
12389
12390 2007-02-11  Bruno Haible  <bruno@clisp.org>
12391
12392         * lib/c-strstr.c: Include allocsa.h.
12393         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12394         * lib/c-strcasestr.c: Include allocsa.h.
12395         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12396         * lib/strcasestr.c: Include allocsa.h.
12397         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12398         * lib/mbsstr.c: Include allocsa.h.
12399         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
12400         allocsa/freesa instead of malloc/free.
12401         * lib/mbscasestr.c: Include allocsa.h.
12402         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
12403         allocsa/freesa instead of malloc/free.
12404         * modules/c-strstr (Depends-on): Add allocsa.
12405         * modules/c-strcasestr (Depends-on): Likewise.
12406         * modules/strcasestr (Depends-on): Likewise.
12407         * modules/mbsstr (Depends-on): Likewise.
12408         * modules/mbscasestr (Depends-on): Likewise.
12409
12410 2007-02-11  Bruno Haible  <bruno@clisp.org>
12411
12412         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
12413
12414         * modules/mbsspn-tests: New file.
12415         * tests/test-mbsspn.sh: New file.
12416         * tests/test-mbsspn.c: New file.
12417
12418 2007-02-11  Bruno Haible  <bruno@clisp.org>
12419
12420         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
12421
12422         * modules/mbspbrk-tests: New file.
12423         * tests/test-mbspbrk.sh: New file.
12424         * tests/test-mbspbrk.c: New file.
12425
12426 2007-02-11  Bruno Haible  <bruno@clisp.org>
12427
12428         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
12429         unneeded cast.
12430
12431         * modules/mbscspn-tests: New file.
12432         * tests/test-mbscspn.sh: New file.
12433         * tests/test-mbscspn.c: New file.
12434
12435 2007-02-11  Bruno Haible  <bruno@clisp.org>
12436
12437         * modules/mbscasecmp-tests: New file.
12438         * tests/test-mbscasecmp.sh: New file.
12439         * tests/test-mbscasecmp.c: New file.
12440
12441 2007-02-11  Bruno Haible  <bruno@clisp.org>
12442
12443         Ensure O(n) worst-case complexity of mbscasestr.
12444         * lib/mbscasestr.c: Include stdbool.h.
12445         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
12446         functions.
12447         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
12448         the bookkeeping indicates that it's worth it.
12449         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
12450
12451         * modules/mbscasestr-tests: New file.
12452         * tests/test-mbscasestr1.c: New file.
12453         * tests/test-mbscasestr2.sh: New file.
12454         * tests/test-mbscasestr2.c: New file.
12455         * tests/test-mbscasestr3.sh: New file.
12456         * tests/test-mbscasestr3.c: New file.
12457         * tests/test-mbscasestr4.sh: New file.
12458         * tests/test-mbscasestr4.c: New file.
12459         * m4/locale-tr.m4: New file.
12460
12461 2007-02-11  Bruno Haible  <bruno@clisp.org>
12462
12463         Ensure O(n) worst-case complexity of mbsstr.
12464         * lib/mbsstr.c: Include stdbool.h.
12465         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
12466         functions.
12467         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
12468         bookkeeping indicates that it's worth it.
12469         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
12470
12471         * modules/mbsstr-tests: New file.
12472         * tests/test-mbsstr1.c: New file.
12473         * tests/test-mbsstr2.sh: New file.
12474         * tests/test-mbsstr2.c: New file.
12475         * tests/test-mbsstr3.sh: New file.
12476         * tests/test-mbsstr3.c: New file.
12477         * m4/locale-fr.m4: New file.
12478
12479 2007-02-11  Bruno Haible  <bruno@clisp.org>
12480
12481         * lib/mbsrchr.c (mbsrchr): Fix bug.
12482
12483         * modules/mbsrchr-tests: New file.
12484         * tests/test-mbsrchr.sh: New file.
12485         * tests/test-mbsrchr.c: New file.
12486
12487 2007-02-11  Bruno Haible  <bruno@clisp.org>
12488
12489         * lib/mbschr.c (mbschr): Fix bug.
12490
12491         * modules/mbschr-tests: New file.
12492         * tests/test-mbschr.sh: New file.
12493         * tests/test-mbschr.c: New file.
12494         * m4/locale-zh.m4: New file.
12495
12496 2007-02-11  Bruno Haible  <bruno@clisp.org>
12497
12498         Support for copying multibyte string iterators.
12499         * lib/mbiter.h: Include <string.h>.
12500         (mbiter_multi_copy): New function.
12501         (mbi_copy): New macro.
12502         * lib/mbuiter.h: Include <string.h>.
12503         (mbuiter_multi_copy): New function.
12504         (mbui_copy): New macro.
12505
12506 2007-02-11  Bruno Haible  <bruno@clisp.org>
12507
12508         New module mbslen.
12509         * modules/mbslen: New file.
12510         * lib/mbslen.c: New file.
12511         * lib/string_.h (mbslen): New declaration.
12512         * m4/mbslen.m4: New file.
12513         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12514         GNULIB_MBSLEN.
12515         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
12516         * MODULES.html.sh (Internationalization functions): Add mbslen.
12517
12518 2007-02-11  Bruno Haible  <bruno@clisp.org>
12519
12520         Ensure O(n) worst-case complexity of strcasestr substitute.
12521         * lib/strcasestr.c: Include stdbool.h.
12522         (knuth_morris_pratt): New function.
12523         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
12524         bookkeeping indicates that it's worth it.
12525         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
12526
12527         * modules/strcasestr-tests: New file.
12528         * tests/test-strcasestr.c: New file.
12529
12530 2007-02-11  Bruno Haible  <bruno@clisp.org>
12531
12532         Ensure O(n) worst-case complexity of c_strcasestr.
12533         * lib/c-strcasestr.c: Include stdbool.h, string.h.
12534         (knuth_morris_pratt): New function.
12535         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
12536         the bookkeeping indicates that it's worth it.
12537         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
12538
12539         * modules/c-strcasestr-tests: New file.
12540         * tests/test-c-strcasestr.c: New file.
12541
12542 2007-02-11  Bruno Haible  <bruno@clisp.org>
12543
12544         Ensure O(n) worst-case complexity of c_strstr.
12545         * lib/c-strstr.c: Include stdbool.h, string.h.
12546         (knuth_morris_pratt): New function.
12547         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
12548         bookkeeping indicates that it's worth it.
12549         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
12550
12551         * lib/c-strstr.c: Complete rewrite for maintainability.
12552
12553         * modules/c-strstr-tests: New file.
12554         * tests/test-c-strstr.c: New file.
12555
12556 2007-02-11  Bruno Haible  <bruno@clisp.org>
12557
12558         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
12559         5.2.1 and earlier, whereby \055 was treated just like the range
12560         delimiter '-'.
12561         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12562
12563 2007-02-08  Bruno Haible  <bruno@clisp.org>
12564
12565         * modules/regex (Depends-on): Add stdbool.
12566         Reported by Dalibor Topic <robilad@kaffe.org>.
12567
12568 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
12569
12570         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
12571         Prefer returning from main to exiting from it.
12572         Remove unnecessary parens after sizeof.
12573
12574 2007-02-05  Bruno Haible  <bruno@clisp.org>
12575
12576         New module mbssep.
12577         * modules/mbssep: New file.
12578         * lib/mbssep.c: New file.
12579         * lib/string_.h (strsep): Add a conditional link warning.
12580         (mbssep): New declaration.
12581         * m4/mbssep.m4: New file.
12582         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12583         GNULIB_MBSSEP.
12584         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
12585         * MODULES.html.sh (Internationalization functions): Add mbssep.
12586
12587 2007-02-05  Bruno Haible  <bruno@clisp.org>
12588
12589         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
12590         Optimize search in case of 1 delimiter.
12591
12592 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
12593
12594         * lib/acl.h: Include sys/types.h before sys/acl.h.
12595
12596 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
12597
12598         Merge upstream fix for glibc bugzilla #3957:
12599
12600         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12601
12602         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12603         bit for RE_HAT_LISTS_NOT_NEWLINE.
12604         (build_charclass_op): Remove bogus comment.
12605
12606 2007-02-05  Simon Josefsson  <simon@josefsson.org>
12607
12608         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
12609
12610 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12611
12612         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
12613         * lib/memmem.c [!defined _LIBC]: Include config.h.
12614
12615 2007-02-04  Bruno Haible  <bruno@clisp.org>
12616
12617         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
12618         warning message.
12619
12620 2007-02-04  Bruno Haible  <bruno@clisp.org>
12621
12622         New module mbstok_r.
12623         * modules/mbstok_r: New file.
12624         * lib/mbstok_r.c: New file.
12625         * lib/string_.h (strtok_r): Change argument names to match the
12626         comments. Add a conditional link warning.
12627         (mbstok_r): New declaration.
12628         * m4/mbstok_r.m4: New file.
12629         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12630         GNULIB_MBSTOK_R.
12631         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
12632         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
12633
12634 2007-02-04  Bruno Haible  <bruno@clisp.org>
12635
12636         New module mbsspn.
12637         * modules/mbsspn: New file.
12638         * lib/mbsspn.c: New file.
12639         * lib/string_.h (strspn): Add a conditional link warning.
12640         (mbsspn): New declaration.
12641         * m4/mbsspn.m4: New file.
12642         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12643         GNULIB_MBSSPN.
12644         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
12645         * MODULES.html.sh (Internationalization functions): Add mbsspn.
12646
12647 2007-02-04  Bruno Haible  <bruno@clisp.org>
12648
12649         New module mbspbrk.
12650         * modules/mbspbrk: New file.
12651         * lib/mbspbrk.c: New file.
12652         * lib/string_.h (strpbrk): Add a conditional link warning.
12653         (mbspbrk): New declaration.
12654         * m4/mbspbrk.m4: New file.
12655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12656         GNULIB_MBSPBRK.
12657         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
12658         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
12659
12660 2007-02-04  Bruno Haible  <bruno@clisp.org>
12661
12662         New module mbscspn.
12663         * modules/mbscspn: New file.
12664         * lib/mbscspn.c: New file.
12665         * lib/string_.h (strcspn): Add a conditional link warning.
12666         (mbscspn): New declaration.
12667         * m4/mbscspn.m4: New file.
12668         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12669         GNULIB_MBSCSPN.
12670         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
12671         * MODULES.html.sh (Internationalization functions): Add mbscspn.
12672
12673 2007-02-04  Bruno Haible  <bruno@clisp.org>
12674
12675         New module mbscasestr, reduced goal of strcasestr.
12676         * modules/mbscasestr: New file.
12677         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
12678         (mbscasestr): Renamed from strcasestr.
12679         * lib/strcasestr.c: Don't include mbuiter.h.
12680         (strcasestr): Remove support for multibyte locales.
12681         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
12682         Change the conditional link warning.
12683         (mbscasestr): New declaration.
12684         * m4/mbscasestr.m4: New file.
12685         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
12686         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
12687         REPLACE_STRCASESTR.
12688         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
12689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12690         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
12691         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
12692         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
12693         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
12694         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
12695         (Depends-on): Remove mbuiter.
12696         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
12697
12698 2007-02-04  Bruno Haible  <bruno@clisp.org>
12699
12700         Simplify handling of strncasecmp.
12701         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
12702         the conditional link warning.
12703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12704         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
12705         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
12706         * modules/strcase (configure.ac): Don't invoke
12707         gl_STRING_MODULE_INDICATOR.
12708         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
12709
12710 2007-02-04  Bruno Haible  <bruno@clisp.org>
12711
12712         New module mbscasecmp, reduced goal of strcasecmp.
12713         * modules/mbscasecmp: New file.
12714         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
12715         (mbscasecmp): Renamed from strcasecmp.
12716         * lib/strcasecmp.c: Don't include mbuiter.h.
12717         (strcasecmp): Remove support for multibyte locales.
12718         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
12719         Change the conditional link warning.
12720         (mbscasecmp): New declaration.
12721         * m4/mbscasecmp.m4: New file.
12722         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
12723         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
12724         REPLACE_STRCASECMP.
12725         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
12726         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12727         GNULIB_MBSCASECMP.
12728         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
12729         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
12730         * modules/strcase (Files): Remove m4/mbrtowc.m4.
12731         (Depends-on): Remove mbuiter.
12732         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
12733
12734 2007-02-04  Bruno Haible  <bruno@clisp.org>
12735
12736         New module mbsstr. Remove module strstr.
12737         * modules/mbsstr: New file.
12738         * modules/strstr: Remove file.
12739         * lib/mbsstr.c: Renamed from lib/strstr.c.
12740         (mbsstr): Renamed from strstr.
12741         * lib/string_.h (strstr): Remove declaration. Change the conditional
12742         link warning.
12743         (mbsstr): New declaration.
12744         * m4/mbsstr.m4: New file.
12745         * m4/strstr.m4: Remove file.
12746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
12747         REPLACE_STRSTR.
12748         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
12749         Don't initialize GNULIB_STRSTR.
12750         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
12751         substitute GNULIB_STRSTR and REPLACE_STRSTR.
12752         * MODULES.html.sh (Internationalization functions): Add mbsstr.
12753         (Support for systems lacking ANSI C 89): Remove strstr.
12754
12755 2007-02-04  Bruno Haible  <bruno@clisp.org>
12756
12757         New module mbsrchr.
12758         * modules/mbsrchr: New file.
12759         * lib/mbsrchr.c: New file.
12760         * lib/string_.h (strrchr): Add a conditional link warning.
12761         (mbsrchr): New declaration.
12762         * m4/mbsrchr.m4: New file.
12763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12764         GNULIB_MBSRCHR.
12765         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
12766         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
12767
12768 2007-02-04  Bruno Haible  <bruno@clisp.org>
12769
12770         New module mbschr.
12771         * modules/mbschr: New file.
12772         * lib/mbschr.c: New file.
12773         * lib/string_.h (strchr): Add a conditional link warning.
12774         (mbschr): New declaration.
12775         * m4/mbschr.m4: New file.
12776         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12777         GNULIB_MBSCHR.
12778         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
12779         * MODULES.html.sh (Internationalization functions): Add mbschr.
12780
12781 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12782
12783         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
12784
12785         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
12786
12787 2007-02-04  Bruno Haible  <bruno@clisp.org>
12788
12789         New module description section 'configure.ac-early'.
12790         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
12791         (func_get_autoconf_early_snippet): New function.
12792         (func_import, func_create_testdir): Use it. Remove special cases for
12793         modules 'extensions' and 'lock'.
12794         * modules/extensions (configure.ac-early): Require
12795         gl_USE_SYSTEM_EXTENSIONS.
12796         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
12797
12798 2007-02-04  Bruno Haible  <bruno@clisp.org>
12799
12800         Make use of gcj-4.3's -fsource and -ftarget option.
12801         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
12802         and if so try the options -fsource and -ftarget.
12803         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
12804         source_version, ftarget_option, target_version arguments.
12805         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
12806         (is_envjavac_oldgcj_14_14_usable): Renamed from
12807         is_envjavac_gcj_14_14_usable.
12808         (is_envjavac_oldgcj_14_13_usable): Renamed from
12809         is_envjavac_gcj_14_13_usable.
12810         (is_gcj_present): Update.
12811         (is_gcj_43, is_gcj43_usable): New functions.
12812         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
12813         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
12814         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
12815         try the options -fsource and -ftarget.
12816
12817 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
12818
12819         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
12820         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
12821         larger value.
12822
12823 2007-02-03  Jim Meyering  <jim@meyering.net>
12824
12825         Give tools a better chance to allocate space for very large buffers.
12826         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
12827
12828         Make pwd and readlink work also when run with an unreadable parent dir
12829         on systems with openat support.
12830         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
12831         provided getcwd function, even when we have openat support.
12832         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
12833
12834 2007-02-02  Bruno Haible  <bruno@clisp.org>
12835
12836         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
12837         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
12838         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
12839         portability problems if one of these functions is only used on specific
12840         platforms.
12841         Reported by Paul Eggert.
12842
12843 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12844
12845         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
12846         is causing more trouble than it's curing.
12847         * lib/regex_internal.h (__mempcpy): Remove.
12848         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
12849         (and make the code a tad smaller to boot).
12850         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
12851
12852 2007-02-02  Jim Meyering  <jim@meyering.net>
12853
12854         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
12855         section, not in the Makefile.am: one.
12856
12857 2007-02-02  Eric Blake  <ebb9@byu.net>
12858
12859         * lib/strchrnul.c: Always include config.h first.
12860
12861         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
12862         gnulib strstr is not necessary here.
12863
12864 2007-02-02  Simon Josefsson  <simon@josefsson.org>
12865
12866         * m4/socklen.m4: Fix typo.
12867
12868 2007-02-02  Eric Blake  <ebb9@byu.net>
12869
12870         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
12871         * modules/netinet_in (Makefile.am): Likewise.
12872
12873 2007-02-01  Bruno Haible  <bruno@clisp.org>
12874
12875         * lib/string_.h (GL_LINK_WARNING): New macro.
12876         (strcasecmp, strstr, strcasestr): If provided by the system,
12877         conditionally define as a macro that leads to a warning instead of to
12878         an error.
12879         (strncasecmp): Conditionally define as a macro that leads to a warning.
12880
12881 2007-02-01  Karl Berry  <karl@gnu.org>
12882
12883         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
12884
12885 2007-02-01  Bruno Haible  <bruno@clisp.org>
12886
12887         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
12888         renamings.
12889
12890 2007-02-01  Eric Blake  <ebb9@byu.net>
12891
12892         * modules/regex (Depends-on): Revert dependence on mempcpy.
12893         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
12894         module's definition of mempcpy.
12895         Reported by Paul Eggert.
12896
12897 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
12898
12899         * lib/string_.h: If the gnulib module XYZ is not present, undefine
12900         the symbol XYZ before redefining it.  This fixes a problem with
12901         programs that don't use XYZ, when compiled on systems that define
12902         XYZ to something else.
12903
12904 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
12905
12906         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
12907         occurs when "mkdir -m foo" creates a setgid directory that is (1)
12908         writeable to group or other and (2) is intended to have a special
12909         mode bit that is set or cleared.  In such a case, the directory
12910         should be neither group- nor other-writeable until the special
12911         mode bits are right.
12912
12913 2007-01-31  Eric Blake  <ebb9@byu.net>
12914
12915         * modules/mountlist (Depends-on): Add strstr.
12916
12917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
12918         bug.
12919         * modules/string (Makefile.am): Remove redundant replacement.
12920         * modules/regex (Depends-on): Add mempcpy.
12921
12922 2007-01-31  Bruno Haible  <bruno@clisp.org>
12923
12924         New module description field 'Link'.
12925         * gnulib-tool (func_usage): Document --extract-link-directive.
12926         (sed_extract_prog): Recognize 'Link' directive.
12927         (func_get_link_directive): New function.
12928         (func_import): Show summary of link directives.
12929         Handle --extract-link-directive option.
12930         * modules/acl (Link): New section.
12931         * modules/clock-time (Link): New section.
12932         * modules/euidaccess (Link): New section.
12933         * modules/gettext (Link): New section.
12934         * modules/iconv (Link): New section.
12935         * modules/lock (Link): New section.
12936         * modules/nanosleep (Link): New section.
12937         * modules/readline (Link): New section.
12938
12939 2007-01-27  Bruno Haible  <bruno@clisp.org>
12940
12941         Enforce the use of gnulib modules for unportable <string.h> functions.
12942         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
12943         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
12944         (gl_HEADER_STRING_H_BODY): Require it.
12945         * lib/string_.h: If the gnulib module XYZ is not present, redefine
12946         the symbol XYZ to one that gives a link error.
12947         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
12948         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
12949         * modules/mempcpy (configure.ac): Likewise.
12950         * modules/memrchr (configure.ac): Likewise.
12951         * modules/stpcpy (configure.ac): Likewise.
12952         * modules/stpncpy (configure.ac): Likewise.
12953         * modules/strcase (configure.ac): Likewise.
12954         * modules/strcasestr (configure.ac): Likewise.
12955         * modules/strchrnul (configure.ac): Likewise.
12956         * modules/strdup (configure.ac): Likewise.
12957         * modules/strndup (configure.ac): Likewise.
12958         * modules/strnlen (configure.ac): Likewise.
12959         * modules/strpbrk (configure.ac): Likewise.
12960         * modules/strsep (configure.ac): Likewise.
12961         * modules/strstr (configure.ac): Likewise.
12962         * modules/strtok_r (configure.ac): Likewise.
12963
12964 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
12965
12966         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
12967
12968 2007-01-30  Jim Meyering  <jim@meyering.net>
12969
12970         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
12971
12972 2007-01-29  Bruno Haible  <bruno@clisp.org>
12973
12974         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
12975         * lib/execute.c: Likewise.
12976         * lib/pipe.c: Likewise.
12977         * lib/printf-args.h: Likewise.
12978         * lib/printf-args.c: Likewise.
12979         * lib/printf-parse.c: Likewise.
12980         * lib/vasnprintf.c: Likewise.
12981
12982 2007-01-29  Eric Blake  <ebb9@byu.net>
12983
12984         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
12985         declaration.
12986
12987 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
12988
12989         * lib/strptime.h (strptime): Use 'restrict' for args where
12990         POSIX requires this.
12991         * lib/strptime.c (strptime): Likewise.
12992         Change license notice from LGPL to GPL, since gnulib-tool will
12993         change this as needed.
12994         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
12995         defined.
12996         Include "strptime.h" first, to check interface.
12997         Do not #undef _LIBC and _NL_CURRENT.
12998         Do not include <stdlib.h>; no longer needed.
12999         Include "time_r.h" and declare ptime_locale_status
13000         only if _LIBC is not defined.
13001         (__P): Remove unused macro.
13002         (match_string): Bring back glibc version, but use it only if _LIBC
13003         is defined.
13004         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
13005         Remove unnecessary assertion and abort() call.
13006         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
13007         * m4/strptime.m4: Fix serial number comment.
13008         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
13009         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
13010         (Depends-on): Add time_r.
13011
13012 2007-01-29  Bruno Haible  <bruno@clisp.org>
13013
13014         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13015         strptime.
13016         * modules/strptime (Depends-on): Add stdbool.
13017         * lib/strptime.h: Include <time.h> always. Add comments.
13018
13019 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13020
13021         * modules/strptime: New file.
13022         * lib/strptime.h: New file.
13023         * lib/strptime.c: New file.
13024         * m4/strptime.m4: New file.
13025
13026 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13027
13028         * MODULES.html.sh: New module mpsort.
13029         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
13030
13031         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
13032         a circularity problem with HP-UX ia64 reported by Bob Proulx in
13033         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
13034         All uses changed.
13035         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
13036         All uses changed.
13037         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
13038         to _Restrict_.
13039         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
13040         the parameter matches the prototype.
13041
13042 2007-01-28  Jim Meyering  <jim@meyering.net>
13043
13044         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
13045         sys/time.h here, reverting that part of the previous patch:
13046         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
13047
13048 2007-01-28  Bruno Haible  <bruno@clisp.org>
13049
13050         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
13051         value of $(SYS_TIME_H).
13052         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
13053         remove it conditionally, too. [added by Jim Meyering]
13054         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
13055         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
13056         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
13057         GETTIMEOFDAY_REPLACEMENT to 1.
13058
13059 2007-01-28  Bruno Haible  <bruno@clisp.org>
13060
13061         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
13062         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
13063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
13064         Set UNISTD_H instead of UNISTD_H2.
13065         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
13066
13067 2007-01-28  Bruno Haible  <bruno@clisp.org>
13068
13069         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
13070         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
13071
13072 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13073
13074         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
13075         (func_create_testdir): Ensure C locale for `grep' and `tr'
13076         character ranges.
13077         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
13078         ACLOCAL_AMFLAGS parsing state machine.
13079
13080 2007-01-27  Bruno Haible  <bruno@clisp.org>
13081
13082         * modules/unistr/base: Update.
13083
13084 2007-01-27  Bruno Haible  <bruno@clisp.org>
13085
13086         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
13087         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
13088         * modules/unistr/u32-mbtouc-unsafe: Renamed from
13089         modules/unistr/u32-mbtouc.
13090         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
13091         * lib/unistr.h: Update.
13092         * lib/linebreak.c: Update.
13093         * modules/unistr/u32-mbtouc: Renamed from
13094         modules/unistr/u32-mbtouc-safe.
13095         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
13096         * lib/unistr.h: Update.
13097         * lib/unistr/u32-to-u8.c: Update.
13098         * lib/unistr/u32-to-u16.c: Update.
13099
13100 2007-01-27  Bruno Haible  <bruno@clisp.org>
13101
13102         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
13103         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
13104         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
13105         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
13106         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
13107         * modules/unistr/u16-mbtouc-unsafe: Renamed from
13108         modules/unistr/u16-mbtouc.
13109         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
13110         * lib/unistr.h: Update.
13111         * lib/linebreak.c: Update.
13112         * modules/linebreak: Update.
13113         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
13114         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
13115         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
13116         * modules/unistr/u16-mbtouc: Renamed from
13117         modules/unistr/u16-mbtouc-safe.
13118         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
13119         * lib/unistr.h: Update.
13120         * lib/unistr/u16-to-u8.c: Update.
13121         * modules/unistr/u16-to-u8: Update.
13122         * lib/unistr/u16-to-u32.c: Update.
13123         * modules/unistr/u16-to-u32: Update.
13124
13125 2007-01-27  Bruno Haible  <bruno@clisp.org>
13126
13127         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
13128         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
13129         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
13130         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
13131         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
13132         * modules/unistr/u8-mbtouc-unsafe: Renamed from
13133         modules/unistr/u8-mbtouc.
13134         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
13135         * lib/unistr.h: Update.
13136         * lib/striconveh.c: Update.
13137         * modules/striconveh: Update.
13138         * lib/linebreak.c: Update.
13139         * modules/linebreak: Update.
13140         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
13141         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
13142         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
13143         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
13144         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
13145         * lib/unistr.h: Update.
13146         * lib/striconveh.c: Update.
13147         * modules/striconveh: Update.
13148         * lib/unistr/u8-to-u16.c: Update.
13149         * modules/unistr/u8-to-u16: Update.
13150         * lib/unistr/u8-to-u32.c: Update.
13151         * modules/unistr/u8-to-u32: Update.
13152
13153 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13154
13155         Sync from Libtool.
13156         * lib/argz.c: Do not include strings.h nor memory.h, include
13157         string.h unconditionally.  Patch by Simon Josefsson.
13158
13159 2007-01-27  Bruno Haible  <bruno@clisp.org>
13160
13161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
13162         from gl_HEADER_STRING_H_BODY.
13163         (gl_HEADER_STRING_H_BODY): Require it.
13164         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
13165         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
13166         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
13167         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
13168         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13169         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
13170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13171         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
13172         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
13173         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13174         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
13175         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
13176         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
13177         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13178         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13179
13180 2007-01-27  Bruno Haible  <bruno@clisp.org>
13181
13182         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
13183         check_PROGRAMS into noinst_PROGRAMS.
13184         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
13185         check_PROGRAMS in this case.
13186         (func_import): Set for_test to false.
13187         (func_create_testdir): Set for_test to true.
13188
13189 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13190             Bruno Haible  <bruno@clisp.org>
13191
13192         * modules/strcasestr (Files): Remove lib/strcasestr.h.
13193         (Depends-on): Add string.
13194         (Includes): Use <string.h> instead of strcasestr.h.
13195         * modules/string (Makefile.am): Also substitute the value of
13196         REPLACE_STRCASESTR.
13197         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
13198         assume strcasestr is declared in <string.h> not <strings.h>. Also
13199         set REPLACE_STRCASESTR.
13200         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
13201         REPLACE_STRCASESTR.
13202         * lib/strcasestr.h: Remove file.
13203         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
13204         * lib/string_.h (strcasestr): New declaration.
13205
13206 2007-01-27  Bruno Haible  <bruno@clisp.org>
13207
13208         * lib/string_.h: Use 'extern'.
13209
13210 2007-01-27  Jim Meyering  <jim@meyering.net>
13211
13212         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
13213         of set-but-not-used local, "q".
13214
13215         * lib/mempcpy.c: Include <config.h> before <string.h>.
13216         This fixes a compilation error on HP-UX, due to the system's
13217         "restrict"-using mempcpy prototype.
13218
13219 2007-01-26  Bruno Haible  <bruno@clisp.org>
13220
13221         Small optimization.
13222         * lib/javacomp.c: Include c-strstr.h.
13223          (is_envjavac_gcj): Use c_strstr instead of strstr.
13224         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
13225
13226 2007-01-26  Bruno Haible  <bruno@clisp.org>
13227
13228         * MODULES.html.sh (Unicode string functions): Add the new modules.
13229
13230         * modules/uniconv/u32-strconv-to-locale: New file.
13231         * lib/uniconv/u32-strconv-to-locale.c: New file.
13232
13233         * modules/uniconv/u16-strconv-to-locale: New file.
13234         * lib/uniconv/u16-strconv-to-locale.c: New file.
13235
13236         * modules/uniconv/u8-strconv-to-locale: New file.
13237         * lib/uniconv/u8-strconv-to-locale.c: New file.
13238
13239         * modules/uniconv/u32-strconv-from-locale: New file.
13240         * lib/uniconv/u32-strconv-from-locale.c: New file.
13241
13242         * modules/uniconv/u16-strconv-from-locale: New file.
13243         * lib/uniconv/u16-strconv-from-locale.c: New file.
13244
13245         * modules/uniconv/u8-strconv-from-locale: New file.
13246         * lib/uniconv/u8-strconv-from-locale.c: New file.
13247
13248         * modules/uniconv/u32-strconv-to-enc: New file.
13249         * lib/uniconv/u32-strconv-to-enc.c: New file.
13250         * modules/uniconv/u32-strconv-to-enc-tests: New file.
13251         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
13252
13253         * modules/uniconv/u16-strconv-to-enc: New file.
13254         * lib/uniconv/u16-strconv-to-enc.c: New file.
13255         * lib/uniconv/u-strconv-to-enc.h: New file.
13256         * modules/uniconv/u16-strconv-to-enc-tests: New file.
13257         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
13258
13259         * modules/uniconv/u8-strconv-to-enc: New file.
13260         * lib/uniconv/u8-strconv-to-enc.c: New file.
13261         * modules/uniconv/u8-strconv-to-enc-tests: New file.
13262         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
13263
13264         * modules/uniconv/u32-strconv-from-enc: New file.
13265         * lib/uniconv/u32-strconv-from-enc.c: New file.
13266         * modules/uniconv/u32-strconv-from-enc-tests: New file.
13267         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
13268
13269         * modules/uniconv/u16-strconv-from-enc: New file.
13270         * lib/uniconv/u16-strconv-from-enc.c: New file.
13271         * modules/uniconv/u16-strconv-from-enc-tests: New file.
13272         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
13273
13274         * modules/uniconv/u8-strconv-from-enc: New file.
13275         * lib/uniconv/u8-strconv-from-enc.c: New file.
13276         * lib/uniconv/u-strconv-from-enc.h: New file.
13277         * modules/uniconv/u8-strconv-from-enc-tests: New file.
13278         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
13279
13280         * modules/uniconv/u32-conv-from-enc: New file.
13281         * lib/uniconv/u32-conv-from-enc.c: New file.
13282         * modules/uniconv/u32-conv-from-enc-tests: New file.
13283         * tests/uniconv/test-u32-conv-from-enc.c: New file.
13284
13285         * modules/uniconv/u16-conv-from-enc: New file.
13286         * lib/uniconv/u16-conv-from-enc.c: New file.
13287         * lib/uniconv/u-conv-from-enc.h: New file.
13288         * modules/uniconv/u16-conv-from-enc-tests: New file.
13289         * tests/uniconv/test-u16-conv-from-enc.c: New file.
13290
13291         * modules/uniconv/u8-conv-from-enc: New file.
13292         * lib/uniconv/u8-conv-from-enc.c: New file.
13293         * modules/uniconv/u8-conv-from-enc-tests: New file.
13294         * tests/uniconv/test-u8-conv-from-enc.c: New file.
13295
13296         * modules/uniconv/base: New file.
13297         * lib/uniconv.h: New file.
13298
13299 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
13300
13301         * doc/gnulib-tool.texi (Initial import): Update to match current
13302         behavior with strdup module.
13303         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
13304         * lib/memmem.h: Remove; all uses removed.  This is now done
13305         by <string.h>.
13306         * lib/mempcpy.h: Likewise.
13307         * lib/memrchr.h: Likewise.
13308         * lib/stpcpy.h: Likewise.
13309         * lib/stpncpy.h: Likewise.
13310         * lib/strcase.h: Likewise.
13311         * lib/strchrnul.h: Likewise.
13312         * lib/strdup.h: Likewise.
13313         * lib/strndup.h: Likewise.
13314         * lib/strnlen.h: Likewise.
13315         * lib/strpbrk.h: Likewise.
13316         * lib/strsep.h: Likewise.
13317         * lib/strstr.h: Likewise.
13318         * lib/strtok_r.h: Likewise.
13319         * lib/string_.h: New file.
13320         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
13321         Rely on <string.h> instead.
13322         * lib/canon-host.c: Likewise.
13323         * lib/chdir-long.c: Likewise.
13324         * lib/concatpath.c: Likewise.
13325         * lib/exclude.c: Likewise.
13326         * lib/fchdir.c: Likewise.
13327         * lib/getaddrinfo.c: Likewise.
13328         * lib/getcwd.c: Likewise.
13329         * lib/getsubopt.c: Likewise.
13330         * lib/glob.c: Likewise.
13331         * lib/hard-locale.c: Likewise.
13332         * lib/iconvme.c: Likewise.
13333         * lib/javacomp.c: Likewise.
13334         * lib/mempcpy.c: Likewise.
13335         * lib/memrchr.c: Likewise.
13336         * lib/regex_internal.h: Likewise.
13337         * lib/stpncpy.c: Likewise.
13338         * lib/strcasecmp.c: Likewise.
13339         * lib/strchrnul.c: Likewise.
13340         * lib/strdup.c: Likewise.
13341         * lib/striconv.c: Likewise.
13342         * lib/striconveh.c: Likewise.
13343         * lib/striconveha.c: Likewise.
13344         * lib/strncasecmp.c: Likewise.
13345         * lib/strndup.c: Likewise.
13346         * lib/strnlen.c: Likewise.
13347         * lib/strsep.c: Likewise.
13348         * lib/strstr.c: Likewise.
13349         * lib/strtok_r.c: Likewise.
13350         * lib/userspec.c: Likewise.
13351         * lib/w32spawn.h: Likewise.
13352         * lib/xstrndup.c: Likewise.
13353         * lib/mountlist.c (strstr): Remove decl.
13354         * m4/string_h.m4: New file.
13355         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
13356         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
13357         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
13358         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
13359         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
13360         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
13361         Set REPLACE_STRCASECMP if necessary.
13362         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
13363         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
13364         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
13365         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
13366         HAVE_DECL_STRDUP if necessary.
13367         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
13368         since gl_FUNC_STRNDUP does that now.
13369         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
13370         Check for decl here...
13371         (gl_PREREQ_STRNLEN): ... not here.
13372         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
13373         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
13374         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
13375         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
13376         necessary.
13377         * modules/string: New file.
13378         * modules/memmem (Files): Remove special-purpose include file.
13379         (Depends-on): Add string.
13380         (Include): Include <string.h>, not the removed file.
13381         * modules/mempcpy: Likewise.
13382         * modules/memrchr: Likewise.
13383         * modules/stpcpy: Likewise.
13384         * modules/stpncpy: Likewise.
13385         * modules/strcase: Likewise.
13386         * modules/strchrnul: Likewise.
13387         * modules/strdup: Likewise.
13388         * modules/strndup: Likewise.
13389         * modules/strnlen: Likewise.
13390         * modules/strpbrk: Likewise.
13391         * modules/strsep: Likewise.
13392         * modules/strstr: Likewise.
13393         * modules/strtok_r: Likewise.
13394         * tests/test-dirname.c: Don't include "strdup.h", since
13395         <string.h> now suffices.
13396         * tests/test-memmem.c: Don't include "memmem.h", since
13397         <string.h> now suffices.
13398
13399 2007-01-25  Bruno Haible  <bruno@clisp.org>
13400
13401         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
13402         *resultp is 0.
13403
13404         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
13405         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
13406         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
13407         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
13408
13409         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
13410         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
13411         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
13412         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
13413         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
13414         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
13415
13416 2007-01-24  Bruno Haible  <bruno@clisp.org>
13417
13418         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
13419         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
13420         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
13421         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
13422         gl_FUNC_FTS_CORE.
13423         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
13424         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
13425         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13426         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
13427         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
13428         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
13429         gl_FUNC_FCHOWNAT.
13430         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
13431         gl_FUNC_STRFTIME.
13432         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
13433         Reported by Ralf Wildenhues.
13434
13435 2007-01-24  Bruno Haible  <bruno@clisp.org>
13436
13437         Drop AC_REQUIRE calls that are redundant with the module dependencies.
13438         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
13439         gl_GETADDRINFO.
13440         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
13441         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
13442         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
13443
13444 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
13445
13446         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
13447         Don't use 'exit'; just return from 'main'.
13448         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
13449
13450         * lib/fnmatch_.h: Readjust white space and comments to match
13451         glibc, to avoid spurious diffs.
13452
13453 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13454
13455         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
13456         2004-12-01 change by Jakub Jelinek, since this code won't compile
13457         if !LIBC.  Problem reported by Bob Proulx.
13458
13459 2007-01-23  Bruno Haible  <bruno@clisp.org>
13460
13461         * lib/striconveh.c: Include c-strcaseeq.h.
13462         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
13463         * modules/striconveh (Depends-on): Add c-strcaseeq.
13464
13465 2007-01-23  Bruno Haible  <bruno@clisp.org>
13466
13467         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
13468
13469         * modules/c-strcaseeq: New file.
13470         * lib/c-strcaseeq.h: New file.
13471
13472         * modules/streq: New file.
13473         * lib/streq.h: New file.
13474
13475 2007-01-23  Bruno Haible  <bruno@clisp.org>
13476
13477         * modules/striconveha-tests: New file.
13478         * tests/test-striconveha.c: New file.
13479
13480         * lib/striconveha.h: Include <stdbool.h>.
13481         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
13482         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
13483         (mem_iconveha_notranslit): Renamed from mem_iconveha.
13484         (mem_iconveha): New function.
13485         (str_iconveha_notranslit): Renamed from str_iconveha.
13486         (str_iconveha): New function.
13487         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
13488         c-strcase.
13489
13490 2007-01-23  Bruno Haible  <bruno@clisp.org>
13491
13492         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
13493         encodings without forgiving before trying any encoding with handler.
13494         (str_iconveha): Try all encodings without forgiving before trying any
13495         encoding with handler.
13496
13497 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13498
13499         Import the following changes from libc.
13500
13501         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
13502
13503         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
13504
13505         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
13506
13507         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
13508         normal_bracket label.
13509
13510         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
13511
13512         [BZ #361]
13513         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
13514         to normal_bracket after fetching the next character.
13515
13516 2007-01-22  Bruno Haible  <bruno@clisp.org>
13517
13518         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
13519         argument.
13520         * lib/striconveh.c (iconv_carefully_1): New function.
13521         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
13522         argument.
13523         (str_cd_iconveh): Update.
13524         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
13525         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
13526         * tests/test-striconveh.c (MAGIC): New macro.
13527         (new_offsets): New function.
13528         (main): Test call with and without offsets.
13529
13530 2007-01-22  Bruno Haible  <bruno@clisp.org>
13531
13532         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
13533         * modules/sys_select (Makefile.am): Likewise.
13534         * modules/sys_socket (Makefile.am): Likewise.
13535         * modules/sys_time (Makefile.am): Likewise.
13536
13537 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
13538
13539         * modules/gettimeofday (License): Change from GPL to LGPL, since
13540         gettimeofday is a library function.
13541
13542 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13543
13544         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
13545
13546 2007-01-21  Bruno Haible  <bruno@clisp.org>
13547
13548         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
13549
13550 2007-01-21  Bruno Haible  <bruno@clisp.org>
13551
13552         * modules/striconveha: New file.
13553         * lib/striconveha.h: New file.
13554         * lib/striconveha.c: New file.
13555         * MODULES.html.sh (Internationalization functions): Add striconveha.
13556         * lib/striconv.c (str_iconv): Optimize the case of an empty input
13557         string.
13558         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
13559
13560 2007-01-21  Bruno Haible  <bruno@clisp.org>
13561
13562         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
13563         * lib/striconveh.c (str_iconveh): Likewise.
13564
13565 2007-01-21  Bruno Haible  <bruno@clisp.org>
13566
13567         * lib/striconveh.h (mem_iconveh): New declaration.
13568         * lib/striconveh.c (mem_iconveh): New function.
13569         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
13570
13571 2007-01-21  Bruno Haible  <bruno@clisp.org>
13572
13573         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
13574
13575         * lib/striconveh.h (mem_cd_iconveh): Change specification.
13576         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
13577         original result buffer.
13578         (str_cd_iconveh): Update.
13579         * tests/test-striconveh.c (main): Update.
13580
13581         * lib/striconv.h (mem_cd_iconv): Change specification.
13582         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
13583         result buffer.
13584         (str_cd_iconv): Update.
13585         * tests/test-striconv.c (main): Update.
13586
13587 2007-01-21  Bruno Haible  <bruno@clisp.org>
13588
13589         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
13590
13591 2007-01-20  Jim Meyering  <jim@meyering.net>
13592
13593         * lib/userspec.c (parse_with_separator): If a user or group string
13594         starts with "+", skip the corresponding name-to-ID look-up, since
13595         such a look-up must fail: user and group names may not include "+".
13596
13597 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
13598
13599         * lib/poll.c: Include sys/time.h and time.h unconditionally,
13600         since we now assume the sys_time module.
13601         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
13602         check for sys/time.h; no longer needed.
13603         * modules/poll (Depends-on): Depend on sys_time.
13604
13605 2007-01-18  Bruno Haible  <bruno@clisp.org>
13606
13607         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
13608         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
13609
13610         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
13611         gettimeofday.
13612
13613         * tests/test-gettimeofday.c: Include <time.h>.
13614         (dummy): Remove variable.
13615
13616         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
13617         gl_HEADER_SYS_TIME_H.
13618         (gl_HEADER_SYS_TIME_H): New macro.
13619
13620         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
13621         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13622         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13623         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
13624         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13625         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
13626         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
13627         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13628         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
13629         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
13630         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13631
13632         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
13633         last change; it caused a compilation error when cross-compiling to
13634         Cygwin.
13635
13636 2007-01-18  Jim Meyering  <jim@meyering.net>
13637
13638         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
13639         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
13640         than the race-prone "test -d sys || mkdir sys".
13641         (configure.ac): Use AC_PROG_MKDIR_P.
13642         * modules/sys_select: Likewise.
13643         * modules/sys_socket: Likewise.
13644         * modules/sys_time: Likewise.
13645
13646 2007-01-18  Eric Blake  <ebb9@byu.net>
13647
13648         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
13649         replace gettimeofday.
13650         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
13651         name, to avoid infinite recursion.
13652
13653 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
13654
13655         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
13656         module sys_time.
13657         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
13658         assume timespec.h defines struct timeval.
13659         * lib/settime.c: Likewise.
13660         * lib/utimens.c: Likewise.
13661         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
13662         since we now assume the gettimeofday module.
13663         * lib/tempname.c (__gen_tempname): Likewise.
13664         * lib/gettimeofday.h: Remove.
13665         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
13666         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
13667         Include <time.h>, for 'time()'.
13668         (localtime_buffer_addr): Also use this workaround if
13669         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
13670         to simplify the uses.  All uses changed.
13671         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
13672         that #undef is inside {}, and 'const' follows type name consistently.
13673         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
13674         (gettimeofday): Do not use the maximum possible value for
13675         tv->tv_usec, since that might break usages other than ls.c.
13676         Instead, we'll leave ls.c alone.  This undoes today's patch
13677         by Bruno.  Add a compile-time warning for 1s-clock resolution;
13678         we've never observed the problem but might as well keep the
13679         canary.
13680         * lib/nanosleep.c: Include timespec.h first, for interface check.
13681         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
13682         now assume the sys_time module.
13683         * lib/tempname.c: Likewise.
13684         * lib/timespec.h: Likewise.
13685         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
13686         needed.
13687         * lib/strftime.c: Likewise.
13688         * lib/timespec.h: Likewise.
13689         * lib/posixtm.c: Include posixtm.h first, for interface check.
13690         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
13691         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
13692         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
13693         * lib/sys_time_.h: New file.
13694         * lib/timespec.h (struct timespec): Use long int, not long.
13695         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
13696         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
13697         Remove obsolescent call to AC_HEADER_TIME.
13698         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13699         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13700         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
13701         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
13702         Likewise.
13703         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
13704         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
13705         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
13706         into the sys_time module.  Check for gettimeofday just once.
13707         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
13708         for gettimeofday signature to just check the signature.  Merely
13709         compile it, since linking doesn't test signature.  Improve test for
13710         whether gettimeofday.o is actually needed.
13711         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
13712         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
13713         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
13714         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13715         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
13716         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
13717         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
13718         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
13719         than worrying about sys/time.h.
13720         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13721         Don't bother worrying about TIME_WITH_SYS_TIME.
13722         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
13723         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
13724         * m4/sys_time_h.m4: New file.
13725         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
13726         Don't include sys/time.h.  Return from main rather than exiting.
13727         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
13728         all uses changed.
13729         * modules/gethrxtime (Depends-on): Add sys_time.
13730         * modules/gettime (Depends-on): Likewise.
13731         * modules/gettimeofday (Depends-on): Likewise.
13732         * modules/nanosleep (Depends-on): Likewise.
13733         * modules/settime (Depends-on): Likewise.
13734         * modules/tempname (Depends-on): Likewise.
13735         * modules/utimens (Depends-on): Likewise.
13736         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
13737         (Include:) Change back to <sys/time.h>.
13738         (Maintainer:) Add self.
13739         * modules/sys_time: New file.
13740         * modules/tempname (Depends-on): Add gettimeofday.
13741         * tests/test-gettimeofday.c: Include <sys/time.h>
13742         rather than gettimeofday.h.
13743
13744 2007-01-17  Bruno Haible  <bruno@clisp.org>
13745
13746         * gnulib-tool (func_get_license): Revert last patch. Instead, let
13747         the license default to GPL.
13748         (func_create_testdir): Don't complain if a module is LGPL and its
13749         tests module depends on GPLed modules.
13750
13751 2007-01-17  Bruno Haible  <bruno@clisp.org>
13752
13753         * lib/gettimeofday.c (gettimeofday): Add code for the case
13754         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
13755         maximum possible value for tv->tv_usec, rather than the minimum one.
13756
13757 2005-10-08  Martin Lambers  <marlam@marlam.de>
13758 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13759 2007-01-16  Bruno Haible  <bruno@clisp.org>
13760
13761         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
13762         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
13763         gl_FUNC_GETTIMEOFDAY.
13764         (Include): Add gettimeofday.h.
13765         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
13766         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
13767         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
13768         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
13769         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
13770         * lib/gettimeofday.h: New file.
13771         * lib/gettimeofday.c: Include <sys/timeb.h>.
13772         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
13773         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13774         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
13775         fall back on time().
13776
13777         * tests/test-gettimeofday.c: New file.
13778         * modules/gettimeofday-tests: New file.
13779
13780 2007-01-16  Eric Blake  <ebb9@byu.net>
13781
13782         * modules/fnmatch (Depends-on): Depend on wchar.
13783         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
13784         * m4/fnmatch.m4: Likewise.
13785         * modules/mbchar (Makefile.am): Assume <wchar.h>.
13786         * m4/mbchar.m4: Likewise.
13787         * modules/mbswidth (Depends-on): Depend on wchar.
13788         * lib/mbswidth.c: Assume <wchar.h>.
13789         * m4/mbswidth.m4: Likewise.
13790         * modules/quotearg (Depends-on): Depend on wchar.
13791         * lib/quotearg.c: Assume <wchar.h>.
13792         * m4/quotearg.m4: Likewise.
13793         * modules/regex (Depends-on): Depend on wchar.
13794         * lib/regex_internal.h: Assume <wchar.h>.
13795         * m4/regex.m4: Likewise.
13796         * modules/stdint (Depends-on): Depend on wchar.
13797         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
13798         * m4/stdint.m4: Likewise.
13799         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
13800         * modules/strftime (Depends-on): Depend on wchar.
13801         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
13802         * modules/strtol (Depends-on): Depend on wchar.
13803         * lib/strtol.c: Assume <wchar.h>.
13804         * modules/wcwidth (Depends-on): Depend on wchar.
13805         * lib/wcwidth.h: Assume <wchar.h>.
13806         * m4/wcwidth.m4: Likewise.
13807
13808 2007-01-16  Bruno Haible  <bruno@clisp.org>
13809
13810         * modules/csharpexec-script: New, created from...
13811         * modules/csharpexec: ... this.
13812
13813 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
13814
13815         * modules/javaexec-script: New, created from...
13816         * modules/javaexec: ... this.
13817
13818 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13819
13820         * modules/poll (Dependencies): Add sys_select.
13821
13822 2007-01-15  Jim Meyering  <jim@meyering.net>
13823
13824         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
13825         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
13826         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
13827         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
13828
13829 2007-01-15  Bruno Haible  <bruno@clisp.org>
13830
13831         * modules/striconveh: New file.
13832         * lib/striconveh.h: New file.
13833         * lib/striconveh.c: New file.
13834         * MODULES.html.sh (Internationalization functions): Add striconveh.
13835
13836         * modules/striconveh-tests: New file.
13837         * tests/test-striconveh.c: New file.
13838
13839 2007-01-15  Bruno Haible  <bruno@clisp.org>
13840
13841         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
13842         not from GNU libiconv or GNU libc.
13843
13844 2007-01-15  Bruno Haible  <bruno@clisp.org>
13845
13846         * doc/gnulib-intro.texi (Copyright): Explain the different license
13847         terms for module descriptions, autoconf macros, tests, documentation.
13848
13849 2007-01-14  Bruno Haible  <bruno@clisp.org>
13850
13851         * modules/striconv-tests: New file.
13852         * tests/test-striconv.c: New file.
13853
13854 2007-01-14  Bruno Haible  <bruno@clisp.org>
13855
13856         * modules/iconv-tests: New file.
13857         * tests/test-iconv.c: New file.
13858
13859 2007-01-14  Bruno Haible  <bruno@clisp.org>
13860
13861         * gnulib-tool (func_get_license): For test modules, use the license of
13862         the main module.
13863
13864 2007-01-14  Bruno Haible  <bruno@clisp.org>
13865
13866         * modules/iconv (Include): Clarify that <iconv.h> can only be included
13867         if iconv is found to exist.
13868
13869 2007-01-14  Bruno Haible  <bruno@clisp.org>
13870
13871         * modules/c-ctype-tests: New file.
13872         * tests/test-c-ctype.c: New file.
13873
13874 2007-01-14  Bruno Haible  <bruno@clisp.org>
13875
13876         * modules/binary-io-tests: New file.
13877         * tests/test-binary-io.sh: New file.
13878         * tests/test-binary-io.c: New file.
13879
13880 2007-01-14  Bruno Haible  <bruno@clisp.org>
13881
13882         * modules/array-oset-tests: New file.
13883         * tests/test-array_oset.c: New file.
13884
13885 2007-01-14  Bruno Haible  <bruno@clisp.org>
13886
13887         * modules/array-list-tests: New file.
13888         * tests/test-array_list.c: New file.
13889
13890 2007-01-14  Bruno Haible  <bruno@clisp.org>
13891
13892         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
13893         and make.
13894         Reported by Simon Josefsson in
13895         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
13896
13897 2007-01-14  Bruno Haible  <bruno@clisp.org>
13898
13899         * modules/allocsa-tests: New file.
13900         * tests/test-allocsa.c: New file.
13901
13902 2007-01-14  Bruno Haible  <bruno@clisp.org>
13903
13904         * modules/fchdir (Depends-on): Add absolute-header.
13905         * modules/unistd (Depends-on): Likewise.
13906
13907 2006-12-30  Bruno Haible  <bruno@clisp.org>
13908
13909         * modules/fchdir: New file.
13910         * modules/unistd (Files): Add lib/unistd_.h.
13911         (Makefile.am): Generate unistd.h from unistd_.h.
13912         * lib/fchdir.c: New file.
13913         * lib/dirent_.h: New file.
13914         * lib/unistd_.h: New file.
13915         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
13916         * m4/fchdir.m4: New file.
13917         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
13918         (gl_HEADER_UNISTD): Invoke it.
13919         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
13920         function.
13921         * lib/backupfile.c (opendir, closedir): Undefine.
13922         * lib/chown.c (open, close): Undefine.
13923         * lib/clean-temp.c (open, close): Undefine.
13924         * lib/copy-file.c (open, close): Undefine.
13925         * lib/execute.c (open, close): Undefine.
13926         * lib/fsusage.c (open, close): Undefine.
13927         * lib/gc-gnulib.c (open, close): Undefine.
13928         * lib/getcwd.c (opendir, closedir): Undefine.
13929         * lib/glob.c (opendir, closedir): Undefine.
13930         * lib/javacomp.c (open, close): Undefine.
13931         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
13932         * lib/openat-proc.c (open, close): Undefine.
13933         * lib/pagealign_alloc.c (open, close): Undefine.
13934         * lib/pipe.c (open, close): Undefine.
13935         * lib/progreloc.c (open, close): Undefine.
13936         * lib/savedir.c (opendir, closedir): Undefine.
13937         * lib/utime.c (open, close): Undefine.
13938         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
13939
13940 2007-01-10  Bruno Haible  <bruno@clisp.org>
13941
13942         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
13943
13944 2007-01-12  Eric Blake  <ebb9@byu.net>
13945
13946         Provide a robust <wchar.h>.  Further simplifications are now
13947         possible in other modules, but not included here.
13948         * modules/wchar: New module.
13949         * m4/wchar.m4: New file.
13950         * lib/wchar_.h: Likewise.
13951         * modules/mbchar (Depends-on): Depend on wchar, as the first use
13952         of the new module.
13953         * MODULES.html.sh (Extended multibyte and wide character utilities):
13954         New section.
13955
13956 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
13957
13958         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
13959         to a reasonable default for memory allocation.
13960         (xreadlink): Don't allocate a huge buffer, to work around a buggy
13961         file system that reports garbage st_size values for symlinks.
13962         Problem reported by Liyang Hu.
13963
13964 2007-01-11  Simon Josefsson  <simon@josefsson.org>
13965
13966         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
13967         Emacs .#* auto-save files).
13968
13969 2007-01-11  Bruno Haible  <bruno@clisp.org>
13970
13971         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
13972         directory.
13973
13974 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
13975
13976         Use @...@ consistently in lib/wctype_.h.
13977         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
13978         on it being set to 1 or 0.
13979         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
13980         go back to AC_SUBSTing it.
13981         * modules/wctype (Makefile.am): Undo previous change.
13982
13983 2007-01-10  Eric Blake  <ebb9@byu.net>
13984
13985         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
13986         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
13987         * modules/wctype (Makefile.am): Likewise.
13988         Reported by Chris McGuire.
13989
13990 2007-01-10  Jim Meyering  <jim@meyering.net>
13991
13992         fts.c: a small readability/maintainability improvement
13993         * lib/fts.c (fts_read): Make this code slightly more readable and
13994         maintainable by hoisting the "sp->fts_cur = p" assignments to
13995         immediately follow the statements that set P.  Derived from
13996         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
13997
13998 2007-01-10  Eric Blake  <ebb9@byu.net>
13999
14000         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
14001         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
14002         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14003         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14004         Reported by Chris McGuire.
14005
14006 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14007
14008         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
14009         in sed script.
14010
14011 2007-01-09  Bruno Haible  <bruno@clisp.org>
14012
14013         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
14014         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
14015         variables.
14016         (func_module): Use them.
14017
14018 2007-01-09  Bruno Haible  <bruno@clisp.org>
14019
14020         * modules/unistr/base: New file.
14021         * lib/unistr.h: New file.
14022
14023         * modules/unistr/u8-to-u16: New file.
14024         * lib/unistr/u8-to-u16.c: New file.
14025
14026         * modules/unistr/u8-to-u32: New file.
14027         * lib/unistr/u8-to-u32.c: New file.
14028
14029         * modules/unistr/u16-to-u8: New file.
14030         * lib/unistr/u16-to-u8.c: New file.
14031
14032         * modules/unistr/u16-to-u32: New file.
14033         * lib/unistr/u16-to-u32.c: New file.
14034
14035         * modules/unistr/u32-to-u8: New file.
14036         * lib/unistr/u32-to-u8.c: New file.
14037
14038         * modules/unistr/u32-to-u16: New file.
14039         * lib/unistr/u32-to-u16.c: New file.
14040
14041         * modules/unistr/u8-check: New file.
14042         * modules/unistr/u16-check: New file.
14043         * modules/unistr/u32-check: New file.
14044         * lib/unistr/u8-check.c: New file.
14045         * lib/unistr/u16-check.c: New file.
14046         * lib/unistr/u32-check.c: New file.
14047
14048         * modules/unistr/u8-chr: New file.
14049         * modules/unistr/u16-chr: New file.
14050         * modules/unistr/u32-chr: New file.
14051         * lib/unistr/u8-chr.c: New file.
14052         * lib/unistr/u16-chr.c: New file.
14053         * lib/unistr/u32-chr.c: New file.
14054
14055         * modules/unistr/u8-cmp: New file.
14056         * modules/unistr/u16-cmp: New file.
14057         * modules/unistr/u32-cmp: New file.
14058         * lib/unistr/u8-cmp.c: New file.
14059         * lib/unistr/u16-cmp.c: New file.
14060         * lib/unistr/u32-cmp.c: New file.
14061
14062         * modules/unistr/u8-cpy: New file.
14063         * modules/unistr/u16-cpy: New file.
14064         * modules/unistr/u32-cpy: New file.
14065         * lib/unistr/u8-cpy.c: New file.
14066         * lib/unistr/u16-cpy.c: New file.
14067         * lib/unistr/u32-cpy.c: New file.
14068         * lib/unistr/u-cpy.h: New file.
14069
14070         * modules/unistr/u8-cpy-alloc: New file.
14071         * modules/unistr/u16-cpy-alloc: New file.
14072         * modules/unistr/u32-cpy-alloc: New file.
14073         * lib/unistr/u8-cpy-alloc.c: New file.
14074         * lib/unistr/u16-cpy-alloc.c: New file.
14075         * lib/unistr/u32-cpy-alloc.c: New file.
14076         * lib/unistr/u-cpy-alloc.h: New file.
14077
14078         * modules/unistr/u8-endswith: New file.
14079         * modules/unistr/u16-endswith: New file.
14080         * modules/unistr/u32-endswith: New file.
14081         * lib/unistr/u8-endswith.c: New file.
14082         * lib/unistr/u16-endswith.c: New file.
14083         * lib/unistr/u32-endswith.c: New file.
14084         * lib/unistr/u-endswith.h: New file.
14085
14086         * modules/unistr/u8-mblen: New file.
14087         * modules/unistr/u16-mblen: New file.
14088         * modules/unistr/u32-mblen: New file.
14089         * lib/unistr/u8-mblen.c: New file.
14090         * lib/unistr/u16-mblen.c: New file.
14091         * lib/unistr/u32-mblen.c: New file.
14092
14093         * modules/unistr/u8-mbtouc: New file.
14094         * modules/unistr/u16-mbtouc: New file.
14095         * modules/unistr/u32-mbtouc: New file.
14096         * lib/unistr/u8-mbtouc.c: New file.
14097         * lib/unistr/u16-mbtouc.c: New file.
14098         * lib/unistr/u32-mbtouc.c: New file.
14099
14100         * modules/unistr/u8-mbtouc-safe: New file.
14101         * modules/unistr/u16-mbtouc-safe: New file.
14102         * modules/unistr/u32-mbtouc-safe: New file.
14103         * lib/unistr/u8-mbtouc-safe.c: New file.
14104         * lib/unistr/u16-mbtouc-safe.c: New file.
14105         * lib/unistr/u32-mbtouc-safe.c: New file.
14106
14107         * modules/unistr/u8-move: New file.
14108         * modules/unistr/u16-move: New file.
14109         * modules/unistr/u32-move: New file.
14110         * lib/unistr/u8-move.c: New file.
14111         * lib/unistr/u16-move.c: New file.
14112         * lib/unistr/u32-move.c: New file.
14113         * lib/unistr/u-move.h: New file.
14114
14115         * modules/unistr/u8-next: New file.
14116         * modules/unistr/u16-next: New file.
14117         * modules/unistr/u32-next: New file.
14118         * lib/unistr/u8-next.c: New file.
14119         * lib/unistr/u16-next.c: New file.
14120         * lib/unistr/u32-next.c: New file.
14121
14122         * modules/unistr/u8-prev: New file.
14123         * modules/unistr/u16-prev: New file.
14124         * modules/unistr/u32-prev: New file.
14125         * lib/unistr/u8-prev.c: New file.
14126         * lib/unistr/u16-prev.c: New file.
14127         * lib/unistr/u32-prev.c: New file.
14128
14129         * modules/unistr/u8-set: New file.
14130         * modules/unistr/u16-set: New file.
14131         * modules/unistr/u32-set: New file.
14132         * lib/unistr/u8-set.c: New file.
14133         * lib/unistr/u16-set.c: New file.
14134         * lib/unistr/u32-set.c: New file.
14135         * lib/unistr/u-set.h: New file.
14136
14137         * modules/unistr/u8-startswith: New file.
14138         * modules/unistr/u16-startswith: New file.
14139         * modules/unistr/u32-startswith: New file.
14140         * lib/unistr/u8-startswith.c: New file.
14141         * lib/unistr/u16-startswith.c: New file.
14142         * lib/unistr/u32-startswith.c: New file.
14143         * lib/unistr/u-startswith.h: New file.
14144
14145         * modules/unistr/u8-stpcpy: New file.
14146         * modules/unistr/u16-stpcpy: New file.
14147         * modules/unistr/u32-stpcpy: New file.
14148         * lib/unistr/u8-stpcpy.c: New file.
14149         * lib/unistr/u16-stpcpy.c: New file.
14150         * lib/unistr/u32-stpcpy.c: New file.
14151         * lib/unistr/u-stpcpy.h: New file.
14152
14153         * modules/unistr/u8-stpncpy: New file.
14154         * modules/unistr/u16-stpncpy: New file.
14155         * modules/unistr/u32-stpncpy: New file.
14156         * lib/unistr/u8-stpncpy.c: New file.
14157         * lib/unistr/u16-stpncpy.c: New file.
14158         * lib/unistr/u32-stpncpy.c: New file.
14159         * lib/unistr/u-stpncpy.h: New file.
14160
14161         * modules/unistr/u8-strcat: New file.
14162         * modules/unistr/u16-strcat: New file.
14163         * modules/unistr/u32-strcat: New file.
14164         * lib/unistr/u8-strcat.c: New file.
14165         * lib/unistr/u16-strcat.c: New file.
14166         * lib/unistr/u32-strcat.c: New file.
14167         * lib/unistr/u-strcat.h: New file.
14168
14169         * modules/unistr/u8-strchr: New file.
14170         * modules/unistr/u16-strchr: New file.
14171         * modules/unistr/u32-strchr: New file.
14172         * lib/unistr/u8-strchr.c: New file.
14173         * lib/unistr/u16-strchr.c: New file.
14174         * lib/unistr/u32-strchr.c: New file.
14175
14176         * modules/unistr/u8-strcmp: New file.
14177         * modules/unistr/u16-strcmp: New file.
14178         * modules/unistr/u32-strcmp: New file.
14179         * lib/unistr/u8-strcmp.c: New file.
14180         * lib/unistr/u16-strcmp.c: New file.
14181         * lib/unistr/u32-strcmp.c: New file.
14182
14183         * modules/unistr/u8-strcpy: New file.
14184         * modules/unistr/u16-strcpy: New file.
14185         * modules/unistr/u32-strcpy: New file.
14186         * lib/unistr/u8-strcpy.c: New file.
14187         * lib/unistr/u16-strcpy.c: New file.
14188         * lib/unistr/u32-strcpy.c: New file.
14189         * lib/unistr/u-strcpy.h: New file.
14190
14191         * modules/unistr/u8-strcspn: New file.
14192         * modules/unistr/u16-strcspn: New file.
14193         * modules/unistr/u32-strcspn: New file.
14194         * lib/unistr/u8-strcspn.c: New file.
14195         * lib/unistr/u16-strcspn.c: New file.
14196         * lib/unistr/u32-strcspn.c: New file.
14197         * lib/unistr/u-strcspn.h: New file.
14198
14199         * modules/unistr/u8-strdup: New file.
14200         * modules/unistr/u16-strdup: New file.
14201         * modules/unistr/u32-strdup: New file.
14202         * lib/unistr/u8-strdup.c: New file.
14203         * lib/unistr/u16-strdup.c: New file.
14204         * lib/unistr/u32-strdup.c: New file.
14205         * lib/unistr/u-strdup.h: New file.
14206
14207         * modules/unistr/u8-strlen: New file.
14208         * modules/unistr/u16-strlen: New file.
14209         * modules/unistr/u32-strlen: New file.
14210         * lib/unistr/u8-strlen.c: New file.
14211         * lib/unistr/u16-strlen.c: New file.
14212         * lib/unistr/u32-strlen.c: New file.
14213         * lib/unistr/u-strlen.h: New file.
14214
14215         * modules/unistr/u8-strmblen: New file.
14216         * modules/unistr/u16-strmblen: New file.
14217         * modules/unistr/u32-strmblen: New file.
14218         * lib/unistr/u8-strmblen.c: New file.
14219         * lib/unistr/u16-strmblen.c: New file.
14220         * lib/unistr/u32-strmblen.c: New file.
14221
14222         * modules/unistr/u8-strmbtouc: New file.
14223         * modules/unistr/u16-strmbtouc: New file.
14224         * modules/unistr/u32-strmbtouc: New file.
14225         * lib/unistr/u8-strmbtouc.c: New file.
14226         * lib/unistr/u16-strmbtouc.c: New file.
14227         * lib/unistr/u32-strmbtouc.c: New file.
14228
14229         * modules/unistr/u8-strncat: New file.
14230         * modules/unistr/u16-strncat: New file.
14231         * modules/unistr/u32-strncat: New file.
14232         * lib/unistr/u8-strncat.c: New file.
14233         * lib/unistr/u16-strncat.c: New file.
14234         * lib/unistr/u32-strncat.c: New file.
14235         * lib/unistr/u-strncat.h: New file.
14236
14237         * modules/unistr/u8-strncmp: New file.
14238         * modules/unistr/u16-strncmp: New file.
14239         * modules/unistr/u32-strncmp: New file.
14240         * lib/unistr/u8-strncmp.c: New file.
14241         * lib/unistr/u16-strncmp.c: New file.
14242         * lib/unistr/u32-strncmp.c: New file.
14243
14244         * modules/unistr/u8-strncpy: New file.
14245         * modules/unistr/u16-strncpy: New file.
14246         * modules/unistr/u32-strncpy: New file.
14247         * lib/unistr/u8-strncpy.c: New file.
14248         * lib/unistr/u16-strncpy.c: New file.
14249         * lib/unistr/u32-strncpy.c: New file.
14250         * lib/unistr/u-strncpy.h: New file.
14251
14252         * modules/unistr/u8-strnlen: New file.
14253         * modules/unistr/u16-strnlen: New file.
14254         * modules/unistr/u32-strnlen: New file.
14255         * lib/unistr/u8-strnlen.c: New file.
14256         * lib/unistr/u16-strnlen.c: New file.
14257         * lib/unistr/u32-strnlen.c: New file.
14258         * lib/unistr/u-strnlen.h: New file.
14259
14260         * modules/unistr/u8-strpbrk: New file.
14261         * modules/unistr/u16-strpbrk: New file.
14262         * modules/unistr/u32-strpbrk: New file.
14263         * lib/unistr/u8-strpbrk.c: New file.
14264         * lib/unistr/u16-strpbrk.c: New file.
14265         * lib/unistr/u32-strpbrk.c: New file.
14266         * lib/unistr/u-strpbrk.h: New file.
14267
14268         * modules/unistr/u8-strrchr: New file.
14269         * modules/unistr/u16-strrchr: New file.
14270         * modules/unistr/u32-strrchr: New file.
14271         * lib/unistr/u8-strrchr.c: New file.
14272         * lib/unistr/u16-strrchr.c: New file.
14273         * lib/unistr/u32-strrchr.c: New file.
14274
14275         * modules/unistr/u8-strspn: New file.
14276         * modules/unistr/u16-strspn: New file.
14277         * modules/unistr/u32-strspn: New file.
14278         * lib/unistr/u8-strspn.c: New file.
14279         * lib/unistr/u16-strspn.c: New file.
14280         * lib/unistr/u32-strspn.c: New file.
14281         * lib/unistr/u-strspn.h: New file.
14282
14283         * modules/unistr/u8-strstr: New file.
14284         * modules/unistr/u16-strstr: New file.
14285         * modules/unistr/u32-strstr: New file.
14286         * lib/unistr/u8-strstr.c: New file.
14287         * lib/unistr/u16-strstr.c: New file.
14288         * lib/unistr/u32-strstr.c: New file.
14289         * lib/unistr/u-strstr.h: New file.
14290
14291         * modules/unistr/u8-strtok: New file.
14292         * modules/unistr/u16-strtok: New file.
14293         * modules/unistr/u32-strtok: New file.
14294         * lib/unistr/u8-strtok.c: New file.
14295         * lib/unistr/u16-strtok.c: New file.
14296         * lib/unistr/u32-strtok.c: New file.
14297         * lib/unistr/u-strtok.h: New file.
14298
14299         * modules/unistr/u8-uctomb: New file.
14300         * modules/unistr/u16-uctomb: New file.
14301         * modules/unistr/u32-uctomb: New file.
14302         * lib/unistr/u8-uctomb.c: New file.
14303         * lib/unistr/u16-uctomb.c: New file.
14304         * lib/unistr/u32-uctomb.c: New file.
14305
14306         * MODULES.html.sh (Unicode string functions): Add the new modules.
14307
14308 2007-01-08  Bruno Haible  <bruno@clisp.org>
14309
14310         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
14311         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
14312         subdirectories.
14313
14314 2007-01-08  Karl Berry  <karl@gnu.org>
14315
14316         * doc/error.texi: mention that main() fns must set program_name
14317         when progname is used.
14318
14319 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
14320
14321         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
14322         WCTYPE_H is empty, for the benefit of builds from non-distclean
14323         directories.  Problem reported by Eric Blake in
14324         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
14325
14326 2007-01-08  Bruno Haible  <bruno@clisp.org>
14327
14328         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
14329         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
14330         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
14331         PROVIDE_CANONICALIZE_FILENAME_MODE.
14332         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
14333
14334 2007-01-08  Bruno Haible  <bruno@clisp.org>
14335
14336         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
14337         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
14338         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
14339         * lib/fts.c: Likewise.
14340         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
14341
14342 2006-12-25  Bruno Haible  <bruno@clisp.org>
14343
14344         * modules/utf8-ucs4-safe: New file.
14345         * lib/utf8-ucs4-safe.h: New file.
14346         * lib/unistr/utf8-ucs4-safe.c: New file.
14347
14348         * modules/utf16-ucs4-safe: New file.
14349         * lib/utf16-ucs4-safe.h: New file.
14350         * lib/unistr/utf16-ucs4-safe.c: New file.
14351
14352         * MODULES.html.sh (Unicode string functions): Add the new modules.
14353
14354 2007-01-08  Bruno Haible  <bruno@clisp.org>
14355
14356         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
14357         (Depends-on): Add unitypes.
14358         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
14359         (u8_mbtouc_aux): Move out to separate file.
14360         (u8_mbtouc): Use ucs4_t, uint8_t types.
14361         * lib/unistr/utf8-ucs4.c: New file.
14362
14363         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
14364         (Depends-on): Add unitypes.
14365         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
14366         (u16_mbtouc_aux): Move out to separate file.
14367         (u16_mbtouc): Use ucs4_t, uint16_t types.
14368         * lib/unistr/utf16-ucs4.c: New file.
14369
14370         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
14371         (Depends-on): Add unitypes.
14372         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
14373         (u8_uctomb_aux): Move out to separate file.
14374         (u8_uctomb): Use ucs4_t, uint8_t types.
14375         * lib/unistr/ucs4-utf8.c: New file.
14376
14377         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
14378         (Depends-on): Add unitypes.
14379         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
14380         (u16_uctomb_aux): Move out to separate file.
14381         (u16_uctomb): Use ucs4_t, uint16_t types.
14382         * lib/unistr/ucs4-utf16.c: New file.
14383
14384 2006-12-25  Bruno Haible  <bruno@clisp.org>
14385
14386         * modules/unitypes: New file.
14387         * lib/unitypes.h: New file.
14388         * MODULES.html.sh (func_all_modules): New section "Unicode string
14389         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
14390         this section. Add unitypes.
14391
14392 2007-01-08  Bruno Haible  <bruno@clisp.org>
14393
14394         Avoid variable names that conflict with those from libtool.
14395         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
14396         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
14397         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
14398         library_names_spec to acl_library_names_spec, hardcode_* to
14399         acl_hardcode_*.
14400         Reported by Ralf Wildenhues.
14401
14402 2007-01-08  Bruno Haible  <bruno@clisp.org>
14403
14404         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
14405         definition.
14406         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
14407         definition.
14408         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
14409         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
14410         definition.
14411         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
14412         definition.
14413         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
14414         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
14415         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
14416         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
14417         definition.
14418         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
14419         definition.
14420         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
14421         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
14422         GC_USE_<algorithm>.
14423         * lib/gc-libgcrypt.c: Likewise.
14424         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
14425         * modules/gc-arctwo (configure.ac): Likewise.
14426         * modules/gc-des (configure.ac): Likewise.
14427         * modules/gc-hmac-md5 (configure.ac): Likewise.
14428         * modules/gc-hmac-sha1 (configure.ac): Likewise.
14429         * modules/gc-md2 (configure.ac): Likewise.
14430         * modules/gc-md4 (configure.ac): Likewise.
14431         * modules/gc-md5 (configure.ac): Likewise.
14432         * modules/gc-random (configure.ac): Likewise.
14433         * modules/gc-rijndael (configure.ac): Likewise.
14434         * modules/gc-sha1 (configure.ac): Likewise.
14435
14436 2007-01-08  Bruno Haible  <bruno@clisp.org>
14437
14438         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
14439         macro definition.
14440         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
14441         definition.
14442         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
14443         definition.
14444         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
14445         * modules/fcntl-safer (configure.ac): Likewise.
14446         * modules/fopen-safer (configure.ac): Likewise.
14447         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
14448         GNULIB_FWRITEERROR macro definition.
14449
14450 2007-01-08  Bruno Haible  <bruno@clisp.org>
14451
14452         * m4/gnulib-common.m4: New file.
14453         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
14454         (func_get_filelist): Add m4/gnulib-common.m4.
14455
14456 2007-01-08  Bruno Haible  <bruno@clisp.org>
14457
14458         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
14459         command.
14460
14461 2007-01-08  Jim Meyering  <jim@meyering.net>
14462
14463         Use a more robust test for a "can't happen" condition.
14464         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
14465         narrowed the st_size value.  Presuming the "can't happen" condition
14466         is true, that narrowing could conceivably convert an invalid st_size
14467         value into a valid one.  Instead, use a change based on Matthew
14468         Woehlke's original patch.
14469
14470         Slight readability improvement: use an assert-like macro
14471         in place of literal "abort ()" uses.
14472         * lib/fts.c (fts_assert): Define.
14473         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
14474         Use this macro instead of a bare 'abort'.
14475
14476 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
14477
14478         Don't worry about using IRIX 5.3's wctype.h broken definitions;
14479         simply work around them.
14480         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
14481         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
14482         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
14483         declaring.
14484         Don't bother to define as macros, since the standard doesn't require it.
14485         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
14486         longer worry about IRIX 5.3.
14487         (HAVE_WCTYPE_CTMP_BUG): Remove.
14488
14489 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14490
14491         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
14492         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
14493         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14494         Problems reported by Georg Schwarz for IRIX 5.3.
14495
14496         * gnulib-tool (autoconf_minversion): Take the maximum version number
14497         found, not the minimum.  Problem reported by James Youngman.
14498
14499 2007-01-03  Karl Berry  <karl@gnu.org>
14500
14501         * doc/error.texi: new file, explaining interaction with progname.
14502         * doc/gnulib.texi: include it.  Update copyright.
14503
14504 2007-01-03  Simon Josefsson  <simon@josefsson.org>
14505
14506         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
14507         AC_CANONICAL_HOST, to improve autobuild outputs.
14508
14509 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
14510             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14511
14512         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
14513         sockets, server sockets, and other file descriptors.  Count errors
14514         to compute the return value.  Reorder the code a bit to be easier
14515         to follow.  Don't set event bits that were not requested (except
14516         POLLERR and POLLHUP).
14517
14518 2007-01-01  Bruno Haible  <bruno@clisp.org>
14519
14520         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
14521
14522 2007-01-03  Jim Meyering  <jim@meyering.net>
14523
14524         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
14525
14526 2007-01-02  Bruno Haible  <bruno@clisp.org>
14527
14528         * modules/settime (Include): Require timespec.h.
14529         * modules/nanosleep (Include): Likewise.
14530
14531 2007-01-01  Bruno Haible  <bruno@clisp.org>
14532
14533         * gnulib-tool (func_emit_copyright_notice): Bump year.
14534         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
14535
14536 2007-01-01  Bruno Haible  <bruno@clisp.org>
14537
14538         Improve support for OpenBSD.
14539         * build-aux/config.rpath (libname_spec): Export.
14540         (library_names_spec): New variable. Export.
14541         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
14542         library_names_spec from the config.rpath output. Locate shared library
14543         through the name pattern in library_names_spec.
14544
14545 2007-01-01  Eric Blake  <ebb9@byu.net>
14546
14547         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
14548
14549 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
14550
14551         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
14552         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
14553         assume the C locale, and avoid an "eval" that could cause trouble.
14554         Problem with SORT reported by Bob Proulx.
14555
14556         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
14557         Define.  Trivial patch from Henning Nielsen Lund, originally
14558         sent to bug-grep@gnu.org today.
14559
14560 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14561
14562         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
14563         struct stat.  Problem reported by Henning Nielsen Lund.
14564         * lib/acl.c: Include acl.h first, to check interface.  Don't
14565         bother to include sys/types.h and sys/stat.h again.
14566
14567 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14568
14569         Import the following change from libc; problem reported by
14570         Sven Verdoolaege.
14571
14572         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
14573
14574         [BZ #1373]
14575         * lib/argp.h: Remove __NTH for __argp_usage inline function.
14576
14577 2006-12-28  Jim Meyering  <jim@meyering.net>
14578
14579         * build-aux/announce-gen: Do not assume that the package
14580         builds any of tar.gz, tar.bz2, and .xdelta files.
14581         Suggestion from Simon Josefsson.
14582
14583 2006-12-28  Simon Josefsson  <simon@josefsson.org>
14584
14585         * modules/announce-gen: New file.
14586
14587 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14588
14589         * lib/mbchar.h: Just include <wctype.h>; the wctype module
14590         handles its gotchas now.
14591         * lib/mbswidth.c: Likewise.
14592         * lib/wcwidth.h: Likewise.
14593         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
14594         and iswcntrl; the wctype module does this stuff now.
14595         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14597         * modules/mbchar (Depends-on): Add wctype.
14598         * modules/mbswidth (Depends-on): Likewise.
14599         * modules/wcwidth (Depends-on): Likewise.
14600
14601 2006-12-27  Eric Blake  <ebb9@byu.net>
14602
14603         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
14604         module uses more than what <wctype.h> is required to provide.
14605
14606 2006-12-26  Eric Blake  <ebb9@byu.net>
14607
14608         * gnulib-tool (sed_extract_prog): Avoid space-tab.
14609
14610 2006-12-26  Eric Blake  <ebb9@byu.net>
14611
14612         * modules/absolute-header: New module.
14613         * modules/fcntl (Depends-on): Depend on it.
14614         * modules/inttypes (Depends-on): Likewise.
14615         * modules/stdint (Depends-on): Likewise.
14616         * modules/sys_stat (Depends-on): Likewise.
14617         * modules/wctype (Depends-on): Likewise.
14618         * MODULES.html.sh (Support for building libraries and
14619         executables): Document it.
14620
14621 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
14622
14623         * gnulib-tool (SED): Remove, undoing previous change.
14624         The problem was that it broke coreutils on Solaris, because
14625         "sed --posix" leaked into a makefile.
14626         (sed): New alias, if 'alias' and GNU sed.
14627
14628 2006-12-24  Jim Meyering  <jim@meyering.net>
14629
14630         Work around an fchownat bug in glibc-2.4:
14631         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
14632         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
14633         in spite of the -P option.
14634         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
14635         New macros.
14636         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
14637         * modules/openat (Files): Add lib/fchownat.c.
14638         * lib/openat.c (fchownat): Don't define here.  Move to...
14639         * lib/fchownat.c: ...this new file.
14640
14641 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14642
14643         Fix bug reported by Bruno Haible in
14644         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
14645         where quotearg.c didn't compile on Mac OS X 10.2 because it
14646         lacks <wchar.h> and wint_t.
14647         * lib/wctype_.h (__wctype_wint_t): New type.
14648         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
14649         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
14650         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
14651         Arg is now of type __wctype_wint_t, not wint_t.
14652         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
14653         substitute HAVE_WINT_T.
14654         * modules/wctype (Files): Add m4/wint_t.m4.
14655         (wctype.h): Substitute HAVE_WINT_T.
14656
14657 2006-12-23  Bruno Haible  <bruno@clisp.org>
14658
14659         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
14660
14661 2006-12-23  Bruno Haible  <bruno@clisp.org>
14662
14663         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
14664         S_ISLNK.
14665         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
14666         mingw.
14667
14668 2006-12-22  Bruno Haible  <bruno@clisp.org>
14669
14670         * lib/copy-file.c: Include acl.h.
14671         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
14672         Close the file descriptors only after being done with copy_acl.
14673         * modules/copy-file (Depends-on): Add acl.
14674
14675 2006-12-22  Bruno Haible  <bruno@clisp.org>
14676
14677         * gnulib-tool (SED): New variable.
14678         Use $SED instead of sed everywhere.
14679
14680 2006-12-22  Bruno Haible  <bruno@clisp.org>
14681
14682         * modules/no-c++: New file.
14683         * m4/no-c++.m4: New file.
14684         * MODULES.html.sh (Support for building libraries and executables):
14685         Add no-c++.
14686
14687 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14688
14689         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
14690         Include <limits.h>, and use its INT_MAX to rewrite the
14691         j loop so that it does not overflow 'int'.  Problem reported by
14692         Ralf Wildenhues in
14693         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
14694         Play it safe by shifting left by 1 rather than multiplying by 2,
14695         as GCC is less likely to optimize this away when the value
14696         is signed (when it assumes overflow leads to undefined behavior).
14697         Also, don't assume time_t uses two's complement.
14698
14699 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14700
14701         * MODULES.html.sh: New module wctype.
14702         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
14703         * lib/fnmatch.c: Don't bother to include <wchar.h> before
14704         <wctype.h>, since the new wctype module should fix this.
14705         * lib/quotearg.c: Include <wctype.h> unconditionally, since
14706         the wctype module should arrange for it.
14707         * lib/regex_internal.h: Likewise.
14708         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
14709         since the wctype module should handle this now.
14710         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
14711         * modules/fnmatch (Depends-on): Add wctype.
14712         * modules/quotearg (Depends-on): Likewise.
14713         * modules/regex (Depends-on): Likewise.
14714
14715 2006-12-19  Bruno Haible  <bruno@clisp.org>
14716
14717         * lib/strdup.h [C++]: Wrap definitions in extern "C".
14718         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
14719
14720 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14721
14722         * modules/savewd (Depends-on): Fix dependency on fcntl.
14723
14724 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14725
14726         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
14727         conforms to C99, rather than relying on the user's environment
14728         setting of STDINT_H.
14729
14730 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14731         and Eric Blake  <ebb9@byu.net>
14732
14733         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
14734         This is more consistent with the other defines here.
14735         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
14736         Port to z/OS.  Problem reported by Paul Gilmartin.
14737         Change local vars to use gl_ prefix rather than ac_.
14738         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
14739         with other defines.
14740         * modules/double-slash-root: New module.
14741         * modules/dirname (Files): Remove m4/double-slash-root.m4.
14742         (Depends-on): Add double-slash-root.
14743         * MODULES.html.sh (File system functions): Mention new module.
14744
14745 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
14746
14747         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
14748         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
14749         This is for the benefit of gzip, which doesn't do i18n.
14750
14751 2006-12-12  Jim Meyering  <jim@meyering.net>
14752
14753         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
14754         Reported by Andreas Schwab <schwab@suse.de>.
14755
14756 2006-12-12  Bruno Haible  <bruno@clisp.org>
14757
14758         Merge these changes.
14759         2006-09-05  Bruno Haible  <bruno@clisp.org>
14760         * lib/iconvme.c (iconv_string): No need to save and restore errno when
14761         iconv_alloc succeeded.
14762         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
14763         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
14764         test for " && dest " at the end - dest is always != NULL there. Call
14765         iconv with 4xNULL arguments initially, to reset the state. Call iconv
14766         with 2xNULL arguments, also to flush the state storage. Handle the
14767         IRIX iconv behaviour. Realloc the final result, to throw away unused
14768         memory.
14769
14770 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
14771
14772         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
14773         and fchmodat unconditionally, since glibc 2.4 has them.
14774         Problem reported by Arkadiusz Miskiewicz.
14775
14776 2006-12-10  Bruno Haible  <bruno@clisp.org>
14777
14778         * gnulib-tool (func_import): Show the include files only for those
14779         modules that are copied and specified.
14780         Reported by Karl Berry.
14781
14782 2006-12-08  Jim Meyering  <jim@meyering.net>
14783
14784         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
14785         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
14786
14787         * build-aux/announce-gen: Add two new options, both optional:
14788         --bootstrap-tools=TOOL_LIST
14789               a comma-separated list of tools, e.g.,
14790               autoconf,automake,bison,gnulib
14791         --gnulib-snapshot-date=DATE
14792               if gnulib is in the bootstrap tool list,
14793               then report this as the snapshot date.
14794               If not specified, use the current date/time.
14795               If you specify a date here, be sure it's UTC.
14796
14797 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14798
14799         * tests/test-argp-2.sh: Fix test to match actual output.
14800         (func_compare): Fix sed script to be portable.
14801
14802 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
14803
14804         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
14805         workaround for this case.  It is not autoconfigured now; offhand
14806         it's hard to see how to autoconfigure it.
14807
14808 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
14809
14810         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
14811         a directory that is about to be chowned.  Such a directory's
14812         initial file permissions should permit the owner only and this
14813         should not be changed until after the chown, since the group and
14814         other bits would be incorrect if they granted permission before
14815         the chown.
14816
14817         Fix porting problem for iswctype reported by Georg Schwarz in:
14818         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
14819         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
14820         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
14821         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
14822         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14823
14824 2006-12-03  Jim Meyering  <jim@meyering.net>
14825
14826         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
14827         p->fts_statp may not yet be defined.
14828         (fts_read): Instead, set it in the caller, once p->fts_statp is
14829         sure to be defined, and corresponds to a top-level directory.
14830         This bug made du -x fail.  Here's the coreutils test case:
14831         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
14832         Reported by Mike Frysinger.
14833
14834 2006-12-01  Jim Meyering  <jim@meyering.net>
14835
14836         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
14837         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
14838         Reported by Simon Josefsson.
14839
14840 2006-11-30  Jim Meyering  <jim@meyering.net>
14841
14842         * m4/warning.m4: Use the all-permissive copyright notice
14843         recommended by RMS (rather than LGPL).
14844         * m4/vararrays.m4: Likewise.
14845         * m4/flexmember.m4: Likewise.
14846
14847 2006-11-29  Bruno Haible  <bruno@clisp.org>
14848
14849         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
14850         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
14851         using +=.
14852         Reported by Simon Josefsson <simon@josefsson.org>.
14853
14854 2006-11-28  James Youngman <jay@gnu.org>
14855
14856         * README: Advise users that they might find the bug-gnulib@gnu.org
14857         and autotools-announce@gnu.org mailing lists useful.
14858
14859 2006-11-28  Bruno Haible  <bruno@clisp.org>
14860
14861         * m4/ptrdiff_max.m4: Remove file.
14862
14863 2006-11-21  Bruno Haible  <bruno@clisp.org>
14864
14865         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
14866         _AC_COMPUTE_INT.
14867         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
14868         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
14869         _AC_COMPUTE_INT.
14870         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
14871         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
14872         _AC_COMPUTE_INT.
14873         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
14874
14875 2006-11-28  Jim Meyering  <jim@meyering.net>
14876
14877         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
14878         warning from "gcc -Wshadow" about shadowing the builtin.
14879
14880 2006-11-27  Bruno Haible  <bruno@clisp.org>
14881
14882         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
14883         _AC_COMPUTE_INT.
14884         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
14885
14886 2006-11-27  Bruno Haible  <bruno@clisp.org>
14887             Paul Eggert  <eggert@cs.ucla.edu>
14888
14889         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
14890
14891 2006-11-26  Bruno Haible  <bruno@clisp.org>
14892
14893         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
14894         noinst_LTLIBRARIES.
14895
14896 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
14897             Bruno Haible  <bruno@clisp.org>
14898
14899         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
14900         if compiling with "gcc -ansi".
14901
14902 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
14903
14904         Fix some incompatibilities with gcc -ansi -pedantic.
14905         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
14906         if compiling pedantically with GCC, unless it's C99 or later.
14907         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
14908         it mishandles gcc -ansi -pedantic as well.
14909         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
14910         if gcc -pedantic.
14911         * lib/regexec.c (check_node_accept_bytes): Don't use auto
14912         initializers for struct if -pedantic, unless it's C99 or later.
14913
14914 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
14915
14916         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
14917         Don't close an fd more than once. Identical atimes indicate
14918         success, not failure.
14919
14920 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
14921
14922         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
14923
14924 2006-11-23  Jim Meyering  <jim@meyering.net>
14925
14926         * build-aux/announce-gen: New file.  From coreutils.
14927
14928 2006-11-22  Jim Meyering  <jim@meyering.net>
14929
14930         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
14931         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
14932         (fts_read): Use a temporary to narrow the overused st_size member
14933         before using it in a switch statement.  Reported by Matthew Woehlke.
14934
14935         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
14936         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14937
14938 2006-11-20  Bruno Haible  <bruno@clisp.org>
14939
14940         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
14941         changequote instead of pairs of brackets.
14942         Reported by Andreas Schwab <schwab@suse.de>.
14943
14944 2006-11-21  Jim Meyering  <jim@meyering.net>
14945
14946         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
14947         so as to remain compatible with older compilers.
14948         Patch from Michael Deutschmann.
14949
14950 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14951
14952         * MODULES.html.sh (File system functions): Add openat.
14953
14954         * lib/openat.h (rpl_fstatat): New macro, if
14955         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
14956         (fstatat): Define to rpl_fstatat under the same conditions,
14957         unless COMPILING_FSTATAT.
14958         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
14959         seems to have the bug.
14960         * lib/fstatat.c: New file.
14961         * modules/openat (Files): Add it.
14962
14963 2006-11-20  Bruno Haible  <bruno@clisp.org>
14964
14965         * Makefile: New file.
14966
14967 2006-11-20  Jim Meyering  <jim@meyering.net>
14968
14969         The beginnings of syntax-related checks for gnulib.
14970         * lib/Makefile: New file.
14971         * lib/t-idcache: New script.  Ensure that the two halves of
14972         idcache.c stay in sync.
14973
14974         * lib/idcache.c: Adjust comments in user- and group- portions to
14975         be more accurate, and to be consistent with one another.
14976
14977 2006-11-20  Jim Meyering  <jim@meyering.net>
14978
14979         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
14980         continue using the flexible array member (thus, this module performs
14981         half as many malloc calls), with the addition that...
14982         (getgroup, getuser): Consistently record a non-match via an empty
14983         "name" string, and map an empty string match to a NULL return value.
14984         * modules/idcache (Depends-on): Re-add flexmember.
14985
14986         * lib/idcache.c (getuser): Remove all uses of the register keyword.
14987         (getuidbyname, getgroup, getgidbyname): Likewise.
14988
14989         Use cleaner syntax: NULL rather than 0.
14990         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
14991
14992 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14993
14994         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
14995         It mishandled the case where the group was missing.
14996         Problem reported by Greg Schafer.
14997         * modules/idcache: Likewise.
14998
14999 2006-11-18  Jim Meyering  <jim@meyering.net>
15000
15001         * check-module (%exempt_header): Add exception for some
15002         conditionally-included headers.
15003
15004         * modules/i-ring (Depends-on): Add verify.
15005         (License): Change to LGPL.
15006
15007 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15008
15009         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
15010         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
15011         and inttostr.h.  Use snprintf rather than uinttostr, so that
15012         LGPLed code doesn't depend on GPLed.
15013
15014 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15015
15016         * modules/inline (License): Change from GPL to LGPL.
15017
15018 2006-11-17  Jim Meyering  <jim@meyering.net>
15019
15020         * modules/d-type (License): Switch to LGPL.
15021
15022 2006-11-15  Bruno Haible  <bruno@clisp.org>
15023
15024         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
15025
15026 2006-11-15  Eric Blake  <ebb9@byu.net>
15027
15028         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
15029         the module dependency.
15030
15031 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15032             Bruno Haible  <bruno@clisp.org>
15033
15034         * gnulib-tool (func_create_testdir): Add license consistency check.
15035
15036 2006-11-15  Eric Blake  <ebb9@byu.net>
15037
15038         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
15039         random "(cached)" in configure output.
15040
15041 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15042
15043         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
15044         test for conforming inttypes.h is both announced and cached.
15045
15046         * MODULES.html.sh (seen_modules, seen_files): New variables.
15047         (func_module): Rewrite to use a few less gnulib-tool and sed
15048         invocations.  Avoid a couple of quadratic algorithms for ...
15049         (missed_modules, missed_files): ... these, with ...
15050         (func_append, func_tmpdir): ... these new functions, from
15051         gnulib-tool.  Analogously, install traps for cleanup.
15052
15053         * tests/test-gc.c (main): Remove unused variables.
15054         * tests/test-read-file.c: Include stdlib.h, for 'free'.
15055
15056 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15057
15058         * modules/inttostr (License): Change to LGPL.
15059
15060 2006-11-14  Eric Blake  <ebb9@byu.net>
15061
15062         * modules/tempname (License): Change to LGPL.
15063
15064 2006-11-14  Eric Blake  <ebb9@byu.net>
15065
15066         * doc/functions.texi (Function Portability): *printf functions on
15067         Cygwin now understand all POSIX size specifiers.
15068
15069 2006-11-14  Bruno Haible  <bruno@clisp.org>
15070
15071         * modules/c-ctype (License): Change to LGPL.
15072
15073 2006-11-12  Bruno Haible  <bruno@clisp.org>
15074
15075         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15076         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
15077         for GNOME libraries, for which the include files are installed in
15078         subdirectories of $prefix/include.
15079
15080 2006-11-12  Bruno Haible  <bruno@clisp.org>
15081
15082         * m4/lib-link.m4: Require at least autoconf-2.54.
15083         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
15084         name to underscores for the --with option.
15085
15086 2006-11-13  Bruno Haible  <bruno@clisp.org>
15087
15088         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
15089         the tests directory.
15090         Reported by Ralf Wildenhues.
15091
15092 2006-11-13  Bruno Haible  <bruno@clisp.org>
15093
15094         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
15095         (func_emit_initmacro_end): Undo the override here.
15096         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
15097         Works around the famous automake error in coreutils.
15098
15099 2006-11-13  Eric Blake  <ebb9@byu.net>
15100
15101         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
15102         element, not its node.
15103
15104 2006-11-12  Bruno Haible  <bruno@clisp.org>
15105
15106         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
15107         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
15108
15109 2006-11-12  Bruno Haible  <bruno@clisp.org>
15110
15111         * gnulib-tool: New option --local-symlink.
15112         (func_usage): Document it.
15113         (lsymbolic): New variable.
15114         (func_import, func_create_testdir): If --symlink was not specified,
15115         test whether --local-symlink was specified and the file comes from
15116         the local_gnulib_dir.
15117
15118 2006-11-12  Bruno Haible  <bruno@clisp.org>
15119
15120         * gnulib-tool (func_ln): New function.
15121         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
15122
15123 2006-11-12  Bruno Haible  <bruno@clisp.org>
15124
15125         Finish support for source files in subdirectories.
15126         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
15127         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
15128         AUTOMAKE_OPTIONS.
15129         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
15130
15131 2006-11-12  Bruno Haible  <bruno@clisp.org>
15132
15133         * gnulib-tool (func_get_automake_snippet): Synthesize also an
15134         EXTRA_lib_SOURCES augmentation.
15135         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
15136
15137 2006-11-12  Jim Meyering  <jim@meyering.net>
15138
15139         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
15140         file descriptors.  This also averts a failure on systems with
15141         native openat support when a traversed directory lacks "x" access.
15142         * lib/fts_.h: Include "i-ring.h"
15143         (struct FTS) [fts_fd_ring]: New member.
15144         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
15145         (FCHDIR): Add parentheses.
15146         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
15147         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
15148         When descending, rather than simply closing the previous
15149         fts_cwd_fd value, push that file descriptor onto the ring.
15150         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
15151         (fts_open): Initialize the new fd_ring member.
15152         (fts_close): Clear the ring.
15153         (fts_safe_changedir): When possible, use our new fd_ring to skip
15154         the diropen and fstat and dev/ino comparison that would normally
15155         accompany a virtual `chdir ("..")'.
15156
15157         * modules/fts (Depends-on): Add i-ring.
15158         * modules/i-ring: New module.
15159         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
15160         * m4/i-ring.m4: New file.
15161
15162 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15163
15164         * gnulib-tool (func_create_testdir): Fix replacement of
15165         `build-aux' in configure.ac.  Run autotools in gltests
15166         subdirectory.
15167         (func_create_testdir, func_create_megatestdir, test): There is
15168         no need for '--force' in most autotool invocations in a new
15169         tree.  Actually fail the whole test if any of the tools, or the
15170         configure or make stages fail.
15171
15172         Sync from Automake.
15173         * build-aux/gnupload: Revert last change.  Add pointer to upload
15174         instructions of the GNU Maintenance Instructions.
15175         Suggestion by Karl Berry.
15176
15177 2006-11-10  Jim Meyering  <jim@meyering.net>
15178
15179         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
15180
15181 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15182
15183         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
15184         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
15185         (bind_textdomain_codeset) [! ENABLE_NLS]:
15186         Evaluate all the arguments.  That way, callers get compatible behavior
15187         if the arguments have side effects.  Also, it avoids some GCC
15188         diagnostics in some cases; Joel E. Denny reported problems when Bison
15189         was configured with --enable-gcc-warnigs.
15190
15191 2006-11-10  Jim Meyering  <jim@meyering.net>
15192
15193         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
15194         relevant options in CFLAGS (like -O, -fno-inline) are taken into
15195         account.
15196
15197 2006-11-10  Jim Meyering  <jim@meyering.net>
15198
15199         * modules/inline: New file/module.
15200         * modules/xalloc (Files): Remove m4/inline.m4.
15201         (Depends-on): Add inline, instead.
15202         * modules/oset: Likewise.
15203         * modules/list: Likewise.
15204
15205 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15206
15207         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
15208         Problem reported by Matthew Woehlke.
15209
15210 2006-11-09  Bruno Haible  <bruno@clisp.org>
15211
15212         * lib/tempname.c (gen_tempname): Remove variant that invokes
15213         __gen_tempname.
15214         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
15215         __gen_tempname.
15216
15217 2006-11-08  Bruno Haible  <bruno@clisp.org>
15218
15219         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
15220         to 'yes' instead of 'cross-compiling'.
15221
15222 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15223
15224         * lib/quotearg.h (quotearg_free): New decl.
15225         * lib/quotearg.c (quotearg_free): New function.
15226         (slot0, nslots, slotvec0, slotvec):
15227         Now file-scope so that quotearg_free can get at them.
15228
15229 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15230
15231         Sync from Automake.
15232         * build-aux/gnupload: Add missing 'gnu' to example URL.
15233         Report by Karl Berry.
15234
15235 2006-11-08  Bruno Haible  <bruno@clisp.org>
15236
15237         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
15238         Suggested by Paul Eggert.
15239
15240 2006-11-08  Jim Meyering  <jim@meyering.net>
15241
15242         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
15243         It's already included if !_LIBC.
15244         (fts_safe_changedir): Add a comment.
15245
15246 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15247
15248         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
15249         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
15250         Matthew Woehlke.
15251
15252         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
15253         definitions up, to avoid colliding with change below.
15254         (static_inline) [HAVE_INLINE]: New macro.
15255         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
15256         Provide extern decls when !HAVE_INLINE.  Do not define unless
15257         static_inline is defined, either by us or by xmalloc.c.  Use
15258         static_inline rather than static inline.
15259         (XCALLOC): Optimize sizeof(T) = 1 case.
15260         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
15261
15262 2006-11-07  Bruno Haible  <bruno@clisp.org>
15263
15264         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
15265         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
15266         AC_C_INLINE.
15267         * modules/xalloc (Files): Add m4/inline.m4.
15268
15269 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15270
15271         * README: Fix typo.
15272         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
15273         (Miscellanous Notes): ...from this.
15274
15275 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15276
15277         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
15278         Mention that offsetof should be used instead of sizeof.
15279         From Bruno Haible.
15280
15281 2006-11-07  Bruno Haible  <bruno@clisp.org>
15282
15283         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
15284
15285 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15286
15287         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15288         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
15289         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15290         (gl_tree_add_before, gl_tree_add_after):
15291         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
15292         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
15293         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15294         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
15295         (gl_linked_add_after, gl_linked_add_at): Likewise.
15296         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
15297         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15298         (gl_tree_add_before, gl_tree_add_after): Likewise.
15299         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
15300         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
15301         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
15302
15303 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15304
15305         * lib/gl_oset.h: Use C comment style, not C++ comment style.
15306
15307 2006-11-06  Bruno Haible  <bruno@clisp.org>
15308
15309         * m4/inline.m4: New file.
15310         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
15311         * modules/list (Files): Add m4/inline.m4.
15312         * modules/oset (Files): Likewise.
15313
15314 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15315
15316         * lib/idcache.c: Include <stddef.h>, for offsetof.
15317         (struct userid.name): Change from char * to a flexible array member.
15318         All uses changed.
15319         * modules/idcache (Depends-on): Add flexmember.
15320
15321         * MODULES.html.sh (Core language properties): New module flexmember.
15322         * modules/flexmember, m4/flexmember.m4: New files.
15323
15324         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
15325         inline functions that are identical with the old xnmalloc_inline,
15326         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
15327         that we can avoid some unnecessary integer multiplications and
15328         divisions in the common case where the element size is known at
15329         compile time.
15330         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
15331         needed.
15332         (xnboundedmalloc): Remove.
15333         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
15334         arguments, for consistency with rest of this header.
15335         (xcharalloc): Rewrite using XNMALLOC.
15336         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
15337         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
15338         versions have been moved to lib/xalloc.h and renamed to be the
15339         non-*_inline versions.
15340         (xmalloc, xrealloc): Implement without reference to the xnmalloc
15341         and xnrealloc functions, since those functions are now inline and
15342         now call us.
15343         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
15344         renaming described above.
15345         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
15346         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
15347         captures the dependency in AC_C_INLINE.
15348
15349         New module canonicalize-lgpl, proposed by Charles Wilson in
15350         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
15351         with a few small changes afterwards.
15352         * MODULES.html.sh (File system functions): New module
15353         canonicalize-lgpl.
15354         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
15355         and canonicalize_file_name.
15356         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
15357         * modules/canonicalize-lgpl: New files.
15358
15359 2006-11-05  Bruno Haible  <bruno@clisp.org>
15360
15361         * gnulib-tool (func_import, func_create_testdir): Create directories
15362         also for files in subdirectories of lib/.
15363
15364 2006-11-05  Bruno Haible  <bruno@clisp.org>
15365
15366         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
15367         ANSI C compliant.
15368
15369 2006-11-03  Bruno Haible  <bruno@clisp.org>
15370
15371         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15372         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
15373         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
15374         (xnboundedmalloc): New inline function.
15375         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
15376         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
15377         xmalloc.
15378         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
15379         xmalloc.
15380         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
15381         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
15382         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
15383         xmalloc.
15384         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
15385         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
15386         xmalloc.
15387         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
15388         gl_tree_add_after): Use XMALLOC instead of xmalloc.
15389         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
15390         xmalloc.
15391         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
15392         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
15393         gl_tree_add_after): Use XMALLOC instead of xmalloc.
15394         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
15395         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
15396         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
15397         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
15398
15399 2006-11-03  Bruno Haible  <bruno@clisp.org>
15400
15401         * lib/c-ctype.h [C++]: Define functions without name mangling.
15402         * lib/fwriteerror.h [C++]: Likewise.
15403         * lib/gcd.h [C++]: Likewise.
15404         * lib/linebreak.h [C++]: Likewise.
15405
15406 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15407
15408         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
15409         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
15410         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
15411         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
15412         Check for functions and headers just once.
15413         Check for declaration of canonicalize_file_name.
15414         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
15415
15416 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
15417
15418         * gnulib-tool (func_import): Fix typo in actioncmd.
15419
15420 2006-11-02  Bruno Haible  <bruno@clisp.org>
15421
15422         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
15423         newline sequence in the Makefile.am snippet as a space, like "make"
15424         does.
15425         Reported by Roger Persson <perrog@gmail.com>.
15426
15427 2006-11-01  Bruno Haible  <bruno@clisp.org>
15428
15429         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
15430         already declared in <string.h>.
15431         * lib/strcase.h (strncasecmp): Don't declare it if yes.
15432
15433 2006-11-01  Bruno Haible  <bruno@clisp.org>
15434
15435         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
15436         * lib/strcase.h: Include <string.h>.
15437         (strcasecmp): Define to rpl_strcasecmp here.
15438
15439 2006-11-01  Bruno Haible  <bruno@clisp.org>
15440
15441         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
15442
15443 2006-11-01  Eric Blake  <ebb9@byu.net>
15444
15445         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
15446
15447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
15448
15449 2006-10-29  Bruno Haible  <bruno@clisp.org>
15450
15451         Make it compile in C++ mode.
15452         * lib/full-write.c (full_rw): Add a cast.
15453
15454 2006-11-01  Bruno Haible  <bruno@clisp.org>
15455
15456         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
15457         be POSIX compliant.
15458         Reported by Roger Persson <perrog@gmail.com>.
15459
15460 2006-11-01  Eric Blake  <ebb9@byu.net>
15461
15462         * lib/getopt_.h: Fix comments.
15463
15464 2006-10-31  Eric Blake  <ebb9@byu.net>
15465
15466         * modules/tmpdir (Depends-on): Add sys_stat.
15467         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
15468         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
15469         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
15470         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
15471         tempname.
15472
15473 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15474
15475         Avoid some C++ diagnostics reported by Bruno Haible.
15476         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
15477         xmalloc.
15478         (quotearg_alloc): Use xcharalloc rather than xmalloc.
15479         (struct slotvec): Move to top level.
15480         (quotearg_n_options): Rewrite to avoid xmalloc.
15481         * lib/xalloc.h (xcharalloc): New function.
15482         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
15483         [defined __cplusplus]: Add function template that provides result
15484         type propagation.  This part of the change is from Bruno Haible.
15485
15486 2006-10-29  Bruno Haible  <bruno@clisp.org>
15487
15488         Make it compile in C++ mode.
15489         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
15490         * lib/strnlen1.c (strnlen1): Cast memchr result.
15491         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
15492         * lib/clean-temp.c (string_equals, string_hash): Add casts.
15493         (create_temp_dir): Rename local variable 'template'.
15494         (compile_csharp_using_sscli): Add cast.
15495         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
15496         * lib/findprog.c (find_in_path): Likewise.
15497         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
15498         * lib/wait-process.c (register_slave_subprocess): Likewise.
15499
15500 2006-10-22  Bruno Haible  <bruno@clisp.org>
15501
15502         * modules/tsearch: New file.
15503         * lib/tsearch.h: New file.
15504         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
15505         * m4/tsearch.m4: New file.
15506         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
15507
15508 2006-10-29  Eric Blake  <ebb9@byu.net>
15509
15510         * lib/arcfour.c: Assume config.h.
15511         * lib/arctwo.c: Likewise.
15512         * lib/base64.c: Likewise.
15513         * lib/check-version.c: Likewise.
15514         * lib/crc.c: Likewise.
15515         * lib/des.c: Likewise.
15516         * lib/gc-gnulib.c: Likewise.
15517         * lib/gc-libgcrypt.c: Likewise.
15518         * lib/gc-pbkdf2-sha1.c: Likewise.
15519         * lib/getaddrinfo.c: Likewise.
15520         * lib/getdelim.c: Likewise.
15521         * lib/getline.c: Likewise.
15522         * lib/hmac-md5.c: Likewise.
15523         * lib/hmac-sha1.c: Likewise.
15524         * lib/iconvme.c: Likewise.
15525         * lib/md2.c: Likewise.
15526         * lib/md4.c: Likewise.
15527         * lib/memxor.c: Likewise.
15528         * lib/read-file.c: Likewise.
15529         * lib/readline.c: Likewise.
15530         * lib/rijndael-alg-fst.c: Likewise.
15531         * lib/rijndael-api-fst.c: Likewise.
15532         * lib/xgetdomainname.c: Likewise.
15533
15534 2006-10-28  Eric Blake  <ebb9@byu.net>
15535
15536         * lib/xstrndup.c: Assume config.h.
15537
15538 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
15539
15540         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
15541         stat-macros.h is now for our own macros, whereas stat_h is for
15542         macros in the <sys/stat.h> name space.
15543         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
15544         (STAT_MACROS_H): Remove.
15545         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
15546         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
15547         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
15548         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
15549         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
15550         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
15551         Move these macros to ...
15552         * lib/stat_.h: here.  Don't include stat-macros.h.
15553         * lib/canonicalize.c: Don't include stat-macros.h.
15554         * lib/chown.c: Likewise.
15555         * lib/euidaccess.c: Likewise.
15556         * lib/file-type.c: Likewise.
15557         * lib/filemode.c: Likewise.
15558         * lib/glob.c: Likewise.
15559         * lib/isapipe.c: Likewise.
15560         * lib/lchown.c: Likewise.
15561         * lib/lstat.c: Likewise.
15562         * lib/mkdir-p.c: Likewise.
15563         * lib/rmdir.c: Likewise.
15564         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
15565         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
15566         unless mkdir isn't declared, to speed up 'configure'.
15567         Always create sys/stat.h, since it's unlikely any real sys/stat.h
15568         would define all the S_* symbols.
15569         * modules/canonicalize (Depends-on):
15570         Depend on sys_stat, not stat-macros.
15571         * modules/chown: Likewise.
15572         * modules/euidaccess: Likewise.
15573         * modules/filemode: Likewise.
15574         * modules/file-type: Likewise.
15575         * modules/glob: Likewise.
15576         * modules/isapipe: Likewise.
15577         * modules/lchown: Likewise.
15578         * modules/lstat: Likewise.
15579         * modules/mkancesdirs: Likewise.
15580         * modules/rmdir: Likewise.
15581         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
15582         * modules/modechange: Likewise.
15583         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
15584         (configure.ac): Remove gl_STAT_MACROS.
15585         * modules/sys_stat (Depends-on): Remove stat-macros.
15586
15587 2006-10-27  Bruno Haible  <bruno@clisp.org>
15588
15589         * m4/signed.m4: Remove file.
15590         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
15591         invocation.
15592         * modules/vasnprintf (Files): Remove m4/signed.m4.
15593
15594 2006-10-27  Bruno Haible  <bruno@clisp.org>
15595
15596         Update to GNU gettext 0.16.
15597         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
15598         m4/inttypes-h.m4, m4/signed.m4.
15599         * m4/gettext.m4: Update to GNU gettext 0.16.
15600         * m4/intl.m4: New file, from GNU gettext.
15601         * m4/intldir.m4: New file, from GNU gettext.
15602         * config/srclist.txt: Update
15603
15604 2006-10-27  Eric Blake  <ebb9@byu.net>
15605
15606         * MODULES.html.sh: Document tempname.
15607         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
15608         dependencies.
15609         (Files): Move lib/tempname.c...
15610         * modules/tempname: ...to this new module.
15611         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
15612         (gl_PREREQ_TEMPNAME): Move...
15613         * m4/tempname.m4: ...to this new file.
15614         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
15615         * modules/sys_stat (Depends-on): Add stat-macros.
15616         * lib/stat_.h (includes): Pick up stat macros.
15617         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
15618         if stat macros are broken.
15619         * lib/tempname.c (includes): No need to include "stat-macros.h".
15620         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
15621         (direxists, __path_search) [!_LIBC]: Don't compile these in
15622         gnulib; the tmpdir module covers that.
15623         * lib/tempname.h: New file.
15624
15625 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15626
15627         * COPYING: Explain how gnulib-tool converts licence headers.
15628         Almost all wording by Eric Blake.
15629
15630 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
15631
15632         * lib/mbchar.h (is_basic_table): Make read-only.
15633         * lib/mbchar.c (is_basic_table): Likewise.
15634         Reported by John Darrington.
15635
15636 2006-10-25  Bruno Haible  <bruno@clisp.org>
15637
15638         * lib/progname.h (set_program_name): Undefine before defining.
15639
15640 2006-10-25  Bruno Haible  <bruno@clisp.org>
15641
15642         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
15643         false for non-gcc C++ compilers.
15644         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15645
15646 2006-10-24  Bruno Haible  <bruno@clisp.org>
15647
15648         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
15649         iconv implementations like Irix iconv.
15650
15651 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15652
15653         * modules/vararrays: New file.
15654         * m4/vararrays.m4: New file, taken from diffutils.
15655         * MODULES.html.sh: New module vararrays.
15656
15657 2006-10-24  Karl Berry  <karl@gnu.org>
15658
15659         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
15660         Don't call GNU Unix.
15661
15662 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15663
15664         * users.txt: Add Libtool.
15665
15666         Sync from Libtool:
15667
15668         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15669
15670         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
15671         to gnulib's policy of including config.h unconditionally.
15672
15673 2006-10-24  Bruno Haible  <bruno@clisp.org>
15674
15675         * modules/wcwidth (Files): Add m4/wint_t.m4.
15676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
15677         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
15678
15679 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15680
15681         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
15682         to pacify GCC with some -W flags enabled.  Problem reported by
15683         Bruno Haible.
15684
15685 2006-10-24  Jim Meyering  <jim@meyering.net>
15686
15687         * MODULES.html.sh: Remove uinttostr.  It's not a module.
15688         Reported by Karl Berry.
15689
15690 2006-10-23  Bruno Haible  <bruno@clisp.org>
15691
15692         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
15693
15694 2006-10-24  Bruno Haible  <bruno@clisp.org>
15695
15696         * lib/gl_list.h: Use C comment style, not C++ comment style.
15697
15698 2006-10-23  Eric Blake  <ebb9@byu.net>
15699
15700         * lib/getaddrinfo.c (includes): Add missing include.
15701
15702 2006-10-23  Bruno Haible  <bruno@clisp.org>
15703             Paul Eggert  <eggert@cs.ucla.edu>
15704
15705         Ability to rename obstack_free.
15706         * lib/obstack.h (__obstack_free): New macro. Declare instead of
15707         obstack_free.
15708         (obstack_free): Invoke the __obstack_free macro.
15709         * lib/obstack.c (obstack_free): Use __obstack_free macro.
15710
15711 2006-10-23  Bruno Haible  <bruno@clisp.org>
15712             Paul Eggert  <eggert@cs.ucla.edu>
15713
15714         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
15715         __argc, __argv from the declaration. (They are defined as macros on
15716         mingw.)
15717
15718 2006-10-22  Bruno Haible  <bruno@clisp.org>
15719
15720         * doc/gnulib-intro.texi: New file.
15721         * doc/gnulib.texi: Include it.
15722
15723 2006-10-21  Bruno Haible  <bruno@clisp.org>
15724
15725         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
15726         "Introduction", "Miscellanous Notes", "Particular Modules".
15727
15728 2006-10-21  Bruno Haible  <bruno@clisp.org>
15729
15730         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15731         Change mostlyclean-local rule to avoid sh syntax error from bash
15732         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
15733
15734 2006-10-23  Jim Meyering  <jim@meyering.net>
15735
15736         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
15737         in place of snprintf.
15738
15739         * modules/inttostr (Files): Add lib/uinttostr.c.
15740         * lib/uinttostr.c (inttostr): New file/function.
15741         * lib/inttostr.h (uinttostr): Declare.
15742         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
15743         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
15744         Add uinttostr.
15745         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
15746
15747 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
15748
15749         * lib/canonicalize.c (ELOOP): Define if not already defined.
15750         Problem reported by Bruno Haible in
15751         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
15752
15753 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
15754
15755         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
15756         Problem reported by Perry Smith and Ville Laurikari.
15757
15758         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
15759         uses.
15760
15761 2006-10-19  Bruno Haible  <bruno@clisp.org>
15762
15763         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
15764         for mingw.
15765
15766 2006-10-19  Bruno Haible  <bruno@clisp.org>
15767
15768         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
15769         Needed for mingw.
15770
15771 2006-10-19  Bruno Haible  <bruno@clisp.org>
15772
15773         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
15774
15775 2006-10-19  Bruno Haible  <bruno@clisp.org>
15776
15777         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
15778         it.
15779
15780 2006-10-19  Bruno Haible  <bruno@clisp.org>
15781
15782         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
15783         invocation.
15784
15785 2006-10-19  Bruno Haible  <bruno@clisp.org>
15786
15787         * gnulib-tool (func_create_testdir): Don't include ftruncate and
15788         mountlist by default.
15789
15790 2006-10-16  Bruno Haible  <bruno@clisp.org>
15791
15792         * lib/c-strstr.c: Include c-strstr.h.
15793
15794 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
15795
15796         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
15797         in a slash.
15798
15799 2006-10-18  Bruno Haible  <bruno@clisp.org>
15800
15801         * lib/lock.h [C++]: Wrap definitions in extern "C".
15802
15803 2006-10-18  Bruno Haible  <bruno@clisp.org>
15804
15805         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
15806         gl_LIBOBJS list.
15807
15808 2006-10-18  Bruno Haible  <bruno@clisp.org>
15809
15810         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
15811
15812 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
15813
15814         * lib/xstrtol.h: Include gettext.h.
15815         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
15816         Problem reported by Eric Blake.
15817         * modules/xstrtol (Depends-on): Add gettext-h.
15818
15819 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
15820
15821         * lib/strftime.c (advance): New macro.
15822         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
15823         incomplete type, so you can't add 0 to it.  Problem and patch
15824         reported by Eelco Dolstra for dietlibc.
15825
15826 2006-10-18  Jim Meyering  <jim@meyering.net>
15827
15828         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
15829         type for a local, and rename it: s/up/user_proc/.
15830
15831 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
15832
15833         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
15834         READ_UTMP_USER_PROCESS.
15835         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
15836
15837 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15838
15839         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
15840         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
15841
15842 2006-10-17  Eric Blake  <ebb9@byu.net>
15843
15844         * lib/sigprocmask.c (sigprocmask): Fix typo.
15845
15846         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
15847
15848         * modules/clean-temp (Makefile.am): Don't add to make output...
15849         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
15850         config.h.
15851
15852 2006-10-17  Bruno Haible  <bruno@clisp.org>
15853
15854         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
15855         differently if DEFAULT_TEXT_DOMAIN is set.
15856
15857 2006-10-16  Bruno Haible  <bruno@clisp.org>
15858
15859         * lib/clean-temp.c: Include fwriteerror.h.
15860
15861 2006-10-16  Bruno Haible  <bruno@clisp.org>
15862
15863         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
15864
15865 2006-10-16  Bruno Haible  <bruno@clisp.org>
15866
15867         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
15868         * lib/sigprocmask.h: Include <sys/types.h>.
15869         (sigset_t): Use the system's definition if present.
15870
15871 2006-10-17  Eric Blake  <ebb9@byu.net>
15872
15873         * lib/xvasprintf.c (includes): Assume config.h.
15874         * lib/xasprintf.c (includes): Likewise.
15875
15876 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15877
15878         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
15879         at least as wide as intmax_t.
15880
15881 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
15882
15883         (Imported from Automake.)
15884         * build-aux/gnupload: Update to version 1.1 of directive file.
15885
15886 2006-10-16  Eric Blake  <ebb9@byu.net>
15887
15888         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
15889         match Automake 1.10a.
15890
15891 2006-10-14  Bruno Haible  <bruno@clisp.org>
15892
15893         * modules/sigprocmask: New file.
15894         * lib/sigprocmask.h: New file.
15895         * lib/sigprocmask.c: New file.
15896         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
15897         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
15898         request sigprocmask.o.
15899         (gl_PREREQ_SIGPROCMASK): New macro.
15900         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
15901         (Depends-on): Add sigprocmask.
15902         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
15903         gt_SIGNALBLOCKING. Test for 'raise' only once.
15904         * lib/fatal-signal.c: Include sigprocmask.h.
15905         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
15906         unblock_fatal_signals): Define always.
15907         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15908         sigprocmask.
15909
15910 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15911
15912         Sync from Automake.
15913         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
15914         which incorrectly sets the mode of an existing destination
15915         directory.  In some cases the unpatched install-sh could do the
15916         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
15917         system.  We hope this is rare in practice, but it's clearly worth
15918         fixing.  Problem reported by Alex Unleashed in
15919         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
15920         Also, don't bother to check for -m bugs unless we're using -m;
15921         suggested by Stepan Kasal.
15922
15923 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15924
15925         Sync from Automake.
15926         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
15927         `-c' flag, so they appear at the same position as in %FASTDEP%
15928         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
15929         which ignores unknown options only after the first non-option.
15930         Bug report against M4 by Nelson H. F. Beebe.
15931
15932 2006-10-13  Jim Meyering  <jim@meyering.net>
15933
15934         Fix a bug in yesterday's change.
15935         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
15936         p->fts_statp->st_dev would be used uninitialized.
15937         Ensures that we always call fts_stat on the very first entry.
15938         Miklos Szeredi reported that find -xdev stopped working.
15939
15940 2006-10-12  Bruno Haible  <bruno@clisp.org>
15941
15942         * gnulib-tool (func_get_automake_snippet): Append an automatically
15943         computed EXTRA_DIST augmentation.
15944         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
15945         * modules/alloca-opt (Makefile.am): Likewise.
15946         * modules/allocsa (Makefile.am): Likewise.
15947         * modules/arcfour (Makefile.am): Likewise.
15948         * modules/arctwo (Makefile.am): Likewise.
15949         * modules/argmatch (Makefile.am): Likewise.
15950         * modules/argz (Makefile.am): Likewise.
15951         * modules/atexit (Makefile.am): Likewise.
15952         * modules/backupfile (Makefile.am): Likewise.
15953         * modules/byteswap (Makefile.am): Likewise.
15954         * modules/c-strtod (Makefile.am): Likewise.
15955         * modules/c-strtold (Makefile.am): Likewise.
15956         * modules/calloc (Makefile.am): Likewise.
15957         * modules/canon-host (Makefile.am): Likewise.
15958         * modules/canonicalize (Makefile.am): Likewise.
15959         * modules/chdir-long (Makefile.am): Likewise.
15960         * modules/chdir-safer (Makefile.am): Likewise.
15961         * modules/check-version (Makefile.am): Likewise.
15962         * modules/chown (Makefile.am): Likewise.
15963         * modules/cloexec (Makefile.am): Likewise.
15964         * modules/close-stream (Makefile.am): Likewise.
15965         * modules/closeout (Makefile.am): Likewise.
15966         * modules/crc (Makefile.am): Likewise.
15967         * modules/csharpexec (Makefile.am): Likewise.
15968         * modules/cycle-check (Makefile.am): Likewise.
15969         * modules/des (Makefile.am): Likewise.
15970         * modules/dev-ino (Makefile.am): Likewise.
15971         * modules/dirfd (Makefile.am): Likewise.
15972         * modules/dirname (Makefile.am): Likewise.
15973         * modules/dup2 (Makefile.am): Likewise.
15974         * modules/eealloc (Makefile.am): Likewise.
15975         * modules/error (Makefile.am): Likewise.
15976         * modules/euidaccess (Makefile.am): Likewise.
15977         * modules/exclude (Makefile.am): Likewise.
15978         * modules/exitfail (Makefile.am): Likewise.
15979         * modules/fcntl-safer (Makefile.am): Likewise.
15980         * modules/fcntl (Makefile.am): Likewise.
15981         * modules/file-type (Makefile.am): Likewise.
15982         * modules/fileblocks (Makefile.am): Likewise.
15983         * modules/filemode (Makefile.am): Likewise.
15984         * modules/filenamecat (Makefile.am): Likewise.
15985         * modules/fnmatch (Makefile.am): Likewise.
15986         * modules/fopen-safer (Makefile.am): Likewise.
15987         * modules/fpending (Makefile.am): Likewise.
15988         * modules/fprintftime (Makefile.am): Likewise.
15989         * modules/free (Makefile.am): Likewise.
15990         * modules/fsusage (Makefile.am): Likewise.
15991         * modules/ftruncate (Makefile.am): Likewise.
15992         * modules/fts (Makefile.am): Likewise.
15993         * modules/gc-arcfour (Makefile.am): Likewise.
15994         * modules/gc-des (Makefile.am): Likewise.
15995         * modules/gc-hmac-md5 (Makefile.am): Likewise.
15996         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
15997         * modules/gc-md4 (Makefile.am): Likewise.
15998         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
15999         * modules/gc-sha1 (Makefile.am): Likewise.
16000         * modules/gc (Makefile.am): Likewise.
16001         * modules/getaddrinfo (Makefile.am): Likewise.
16002         * modules/getcwd (Makefile.am): Likewise.
16003         * modules/getdelim (Makefile.am): Likewise.
16004         * modules/getdomainname (Makefile.am): Likewise.
16005         * modules/getgroups (Makefile.am): Likewise.
16006         * modules/gethostname (Makefile.am): Likewise.
16007         * modules/gethrxtime (Makefile.am): Likewise.
16008         * modules/getline (Makefile.am): Likewise.
16009         * modules/getloadavg (Makefile.am): Likewise.
16010         * modules/getlogin_r (Makefile.am): Likewise.
16011         * modules/getndelim2 (Makefile.am): Likewise.
16012         * modules/getopt (Makefile.am): Likewise.
16013         * modules/getpagesize (Makefile.am): Likewise.
16014         * modules/getpass-gnu (Makefile.am): Likewise.
16015         * modules/getpass (Makefile.am): Likewise.
16016         * modules/getsubopt (Makefile.am): Likewise.
16017         * modules/gettime (Makefile.am): Likewise.
16018         * modules/gettimeofday (Makefile.am): Likewise.
16019         * modules/getugroups (Makefile.am): Likewise.
16020         * modules/getusershell (Makefile.am): Likewise.
16021         * modules/glob (Makefile.am): Likewise.
16022         * modules/group-member (Makefile.am): Likewise.
16023         * modules/hard-locale (Makefile.am): Likewise.
16024         * modules/hash (Makefile.am): Likewise.
16025         * modules/hmac-md5 (Makefile.am): Likewise.
16026         * modules/hmac-sha1 (Makefile.am): Likewise.
16027         * modules/human (Makefile.am): Likewise.
16028         * modules/idcache (Makefile.am): Likewise.
16029         * modules/imaxabs (Makefile.am): Likewise.
16030         * modules/imaxdiv (Makefile.am): Likewise.
16031         * modules/inet_ntop (Makefile.am): Likewise.
16032         * modules/inet_pton (Makefile.am): Likewise.
16033         * modules/intprops (Makefile.am): Likewise.
16034         * modules/inttostr (Makefile.am): Likewise.
16035         * modules/inttypes (Makefile.am): Likewise.
16036         * modules/isapipe (Makefile.am): Likewise.
16037         * modules/javaversion (Makefile.am): Likewise.
16038         * modules/lchmod (Makefile.am): Likewise.
16039         * modules/lchown (Makefile.am): Likewise.
16040         * modules/localcharset (Makefile.am): Likewise.
16041         * modules/long-options (Makefile.am): Likewise.
16042         * modules/lstat (Makefile.am): Likewise.
16043         * modules/malloc (Makefile.am): Likewise.
16044         * modules/mathl (Makefile.am): Likewise.
16045         * modules/mbchar (Makefile.am): Likewise.
16046         * modules/md2 (Makefile.am): Likewise.
16047         * modules/md4 (Makefile.am): Likewise.
16048         * modules/md5 (Makefile.am): Likewise.
16049         * modules/memcasecmp (Makefile.am): Likewise.
16050         * modules/memchr (Makefile.am): Likewise.
16051         * modules/memcmp (Makefile.am): Likewise.
16052         * modules/memcoll (Makefile.am): Likewise.
16053         * modules/memcpy (Makefile.am): Likewise.
16054         * modules/memmem (Makefile.am): Likewise.
16055         * modules/memmove (Makefile.am): Likewise.
16056         * modules/mempcpy (Makefile.am): Likewise.
16057         * modules/memrchr (Makefile.am): Likewise.
16058         * modules/memset (Makefile.am): Likewise.
16059         * modules/memxor (Makefile.am): Likewise.
16060         * modules/mkancesdirs (Makefile.am): Likewise.
16061         * modules/mkdir-p (Makefile.am): Likewise.
16062         * modules/mkdir (Makefile.am): Likewise.
16063         * modules/mkdtemp (Makefile.am): Likewise.
16064         * modules/mkstemp (Makefile.am): Likewise.
16065         * modules/mktime (Makefile.am): Likewise.
16066         * modules/modechange (Makefile.am): Likewise.
16067         * modules/mountlist (Makefile.am): Likewise.
16068         * modules/nanosleep (Makefile.am): Likewise.
16069         * modules/obstack (Makefile.am): Likewise.
16070         * modules/openat (Makefile.am): Likewise.
16071         * modules/pagealign_alloc (Makefile.am): Likewise.
16072         * modules/pathmax (Makefile.am): Likewise.
16073         * modules/physmem (Makefile.am): Likewise.
16074         * modules/poll (Makefile.am): Likewise.
16075         * modules/posixtm (Makefile.am): Likewise.
16076         * modules/posixver (Makefile.am): Likewise.
16077         * modules/putenv (Makefile.am): Likewise.
16078         * modules/quote (Makefile.am): Likewise.
16079         * modules/quotearg (Makefile.am): Likewise.
16080         * modules/raise (Makefile.am): Likewise.
16081         * modules/read-file (Makefile.am): Likewise.
16082         * modules/readline (Makefile.am): Likewise.
16083         * modules/readlink (Makefile.am): Likewise.
16084         * modules/readtokens (Makefile.am): Likewise.
16085         * modules/readutmp (Makefile.am): Likewise.
16086         * modules/realloc (Makefile.am): Likewise.
16087         * modules/regex (Makefile.am): Likewise.
16088         * modules/rename-dest-slash (Makefile.am): Likewise.
16089         * modules/rename (Makefile.am): Likewise.
16090         * modules/rijndael (Makefile.am): Likewise.
16091         * modules/rmdir (Makefile.am): Likewise.
16092         * modules/rpmatch (Makefile.am): Likewise.
16093         * modules/safe-read (Makefile.am): Likewise.
16094         * modules/safe-write (Makefile.am): Likewise.
16095         * modules/same-inode (Makefile.am): Likewise.
16096         * modules/same (Makefile.am): Likewise.
16097         * modules/save-cwd (Makefile.am): Likewise.
16098         * modules/savedir (Makefile.am): Likewise.
16099         * modules/setenv (Makefile.am): Likewise.
16100         * modules/settime (Makefile.am): Likewise.
16101         * modules/sha1 (Makefile.am): Likewise.
16102         * modules/sig2str (Makefile.am): Likewise.
16103         * modules/snprintf (Makefile.am): Likewise.
16104         * modules/stat-macros (Makefile.am): Likewise.
16105         * modules/stat-time (Makefile.am): Likewise.
16106         * modules/stdbool (Makefile.am): Likewise.
16107         * modules/stdint (Makefile.am): Likewise.
16108         * modules/stdlib-safer (Makefile.am): Likewise.
16109         * modules/stpcpy (Makefile.am): Likewise.
16110         * modules/stpncpy (Makefile.am): Likewise.
16111         * modules/strcase (Makefile.am): Likewise.
16112         * modules/strcasestr (Makefile.am): Likewise.
16113         * modules/strchrnul (Makefile.am): Likewise.
16114         * modules/strcspn (Makefile.am): Likewise.
16115         * modules/strdup (Makefile.am): Likewise.
16116         * modules/strerror (Makefile.am): Likewise.
16117         * modules/strftime (Makefile.am): Likewise.
16118         * modules/strndup (Makefile.am): Likewise.
16119         * modules/strnlen (Makefile.am): Likewise.
16120         * modules/strpbrk (Makefile.am): Likewise.
16121         * modules/strsep (Makefile.am): Likewise.
16122         * modules/strstr (Makefile.am): Likewise.
16123         * modules/strtod (Makefile.am): Likewise.
16124         * modules/strtoimax (Makefile.am): Likewise.
16125         * modules/strtok_r (Makefile.am): Likewise.
16126         * modules/strtol (Makefile.am): Likewise.
16127         * modules/strtoll (Makefile.am): Likewise.
16128         * modules/strtoul (Makefile.am): Likewise.
16129         * modules/strtoull (Makefile.am): Likewise.
16130         * modules/strtoumax (Makefile.am): Likewise.
16131         * modules/strverscmp (Makefile.am): Likewise.
16132         * modules/sys_socket (Makefile.am): Likewise.
16133         * modules/sys_stat (Makefile.am): Likewise.
16134         * modules/sysexits (Makefile.am): Likewise.
16135         * modules/time_r (Makefile.am): Likewise.
16136         * modules/timegm (Makefile.am): Likewise.
16137         * modules/timespec (Makefile.am): Likewise.
16138         * modules/tmpfile-safer (Makefile.am): Likewise.
16139         * modules/trim (Makefile.am): Likewise.
16140         * modules/unistd-safer (Makefile.am): Likewise.
16141         * modules/unlinkdir (Makefile.am): Likewise.
16142         * modules/unlocked-io (Makefile.am): Likewise.
16143         * modules/userspec (Makefile.am): Likewise.
16144         * modules/utime (Makefile.am): Likewise.
16145         * modules/utimecmp (Makefile.am): Likewise.
16146         * modules/utimens (Makefile.am): Likewise.
16147         * modules/vasnprintf (Makefile.am): Likewise.
16148         * modules/vasprintf (Makefile.am): Likewise.
16149         * modules/vsnprintf (Makefile.am): Likewise.
16150         * modules/xalloc (Makefile.am): Likewise.
16151         * modules/xgetcwd (Makefile.am): Likewise.
16152         * modules/xnanosleep (Makefile.am): Likewise.
16153         * modules/xreadlink (Makefile.am): Likewise.
16154         * modules/xstrtod (Makefile.am): Likewise.
16155         * modules/xstrtol (Makefile.am): Likewise.
16156         * modules/xstrtold (Makefile.am): Likewise.
16157         * modules/yesno (Makefile.am): Likewise.
16158         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
16159
16160 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16161
16162         * modules/error (Makefile.am): Distribute files through
16163         EXTRA_DIST, not lib_SOURCES.
16164
16165 2006-10-12  Eric Blake  <ebb9@byu.net>
16166
16167         * modules/error (Makefile.am): Distribute files in /lib.
16168         * modules/obstack (Makefile.am): Likewise.
16169
16170 2006-10-12  Bruno Haible  <bruno@clisp.org>
16171
16172         * modules/acl (Makefile.am): Distribute all files in lib/ through
16173         EXTRA_DIST.
16174         * modules/arcfour (Makefile.am): Likewise.
16175         * modules/arctwo (Makefile.am): Likewise.
16176         * modules/argmatch (Makefile.am): Likewise.
16177         * modules/argz (Makefile.am): Likewise.
16178         * modules/atexit (Makefile.am): Likewise.
16179         * modules/backupfile (Makefile.am): Likewise.
16180         * modules/c-strtod (Makefile.am): Likewise.
16181         * modules/c-strtold (Makefile.am): Likewise.
16182         * modules/calloc (Makefile.am): Likewise.
16183         * modules/canon-host (Makefile.am): Likewise.
16184         * modules/canonicalize (Makefile.am): Likewise.
16185         * modules/chdir-long (Makefile.am): Likewise.
16186         * modules/chdir-safer (Makefile.am): Likewise.
16187         * modules/check-version (Makefile.am): Likewise.
16188         * modules/chown (Makefile.am): Likewise.
16189         * modules/cloexec (Makefile.am): Likewise.
16190         * modules/close-stream (Makefile.am): Likewise.
16191         * modules/closeout (Makefile.am): Likewise.
16192         * modules/crc (Makefile.am): Likewise.
16193         * modules/cycle-check (Makefile.am): Likewise.
16194         * modules/des (Makefile.am): Likewise.
16195         * modules/dirfd (Makefile.am): Likewise.
16196         * modules/dirname (Makefile.am): Likewise.
16197         * modules/dup2 (Makefile.am): Likewise.
16198         * modules/euidaccess (Makefile.am): Likewise.
16199         * modules/exclude (Makefile.am): Likewise.
16200         * modules/exitfail (Makefile.am): Likewise.
16201         * modules/fcntl-safer (Makefile.am): Likewise.
16202         * modules/file-type (Makefile.am): Likewise.
16203         * modules/fileblocks (Makefile.am): Likewise.
16204         * modules/filemode (Makefile.am): Likewise.
16205         * modules/filenamecat (Makefile.am): Likewise.
16206         * modules/fnmatch (Makefile.am): Likewise.
16207         * modules/fopen-safer (Makefile.am): Likewise.
16208         * modules/fpending (Makefile.am): Likewise.
16209         * modules/fprintftime (Makefile.am): Likewise.
16210         * modules/free (Makefile.am): Likewise.
16211         * modules/fsusage (Makefile.am): Likewise.
16212         * modules/ftruncate (Makefile.am): Likewise.
16213         * modules/fts (Makefile.am): Likewise.
16214         * modules/gc (Makefile.am): Likewise.
16215         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
16216         * modules/getaddrinfo (Makefile.am): Likewise.
16217         * modules/getcwd (Makefile.am): Likewise.
16218         * modules/getdelim (Makefile.am): Likewise.
16219         * modules/getdomainname (Makefile.am): Likewise.
16220         * modules/getgroups (Makefile.am): Likewise.
16221         * modules/gethostname (Makefile.am): Likewise.
16222         * modules/gethrxtime (Makefile.am): Likewise.
16223         * modules/getline (Makefile.am): Likewise.
16224         * modules/getloadavg (Makefile.am): Likewise.
16225         * modules/getlogin_r (Makefile.am): Likewise.
16226         * modules/getopt (Makefile.am): Likewise.
16227         * modules/getpass (Makefile.am): Likewise.
16228         * modules/getpass-gnu (Makefile.am): Likewise.
16229         * modules/getsubopt (Makefile.am): Likewise.
16230         * modules/gettime (Makefile.am): Likewise.
16231         * modules/gettimeofday (Makefile.am): Likewise.
16232         * modules/getugroups (Makefile.am): Likewise.
16233         * modules/getusershell (Makefile.am): Likewise.
16234         * modules/glob (Makefile.am): Likewise.
16235         * modules/group-member (Makefile.am): Likewise.
16236         * modules/hard-locale (Makefile.am): Likewise.
16237         * modules/hash (Makefile.am): Likewise.
16238         * modules/hmac-md5 (Makefile.am): Likewise.
16239         * modules/hmac-sha1 (Makefile.am): Likewise.
16240         * modules/human (Makefile.am): Likewise.
16241         * modules/idcache (Makefile.am): Likewise.
16242         * modules/imaxabs (Makefile.am): Likewise.
16243         * modules/imaxdiv (Makefile.am): Likewise.
16244         * modules/inet_ntop (Makefile.am): Likewise.
16245         * modules/inet_pton (Makefile.am): Likewise.
16246         * modules/inttostr (Makefile.am): Likewise.
16247         * modules/isapipe (Makefile.am): Likewise.
16248         * modules/lchown (Makefile.am): Likewise.
16249         * modules/long-options (Makefile.am): Likewise.
16250         * modules/lstat (Makefile.am): Likewise.
16251         * modules/malloc (Makefile.am): Likewise.
16252         * modules/mathl (Makefile.am): Likewise.
16253         * modules/mbchar (Makefile.am): Likewise.
16254         * modules/md2 (Makefile.am): Likewise.
16255         * modules/md4 (Makefile.am): Likewise.
16256         * modules/md5 (Makefile.am): Likewise.
16257         * modules/memcasecmp (Makefile.am): Likewise.
16258         * modules/memchr (Makefile.am): Likewise.
16259         * modules/memcmp (Makefile.am): Likewise.
16260         * modules/memcoll (Makefile.am): Likewise.
16261         * modules/memcpy (Makefile.am): Likewise.
16262         * modules/memmem (Makefile.am): Likewise.
16263         * modules/memmove (Makefile.am): Likewise.
16264         * modules/mempcpy (Makefile.am): Likewise.
16265         * modules/memrchr (Makefile.am): Likewise.
16266         * modules/memset (Makefile.am): Likewise.
16267         * modules/memxor (Makefile.am): Likewise.
16268         * modules/mkancesdirs (Makefile.am): Likewise.
16269         * modules/mkdir (Makefile.am): Likewise.
16270         * modules/mkdir-p (Makefile.am): Likewise.
16271         * modules/mkdtemp (Makefile.am): Likewise.
16272         * modules/mkstemp (Makefile.am): Likewise.
16273         * modules/mktime (Makefile.am): Likewise.
16274         * modules/modechange (Makefile.am): Likewise.
16275         * modules/mountlist (Makefile.am): Likewise.
16276         * modules/nanosleep (Makefile.am): Likewise.
16277         * modules/openat (Makefile.am): Likewise.
16278         * modules/pagealign_alloc (Makefile.am): Likewise.
16279         * modules/physmem (Makefile.am): Likewise.
16280         * modules/poll (Makefile.am): Likewise.
16281         * modules/posixtm (Makefile.am): Likewise.
16282         * modules/posixver (Makefile.am): Likewise.
16283         * modules/putenv (Makefile.am): Likewise.
16284         * modules/quote (Makefile.am): Likewise.
16285         * modules/quotearg (Makefile.am): Likewise.
16286         * modules/raise (Makefile.am): Likewise.
16287         * modules/read-file (Makefile.am): Likewise.
16288         * modules/readline (Makefile.am): Likewise.
16289         * modules/readlink (Makefile.am): Likewise.
16290         * modules/readtokens (Makefile.am): Likewise.
16291         * modules/readutmp (Makefile.am): Likewise.
16292         * modules/realloc (Makefile.am): Likewise.
16293         * modules/regex (Makefile.am): Likewise.
16294         * modules/rename (Makefile.am): Likewise.
16295         * modules/rename-dest-slash (Makefile.am): Likewise.
16296         * modules/rijndael (Makefile.am): Likewise.
16297         * modules/rmdir (Makefile.am): Likewise.
16298         * modules/rpmatch (Makefile.am): Likewise.
16299         * modules/safe-read (Makefile.am): Likewise.
16300         * modules/safe-write (Makefile.am): Likewise.
16301         * modules/same (Makefile.am): Likewise.
16302         * modules/save-cwd (Makefile.am): Likewise.
16303         * modules/savedir (Makefile.am): Likewise.
16304         * modules/setenv (Makefile.am): Likewise.
16305         * modules/settime (Makefile.am): Likewise.
16306         * modules/sha1 (Makefile.am): Likewise.
16307         * modules/sig2str (Makefile.am): Likewise.
16308         * modules/snprintf (Makefile.am): Likewise.
16309         * modules/stdlib-safer (Makefile.am): Likewise.
16310         * modules/stpcpy (Makefile.am): Likewise.
16311         * modules/stpncpy (Makefile.am): Likewise.
16312         * modules/strcase (Makefile.am): Likewise.
16313         * modules/strcasestr (Makefile.am): Likewise.
16314         * modules/strchrnul (Makefile.am): Likewise.
16315         * modules/strcspn (Makefile.am): Likewise.
16316         * modules/strdup (Makefile.am): Likewise.
16317         * modules/strerror (Makefile.am): Likewise.
16318         * modules/strftime (Makefile.am): Likewise.
16319         * modules/strndup (Makefile.am): Likewise.
16320         * modules/strnlen (Makefile.am): Likewise.
16321         * modules/strpbrk (Makefile.am): Likewise.
16322         * modules/strsep (Makefile.am): Likewise.
16323         * modules/strstr (Makefile.am): Likewise.
16324         * modules/strtod (Makefile.am): Likewise.
16325         * modules/strtoimax (Makefile.am): Likewise.
16326         * modules/strtok_r (Makefile.am): Likewise.
16327         * modules/strtol (Makefile.am): Likewise.
16328         * modules/strtoll (Makefile.am): Likewise.
16329         * modules/strtoul (Makefile.am): Likewise.
16330         * modules/strtoull (Makefile.am): Likewise.
16331         * modules/strtoumax (Makefile.am): Likewise.
16332         * modules/strverscmp (Makefile.am): Likewise.
16333         * modules/time_r (Makefile.am): Likewise.
16334         * modules/timegm (Makefile.am): Likewise.
16335         * modules/tmpfile-safer (Makefile.am): Likewise.
16336         * modules/unistd-safer (Makefile.am): Likewise.
16337         * modules/unlinkdir (Makefile.am): Likewise.
16338         * modules/userspec (Makefile.am): Likewise.
16339         * modules/utime (Makefile.am): Likewise.
16340         * modules/utimecmp (Makefile.am): Likewise.
16341         * modules/utimens (Makefile.am): Likewise.
16342         * modules/vasnprintf (Makefile.am): Likewise.
16343         * modules/vasprintf (Makefile.am): Likewise.
16344         * modules/vsnprintf (Makefile.am): Likewise.
16345         * modules/xalloc (Makefile.am): Likewise.
16346         * modules/xgetcwd (Makefile.am): Likewise.
16347         * modules/xnanosleep (Makefile.am): Likewise.
16348         * modules/xreadlink (Makefile.am): Likewise.
16349         * modules/xstrtod (Makefile.am): Likewise.
16350         * modules/xstrtol (Makefile.am): Likewise.
16351         * modules/xstrtold (Makefile.am): Likewise.
16352         * modules/yesno (Makefile.am): Likewise.
16353
16354 2006-10-12  Jim Meyering  <jim@meyering.net>
16355
16356         * m4/getloadavg.m4: Revert the change below.
16357
16358         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
16359         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
16360         fail with a symlink, which is what coreutils' ./bootstrap now
16361         creates by default.
16362
16363 2006-10-12  Bruno Haible  <bruno@clisp.org>
16364
16365         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
16366         mingw.
16367         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
16368         MSVC and mingw explicitly.
16369
16370 2006-10-11  Simon Josefsson  <jas@extundo.com>
16371             Bruno Haible  <bruno@clisp.org>
16372
16373         Add support for multiple gnulib-tool invocations in the scope of a
16374         single configure.ac file.
16375         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
16376         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
16377         with the same contents as the _LIBADD variable.
16378         (func_emit_initmacro_start, func_emit_initmacro_end,
16379         func_emit_initmacro_done): New functions.
16380         (func_import, func_create_testdir): Invoke them. Allow the identifiers
16381         gl_LIBOBJS and gl_LTLIBOBJS.
16382
16383 2006-10-11  Bruno Haible  <bruno@clisp.org>
16384
16385         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
16386         (func_create_testdir): Don't create po/Makefile.am, don't invoke
16387         autoreconf. Instead, invoke autopoint explicitly but move back the
16388         *.m4 files from gnulib.
16389
16390 2006-10-11  Bruno Haible  <bruno@clisp.org>
16391
16392         * gnulib-tool (func_usage): Make module names after --create-testdir
16393         optional.
16394         (func_create_testdir): If no module was specified, use nearly all
16395         modules.
16396
16397 2006-10-12  Jim Meyering  <jim@meyering.net>
16398
16399         Big performance improvement for fts-based tools that use FTS_NOSTAT.
16400         Avoid spurious inode-mismatch problems on non-POSIX file systems.
16401         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
16402         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
16403         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
16404         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
16405         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
16406         (fts_set_stat_required): New function.
16407         (fts_open): Defer the calls to fts_stat, if possible or requested.
16408         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
16409         into fts_stat itself.
16410         (fts_read): Perform any required (deferred) fts_stat call.
16411         (fts_build): Likewise, for the directory we're about to open and read.
16412         In the readdir loop, carefully decide whether each entry will require
16413         an eventual call to fts_stat, using dirent.d_type info if available.
16414         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
16415         a command line argument into this function.  Update all callers.
16416         Map a return value of FTS_DOT to FTS_D for a command line argument.
16417         * modules/fts (Depends-on): Add d-type.  Alphabetize.
16418         Thanks to Miklos Szeredi for his tenacity and for the initial
16419         bug report about "find" failing on a FUSE-based file system.
16420
16421         * lib/fts.c (fts_open): Use consistent indentation.
16422
16423 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16424
16425         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
16426         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
16427         reported by Jim Meyering.  All uses of cache variables renamed
16428         to match Autoconf's.
16429         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
16430         the other one.
16431
16432         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16433         Fix misspelling in diagnostic.
16434
16435 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16436
16437         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
16438         defined.  Problem reported by Matthew Woehlke.
16439
16440         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
16441         Add support for Tandem NonStop R series.
16442         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
16443         Use new macro.
16444
16445         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
16446         (has_trailing_slash): Omit size arg; all callers changed.
16447         Omit 'inline', since it doesn't help performance and we'd
16448         need to configure it.
16449         Don't count //, ///, etc. as having a trailing slash.
16450         As a side effect, this removes a C99ism reported by Matthew Woehlke.
16451         (rpl_rename_dest_slash): On failure, use rename's errno rather
16452         than (in some cases) an incorrect or junk errno.
16453         Simplify code by removing need to compute length; this does
16454         cause it to make two passes instead of one over the file name,
16455         but it's worth it.
16456
16457         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
16458         change, since Autoconf's version may no longer be appropriate now
16459         that we are using CVS Autoconf's version.  Add support for Tandem.
16460
16461 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16462             Bruno Haible  <bruno@clisp.org>
16463
16464         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
16465         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
16466         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
16467         gl_AC_TYPE_LONG_LONG.
16468
16469         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
16470         instead of HAVE_LONG_LONG.
16471         * lib/printf-args.c (printf_fetchargs): Likewise.
16472         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16473         * lib/vasnprintf.c (VASNPRINTF): Likewise.
16474         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
16475         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
16476         gl_AC_TYPE_LONG_LONG.
16477
16478 2006-10-11  Bruno Haible  <bruno@clisp.org>
16479
16480         * m4/longlong.m4: Add comments.
16481         * m4/ulonglong.m4: Likewise.
16482
16483 2006-10-10  Bruno Haible  <bruno@clisp.org>
16484
16485         Make it possible to #define stpcpy, strdup to aliases.
16486         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
16487         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
16488
16489 2006-10-10  Bruno Haible  <bruno@clisp.org>
16490
16491         Make it possible to #define gcd to an alias.
16492         * lib/gcd.c: Include config.h.
16493
16494 2006-10-10  Bruno Haible  <bruno@clisp.org>
16495
16496         Make it possible to #define c_isascii to an alias.
16497         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
16498         defined. Undefine the macros before defining them, to avoid gcc
16499         warnings.
16500         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
16501         define NO_C_CTYPE_MACROS early.
16502
16503 2006-10-10  Bruno Haible  <bruno@clisp.org>
16504
16505         Make it possible to #define set_program_name to an alias.
16506         * lib/progname.c: Don't undefine set_program_name; instead, undefine
16507         ENABLE_RELOCATABLE early.
16508
16509 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16510
16511         Port to Tandem NSK OSS, which has 64-bit signed int but at most
16512         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
16513         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
16514         More generally, don't assume that 64-bit signed int is available
16515         if unsigned int is, and vice versa.
16516         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
16517         unsigned symbols, not on their signed counterparts.
16518         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
16519         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
16520         (UINT64_C, UINTMAX_C):
16521         Likewise.
16522         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
16523         unsigned counterparts.
16524         (Have_long_long, Unsigned): New macros.
16525         (Int): Renamed from INT.
16526         (strtoimax): Use the new macros.
16527         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
16528         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
16529         * modules/inttypes (inttypes.h): Substitute
16530         HAVE_UNSIGNED_LONG_LONG_INT.
16531         * modules/stdint (stdint.h): Likewise.
16532         (Files): Add m4/ulonglong.m4.
16533
16534 2006-10-10  Bruno Haible  <bruno@clisp.org>
16535
16536         Fix a gcc -Wshadow warning.
16537         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
16538         to 'bucket'.
16539         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
16540         gl_linked_indexof_from_to): Likewise.
16541         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
16542         Likewise.
16543         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
16544         Likewise.
16545         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
16546         Reported by Eric Blake.
16547
16548 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
16549
16550         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
16551         for NetBSD.  Problem reported by Bruno Haible.
16552
16553 2006-10-09  Jim Meyering  <jim@meyering.net>
16554
16555         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
16556         Patch from Bruno Haible.
16557
16558 2006-10-09  Jim Meyering  <jim@meyering.net>
16559
16560         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
16561         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
16562         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
16563
16564 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16565
16566         Don't include <config.h> twice; this doesn't work in some cases,
16567         e.g., when config.h has "#define intmax_t long long int" and
16568         we include <config.h>, <inttypes.h>, <config.h> in that order.
16569         Problem reported by Matthew Woehlke in:
16570         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
16571         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
16572         * lib/fts-cycle.c: Don't include config.h.
16573         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
16574         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
16575         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
16576         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
16577         inttypes.h.
16578         * lib/xstrtoumax.c: Likewise.
16579         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
16580         __strtol and the like, so that this module is more like its siblings.
16581         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
16582         Remove; no longer needed now that we assume gnulib inttypes.h.
16583
16584 2006-10-08  Bruno Haible  <bruno@clisp.org>
16585
16586         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
16587         option.
16588
16589 2006-10-07  Jim Meyering  <jim@meyering.net>
16590
16591         * modules/inttypes (inttypes.h): Revert what seems to have been
16592         an inadvertent part of today's change: use "|", not "/" in the
16593         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
16594
16595 2006-10-07  Bruno Haible  <bruno@clisp.org>
16596
16597         * modules/sublist: New file.
16598
16599 2006-10-07  Bruno Haible  <bruno@clisp.org>
16600
16601         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
16602         * modules/argz (argz.h): Likewise.
16603         * modules/arpa_inet (arpa/inet.h): Likewise.
16604         * modules/byteswap (byteswap.h): Likewise.
16605         * modules/configmake (configmake.h): Likewise.
16606         * modules/fcntl (fcntl.h): Likewise.
16607         * modules/fnmatch (fnmatch.h): Likewise.
16608         * modules/getopt (getopt.h): Likewise.
16609         * modules/glob (glob.h): Likewise.
16610         * modules/inttypes (inttypes.h): Likewise.
16611         * modules/netinet_in (netinet/in.h): Likewise.
16612         * modules/poll (poll.h): Likewise.
16613         * modules/stdbool (stdbool.h): Likewise.
16614         * modules/stdint (stdint.h): Likewise.
16615         * modules/sys_select (sys/select.h): Likewise.
16616         * modules/sys_socket (sys/socket.h): Likewise.
16617         * modules/sys_stat (sys/stat.h): Likewise.
16618         * modules/sysexits (sysexits.h): Likewise.
16619         * modules/unistd (unistd.h): Likewise.
16620         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16621         Add a "DO NOT EDIT" comment to the generated file.
16622         (func_import): Likewise for gnulib-comp.m4.
16623
16624 2006-10-07  Bruno Haible  <bruno@clisp.org>
16625
16626         * lib/gl_sublist.h: New file.
16627         * lib/gl_sublist.c: New file.
16628
16629 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
16630
16631         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
16632         name (relative to the original working directory) and the file
16633         name component (relative to the temporary working directory).  All
16634         callers changed.
16635         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
16636         * lib/mkdir-p.c (make_dir_parents): Likewise.
16637         * lib/mkdir-p.h (make_dir_parents): Likewise.
16638
16639 2006-10-06  Eric Blake  <ebb9@byu.net>
16640
16641         Define several macros for use by the clean-temp module.
16642         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
16643         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
16644         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
16645
16646         * lib/clean-temp.h (close_stream_temp): New declaration.
16647         * lib/clean-temp.c (includes): Pull in headers according to what
16648         other modules are in use.
16649         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
16650
16651 2006-10-06  Bruno Haible  <bruno@clisp.org>
16652
16653         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
16654         instead of fopen, fwriteerror.
16655
16656 2006-10-06  Bruno Haible  <bruno@clisp.org>
16657
16658         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
16659         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
16660         int.
16661         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
16662         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
16663         Return an error indicator.
16664         Suggested by Eric Blake.
16665
16666 2006-10-06  Bruno Haible  <bruno@clisp.org>
16667
16668         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
16669         Reported by Eric Blake.
16670
16671 2006-10-06  Bruno Haible  <bruno@clisp.org>
16672
16673         * modules/closeout (Description): Mention stderr too.
16674
16675 2006-10-06  Bruno Haible  <bruno@clisp.org>
16676         and Paul Eggert  <eggert@cs.ucla.edu>
16677
16678         * lib/closeout.c (close_stdout): Also close stderr.
16679         * lib/closeout.h: Update comment.
16680
16681 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16682
16683         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
16684         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
16685         * lib/dirchownmod.c: Include lchown.h.
16686         * lib/lchown.c: Don't include files that lchown.h now includes.
16687         Don't declare chown, since lchown.h now does that.
16688         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
16689         (lchown): Define to rpl_chown if lchown is declared but
16690         does not exist.  Declare using a prototype if lchown is not
16691         declared.  Add a copyright notice.
16692         * lib/mkstemp.h: Include <unistd.h>.
16693         * lib/openat.c: Include lchown.h.
16694
16695         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
16696         we now test for that separately.
16697         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
16698         rather than O_NOFOLLOW, when testing whether it's possible to
16699         avoid a race condition reliably.
16700         * lib/savewd.c (savewd_chdir): Likewise.
16701
16702         Remove macros that are no longer needed now that stdint.h is
16703         reliable.
16704         * lib/fsusage.c (UINTMAX_MAX): Remove.
16705         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
16706         * lib/utimecmp.c (SIZE_MAX): Remove.
16707
16708         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
16709
16710         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
16711         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
16712         O_NOATIME works.
16713
16714 2006-10-05  Bruno Haible  <bruno@clisp.org>
16715
16716         * lib/gl_list.h (gl_sortedlist_search_from_to,
16717         gl_sortedlist_indexof_from_to): New declarations.
16718         (gl_list_implementation): New fields sortedlist_search_from_to,
16719         sortedlist_indexof_from_to.
16720         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
16721         inline functions.
16722         * lib/gl_list.c (gl_sortedlist_search_from_to,
16723         gl_sortedlist_indexof_from_to): New functions.
16724         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
16725         function.
16726         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
16727         (gl_array_sortedlist_search_from_to): New function.
16728         (gl_array_list_implementation): Update.
16729         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
16730         function.
16731         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
16732         (gl_carray_sortedlist_search_from_to): New function.
16733         (gl_carray_list_implementation): Update.
16734         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
16735         gl_linked_sortedlist_indexof_from_to): New functions.
16736         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
16737         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
16738         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
16739         gl_tree_sortedlist_indexof_from_to): New functions.
16740         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
16741         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
16742         Update.
16743         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
16744         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
16745         Update.
16746
16747 2006-10-05  Bruno Haible  <bruno@clisp.org>
16748
16749         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
16750         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
16751         (struct gl_list_implementation): Add fields search_from_to,
16752         indexof_from_to. Remove fields search, indexof.
16753         (gl_list_search): Use the search_from_to method.
16754         (gl_list_search_from, gl_list_search_from_to): New functions.
16755         (gl_list_indexof): Use the indexof_from_to method.
16756         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
16757         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
16758         (gl_list_search_from, gl_list_search_from_to): New functions.
16759         (gl_list_indexof): Use the indexof_from_to method.
16760         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
16761         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
16762         gl_array_indexof. Add start_index, end_index arguments.
16763         (gl_array_search_from_to): Renamed from gl_array_search. Add
16764         start_index, end_index arguments.
16765         (gl_array_remove, gl_array_list_implementation): Update.
16766         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
16767         gl_carray_indexof. Add start_index, end_index arguments.
16768         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
16769         start_index, end_index arguments.
16770         (gl_carray_remove, gl_carray_list_implementation): Update.
16771         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
16772         gl_linked_search. Add start_index, end_index arguments.
16773         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
16774         start_index, end_index arguments.
16775         (gl_linked_remove): Update.
16776         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
16777         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
16778         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
16779         field to 'size_t'.
16780         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
16781         gl_tree_search. Add start_index, end_index arguments.
16782         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
16783         start_index, end_index arguments.
16784         (gl_tree_remove): Update.
16785         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
16786         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
16787         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
16788         function.
16789         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
16790         gl_tree_search. Add start_index, end_index arguments.
16791         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
16792         start_index, end_index arguments.
16793         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
16794         Update.
16795         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
16796
16797 2006-10-05  Bruno Haible  <bruno@clisp.org>
16798
16799         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
16800
16801         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
16802         fwriteerror_temp): New declarations.
16803         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
16804         (descriptors): New variable.
16805         (cleanup): First, close the descriptors.
16806         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
16807         fclose_temp, fwriteerror_temp): New functions.
16808
16809 2006-10-04  Jim Meyering  <jim@meyering.net>
16810
16811         * lib/fts.c (fts_open): Tiny comment change.
16812
16813 2006-10-04  Bruno Haible  <bruno@clisp.org>
16814
16815         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
16816         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
16817         gl_LOCK_BODY.
16818         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
16819         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
16820         gl_LOCK_EARLY_BODY.
16821         (gl_LOCK): Require gl_LOCK_BODY.
16822
16823 2006-10-04  Bruno Haible  <bruno@clisp.org>
16824
16825         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
16826         (gl_oset_search_atleast): New declaration.
16827         (struct gl_oset_implementation): Add field 'search_atleast'.
16828         (gl_oset_search_atleast): New inline function.
16829         * lib/gl_oset.c (gl_oset_search_atleast): New function.
16830         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
16831         (gl_array_oset_implementation): Update.
16832         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
16833         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
16834         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
16835
16836 2006-10-04  Bruno Haible  <bruno@clisp.org>
16837
16838         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
16839
16840 2006-10-03  Bruno Haible  <bruno@clisp.org>
16841
16842         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
16843         from gl_avltreehash_list_implementation.
16844
16845 2006-10-03  Bruno Haible  <bruno@clisp.org>
16846
16847         * lib/gl_oset.c (gl_oset_add): Fix return type.
16848
16849 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
16850
16851         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
16852
16853 2006-10-02  Eric Blake  <ebb9@byu.net>
16854
16855         * modules/strnlen (Depends-on): Add extensions.
16856
16857 2006-10-02  Eric Blake  <ebb9@byu.net>
16858
16859         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
16860         definition in 2.60+.
16861
16862 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
16863
16864         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
16865         checks.
16866
16867 2006-10-02  Bruno Haible  <bruno@clisp.org>
16868
16869         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
16870         to the AUTOMAKE_OPTIONS.
16871         Reported by Jim Meyering.
16872
16873 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
16874
16875         Work around bug in Solaris 10 /proc file system:
16876         /proc/self/fd/NNN/.. isn't the parent directory of
16877         the directory whose file descriptor is NNN.  This needs to
16878         be worked around at run time, not compile time, since a
16879         program might be built on Solaris 8, where things work, and
16880         run on Solaris 10.
16881         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
16882         to use the following interface instead:
16883         (OPENAT_BUFFER_SIZE): New macro.
16884         (openat_proc_name): New function.
16885         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
16886         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
16887         Likewise.
16888         * lib/openat-proc.c: New file.
16889         * modules/openat (Files): Add lib/openat-proc.c.
16890         (Depends-on): Add same-inode, stdbool.
16891         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
16892
16893 2006-09-29  Bruno Haible  <bruno@clisp.org>
16894
16895         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
16896         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
16897         argument. Set stdout_closed before testing for ferror, not after.
16898         (fwriteerror, fwriteerror_no_ebadf): New functions.
16899
16900 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16901
16902         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
16903
16904 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
16905
16906         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
16907         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
16908
16909 2006-09-28  Jim Meyering  <jim@meyering.net>
16910
16911         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
16912         Include <unistd.h>.
16913
16914 2006-09-28  Bruno Haible  <bruno@clisp.org>
16915
16916         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
16917         * modules/linkedhash-list (Depends-on): Likewise.
16918         * modules/rbtreehash-list (Depends-on): Likewise.
16919
16920 2006-09-28  Bruno Haible  <bruno@clisp.org>
16921
16922         * lib/strndup.h: Simplify the redefinition of strndup.
16923         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
16924         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
16925
16926 2006-09-28  Bruno Haible  <bruno@clisp.org>
16927
16928         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
16929         * lib/gl_linkedhash_list.c: Likewise.
16930         * lib/gl_rbtreehash_list.c: Likewise.
16931
16932 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
16933
16934         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
16935         getaddrinfo.
16936
16937         * lib/__fpending.h: Don't include <stdio_ext.h> unless
16938         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
16939         it causes <stdio_ext.h> to cause a compile-time error.
16940         Problem reported by Nelson H. F. Beebe.
16941         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
16942         of HAVE_DECL___PENDING.
16943
16944         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
16945         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
16946         declaration.
16947
16948 2006-09-27  Jim Meyering  <jim@meyering.net>
16949
16950         This file could end up with a definition for a function
16951         named __strndup, rather than rpl_strndup on a system with
16952         incomplete weak_alias support.
16953         * lib/strndup.c (strndup): Rename from __strndup.
16954         Remove #defines that used to map __strndup to strndup.
16955         Don't use K&R prototypes.
16956         Remove LIBC-related code, since this file is not sync'd with glibc.
16957         * lib/strndup.h: Revamp, accordingly.
16958         * m4/strndup.m4: Modernize.
16959
16960 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
16961
16962         * modules/savewd (Depends-on): Add 'raise'.
16963         * lib/savewd.c: Include <signal.h>, for 'raise'.
16964
16965 2006-09-26  Jim Meyering  <jim@meyering.net>
16966
16967         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
16968         when we detect Darwin 8.7.0's acl_get_file bug.
16969         Rearrange to perform the new (below) run-test while $LIBS
16970         contains any acl-related library.  Set USE_ACL at the end.
16971         (gl_ACL_GET_FILE): New function.
16972
16973 2006-09-26  Eric Blake  <ebb9@byu.net>
16974
16975         * lib/verror.c: Include <config.h> unconditionally.
16976
16977 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
16978
16979         * modules/clock-time (Maintainer): Add self.
16980         * modules/getlogin_r (Depends-on): Add extensions.
16981
16982 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16983
16984         * modules/clock-time: New module.
16985         * modules/nanosleep (Depends-on): Add clock-time.
16986         * modules/gethrxtime (Depends-on): Likewise.
16987         * modules/gettime (Depends-on): Likewise.
16988         * modules/settime (Depends-on): Likewise.
16989
16990         * modules/fts-lgpl: Depend on openat.
16991         * modules/mkancesdirs: Depend on savewd.
16992         * modules/mkdir-p: Likewise.
16993
16994 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16995
16996         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
16997
16998         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
16999         `gl_have_arbitrary_file_name_length_limit' to
17000         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
17001         actually works between configure runs.
17002
17003 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17004             Bruno Haible  <bruno@clisp.org>
17005
17006         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
17007
17008 2006-09-25  Jim Meyering  <jim@meyering.net>
17009
17010         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
17011         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
17012
17013 2006-09-25  Eric Blake  <ebb9@byu.net>
17014
17015         * gnulib-tool (func_import, func_create_testdir): Fix typos in
17016         exec's in 2006-09-18 patch when shuffling fds.
17017
17018 2006-09-25  Bruno Haible  <bruno@clisp.org>
17019
17020         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
17021         Reported by Jim Meyering.
17022
17023 2006-09-24  Jim Meyering  <jim@meyering.net>
17024
17025         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
17026         compare a pointer against a literal "0".  That caused failures with
17027         at least HP-UX's hpcc.
17028
17029 2006-09-22  Simon Josefsson  <jas@extundo.com>
17030
17031         * modules/gc-sha1:
17032         * modules/gc-md4:
17033         * modules/gc-hmac-sha1:
17034         * modules/gc-hmac-md5:
17035         * modules/gc-des:
17036         * modules/gc-arcfour: Distribute more files.
17037
17038 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17039
17040         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
17041         (gl_linked_iterator_from_to): Initialize struct completely.
17042         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
17043         (gl_tree_iterator_from_to): Likewise
17044         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
17045         * lib/gl_array_list.c [lint] (gl_array_iterator)
17046         (gl_array_iterator_from_to): Likewise.
17047         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
17048         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
17049         (gl_carray_iterator_from_to): Likewise.
17050
17051         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
17052         * lib/md4.c (md4_process_block): Remove unused variable.
17053         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
17054         parentheses for clarity.
17055
17056 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17057
17058         * modules/bison-i18n (Depends-on): Add gettext.
17059
17060 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17061
17062         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
17063         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17064         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
17065         also add missing comma that caused broken test.
17066         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
17067         stdlib.h, for `abort'.
17068         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
17069         variables.
17070         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
17071         include unistd.h if present, for `rmdir'.
17072         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
17073         variables.
17074         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
17075         in the process include standard headers for prototypes.
17076         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
17077         gets declared on GNU/Linux.
17078         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
17079         unistd.h, for `rmdir'.
17080         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
17081
17082         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
17083         always true.
17084         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
17085
17086         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
17087
17088 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17089
17090         * gnulib-tool (func_version): Create output all at once.  This
17091         may help avoid triggering unnecessary SIGPIPEs, and at any
17092         rate it doesn't hurt.
17093
17094 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17095             Bruno Haible  <bruno@clisp.org>
17096
17097         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
17098         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17099         * m4/signed.m4 (bh_C_SIGNED): Likewise.
17100
17101         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
17102         (gl_FUNC_VASPRINTF): Invoke it.
17103
17104 2006-09-22  Bruno Haible  <bruno@clisp.org>
17105
17106         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
17107         getloadavg.c as first argument.
17108
17109 2006-09-22  Bruno Haible  <bruno@clisp.org>
17110
17111         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
17112         at the beginning of the gl_INIT macro.
17113         * modules/getloadavg (configure.ac): Pass $gl_source_base to
17114         gl_GETLOADAVG.
17115
17116 2006-09-22  Bruno Haible  <bruno@clisp.org>
17117
17118         * gnulib-tool (func_create_megatestdir): Don't include the config-h
17119         module.
17120         Suggested by Ralf Wildenhues.
17121
17122 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17123
17124         Import this patch from libc:
17125
17126         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
17127
17128         * lib/regex_internal.c (re_string_reconstruct): Handle
17129         offset < pstr->valid_raw_len && pstr->offsets_needed case.
17130         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
17131         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
17132         re_string_context_at.
17133
17134         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
17135         now requires it.
17136         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
17137         gl_REGEX now does it for us.
17138         (gl_REGEX): Add test taken from
17139         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
17140
17141         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
17142         Check that large offsets work.  Modernize Autoconf usages.
17143         Prefer "yes" to mean a good thing rather than a bad.
17144         Don't put "#define mkstemp" in config.h, as this might interfere
17145         with standard system headers that "#define mkstemp mkstemp64".
17146
17147         * modules/mkstemp (Depends-on): Add extensions, so that
17148         mkstemp is visible on some platforms.
17149         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
17150         (Include): Change to "mkstemp.h" from <stdlib.h>.
17151         (Files): Add mkstemp.h.
17152
17153         * lib/mkstemp.h: New file, since some standard headers
17154         #define mkstemp.
17155         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
17156         Include "mkstemp.h".
17157         Make the _LIBC code resemble glibc original more,
17158         e.g., use K&R style.
17159         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
17160         (mkstemp): Remove, since mkstemp.h does this for us.
17161         * lib/stdlib--.h: Include mkstemp.h.
17162
17163         Import this patch from libc:
17164
17165         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
17166
17167         * lib/tempname.c (__gen_tempname): Change attempts_min
17168         into a macro.  Use preprocessor to decide how to initialize
17169         attempts [Coverity CID 67].
17170
17171 2006-09-20  Bruno Haible  <bruno@clisp.org>
17172
17173         * lib/mkdtemp.c: Import from libc.
17174         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
17175                 * sysdeps/posix/tempname.c (__gen_tempname): Change
17176                 attempts_min into a macro.  Use preprocessor to decide how to
17177                 initialize attempts [Coverity CID 67].
17178         2001-11-27  Paul Eggert  <eggert@twinsun.com>
17179                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
17180                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
17181
17182 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17183
17184         * gnulib-tool (func_exit): New function, to allow to pass the
17185         exit status portably through the trap.  Use everywhere.
17186         (--help, --version): Signal a write error.
17187         (trap): catch SIGPIPE, for write errors.
17188         Exit at the end of the trap, with the correct exit status.
17189
17190 2006-09-19  Karl Berry  <karl@gnu.org>
17191
17192         * doc/gnulib.texi: note about the license texinfo files.
17193
17194 2006-09-19  Eric Blake  <ebb9@byu.net>
17195
17196         * gnulib-tool: Avoid space-tab.
17197
17198 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17199
17200         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
17201         that prevented coreutils 6.1 from building.  Problem reported
17202         by Petter Reinholdtsen.
17203
17204 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17205
17206         * gnulib-tool (avoidlist): Fix typo that broke options like
17207         --avoid=lock that are used by coreutils bootstrap.
17208
17209 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
17210
17211         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
17212         more systematically.
17213
17214 2006-09-18  Jim Meyering  <jim@meyering.net>
17215
17216         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
17217
17218 2006-09-18  Bruno Haible  <bruno@clisp.org>
17219
17220         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
17221
17222 2006-09-18  Bruno Haible  <bruno@clisp.org>
17223
17224         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
17225         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
17226         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
17227         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
17228         * m4/gettext.m4: Require autoconf >= 2.52.
17229         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
17230         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
17231         of gl_cv_header_inttypes_h.
17232
17233 2006-09-18  Bruno Haible  <bruno@clisp.org>
17234
17235         * lib/javaversion.c: Include configmake.h.
17236
17237 2006-09-18  Bruno Haible  <bruno@clisp.org>
17238
17239         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
17240         avoid that the while loops be executed in a subshell.
17241
17242 2006-09-18  Bruno Haible  <bruno@clisp.org>
17243
17244         * MODULES.html.sh (func_module): Break long lines.
17245         Suggested by Bruce Korb <bkorb@gnu.org>.
17246
17247 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17248
17249         Speed up by a factor of 1.12.
17250         * gnulib-tool (nl): New variable.
17251         (func_import): Rewrite include directive extraction to only read each
17252         directive once.
17253
17254 2006-09-17  Bruno Haible  <bruno@clisp.org>
17255
17256         * modules/javaversion (Makefile.am): Remove DEFS setting.
17257         (Depends-on): Add configmake, for PKGDATADIR definition.
17258
17259 2006-09-17  Bruno Haible  <bruno@clisp.org>
17260
17261         * gnulib-tool (func_create_testdir): Rewrite all files at once.
17262
17263 2006-09-17  Bruno Haible  <bruno@clisp.org>
17264
17265         * gnulib-tool (func_append): New function, stolen from libtool.m4.
17266         (func_modules_transitive_closure, func_modules_add_dummy,
17267         func_modules_to_filelist, func_import, func_create_testdir,
17268         func_create_megatestdir, ...): Use it wherever possible.
17269         Suggested by Ralf Wildenhues.
17270
17271 2006-09-16  Karl Berry  <karl@gnu.org>
17272
17273         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
17274         to avoid sectioning errors.
17275         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
17276         [ifinfo]: blank line after @center-ed titles.
17277         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
17278         Spell FSF address consistently with others.
17279         (These changes approved by rms.)
17280
17281 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17282
17283         Speed up by a factor of 1.61.
17284         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
17285         already checked module names again.
17286
17287 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17288
17289         Speed up by a factor of 1.13.
17290         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
17291         for new_files, and the input to func_add_or_update.
17292
17293 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17294
17295         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
17296         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
17297
17298 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17299
17300         * modules/mkancesdirs (Depends-on): Add fcntl.
17301         * modules/savewd: New file.
17302         * MODULES.html.sh (File system functions): Add savewd.
17303
17304         * modules/configmake (Makefile.am): Add support for the
17305         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
17306
17307 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17308
17309         * m4/savewd.m4: New file.
17310
17311 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17312
17313         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
17314         (dirchownmod): New arg FD.  All callers changed.
17315         Use FD rather than opening the directory ourself, as opening is
17316         now the caller's responsibility.
17317         * lib/dirchownmod.h: Likewise.
17318         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
17319         hosts that require <sys/types.h> before <sys/stat.h>.  Include
17320         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
17321         (test_dir): Remove.
17322         (mkancesdirs): Return length of prefix of FILE that has already
17323         been made, or -2 if there is a child doing the work.  Redo
17324         algorithm so that it is O(N) rather than O(N**2).  Optimize away
17325         ".", and treat ".." specially since it might stray back into
17326         already-created areas.  Use a subprocess if necessary.  New arg
17327         WD; all users changed.  MAKE_DIR function should now return 1
17328         if it creates a directory that is not readable.  Return -2 if
17329         a child process is spun off.
17330         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
17331         Adjust signature to match code.
17332         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
17333         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
17334         all users changed.
17335         * lib/savewd.c, lib/savewd.h: New files.
17336
17337 2006-09-15  Jim Meyering  <jim@meyering.net>
17338
17339         * modules/rename-dest-slash: New module.
17340         * MODULES.html.sh (posix_compat): Add it here.
17341
17342         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
17343
17344 2006-09-15  Jim Meyering  <jim@meyering.net>
17345
17346         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
17347         file.
17348
17349         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
17350
17351 2006-09-15  Jim Meyering  <jim@meyering.net>
17352
17353         * lib/rename-dest-slash.c (has_trailing_slash): Use
17354         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
17355         (rpl_rename_dest_slash): Perform the cheaper trailing slash
17356         test before testing whether SRC is a directory.
17357         Suggestions from Bruno Haible.
17358
17359         Avoid a warning about an unused variable.
17360         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
17361         into the #ifdef block where it's used.
17362
17363         * lib/rename-dest-slash.c: New file.
17364
17365 2006-09-14  Bruno Haible  <bruno@clisp.org>
17366
17367         * lib/allocsa.c: Include <config.h> unconditionally.
17368         * lib/asnprintf.c: Likewise.
17369         * lib/asprintf.c: Likewise.
17370         * lib/c-strcasecmp.c: Likewise.
17371         * lib/c-strcasestr.c: Likewise.
17372         * lib/c-strncasecmp.c: Likewise.
17373         * lib/c-strstr.c: Likewise.
17374         * lib/classpath.c: Likewise.
17375         * lib/clean-temp.c: Likewise.
17376         * lib/concatpath.c: Likewise.
17377         * lib/copy-file.c: Likewise.
17378         * lib/csharpcomp.c: Likewise.
17379         * lib/csharpexec.c: Likewise.
17380         * lib/execute.c: Likewise.
17381         * lib/fatal-signal.c: Likewise.
17382         * lib/findprog.c: Likewise.
17383         * lib/fwriteerror.c: Likewise.
17384         * lib/gl_array_list.c: Likewise.
17385         * lib/gl_array_oset.c: Likewise.
17386         * lib/gl_avltree_list.c: Likewise.
17387         * lib/gl_avltree_oset.c: Likewise.
17388         * lib/gl_avltreehash_list.c: Likewise.
17389         * lib/gl_carray_list.c: Likewise.
17390         * lib/gl_linked_list.c: Likewise.
17391         * lib/gl_linkedhash_list.c: Likewise.
17392         * lib/gl_list.c: Likewise.
17393         * lib/gl_oset.c: Likewise.
17394         * lib/gl_rbtree_list.c: Likewise.
17395         * lib/gl_rbtree_oset.c: Likewise.
17396         * lib/gl_rbtreehash_list.c: Likewise.
17397         * lib/imaxabs.c: Likewise.
17398         * lib/imaxdiv.c: Likewise.
17399         * lib/javacomp.c: Likewise.
17400         * lib/javaexec.c: Likewise.
17401         * lib/javaversion.c: Likewise.
17402         * lib/linebreak.c: Likewise.
17403         * lib/localcharset.c: Likewise.
17404         * lib/lock.c: Likewise.
17405         * lib/mbchar.c: Likewise.
17406         * lib/mbswidth.c: Likewise.
17407         * lib/mkdtemp.c: Likewise.
17408         * lib/pipe.c: Likewise.
17409         * lib/printf-args.c: Likewise.
17410         * lib/printf-parse.c: Likewise.
17411         * lib/progname.c: Likewise.
17412         * lib/progreloc.c: Likewise.
17413         * lib/readlink.c: Likewise.
17414         * lib/sh-quote.c: Likewise.
17415         * lib/stpcpy.c: Likewise.
17416         * lib/stpncpy.c: Likewise.
17417         * lib/strcasecmp.c: Likewise.
17418         * lib/strcasestr.c: Likewise.
17419         * lib/strcspn.c: Likewise.
17420         * lib/striconv.c: Likewise.
17421         * lib/strncasecmp.c: Likewise.
17422         * lib/strnlen1.c: Likewise.
17423         * lib/strstr.c: Likewise.
17424         * lib/strtok_r.c: Likewise.
17425         * lib/tls.c: Likewise.
17426         * lib/tmpdir.c: Likewise.
17427         * lib/unicodeio.c: Likewise.
17428         * lib/unsetenv.c: Likewise.
17429         * lib/vasnprintf.c: Likewise.
17430         * lib/vasprintf.c: Likewise.
17431         * lib/wait-process.c: Likewise.
17432         * lib/xallocsa.c: Likewise.
17433         * lib/xsetenv.c: Likewise.
17434         * lib/xstriconv.c: Likewise.
17435
17436 2006-09-13  Simon Josefsson  <jas@extundo.com>
17437
17438         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
17439         that internally, suggested by Ralf Wildenhues
17440         <Ralf.Wildenhues@gmx.de>.
17441
17442 2006-09-13  Simon Josefsson  <jas@extundo.com>
17443
17444         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
17445         @LIBOBJS@.
17446         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17447
17448 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17449
17450         * lib/_fpending.c: Include <config.h> unconditionally, since we no
17451         longer worry about uses that don't define HAVE_CONFIG_H.
17452         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
17453         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
17454         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
17455         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
17456         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
17457         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
17458         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
17459         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
17460         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
17461         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
17462         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
17463         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
17464         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
17465         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
17466         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
17467         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
17468         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
17469         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
17470         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
17471         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
17472         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
17473         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
17474         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
17475         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
17476         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
17477         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
17478         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
17479         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
17480         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
17481         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
17482         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
17483         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
17484         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
17485         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
17486         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
17487         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
17488         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
17489         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
17490         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
17491         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
17492         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
17493         Likewise.
17494
17495 2006-09-13  Eric Blake  <ebb9@byu.net>
17496
17497         * lib/getopt.c: Fix typo in last commit.
17498
17499 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17500
17501         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
17502         dgettext.
17503
17504 2006-09-12  Jim Meyering  <jim@meyering.net>
17505
17506         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
17507         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
17508         Reported by Nelson H. F. Beebe.
17509
17510 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
17511
17512         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
17513         program_invocation_name and program_invocation_short_name are
17514         initialized.
17515         * lib/argp-namefrob.h: Move declarations of program_invocation_name
17516         and program_invocation_short_name to argp.h, so they are visible
17517         to user programs.
17518         * lib/argp.h: Likewise
17519
17520 2006-09-10  Bruno Haible  <bruno@clisp.org>
17521
17522         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
17523         m4/inttypes_h.m4, m4/uintmax_t.m4.
17524
17525 2006-09-10  Bruno Haible  <bruno@clisp.org>
17526
17527         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
17528         gl_AC_TYPE_UINTMAX_T.
17529
17530 2006-09-10  Bruno Haible  <bruno@clisp.org>
17531
17532         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
17533
17534 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
17535
17536         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
17537         convention.  Text proposed by Bruno Haible.
17538         (struct argp_option): Document the use of N_() wrappers.
17539
17540         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
17541         '\v', and translate the two parts separately, instead of feeding
17542         the whole string to gettext.  This allows to exclude
17543         '\v' from the strings visible to the translator by writing doc
17544         strings as N_("..") "\v" N_("..").
17545
17546 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
17547
17548         * config/srclist.txt: Undo latest change; the bug was fixed.
17549
17550 2006-09-09  Bruno Haible  <bruno@clisp.org>
17551
17552         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
17553         assignments if building a library without libtool.
17554         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
17555         in func_emit_lib_Makefile_am.
17556         (func_import): When building a static library libfoo.a, arrange to
17557         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
17558         (func_create_testdir): Likewise.
17559         * modules/gc (configure.ac, Makefile.am): If building statically,
17560         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
17561         * modules/iconvme (configure.ac, Makefile.am): Likewise.
17562         * modules/striconv (configure.ac, Makefile.am): Likewise.
17563         Based on a suggestion by Ralf Wildenhues.
17564
17565 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17566
17567         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
17568         Check for unistd.h too, since Autoconf doesn't assume POSIX.
17569         Also:
17570
17571         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17572         Add year_2050_test to catch glibc bug 2821
17573         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
17574
17575         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17576         Prefer #ifdef to #if.
17577
17578         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
17579         Return from 'main' instead of calling 'exit'.
17580
17581 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17582
17583         * lib/mktime.c (guess_time_tm): Fix bug where mktime
17584         returned the maximum time_t value rather than (time_t) -1.
17585         Problem originally reported by William Bardwell
17586         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
17587
17588         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
17589         Moved to here ...
17590         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
17591         ... from here.
17592
17593 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17594
17595         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
17596         2821 is fixed.
17597
17598 2006-09-08  Jim Meyering  <jim@meyering.net>
17599
17600         Don't make generated files read-only.  That would bother too many
17601         people.  However, do retain the ability to work when targets are
17602         read-only: remove the destination and temporary files before writing
17603         them (when generated via sed or echo), or by using the -f option for
17604         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
17605         * modules/alloca-opt, modules/argz, modules/arpa_inet:
17606         * modules/byteswap, modules/configmake, modules/fcntl:
17607         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
17608         * modules/localcharset, modules/netinet_in, modules/poll:
17609         * modules/stdbool, modules/stdint, modules/sys_select:
17610         * modules/sys_socket, modules/sys_stat, modules/sysexits:
17611
17612 2006-09-08  Jim Meyering  <jim@meyering.net>
17613
17614         Avoid new build failure on FreeBSD 6.0.
17615         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
17616         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
17617         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
17618
17619 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17620
17621         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
17622
17623 2006-09-07  Jim Meyering  <jim@meyering.net>
17624
17625         Fix global typo in last change: use chmod u-w, not chmod u-x.
17626         Spotted by Paul Eggert and Bruce Korb.
17627         * modules/alloca-opt, modules/argz, modules/arpa_inet:
17628         * modules/byteswap, modules/configmake, modules/fcntl:
17629         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
17630         * modules/localcharset, modules/netinet_in, modules/poll:
17631         * modules/stdbool, modules/stdint, modules/sys_select:
17632         * modules/sys_socket, modules/sys_stat, modules/sysexits:
17633
17634 2006-09-06  Jim Meyering  <jim@meyering.net>
17635
17636         Make generated files be read-only.
17637         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
17638         Ensure that each generated file is now read-only.
17639         * modules/argz: Likewise.
17640         * modules/arpa_inet: Likewise.
17641         * modules/byteswap: Likewise.
17642         * modules/configmake: Likewise.
17643         * modules/fcntl: Likewise.
17644         * modules/fnmatch: Likewise.
17645         * modules/getopt: Likewise.
17646         * modules/glob: Likewise.
17647         * modules/inttypes: Likewise.
17648         * modules/netinet_in: Likewise.
17649         * modules/poll: Likewise.
17650         * modules/stdbool: Likewise.
17651         * modules/stdint: Likewise.
17652         * modules/sys_select: Likewise.
17653         * modules/sys_socket: Likewise.
17654         * modules/sys_stat: Likewise.
17655         * modules/sysexits: Likewise.
17656         * modules/localcharset: Same as above, but continue using temporary
17657         file named "t-$@" (why different?) rather than the "$@-t" used
17658         everywhere else.
17659
17660         * modules/sysexits (Makefile.am): Replace literal occurrences
17661         of "sysexit.h" more readable, and more consistent, "$@".
17662
17663 2006-09-06  Bruno Haible  <bruno@clisp.org>
17664
17665         * modules/striconv: New file.
17666         * modules/xstriconv: New file.
17667         * MODULES.html.sh (Internationalization functions): Add striconv,
17668         xstriconv.
17669
17670 2006-09-06  Bruno Haible  <bruno@clisp.org>
17671
17672         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
17673         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
17674         not using libtool correctly.
17675
17676 2006-09-06  Bruno Haible  <bruno@clisp.org>
17677
17678         * lib/striconv.h: New file.
17679         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
17680         iconvstring.c.
17681         * lib/xstriconv.h: New file.
17682         * lib/xstriconv.c: New file.
17683
17684 2006-09-06  Bruno Haible  <bruno@clisp.org>
17685
17686         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
17687         lib_..._LDFLAGS.
17688
17689 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17690
17691         * lib/argz_.h: Sync from Libtool.
17692
17693         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
17694                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17695
17696         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
17697
17698 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
17699
17700         * modules/trim: New file.
17701
17702 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
17703
17704         * lib/trim.h: New file.
17705         * lib/trim.c: New file.
17706
17707 2006-09-05  Bruno Haible  <bruno@clisp.org>
17708
17709         * MODULES.html.sh (String handling): Add trim.
17710
17711 2006-09-04  Karl Berry  <karl@gnu.org>
17712
17713         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
17714         until next release.
17715
17716 2006-09-03  Bruno Haible  <bruno@clisp.org>
17717
17718         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
17719         correctly.
17720
17721 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17722
17723         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
17724         not gl_GETLOADAVG.  Omit unneeded semicolons.
17725         Problems reported by Ralf Wildenhues in
17726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
17727         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
17728         at the end, which is the usual gnulib style.
17729
17730         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
17731         of doing all the work ourselves.
17732         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
17733         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
17734
17735 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17736
17737         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
17738         Problem reported by Ralf Wildenhues in
17739         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
17740
17741         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
17742         HAVE_STRUCT_STATFS_F_FSTYPENAME.
17743
17744 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17745
17746         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
17747         yesterday's patch by changing test -n to test -z.
17748
17749 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17750
17751         * modules/getloadavg (Files): Add m4/getloadavg.m4.
17752         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
17753         the former is now obsolescent.
17754
17755         * modules/chdir-long (Depends-on): Add fcntl.
17756
17757 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17758
17759         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
17760         obsolescent, and programs should use gnulib instead.
17761         * m4/getloadavg.m4: New file, with contents taken from Autoconf
17762         but with prefixes changed.
17763
17764 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17765
17766         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
17767         or stdbool.h, because they might not exist while configuring.
17768
17769         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
17770         Don't include unistd.h or limits.h; not needed, since chdir-long.h
17771         does that for us.
17772         (O_DIRECTORY): Remove.
17773
17774 2006-08-31  Eric Blake  <ebb9@byu.net>
17775
17776         * gnulib-tool: Don't let emacs change spaces to TAB.
17777
17778 2006-08-31  Bruno Haible  <bruno@clisp.org>
17779
17780         * gnulib-tool: When calling func_import more than once, do it in a
17781         subshell.
17782         Reported by Eric Blake <ebb9@byu.net>.
17783
17784 2006-08-31  Bruno Haible  <bruno@clisp.org>
17785
17786         * gnulib-tool (nl): Remove variable.
17787         (sed_transform_lib_file): Use more robust test for config-h module.
17788         (func_import): Fix typo in 2006-08-25 patch.
17789
17790 2006-08-31  Bruno Haible  <bruno@clisp.org>
17791
17792         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
17793         specified, augment Makefile.am variables instead of assigning them.
17794
17795 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
17796
17797         Work around a bug in both the Linux and SunOS 64-bit kernels:
17798         nanosleep mishandles sleeps for longer than 2**31 seconds.
17799         Problem reported by Frank v Waveren in
17800         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
17801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
17802         Check for nanosleep bug.
17803         (LIB_NANOSLEEP): Append clock_gettime library if needed.
17804
17805 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
17806
17807         Work around a bug in both the Linux and SunOS 64-bit kernels:
17808         nanosleep mishandles sleeps for longer than 2**31 seconds.
17809         Problem reported by Frank v Waveren in
17810         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
17811         * lib/nanosleep.c (BILLION): New constant.
17812         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
17813         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
17814         implementation.
17815
17816 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
17817
17818         * modules/nanosleep (Depends-on): Add gettime.
17819
17820 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
17821         and Simon Josefsson  <jas@extundo.com>
17822         and Oskar Liljeblad  <oskar@osk.mine.nu>
17823
17824         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
17825         * gnulib-tool (func_import): New license type 'unmodifiable license
17826         text'.
17827         * modules/fdl: Use it.  Longer description.
17828         * module/gpl, module/lgpl: New files.
17829
17830 2006-08-30  Jim Meyering  <jim@meyering.net>
17831
17832         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
17833         shadowing the parameter.
17834
17835 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17836
17837         Sync from Libtool:
17838
17839         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17840
17841         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
17842         sharing with gnulib.  Report by Eric Blake.
17843
17844 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17845
17846         * modules/isapipe: New file.
17847         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
17848
17849 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17850
17851         * modules/configmake (Makefile.am): Add a comment, and omit
17852         the CONFIGMAKE_ prefix from generated macro names.  Suggested
17853         by Bruno Haible.
17854
17855 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17856
17857         * m4/isapipe.m4: New file.
17858
17859 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17860
17861         * lib/isapipe.c, lib/isapipe.h: New files.
17862
17863 2006-08-29  Jim Meyering  <jim@meyering.net>
17864
17865         * modules/configmake (Makefile.am): Make configmake.h depend on
17866         Makefile.  Otherwise, a stale configmake.h could hang around.
17867
17868 2006-08-29  Eric Blake  <ebb9@byu.net>
17869
17870         * lib/error.c (error_at_line, print_errno_message): Match libc, after
17871         resolution of upstream bug 3044.
17872
17873 2006-08-29  Bruno Haible  <bruno@clisp.org>
17874
17875         * modules/localcharset (Depends-on): Add configmake.
17876         (Makefile.am): Remove setting of LIBDIR through DEFS.
17877
17878 2006-08-29  Bruno Haible  <bruno@clisp.org>
17879
17880         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
17881         defined.
17882
17883 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
17884
17885         * modules/fcntl: New file.
17886         * modules/chdir-safer (Depends-on): Add fcntl.
17887         * modules/fts: Likewise.
17888         * modules/mkdir-p: Likewise.
17889
17890         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
17891         This undoes the most recent change, since we're now addressing the
17892         problem in a different way.
17893
17894         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
17895         into output, since the output might be called Makefile.am even
17896         if $makefile_name is something different.
17897         (func_import): Use $makefile_am rather than
17898         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
17899         empty.
17900
17901         * modules/inttypes (Files): Add m4/inttypes-h.m4.
17902
17903 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
17904
17905         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
17906         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
17907         recent change to stdint.m4, since we're now addressing the problem in a
17908         different way.
17909
17910 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
17911
17912         * m4/fcntl_h.m4: New file.
17913
17914 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
17915
17916         * lib/fcntl_.h: New file.
17917         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
17918         the fcntl module.
17919         * lib/dirchownmod.c: Likewise.
17920         * lib/fts.c: Likewise.
17921
17922         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
17923         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
17924         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
17925         just before including <inttypes.h>, to avoid circular inclusion.
17926
17927 2006-08-28  Jim Meyering  <jim@meyering.net>
17928
17929         * doc/visibility.texi: Actually read and correct the grammar of the
17930         sentence affected by yesterday's change.
17931
17932 2006-08-28  Eric Blake  <ebb9@byu.net>
17933
17934         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
17935         needs wrapper.
17936
17937 2006-08-28  Eric Blake  <ebb9@byu.net>
17938
17939         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
17940
17941 2006-08-28  Eric Blake  <ebb9@byu.net>
17942
17943         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
17944
17945 2006-08-28  Bruno Haible  <bruno@clisp.org>
17946
17947         * modules/c-strstr: New file, from GNU gettext.
17948         * MODULES.html.sh (String handling): Add c-strstr.
17949
17950 2006-08-28  Bruno Haible  <bruno@clisp.org>
17951
17952         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
17953         macros.
17954         Reported by Eric Blake.
17955
17956 2006-08-28  Bruno Haible  <bruno@clisp.org>
17957
17958         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
17959         (VASNPRINTF): Return a string of length > INT_MAX without failing.
17960         * lib/vasprintf.c: Include errno.h, limits.h.
17961         (EOVERFLOW): New fallback definition.
17962         (vasprintf): Test here whether the string length is > INT_MAX.
17963         * lib/vsnprintf.c: Include errno.h, limits.h.
17964         (EOVERFLOW): New fallback definition.
17965         (vsnprintf): Fix bug when generated string was too long for the buffer.
17966         Test here whether the string length is > INT_MAX.
17967
17968 2006-08-28  Bruno Haible  <bruno@clisp.org>
17969
17970         * lib/inttypes_.h (SCNX*): Remove definitions.
17971         Reported by Eric Blake.
17972
17973 2006-08-28  Bruno Haible  <bruno@clisp.org>
17974
17975         * lib/c-strstr.h: New file, from GNU gettext.
17976         * lib/c-strstr.c: New file, from GNU gettext.
17977
17978 2006-08-28  Bruno Haible  <bruno@clisp.org>
17979
17980         * gnulib-tool: Reorder some statements.
17981
17982 2006-08-28  Bruno Haible  <bruno@clisp.org>
17983
17984         * gnulib-tool: New option --makefile-name.
17985         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
17986         $makefile_name.
17987         (func_import): Write $makefile_name to the cache file, and read it from
17988         there unless explicitly specified. Use $makefile_name as file name
17989         instead of Makefile.am. Adjust the recommendations accordingly.
17990
17991 2006-08-28  Bruno Haible  <bruno@clisp.org>
17992
17993         * gnulib-tool (func_verify_module): Check against misapplying patch.
17994
17995 2006-08-28  Bruno Haible  <bruno@clisp.org>
17996
17997         * gnulib-tool (func_relativize, func_relconcat): New functions.
17998         Give an error if --local-dir is given with --update.
17999         Remove trailing slashes from $local_gnulib_dir.
18000         (func_import): Store the relativized $local_gnulib_dir in
18001         gnulib-cache.m4, and read it from there if not specified explicitly.
18002
18003 2006-08-28  Bruno Haible  <bruno@clisp.org>
18004
18005         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
18006         is the current directory. Respect also $local_gnulib_dir.
18007
18008 2006-08-28  Bruno Haible  <bruno@clisp.org>
18009             Simon Josefsson  <jas@extundo.com>
18010
18011         BeOS portability.
18012         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
18013
18014 2006-08-27  Jim Meyering  <jim@meyering.net>
18015
18016         * doc/visibility.texi: Remove duplicate word: "pointer".
18017
18018 2006-08-26  Bruno Haible  <bruno@clisp.org>
18019
18020         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
18021         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
18022         (Makefile.am): Create inttypes.h from inttypes_.h.
18023         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
18024
18025         * modules/imaxabs: New file.
18026
18027         * modules/imaxdiv: New file.
18028
18029 2006-08-26  Bruno Haible  <bruno@clisp.org>
18030
18031         * m4/inttypes.m4: New file.
18032         * m4/_inttypes_h.m4: Remove file.
18033         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
18034         PRI_MACROS_BROKEN.
18035         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
18036
18037         * m4/imaxabs.m4: New file.
18038
18039         * m4/imaxdiv.m4: New file.
18040
18041 2006-08-26  Bruno Haible  <bruno@clisp.org>
18042
18043         * lib/inttypes_.h: New file.
18044         * lib/inttypes.h: Remove file.
18045         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
18046
18047         * lib/imaxabs.c: New file.
18048
18049         * lib/imaxdiv.c: New file.
18050
18051 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18052
18053         New config-h module, so that "make" output needn't be cluttered
18054         by -DHAVE_CONFIG_H.
18055         * MODULES.html.sh (Support for building libraries and executables):
18056         Add config-h.
18057         * modules/config-h: New file.
18058         * gnulib-tool (nl, sed_transform_lib_file): New vars.
18059         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
18060         the config-h module is used.
18061
18062         New configmake module, so that "make" output needn't be cluttered
18063         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
18064         * MODULES.html.sh (Support for building libraries and executables):
18065         Add configmake.
18066         * modules/configmake: New file.
18067
18068 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18069
18070         * m4/config-h.m4: New file.
18071
18072 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18073
18074         * config/srclist.txt: Add elisp-comp.
18075
18076 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18077
18078         * MODULES.html.sh (Support for building libraries and executables):
18079         Add elisp-comp.
18080         * build-aux/elisp-comp: New file.
18081         * modules/elisp-comp: New file.
18082
18083 2006-08-24  Bruno Haible  <bruno@clisp.org>
18084
18085         * gnulib-tool (func_create_testdir): Use non-default values of
18086         sourcebase and m4base.
18087
18088 2006-08-24  Bruno Haible  <bruno@clisp.org>
18089
18090         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
18091         HTML structure.
18092
18093 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18094
18095         * modules/openat (Depends-on): Add lchown.
18096
18097 2006-08-23  Bruno Haible  <bruno@clisp.org>
18098
18099         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
18100         of gl_LOCK_EARLY instead of gl_LOCK.
18101
18102 2006-08-23  Bruno Haible  <bruno@clisp.org>
18103
18104         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
18105         on OSF/1 to no.
18106         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
18107
18108 2006-08-23  Bruno Haible  <bruno@clisp.org>
18109
18110         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
18111         as unusable.
18112
18113         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
18114         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
18115         (gl_LOCK): New macro.
18116
18117 2006-08-22  Simon Josefsson  <jas@extundo.com>
18118
18119         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
18120         to md5 module.
18121
18122 2006-08-22  Simon Josefsson  <jas@extundo.com>
18123
18124         * MODULES.html.sh: Add "Support for maintaining and release
18125         projects".
18126
18127         * build-aux/gnupload: New file, from coreutils.
18128
18129 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18130
18131         Avoid the need for AC_LIBSOURCES in m4 macros.
18132         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
18133         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
18134         * modules/check-version (EXTRA_DIST): Add check-version.h.
18135         * modules/crc (EXTRA_DIST): Add crc.h.
18136         * modules/des (EXTRA_DIST): Add des.h.
18137         * modules/gc (EXTRA_DIST): Add gc.h.
18138         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
18139         * modules/getline (EXTRA_DIST): Add getline.h.
18140         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
18141         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
18142         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
18143         * modules/md2 (EXTRA_DIST): Add md2.h.
18144         * modules/md4 (EXTRA_DIST): Add md4.h.
18145         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
18146         * modules/read-file (EXTRA_DIST): Add read-file.h.
18147         * modules/readline (EXTRA_DIST): Add readline.h.
18148         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
18149         rijndael-api-fst.h.
18150
18151 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18152
18153         * m4/rijndael.m4 (gl_ARCFOUR):
18154         * m4/arctwo.m4 (gl_ARCTWO):
18155         * m4/check-version.m4 (gl_CHECK_VERSION):
18156         * m4/crc.m4 (gl_CRC):
18157         * m4/des.m4 (gl_DES):
18158         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
18159         * m4/gc.m4 (gl_GC):
18160         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
18161         * m4/getline.m4 (gl_FUNC_GETLINE):
18162         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
18163         * m4/hmac-md5.m4 (gl_HMAC_MD5):
18164         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
18165         * m4/md2.m4 (gl_MD2):
18166         * m4/md4.m4 (gl_MD4):
18167         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
18168         * m4/read-file.m4 (gl_FUNC_READ_FILE):
18169         * m4/readline.m4 (gl_FUNC_READLINE):
18170         * m4/rijndael.m4 (gl_RIJNDAEL):
18171         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
18172         to get the necessary .h files and whatnot.
18173
18174 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18175
18176         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
18177         gnulib rather than the other way around.
18178         * config/srclistvars.sh (COREUTILS): Remove.
18179
18180 2006-08-22  Jim Meyering  <jim@meyering.net>
18181
18182         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
18183
18184         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
18185
18186 2006-08-22  Eric Blake  <ebb9@byu.net>
18187
18188         * modules/regexprops-generic: New file.
18189         * MODULES.html.sh (Support for building documentation): List it.
18190
18191 2006-08-22  Eric Blake  <ebb9@byu.net>
18192
18193         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
18194         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18195         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
18196         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18197
18198 2006-08-22  Bruno Haible  <bruno@clisp.org>
18199
18200         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
18201         and lib_LTLIBRARIES like the other lib_* variables.
18202
18203 2006-08-22  Bruno Haible  <bruno@clisp.org>
18204
18205         * build-aux/x-to-1.in: New file, from GNU gettext.
18206
18207 2006-08-22  Bruno Haible  <bruno@clisp.org>
18208
18209         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
18210         <utmpx.h> exists.
18211
18212 2006-08-22  Bruno Haible  <bruno@clisp.org>
18213
18214         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
18215         <utmpx.h> exists.
18216
18217 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18218
18219         BeOS portability.
18220         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
18221         exist.
18222         Problem reported by Bruno Haible.
18223
18224 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18225
18226         Avoid the need for AC_LIBSOURCES in m4 macros.
18227         * modules/acl (EXTRA_DIST): Add acl.h.
18228         * modules/argmatch (Files): Add m4/argmatch.m4.
18229         (configure.ac): Add gl_ARGMATCH.
18230         (EXTRA_DIST): Renamed from lib_SOURCES, for
18231         consistency with the other modules.  Remove argmatch.c.
18232         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
18233         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
18234         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
18235         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
18236         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
18237         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
18238         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
18239         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
18240         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
18241         * modules/closeout (EXTRA_DIST): Add closeout.h.
18242         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
18243         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
18244         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
18245         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
18246         dirname.h; remove basename.c and stripslash.c.
18247         * modules/exclude (EXTRA_DIST): Add exclude.h.
18248         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
18249         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
18250         * modules/file-type (EXTRA_DIST): Add file-type.h.
18251         * modules/filemode (EXTRA_DIST): Add filemode.h.
18252         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
18253         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18254         * modules/fpending (EXTRA_DIST): Add __fpending.h.
18255         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
18256         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
18257         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
18258         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
18259         * modules/getdate (EXTRA_DIST): Add getdate.c.
18260         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
18261         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
18262         * modules/getpass (EXTRA_DIST): Add getpass.h.
18263         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
18264         * modules/group-member (EXTRA_DIST): Add group-member.h.
18265         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
18266         * modules/hash (EXTRA_DIST): Add hash.h.
18267         * modules/human (EXTRA_DIST): Add human.h.
18268         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
18269         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
18270         * modules/lchown (EXTRA_DIST): Add lchown.h.
18271         * modules/long-options (EXTRA_DIST): Add long-options.h.
18272         * modules/lstat (EXTRA_DIST): Add lstat.h.
18273         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
18274         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
18275         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
18276         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
18277         * modules/memxor (EXTRA_DIST): Add memxor.h.
18278         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
18279         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
18280         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
18281         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
18282         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
18283         * modules/physmem (EXTRA_DIST): Add physmem.h.
18284         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
18285         * modules/posixver (EXTRA_DIST): Add posixver.h.
18286         * modules/quote (EXTRA_DIST): Add quote.h.
18287         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
18288         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
18289         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
18290         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
18291         regex_internal.h regexec.c.
18292         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
18293         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
18294         * modules/same (EXTRA_DIST): Add same.h.
18295         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
18296         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
18297         * modules/savedir (EXTRA_DIST): Add savedir.h.
18298         * modules/sha1 (EXTRA_DIST): Add sha1.h.
18299         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
18300         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
18301         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
18302         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
18303         * modules/strdup (EXTRA_DIST): Add strdup.h.
18304         * modules/strftime (EXTRA_DIST): Add strftime.h.
18305         * modules/strndup (EXTRA_DIST): Add strndup.h.
18306         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
18307         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
18308         * modules/time_r (EXTRA_DIST): Add time_r.h.
18309         * modules/timespec (EXTRA_DIST): Add timespec.h.
18310         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18311         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
18312         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
18313         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
18314         * modules/userspec (EXTRA_DIST): Add userspec.h.
18315         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
18316         * modules/utimens (EXTRA_DIST): Add utimens.h.
18317         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
18318         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
18319         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
18320         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
18321         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
18322         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
18323         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
18324         * modules/yesno (EXTRA_DIST): Add yesno.h.
18325
18326 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18327
18328         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
18329
18330         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
18331         * m4/dev-ino.m4, same-inode.m4: Remove.
18332
18333         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
18334         * m4/acl.m4 (AC_FUNC_ACL):
18335         * m4/backupfile.m4 (gl_BACKUPFILE):
18336         * m4/c-strtod.m4 (gl_C99_STRTOLD):
18337         * m4/canon-host.m4 (gl_CANON_HOST):
18338         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
18339         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
18340         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
18341         * m4/cloexec.m4 (gl_CLOEXEC):
18342         * m4/close-stream.m4 (gl_CLOSE_STREAM):
18343         * m4/closeout.m4 (gl_CLOSEOUT):
18344         * m4/dirfd.m4 (gl_FUNC_DIRFD):
18345         * m4/dirname.m4 (gl_DIRNAME):
18346         * m4/exclude.m4 (gl_EXCLUDE):
18347         * m4/exitfail.m4 (gl_EXITFAIL):
18348         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
18349         * m4/file-type.m4 (gl_FILE_TYPE):
18350         * m4/filemode.m4 (gl_FILEMODE):
18351         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
18352         * m4/fpending.m4 (gl_FUNC_FPENDING):
18353         * m4/fprintftime.m4 (gl_FPRINTFTIME):
18354         * m4/fts.m4 (gl_FUNC_FTS):
18355         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
18356         * m4/getdate.m4 (gl_GETDATE):
18357         * m4/gethrxtime.m4 (gl_GETHRXTIME):
18358         * m4/getpagesize.m4 (gl_GETPAGESIZE):
18359         * m4/getpass.m4 (gl_FUNC_GETPASS):
18360         * m4/gettime.m4 (gl_GETTIME):
18361         * m4/getugroups.m4 (gl_GETUGROUPS):
18362         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
18363         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
18364         * m4/hard-locale.m4 (gl_HARD_LOCALE):
18365         * m4/hash.m4 (gl_HASH):
18366         * m4/idcache.m4 (gl_IDCACHE):
18367         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
18368         * m4/lchown.m4 (gl_FUNC_LCHOWN):
18369         * m4/long-options.m4 (gl_LONG_OPTIONS):
18370         * m4/lstat.m4 (gl_FUNC_LSTAT):
18371         * m4/md5.m4 (gl_MD5):
18372         * m4/memcasecmp.m4 (gl_MEMCASECMP):
18373         * m4/memcoll.m4 (gl_MEMCOLL):
18374         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
18375         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
18376         * m4/memxor.m4 (gl_MEMXOR):
18377         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
18378         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
18379         * m4/modechange.m4 (gl_MODECHANGE):
18380         * m4/mountlist.m4 (gl_MOUNTLIST):
18381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18382         * m4/openat.m4 (gl_FUNC_OPENAT):
18383         * m4/pathmax.m4 (gl_PATHMAX):
18384         * m4/physmem.m4 (gl_PHYSMEM):
18385         * m4/posixtm.m4 (gl_POSIXTM):
18386         * m4/posixver.m4 (gl_POSIXVER):
18387         * m4/quote.m4 (gl_QUOTE):
18388         * m4/quotearg.m4 (gl_QUOTEARG):
18389         * m4/readtokens.m4 (gl_READTOKENS):
18390         * m4/readutmp.m4 (gl_READUTMP):
18391         * m4/regex.m4 (gl_REGEX):
18392         * m4/safe-read.m4 (gl_SAFE_READ):
18393         * m4/safe-write.m4 (gl_SAFE_WRITE):
18394         * m4/same.m4 (gl_SAME):
18395         * m4/save-cwd.m4 (gl_SAVE_CWD):
18396         * m4/savedir.m4 (gl_SAVEDIR):
18397         * m4/settime.m4 (gl_SETTIME):
18398         * m4/sha1.m4 (gl_SHA1):
18399         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
18400         * m4/stat-macros.m4 (gl_STAT_MACROS):
18401         * m4/stat-time.m4 (gl_STAT_TIME):
18402         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
18403         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
18404         * m4/strdup.m4 (gl_FUNC_STRDUP):
18405         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
18406         * m4/strndup.m4 (gl_FUNC_STRNDUP):
18407         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
18408         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
18409         * m4/time_r.m4 (gl_TIME_R):
18410         * m4/timespec.m4 (gl_TIMESPEC):
18411         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
18412         * m4/unlinkdir.m4 (gl_UNLINKDIR):
18413         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
18414         * m4/userspec.m4 (gl_USERSPEC):
18415         * m4/utimecmp.m4 (gl_UTIMECMP):
18416         * m4/utimens.m4 (gl_UTIMENS):
18417         * m4/xalloc.m4 (gl_XALLOC):
18418         * m4/xgetcwd.m4 (gl_XGETCWD):
18419         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
18420         * m4/xreadlink.m4 (gl_XREADLINK):
18421         * m4/xstrtod.m4 (gl_XSTRTOD):
18422         * m4/yesno.m4 (gl_YESNO):
18423         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
18424         to get the necessary .h files and whatnot.
18425
18426 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
18427             Bruno Haible  <bruno@clisp.org>
18428
18429         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
18430         /bin/sh understanding of '!' conditional negation.
18431
18432 2006-08-21  Jim Meyering  <jim@meyering.net>
18433
18434         * modules/openat (Depends-on): Really alphabetize.
18435
18436         * modules/acl (Depends-on): Add error and quote.
18437
18438         * check-module (find_included_lib_files): Add at-func.c to the
18439         ok-to-include-more-than-once white list.
18440
18441         * modules/openat (Depends-on): Add lstat.  Alphabetize.
18442
18443 2006-08-21  Bruno Haible  <bruno@clisp.org>
18444
18445         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18446         Emit a pkgdata_DATA variable only if some snippets add contents to it.
18447         Reported by Martin Lambers <marlam@marlam.de>.
18448
18449 2006-08-21  Bruno Haible  <bruno@clisp.org>
18450
18451         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
18452         specify an installation location, don't emit a noinst_LIBRARIES or
18453         noinst_LTLIBRARIES assignment.
18454
18455 2006-08-21  Bruno Haible  <bruno@clisp.org>
18456
18457         BeOS portability.
18458         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
18459         BeOS has mbrtowc() but no <wctype.h>.
18460
18461 2006-08-21  Bruno Haible  <bruno@clisp.org>
18462
18463         BeOS portability.
18464         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
18465         exist.
18466
18467 2006-08-21  Bruno Haible  <bruno@clisp.org>
18468
18469         BeOS portability.
18470         * lib/mbchar.h: Include <wctype.h> only if it exists.
18471
18472 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18473
18474         Remove files that are no longer needed by their respective modules.
18475         * m4/obstack.m4: Remove.
18476         * m4/strerror_r.m4: Remove.
18477         * m4/uint32_t.m4: Remove.
18478         * m4/uintptr_t.m4: Remove.
18479         * m4/ullong_max.m4: Remove.
18480         * m4/xstrtoimax.m4: Remove.
18481         * m4/xstrtoumax.m4: Remove.
18482
18483         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
18484         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
18485         dependencies now capture this.
18486
18487         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
18488         Do not use AC_LIBSOURCES, since gnulib modules now do this.
18489         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
18490         * m4/human.m4 (gl_HUMAN): Likewise.
18491         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
18492         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
18493
18494         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
18495
18496         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
18497         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
18498         stdint.
18499         * m4/human.m4 (gl_HUMAN): Likewise.
18500         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
18501         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
18502         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
18503         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
18504         * m4/xstrtol (gl_XSTRTOL): Likewise.
18505
18506         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
18507         AC_TYPE_LONG_LONG_INT.
18508         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
18509         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
18510         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
18511         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
18512
18513         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
18514         on stdbool.
18515
18516         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
18517         (gl_PREREQ_XSTRTOUL): Remove.
18518
18519         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
18520
18521         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
18522         mode.
18523
18524 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18525
18526         Add and change modules to make it easier for coreutils to use
18527         gnulib-tool.
18528         * modules/backupfile (Files): Remove m4/d-ino.m4.
18529         (Depends-on): Add d-ino.
18530         * modules/cycle-check (Depends-on): Add stdint.
18531         (lib_SOURCES): Add cycle-check.h.
18532         * modules/d-ino: New module.
18533         * modules/d-type: New module.
18534         * modules/error (Files): Remove m4/strerror_r.m4.
18535         * modules/filemode (Files): Add m4/st_dm_mode.m4.
18536         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
18537         m4/inttypes_h.m4, m4/uintmax_t.m4.
18538         (Depends-on): Add stdint.
18539         (lib_SOURCES): Add fsusage.h.
18540         * modules/getcwd (Files): Remove d-ino.m4.
18541         (Depends-on): Add d-ino.
18542         * modules/getndelim2 (Depends-on): Add stdint.
18543         * modules/glob (Files): Remove m4/d-type.m4.
18544         (Depends-on): Add d-type.
18545         * modules/host-os: New module.
18546         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
18547         m4/inttypes_h.m4, m4/uintmax_t.m4.
18548         * Depends-on: Add stdint.
18549         (lib_SOURCES): Add human.h.
18550         * modules/inttostr (Files): Remove m4/intmax_t.m4,
18551         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
18552         m4/uintmax_t.m4, m4/ulonglong.m4.
18553         (Depends-on): Add stdint.
18554         (EXTRA_DIST): Add inttostr.h.
18555         * modules/lchmod: New module.
18556         * modules/link-follow: New module.
18557         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
18558         (Depends-on): Add lchmod.
18559         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
18560         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
18561         (Depends-on): Add stdint.
18562         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
18563         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
18564         (Depends-on): Add stdint.
18565         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
18566         * modules/perl: New module.
18567         * modules/regex (Depends-on): Add stdint.
18568         * modules/rmdir-errno: New module.
18569         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
18570         m4/intmax_t.m4.
18571         (Depends-on): Add stdint.
18572         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
18573         m4/uintmax_t.m4.
18574         (Depends-on): Add stdint.
18575         * modules/unlink-busy: New module.
18576         * modules/utimecmp (Depends-on): Add stdint.
18577         * modules/uptime: New module.
18578         * modules/winsz-ioctl: New module.
18579         * modules/winsz-termios: New module.
18580         * modules/xnanosleep (Depends-on): Add nanosleep.
18581         * modules/ullong_max: Remove.
18582         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
18583         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
18584         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
18585         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
18586         (Depends-on): Add inttypes.
18587         (lib_SOURCES): Add xstrtol.h.
18588         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
18589         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
18590         * MODULES.html.sh: Move 'assert' into the assert section.
18591         Move 'dummy' into the linking section.
18592         Remove ullong_max.
18593         Add section for compatibility checks for POSIX:2001 functions,
18594         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
18595         winsz-ioctl, and winsz-termios into it.
18596         Add lchmod.
18597         Add top-level Misc section and put host-os, perl, and uptime
18598         into it.
18599
18600 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18601
18602         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
18603         now assume the stdint module.  Do not include inttypes.h.
18604         * lib/fsusage.h: Likewise.
18605         * lib/getndelim2.c: Likewise.
18606         * lib/human.h: Likewise.
18607         * lib/inttostr.h: Likewise.
18608         * lib/obstack.c: Likewise.
18609         * lib/regex_internal.h: Likewise.
18610         * lib/tempname.c: Likewise.
18611         * lib/utimecmp.c: Likewise.
18612         * lib/xstrtol.h: Likewise.
18613
18614         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
18615
18616         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
18617         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
18618         * lib/xtime.h: Likewise.
18619
18620 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18621
18622         * modules/openat (Files): Add lib/fchmodat.c.
18623         Fixes problem reported by Jay Youngman.
18624
18625 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
18626
18627         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
18628         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
18629
18630 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
18631             Bruno Haible  <bruno@clisp.org>
18632
18633         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
18634         and is a script that invokes bison. Tighten the code. Add comments.
18635
18636 2006-08-18  Jim Meyering  <jim@meyering.net>
18637
18638         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
18639         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
18640         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
18641         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
18642
18643 2006-08-18  Bruno Haible  <bruno@clisp.org>
18644
18645         * modules/bison-i18n: New file.
18646         * MODULES.html.sh (Internationalization functions): Add it.
18647
18648 2006-08-18  Bruno Haible  <bruno@clisp.org>
18649
18650         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
18651         sys/statvfs.h. When getmntinfo was found, check its declaration and
18652         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
18653
18654 2006-08-18  Bruno Haible  <bruno@clisp.org>
18655
18656         * m4/bison-i18n.m4: New file, from bison.
18657
18658 2006-08-18  Bruno Haible  <bruno@clisp.org>
18659
18660         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
18661         (ME_DUMMY): Treat "kernfs" as a dummy.
18662         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
18663
18664 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
18665
18666         Update from coreutils.
18667
18668         2006-08-15  Jim Meyering  <jim@meyering.net>
18669
18670         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
18671
18672         2006-01-17  Jim Meyering  <jim@meyering.net>
18673
18674         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
18675
18676         2006-01-11  Jim Meyering  <jim@meyering.net>
18677
18678         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
18679         Check for the lchmod function.
18680
18681 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
18682
18683         Update from coreutils.
18684
18685         * lib/__fpending.h: Add copyright notice.
18686         * lib/fprintftime.h: Likewise.
18687         * lib/savedir.c: Use (C) in copyright notice.
18688         * lib/savedir.h: Likewise.
18689
18690         2006-08-15  Jim Meyering  <jim@meyering.net>
18691
18692         * lib/at-func.c: New file, with the logic of all emulated at-functions.
18693         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
18694         in support of the EXPECTED_ERRNO macro.
18695         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
18696         definitions.  Instead, define the appropriate symbols and include
18697         "at-func.c".
18698         * lib/mkdirat.c (mkdirat): Likewise.
18699         * lib/fchmodat.c (fchmodat): Likewise.
18700         (ENOSYS): Remove definition.
18701         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
18702         it.  Don't include "unistd--.h" -- it wasn't ever used.
18703
18704         2006-01-17  Jim Meyering  <jim@meyering.net>
18705
18706         Rewrite fts.c not to change the current working directory,
18707         by using openat, fstatat, fdopendir, etc..
18708
18709         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
18710         (HAVE_OPENAT_SUPPORT): Define.
18711         [_LIBC] (fchdir): Don't undef or define; no longer used.
18712         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
18713         Now, this `function' always succeeds, and consumes its file descriptor
18714         parameter -- so callers must not close such FDs.  Update callers.
18715         (diropen_fd, opendirat, cwd_advance_fd): New functions.
18716         (diropen): Add parameter, SP.  Adjust all callers.
18717         Implement using diropen_fd, rather than open.
18718         (fts_open): Initialize new member, fts_cwd_fd.
18719         Remove fts_rft-setting code.
18720         (fts_close): Close fts_cwd_fd, if necessary.
18721         (__opendir2): Define in terms of opendir or opendirat,
18722         depending on whether the FST_NOCHDIR flag is set.
18723         (fts_build): Since fts_safe_changedir consumes its FD, and since
18724         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
18725         and close the dup'd file descriptor upon failure.
18726         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
18727         (fts_safe_changedir): Tweak semantics to reflect that this function
18728         now calls cwd_advance_fd and hence consumes its FD argument.
18729         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
18730         [struct FTS] (fts_rft): Remove now-unused member.
18731         [struct FTS] (fts_cycle.state): Improve comment.
18732
18733         * lib/openat.c (openat_needs_fchdir): New function.
18734         * lib/openat.h (openat_needs_fchdir): Declare it.
18735
18736 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
18737
18738         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
18739         Problem and fix reported by Pádraig Brady in
18740         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
18741
18742 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18743
18744         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
18745
18746 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18747
18748         * lib/memcoll.c (memcoll): Optimize for the common case where the
18749         arguments are bytewise equal.
18750
18751 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18752
18753         * doc/regexprops-generic.texi: Add a copyright notice.
18754
18755 2006-08-15  Bruno Haible  <bruno@clisp.org>
18756
18757         * modules/tmpdir (License): Change to LGPL.
18758
18759 2006-08-15  Bruno Haible  <bruno@clisp.org>
18760
18761         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
18762         module.
18763
18764 2006-08-14  Simon Josefsson  <jas@extundo.com>
18765
18766         * config/srclist.txt: Add gnupload.
18767
18768 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18769
18770         Change copyright notice from LGPL 2 to GPL 2, since that's the
18771         standard form used in the gnulib repository.
18772         * tests/test-lock.c: Likewise.
18773         * tests/test-stdint.c: Likewise.
18774         * tests/test-tls.c: Likewise.
18775
18776         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
18777         prelude-manager.  User shorter URLs for GNU projects, without '?'.
18778         Add copyright notice.
18779
18780         * check-module: Add copyright notice.  Output a copyright
18781         notice if "--version" is specified.
18782         * modules/COPYING: New file.
18783         * tests/test-getaddrinfo.c: Add copyright notice.
18784         * tests/test-verify.c: Likewise.
18785
18786 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18787
18788         Change copyright notice from LGPL 2 to GPL 2, since that's the
18789         standard form used in the gnulib repository.
18790         * lib/lock.c: LGPL -> GPL.
18791         * lib/lock.h: Likewise.
18792         * lib/strnlen1.c: Likewise.
18793         * lib/strnlen1.h: Likewise.
18794         * lib/tls.c: Likewise.
18795         * lib/tls.h: Likewise.
18796         * lib/tmpdir.c: Likewise.
18797
18798         * lib/TODO: Remove; this belongs only in coreutils.
18799
18800 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18801
18802         Add copyright notices to long-enough files that lack them, since
18803         otherwise the files aren't clearly free.  Use the same notice that
18804         getdate.texi already uses.
18805         * doc/alloca-opt.texi: Add copyright notice.
18806         * doc/alloca.texi: Likewise.
18807         * doc/ctime.texi: Likewise.
18808         * doc/functions.texi: Likewise.
18809         * doc/gcd.texi: Likewise.
18810         * doc/gnulib-tool.texi: Likewise.
18811         * doc/inet_ntoa.texi: Likewise.
18812         * doc/visibility.texi: Likewise.
18813
18814         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
18815         * doc/quote.texi: Add copyright notice.
18816
18817         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
18818         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
18819         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
18820         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
18821         is now obsolete, and give a pointer to the Sun list.
18822         Add copyright notice.
18823
18824 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18825
18826         * config/srclistvars.sh: Add copyright notice.
18827
18828 2006-08-14  Eric Blake  <ebb9@byu.net>
18829
18830         Import the following change from libc:
18831
18832         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
18833
18834         Upstream bug 2997.
18835         * lib/misc/error.c: Add space between program name and message if file
18836         name is missing.
18837
18838 2006-08-12  Karl Berry  <karl@gnu.org>
18839
18840         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
18841         remove, these originate in gnulib now.
18842
18843 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18844
18845         * doc/Makefile (standards.info standards.html standards.dvi):
18846         Also depend on make-stds.texi.
18847
18848 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18849
18850         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
18851         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
18852
18853         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
18854         in wchar_t.  Problem reported by Eric Blake.
18855
18856         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
18857         LEN is smaller than SIZE.  Suggested by Bruno Haible.
18858         Also, help the compiler to keep LEN in a register.
18859
18860 2006-08-11  Eric Blake  <ebb9@byu.net>
18861
18862         * users.txt: Sort.  Add tar.
18863
18864 2006-08-11  Bruno Haible  <bruno@clisp.org>
18865
18866         * users.txt: New file.
18867
18868 2006-08-11  Bruno Haible  <bruno@clisp.org>
18869
18870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
18871         before <wchar.h>. Needed for OSF/1 and BSD/OS.
18872
18873 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18874
18875         * modules/snprintf (Depends-on): Remove minmax.
18876         (Maintainer): Add self and Bruno.
18877
18878 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18879
18880         * lib/.cppi-disable: Add snprintf.h, socket_.h.
18881         * lib/snprintf.c: Include <errno.h> and <limits.h>.
18882         (EOVERFLOW): Define if the system does not.
18883         Do not include "minmax.h"; it wasn't used.
18884         (snprintf): Don't assume size_t promotes to an unsigned type.
18885         Fix bug when generated string was too long for the buffer: the
18886         buffer's contents are supposed to be the initial prefix of the
18887         output.  Don't assume vasnprintf returns EOVERFLOW if the size
18888         exceeds INT_MAX; do the check ourselves.
18889
18890         Import the following changes from libc:
18891
18892         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
18893
18894         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
18895         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
18896         set wc to the byte which couldn't be converted.
18897         (re_string_reconstruct): Don't clear valid_raw_len before calling
18898         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
18899         tip_context using re_string_context_at.
18900
18901         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
18902
18903         * lib/posix/regex.h: g++ still cannot handled [restrict].
18904
18905         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
18906
18907         * lib/posix/regex.h: Remove special handling for VMS.
18908
18909 2006-08-10  Jim Meyering  <jim@meyering.net>
18910
18911         * modules/same-inode: New module.
18912         * modules/dev-ino: New module.
18913         * modules/cycle-check: Depend on these modules, rather than simply
18914         including their .h files.
18915         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
18916         required via m4/cycle-check.m4.
18917         * modules/same: Depend on new same-inode module, rather than
18918         including same-inode.h.
18919         * modules/chdir-safer: New file.
18920
18921         * modules/chown (Depends-on): Add stat-macros.
18922
18923 2006-08-10  Jim Meyering  <jim@meyering.net>
18924
18925         * m4/cycle-check.m4: New file.
18926         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
18927         * m4/dev-ino.m4, m4/same-inode.m4: New files.
18928
18929 2006-08-10  Eric Blake  <ebb9@byu.net>
18930
18931         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
18932         in from original proposal.
18933
18934 2006-08-10  Eric Blake  <ebb9@byu.net>
18935         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18936
18937         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
18938         namespace.
18939
18940 2006-08-10  Bruno Haible  <bruno@clisp.org>
18941
18942         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
18943         as well.
18944
18945 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18946
18947         Sync from coreutils.
18948
18949         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
18950
18951         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
18952         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
18953
18954 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18955
18956         * modules/restrict: Remove; no longer needed now that we assume
18957         Autoconf 2.59 or later.
18958         * MODULES.html.sh: Remove 'restrict'.
18959         * modules/argp (Depends-on): Remove 'restrict'.
18960         * modules/base64 (Depends-on): Likewise.
18961         * modules/gc (Depends-on): Likewise.
18962         * modules/getaddrinfo (Depends-on): Likewise.
18963         * modules/glob (Depends-on): Likewise.
18964         * modules/inet_ntop (Depends-on): Likewise.
18965         * modules/inet_pton (Depends-on): Likewise.
18966         * modules/memxor (Depends-on): Likewise.
18967         * modules/regex (Depends-on): Likewise.
18968         * modules/strtok_r (Depends-on): Likewise.
18969         * modules/time_r (Depends-on): Likewise.
18970
18971 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18972
18973         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
18974         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
18975         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
18976         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
18977         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18978         * m4/memxor.m4 (gl_MEMXOR): Likewise.
18979         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
18980         gl_C_RESTRICT replaced by AC_C_RESTRICT.
18981
18982         Merge from coreutils.
18983         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
18984         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
18985         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18986         * m4/time_r.m4 (gl_TIME_R): Likewise.
18987
18988 2006-08-09  Karl Berry  <karl@gnu.org>
18989
18990         * config/srclist.txt: no more gettext-tools, per Bruno.
18991
18992 2006-08-08  Eric Blake  <ebb9@byu.net>
18993
18994         * modules/verror: New module.
18995         * MODULES.html.sh: Document it.
18996
18997 2006-08-08  Eric Blake  <ebb9@byu.net>
18998
18999         * lib/verror.h, lib/verror.c: New files.
19000
19001 2006-08-08  Eric Blake  <ebb9@byu.net>
19002
19003         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
19004         verror_at_line output complies with GNU Coding Standards even when
19005         file is NULL.
19006
19007 2006-08-07  Bruno Haible  <bruno@clisp.org>
19008
19009         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
19010         versions of AIX.
19011         Reported by Ralf Wildenhues.
19012
19013 2006-08-07  Bruno Haible  <bruno@clisp.org>
19014
19015         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
19016         in an AC_DEFUN. Needed so that the autoconf snippets can use
19017         AC_REQUIRE.
19018
19019 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19020
19021         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19022         Initialize pkgdata_DATA.
19023         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
19024         overriding it.
19025
19026 2006-08-06  Eric Blake  <ebb9@byu.net>
19027
19028         * lib/error.h: Fold in some upstream changes from glibc.
19029         * lib/error.c: Likewise.
19030
19031 2006-08-04  Bruno Haible  <bruno@clisp.org>
19032
19033         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19034         Make the mostlyclean-local rule depend on mostlyclean-generic.
19035         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
19036
19037 2006-07-31  Bruno Haible  <bruno@clisp.org>
19038
19039         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
19040         <stdlib.h>, <string.h>.
19041
19042 2006-07-30  Bruno Haible  <bruno@clisp.org>
19043
19044         * modules/readlink (License): Change to LGPL.
19045
19046 2006-07-30  Bruno Haible  <bruno@clisp.org>
19047
19048         * modules/javaversion (Makefile.am): Distribute javaversion.java and
19049         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
19050         set PKGDATADIR to point to it.
19051
19052 2006-07-30  Bruno Haible  <bruno@clisp.org>
19053
19054         * modules/csharpexec (configure.ac): Comment out macro invocation.
19055         * modules/javaexec (configure.ac): Likewise.
19056         * modules/javacomp-script (configure.ac): Likewise.
19057
19058         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
19059
19060 2006-07-30  Bruno Haible  <bruno@clisp.org>
19061
19062         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
19063         linked-list.
19064
19065 2006-07-30  Bruno Haible  <bruno@clisp.org>
19066
19067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
19068
19069 2006-07-30  Bruno Haible  <bruno@clisp.org>
19070
19071         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19072         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
19073         get removed.
19074
19075 2006-07-29  Bruno Haible  <bruno@clisp.org>
19076
19077         Make it possible for gnulib-tool to work with locally modified or
19078         augmented gnulib repositories.
19079         * gnulib-tool (func_usage): Document --local-dir option.
19080         (local_gnulib_dir): New variable.
19081         Handle --local-dir option.
19082         (func_lookup_file): New function.
19083         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
19084         (func_get_description, func_get_filelist, func_get_description,
19085         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
19086         func_get_automake_snippet, func_get_include_directive,
19087         func_get_license, func_get_maintainer): Use func_lookup_file.
19088         (func_import, func_create_testdir): Use func_lookup_file.
19089
19090 2006-07-29  Bruno Haible  <bruno@clisp.org>
19091
19092         * modules/setenv (Depends-on): Add unistd.
19093
19094 2006-07-29  Bruno Haible  <bruno@clisp.org>
19095
19096         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
19097
19098 2006-07-29  Bruno Haible  <bruno@clisp.org>
19099
19100         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
19101
19102 2006-07-29  Bruno Haible  <bruno@clisp.org>
19103
19104         * gnulib-tool (import, update): If there is no Makefile.am, look at
19105         aclocal.m4, instead of bailing out.
19106
19107 2006-07-29  Bruno Haible  <bruno@clisp.org>
19108
19109         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
19110         Categorize the options by when they are useful.
19111
19112 2006-07-29  Bruno Haible  <bruno@clisp.org>
19113
19114         * gnulib-tool (func_usage): Document option --no-libtool.
19115         Handle option --no-libtool.
19116         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
19117         for changed semantics of $libtool variable.
19118         (func_import): Likewise. If libtool is not used, show this through
19119         an option --no-libtool.
19120         (func_create_testdir): Update.
19121
19122 2006-07-29  Bruno Haible  <bruno@clisp.org>
19123
19124         * gnulib-tool (func_import): Extend error message about missing
19125         --doc-base.
19126
19127 2006-07-29  Bruno Haible  <bruno@clisp.org>
19128
19129         * gnulib-tool (func_import): Don't create the $docbase directory if
19130         there is no file to store there.
19131
19132 2006-07-29  Bruno Haible  <bruno@clisp.org>
19133
19134         * gnulib-tool (autoconf_minversion): If a --dir option is given and
19135         relevant, look for configure.ac there, not in the current directory.
19136         Also use a simple search for AC_PREREQ, not "autoconf --trace".
19137
19138 2006-07-29  Bruno Haible  <bruno@clisp.org>
19139
19140         * gnulib-tool (SORT): New variable.
19141         (func_usage): Undocument --assume-autoconf option.
19142         Remove --assume-autoconf option handling.
19143         (autoconf_minversion): Determine from the contents of configure.ac.
19144         (func_import): Remove autoconf_minversion handling.
19145         Suggested by Eric Blake.
19146
19147 2006-07-29  Bruno Haible  <bruno@clisp.org>
19148
19149         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
19150
19151 2006-07-29  Bruno Haible  <bruno@clisp.org>
19152
19153         * config/srclist.txt (*setenv.[ch]): Remove rules.
19154
19155 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19156
19157         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
19158
19159 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19160
19161         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
19162         arpa/inet.h.
19163
19164 2006-07-28  Simon Josefsson  <jas@extundo.com>
19165
19166         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
19167         * modules/inet_pton (Depends-on): Likewise.
19168
19169 2006-07-28  Simon Josefsson  <jas@extundo.com>
19170
19171         * m4/netinet_in_h.m4: New file.
19172
19173 2006-07-28  Simon Josefsson  <jas@extundo.com>
19174
19175         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
19176         #include's.
19177
19178 2006-07-28  Simon Josefsson  <jas@extundo.com>
19179
19180         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
19181         #include's.
19182
19183 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
19184
19185         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
19186         setgid on directories only if they set these bits.
19187         * lib/modechange.h: Remove obsolete comment about masks.
19188
19189 2006-07-28  Eric Blake  <ebb9@byu.net>
19190
19191         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
19192         macro expansion.
19193
19194 2006-07-28  Bruno Haible  <bruno@clisp.org>
19195
19196         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
19197
19198 2006-07-28  Bruno Haible  <bruno@clisp.org>
19199
19200         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
19201
19202 2006-07-28  Bruno Haible  <bruno@clisp.org>
19203
19204         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19205         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
19206         Define fallbacks.
19207         Avoids link error on FreeBSD 4.x.
19208         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19209
19210         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
19211         encoding.
19212         * lib/mbswidth.c (iswcntrl): Likewise.
19213
19214 2006-07-27  Bruno Haible  <bruno@clisp.org>
19215
19216         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
19217         test.
19218
19219 2006-07-27  Bruno Haible  <bruno@clisp.org>
19220
19221         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
19222         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
19223         defined.
19224
19225 2006-07-26  Eric Blake  <ebb9@byu.net>
19226
19227         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
19228
19229 2006-07-26  Eric Blake  <ebb9@byu.net>
19230
19231         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
19232         like mingw that lack mkstemp.
19233         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
19234         avoid compilation warning on mingw.
19235
19236 2006-07-26  Bruno Haible  <bruno@clisp.org>
19237
19238         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
19239         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
19240         INT_FAST*_MIN, INTPTR_MIN.
19241
19242 2006-07-25  Bruno Haible  <bruno@clisp.org>
19243
19244         * modules/version-etc (Depends-on): Add stdarg.
19245
19246 2006-07-25  Bruno Haible  <bruno@clisp.org>
19247
19248         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
19249         complex commands.
19250
19251 2006-07-25  Bruno Haible  <bruno@clisp.org>
19252
19253         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
19254         defined in <stdarg.h> or config.h.
19255
19256 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19257
19258         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
19259         (gl_STDIO_SAFER): Remove.
19260
19261 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19262
19263         * MODULES.html.sh (File stream based Input/Output):
19264         Add fopen-safer, tmpfile-safer; remove stdio-safer.
19265         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
19266         * modules/fopen-safer, modules/tmpfile-safer: New files.
19267         * modules/stdio-safer: Remove.
19268
19269 2006-07-24  Bruno Haible  <bruno@clisp.org>
19270
19271         * modules/tmpdir: New file.
19272         * MODULES.html.sh (File system functions): Add it.
19273
19274 2006-07-24  Bruno Haible  <bruno@clisp.org>
19275
19276         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
19277         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
19278
19279 2006-07-24  Bruno Haible  <bruno@clisp.org>
19280
19281         * modules/clean-temp: New file.
19282
19283 2006-07-24  Bruno Haible  <bruno@clisp.org>
19284
19285         * m4/tmpdir.m4: New file, from GNU gettext.
19286
19287 2006-07-24  Bruno Haible  <bruno@clisp.org>
19288
19289         * lib/tmpdir.h: New file, from GNU gettext.
19290         * lib/tmpdir.c: New file, from GNU gettext.
19291
19292 2006-07-24  Bruno Haible  <bruno@clisp.org>
19293
19294         * lib/clean-temp.h: New file, from GNU gettext.
19295         * lib/clean-temp.c: New file, from GNU gettext.
19296
19297 2006-07-23  Eric Blake  <ebb9@byu.net>
19298
19299         * modules/stdio-safer (Files): Add tmpfile-safer.c.
19300         (Depends-on): Add binary-io.
19301
19302 2006-07-23  Eric Blake  <ebb9@byu.net>
19303
19304         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
19305
19306 2006-07-23  Eric Blake  <ebb9@byu.net>
19307
19308         * lib/tmpfile-safer.c: New file.
19309         * lib/stdio-safer.h (fopen_safer): Add prototype.
19310         * lib/stdio--.h (tmpfile): Make safer.
19311
19312 2006-07-23  Bruno Haible  <bruno@clisp.org>
19313
19314         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
19315         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
19316         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
19317         gl_linked_remove_at): Use it.
19318
19319 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19320         and Simon Josefsson <jas@extundo.com>
19321
19322         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
19323
19324         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
19325
19326 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19327
19328         * modules/close-stream: New file.
19329         * modules/closeout (Description): Make it clear that it exits
19330         with a diagnostic on error.
19331         (Depends-on): Add close-stream.  Remove fpending, stdbool.
19332         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
19333
19334 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19335
19336         * m4/close-stream.m4: New file.
19337
19338 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19339
19340         * lib/close-stream.c, lib/close-stream.h: New files.
19341
19342 2006-07-22  Bruno Haible  <bruno@clisp.org>
19343
19344         Merge from GNU gettext 0.15.
19345
19346         2006-05-01  Bruno Haible  <bruno@clisp.org>
19347
19348                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
19349
19350         2006-07-22  Bruno Haible  <bruno@clisp.org>
19351
19352                 * modules/javaversion: New file.
19353                 * MODULES.html.sh (Java): Add javaversion.
19354
19355         2006-03-12  Bruno Haible  <bruno@clisp.org>
19356
19357                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
19358
19359         2005-12-04  Bruno Haible  <bruno@clisp.org>
19360
19361                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
19362                 (untested).
19363
19364         2006-06-21  Bruno Haible  <bruno@clisp.org>
19365
19366                 Avoid warnings from recent versions of mcs.
19367                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
19368                 -o, -L, -r any more. Use options documented since mcs-1.0
19369                 instead. Similarly for -g.
19370
19371         2005-12-04  Bruno Haible  <bruno@clisp.org>
19372
19373                 * build-aux/csharpcomp.sh.in: Suffix for resources is
19374                 .resources, not .resource.
19375
19376         2005-07-09  Bruno Haible  <bruno@clisp.org>
19377
19378                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
19379                 add a .dll suffix.
19380                 Reported by Mark Junker <mjscod@gmx.de>.
19381
19382         2006-07-22  Bruno Haible  <bruno@clisp.org>
19383
19384                 * modules/gettext: Upgrade to gettext-0.15.
19385                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
19386                 m4/visibility.m4.
19387                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
19388
19389 2006-07-22  Bruno Haible  <bruno@clisp.org>
19390
19391         Merge from GNU gettext 0.15.
19392
19393         2006-03-25  Bruno Haible  <bruno@clisp.org>
19394
19395                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
19396
19397         2006-07-21  Bruno Haible  <bruno@clisp.org>
19398
19399                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
19400                 "1.1".
19401
19402         2006-05-09  Bruno Haible  <bruno@clisp.org>
19403
19404                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
19405                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
19406                 for the conftestver execution.
19407
19408         2006-05-01  Bruno Haible  <bruno@clisp.org>
19409
19410                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
19411                 optional target-version argument. Verify that the compiler
19412                 groks source of the specified source-version, or add -source
19413                 option as necessary. Verify that the compiler produces
19414                 bytecode in the specified target-version, or add -target and
19415                 -source options as necessary. Make the result of the test
19416                 available as variable CONF_JAVAC. Also log error output in
19417                 config.log.
19418
19419         2006-03-11  Bruno Haible  <bruno@clisp.org>
19420
19421                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
19422
19423         2006-05-09  Bruno Haible  <bruno@clisp.org>
19424
19425                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
19426                 CLASSPATH_SEPARATOR to a semicolon.
19427
19428         2006-03-12  Bruno Haible  <bruno@clisp.org>
19429
19430                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
19431                 available as variable CONF_JAVA, for subsequent autoconf
19432                 tests. Also log error output in config.log.
19433
19434         2006-07-19  Bruno Haible  <bruno@clisp.org>
19435
19436                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
19437                 that getline works on glibc2 systems. Needed to avoid trouble
19438                 in relocatable.c.
19439                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
19440
19441         2005-12-04  Bruno Haible  <bruno@clisp.org>
19442
19443                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
19444                 launcher (untested).
19445
19446         2005-12-04  Bruno Haible  <bruno@clisp.org>
19447
19448                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
19449
19450         2006-07-22  Bruno Haible  <bruno@clisp.org>
19451
19452                 * gettext.m4: Update from GNU gettext-0.15.
19453                 * nls.m4: Likewise.
19454                 * po.m4: Likewise.
19455                 * inttypes-pri.m4: Likewise.
19456                 * inttypes-h.m4: Renamed from inttypes.m4.
19457                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
19458
19459 2006-07-22  Bruno Haible  <bruno@clisp.org>
19460
19461         Merge from GNU gettext 0.15.
19462
19463         2005-07-05  Bruno Haible  <bruno@clisp.org>
19464
19465                 * printf-args.c (printf_fetchargs): Work around broken
19466                 definition of wint_t on mingw.
19467
19468         2005-02-12  Bruno Haible  <bruno@clisp.org>
19469
19470                 * xallocsa.h: Add extern "C" for C++.
19471
19472         2006-05-17  Bruno Haible  <bruno@clisp.org>
19473
19474                 Cygwin portability.
19475                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
19476
19477         2006-04-30  Bruno Haible  <bruno@clisp.org>
19478
19479                 * progreloc.c: Include <mach-o/dyld.h> if available.
19480                 (find_executable): Use _NSGetExecutablePath when possible.
19481
19482         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19483
19484                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
19485                 function.
19486
19487         2005-12-29  Bruno Haible  <bruno@clisp.org>
19488
19489                 * progreloc.c (set_program_name_and_installdir): Fix
19490                 compilation error.
19491
19492         2005-12-04  Bruno Haible  <bruno@clisp.org>
19493
19494                 Cygwin portability.
19495                 * progreloc.c: Include <windows.h> also on Cygwin.
19496                 (find_executable): Add support for Cygwin.
19497                 (set_program_name_and_installdir): Handle also platforms with
19498                 nonempty EXEEXT.
19499
19500         2006-07-11  Bruno Haible  <bruno@clisp.org>
19501
19502                 * javacomp.c: Fix a comment.
19503                 Reported by Jim Meyering.
19504
19505         2006-04-30  Bruno Haible  <bruno@clisp.org>
19506
19507                 * javacomp.h (compile_java_class): Add source_version,
19508                 target_version arguments.
19509                 * javacomp.c: Rewritten to choose only a compiler that
19510                 respects the specified source_version and target_version.
19511
19512         2006-06-27  Bruno Haible  <bruno@clisp.org>
19513
19514                 Assume correct S_ISDIR macro.
19515                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
19516
19517         2006-07-22  Bruno Haible  <bruno@clisp.org>
19518
19519                 * javaversion.h: New file, from GNU gettext.
19520                 * javaversion.c: New file, from GNU gettext.
19521                 * javaversion.java: New file, from GNU gettext.
19522                 * javaversion.class: New file, from GNU gettext.
19523
19524         2006-05-17  Bruno Haible  <bruno@clisp.org>
19525
19526                 Cygwin portability.
19527                 * javaexec.c (execute_java_class): Test for jview program
19528                 also on Cygwin.
19529
19530         2006-04-09  Bruno Haible  <bruno@clisp.org>
19531
19532                 * fatal-signal.c: Don't include string.h.
19533                 (at_fatal_signal): Use a copying loop instead of memcpy.
19534
19535         2005-12-04  Bruno Haible  <bruno@clisp.org>
19536
19537                 * csharpexec.c: Add support for 'clix' launcher (untested).
19538                 (execute_csharp_using_sscli): New function.
19539                 (execute_csharp_program): Call it.
19540
19541         2006-06-21  Bruno Haible  <bruno@clisp.org>
19542
19543                 Avoid warnings from recent versions of mcs.
19544                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
19545                 -o, -L, -r any more. Use options documented since mcs-1.0
19546                 instead. Similarly for -g.
19547
19548         2005-07-09  Bruno Haible  <bruno@clisp.org>
19549
19550                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
19551                 add a .dll suffix.
19552                 Reported by Mark Junker <mjscod@gmx.de>.
19553
19554         2006-06-17  Bruno Haible  <bruno@clisp.org>
19555
19556                 * config.charset: Update for NetBSD 3.0.
19557
19558         2006-05-17  Bruno Haible  <bruno@clisp.org>
19559
19560                 Cygwin portability.
19561                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
19562
19563         2006-05-16  Bruno Haible  <bruno@clisp.org>
19564
19565                 * localcharset.c [CYGWIN]: Include <windows.h>.
19566                 (get_charset_aliases): For Cygwin, return the same CPxxx
19567                 aliases list as under WIN32.
19568                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
19569                 the environment variables. Fall back to GetACP().
19570
19571         2006-04-05  Bruno Haible  <bruno@clisp.org>
19572
19573                 * config.charset: Update Juan Manuel Guerrero's address.
19574
19575         2005-02-12  Bruno Haible  <bruno@clisp.org>
19576
19577                 * allocsa.h: Add extern "C" for C++.
19578
19579         2005-02-10  Bruno Haible  <bruno@clisp.org>
19580
19581                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
19582                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
19583
19584         2006-07-22  Bruno Haible  <bruno@clisp.org>
19585
19586                 * gettext.h: Update to GNU gettext-0.15.
19587
19588 2006-07-22  Bruno Haible  <bruno@clisp.org>
19589
19590         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
19591         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
19592         lib-prefix.m4, longdouble.m4, ssize_t.m4.
19593
19594 2006-07-21  Eric Blake  <ebb9@byu.net>
19595
19596         * modules/stdlib-safer: New file.
19597         * MODULES.html.sh (File stream based Input/Output): Add
19598         stdlib-safer.
19599
19600 2006-07-21  Eric Blake  <ebb9@byu.net>
19601
19602         * lib/stdlib-safer.h: New file from coreutils, required by
19603         stdlib--.h.
19604
19605 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
19606
19607         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
19608
19609 2006-07-20  Bruno Haible  <bruno@clisp.org>
19610
19611         * gnulib-tool: Recognize new option --assume-autoconf.
19612         (autoconf_minversion): New variable.
19613         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
19614
19615 2006-07-20  Bruno Haible  <bruno@clisp.org>
19616
19617         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
19618
19619 2006-07-19  Derek R. Price  <derek@ximbiot.com>
19620
19621         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
19622         Reindent and repaginate.
19623
19624 2006-07-19  Derek Price  <derek@ximbiot.com>
19625
19626         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
19627         Correct grammar.
19628
19629 2006-07-17  Bruno Haible  <bruno@clisp.org>
19630
19631         * modules/list: New file.
19632         * modules/array-list: New file.
19633         * modules/carray-list, modules/carray-list-tests: New files.
19634         * modules/linked-list, modules/linked-list-tests: New files.
19635         * modules/avltree-list, modules/avltree-list-tests: New files.
19636         * modules/rbtree-list, modules/rbtree-list-tests: New files.
19637         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
19638         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
19639         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
19640         * modules/oset: New file.
19641         * modules/array-oset: New file.
19642         * modules/avltree-oset, modules/avltree-oset-tests: New files.
19643         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
19644         * tests/test-carray_list.c: New file.
19645         * tests/test-linked_list.c: New file.
19646         * tests/test-avltree_list.c: New file.
19647         * tests/test-rbtree_list.c: New file.
19648         * tests/test-linkedhash_list.c: New file.
19649         * tests/test-avltreehash_list.c: New file.
19650         * tests/test-rbtreehash_list.c: New file.
19651         * tests/test-avltree_oset.c: New file.
19652         * tests/test-rbtree_oset.c: New file.
19653         * MODULES.html.sh (Container data structures): New section.
19654
19655 2006-07-17  Bruno Haible  <bruno@clisp.org>
19656
19657         * m4/gl_list.m4: New file.
19658
19659 2006-07-17  Bruno Haible  <bruno@clisp.org>
19660
19661         * lib/gl_list.h: New file.
19662         * lib/gl_list.c: New file.
19663         * lib/gl_array_list.h: New file.
19664         * lib/gl_array_list.c: New file.
19665         * lib/gl_carray_list.h: New file.
19666         * lib/gl_carray_list.c: New file.
19667         * lib/gl_linked_list.h: New file.
19668         * lib/gl_linked_list.c: New file.
19669         * lib/gl_anylinked_list1.h: New file.
19670         * lib/gl_anylinked_list2.h: New file.
19671         * lib/gl_avltree_list.h: New file.
19672         * lib/gl_avltree_list.c: New file.
19673         * lib/gl_anyavltree_list1.h: New file.
19674         * lib/gl_anyavltree_list2.h: New file.
19675         * lib/gl_rbtree_list.h: New file.
19676         * lib/gl_rbtree_list.c: New file.
19677         * lib/gl_anyrbtree_list1.h: New file.
19678         * lib/gl_anyrbtree_list2.h: New file.
19679         * lib/gl_anytree_list1.h: New file.
19680         * lib/gl_anytree_list2.h: New file.
19681         * lib/gl_linkedhash_list.h: New file.
19682         * lib/gl_linkedhash_list.c: New file.
19683         * lib/gl_anyhash_list1.h: New file.
19684         * lib/gl_anyhash_list2.h: New file.
19685         * lib/gl_avltreehash_list.h: New file.
19686         * lib/gl_avltreehash_list.c: New file.
19687         * lib/gl_rbtreehash_list.h: New file.
19688         * lib/gl_rbtreehash_list.c: New file.
19689         * lib/gl_anytreehash_list1.h: New file.
19690         * lib/gl_anytreehash_list2.h: New file.
19691
19692         * lib/gl_oset.h: New file.
19693         * lib/gl_oset.c: New file.
19694         * lib/gl_array_oset.h: New file.
19695         * lib/gl_array_oset.c: New file.
19696         * lib/gl_avltree_oset.h: New file.
19697         * lib/gl_avltree_oset.c: New file.
19698         * lib/gl_rbtree_oset.h: New file.
19699         * lib/gl_rbtree_oset.c: New file.
19700         * lib/gl_anytree_oset.h: New file.
19701
19702 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
19703
19704         * m4/mkancesdirs.m4: New file.
19705         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
19706         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
19707         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
19708         it.
19709
19710 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
19711
19712         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
19713         * lib/mkancesdirs.h: New files.
19714         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
19715         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
19716         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
19717         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
19718         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
19719         callers changed.  Revamp internals significantly, by not
19720         attempting to create directories that are temporarily more
19721         permissive than the final results.  Do not attempt to use
19722         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
19723         This removes some race conditions, fixes some bugs, and simplifies
19724         things.  Use new dirchownmod function to do owner and mode changes.
19725         * lib/mkdir-p.h: Likewise.
19726         * lib/modechange.c (octal_to_mode): New function.
19727         (struct mode_change): New member mentioned.
19728         (make_node_op_equals): New arg mentioned.  All callers changed.
19729         (mode_compile): Keep track of which mode bits the user has explicitly
19730         mentioned.
19731         (mode_adjust): New arg DIR, so that we implement the X op correctly.
19732         New arg PMODE_BITS, to keep track of which mode bits the user
19733         mentioned; it treats S_ISUID and S_ISGID speciall.
19734         All callers changed.
19735         * lib/modechange.h: Likewise.
19736
19737 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
19738
19739         * MODULES.html.sh: Add mkancestors.
19740         * modules/mkancesdirs: New module.
19741         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
19742         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
19743         The chdir-safer and afs files are now orphans; I'll remove them
19744         unless someone speaks up.
19745         Add lib/dirchownmod.c, lib/dirchownmod.h.
19746         (Depends-on): Remove alloca, chown, save-cwd, dirname.
19747         Add lchown, mkancesdirs.
19748         (Maintainer): Add self.
19749
19750 2006-07-15  Karl Berry  <karl@gnu.org>
19751
19752         * gnulib-tool: help message wording/arrangement.
19753
19754 2006-07-14  Simon Josefsson  <jas@extundo.com>
19755
19756         * doc/gnulib.texi (Libtool and Windows): New section.
19757
19758 2006-07-12  Simon Josefsson  <jas@extundo.com>
19759
19760         * modules/gendocs (License): Fix license, approved by Karl.
19761
19762 2006-07-12  Eric Blake  <ebb9@byu.net>
19763
19764         * MODULES.html.sh: Add gendocs.
19765
19766 2006-07-11  Eric Blake  <ebb9@byu.net>
19767
19768         * modules/fdl: New module, to install doc/fdl.texi.
19769         * MODULES.html.sh: Add new section for documentation modules.
19770         * gnulib-tool: Avoid space-tab.
19771         (--doc-base): New option, to manage files from doc.
19772
19773 2006-07-11  Eric Blake  <ebb9@byu.net>
19774
19775         * m4/absolute-header.m4: Fix comments to match recent change.
19776
19777 2006-07-11  Eric Blake  <ebb9@byu.net>
19778
19779         * gnulib-tool: List --doc-base before --tests-base.
19780
19781 2006-07-11  Derek R. Price  <derek@ximbiot.com>
19782
19783         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
19784
19785 2006-07-11  Bruno Haible  <bruno@clisp.org>
19786
19787         * README: Mention where to put documentation.
19788
19789 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19790
19791         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
19792
19793 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19794
19795         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
19796         to stdint.m4.
19797
19798 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19799
19800         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
19801         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
19802         "no/such/file/stdint.h" when there is no such file, so that
19803         the resulting C code can be parsed by dodgy compilers.
19804         Problems reported by Bob Proulx.
19805
19806 2006-07-10  Derek R. Price  <derek@ximbiot.com>
19807
19808         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
19809         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
19810         macros into the GNU _D_EXACT_NAMLEN.
19811         * lib/savedir.c:  Likewise.
19812         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
19813
19814 2006-07-10  Derek R. Price  <derek@ximbiot.com>
19815         and Paul Eggert  <eggert@cs.ucla.edu>
19816
19817         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
19818         * m4/savedir.m4:
19819         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
19820         macros into the GNU _D_EXACT_NAMLEN.
19821
19822 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19823
19824         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
19825         around the absolute name, to work around a problem with the HP-UX
19826         11.23 native C compiler, reported by Bob Proulx.
19827
19828 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19829
19830         * doc/maintain.texi, make-stds.texi: Sync from
19831         <http://savannah.gnu.org/projects/gnustandards>.
19832
19833 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19834
19835         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
19836
19837 2006-07-09  Jim Meyering  <jim@meyering.net>
19838
19839         * m4/glob.m4: Remove a doubled word in a comment.
19840
19841 2006-07-09  Jim Meyering  <jim@meyering.net>
19842
19843         * lib/argp-pv.c: Remove a doubled word in a comment.
19844         * lib/check-version.c (check_version): Likewise.
19845         * lib/javacomp.c (compile_java_class): Likewise.
19846
19847 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
19848
19849         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
19850         for the benefit of people using Autoconf 2.60.  If you want to
19851         support older Autoconf versions you can copy m4/onceonly_2_57.m4
19852         (or m4/onceonly.m4, if pre-2.57) manually.
19853
19854 2006-07-08  Jim Meyering  <jim@meyering.net>
19855
19856         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
19857         comment.
19858         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
19859         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
19860         comment.
19861
19862 2006-07-08  Jim Meyering  <jim@meyering.net>
19863
19864         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
19865
19866 2006-07-07  Simon Josefsson  <jas@extundo.com>
19867
19868         * tests/test-crc.c: Change expected crc value, the test vector
19869         were probably computed using the old broken crc.c?
19870
19871 2006-07-06  Simon Josefsson  <jas@extundo.com>
19872
19873         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
19874         now the canonical place for the M4 file).
19875
19876         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
19877         from the sys_socket dependency now.
19878
19879         * modules/inet_pton (Files): Ditto.
19880
19881         * modules/inet_ntop (Files): Ditto.
19882
19883 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
19884
19885         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
19886         not gl_PREREQ_GETUSERSHELL.
19887
19888 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19889
19890         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
19891         with only one argument, for Autoconf 2.60.
19892         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
19893         expand to nothing, so add a shell command to avoid syntax error.
19894         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
19895
19896 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19897
19898         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
19899
19900 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19901
19902         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
19903         no longer needed.  Check for isblank decl.
19904         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
19905         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
19906         of existence.
19907
19908 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19909
19910         * lib/getloadavg.c: Use __VMS, not VMS.
19911         * lib/getopt.c: Likewise.
19912         * lib/getpagesize.h: Likewise.
19913         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
19914         and probably does not work.
19915
19916 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19917
19918         * lib/.cppi-disable: Add wcwidth.
19919         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
19920         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
19921         (ISGRAPH): Remove.  All uses changed to isgraph.
19922         (FOLD) [!defined _LIBC]: Remove special case.
19923         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
19924         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
19925         HAVE_ISBLANK.
19926         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
19927         case.
19928
19929 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
19930
19931         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
19932         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
19933         brackets.  Other minor changes to suppress some compiler
19934         warnings.
19935
19936 2006-07-06  Derek R. Price  <derek@ximbiot.com>
19937         and Paul Eggert  <eggert@cs.ucla.edu>
19938
19939         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
19940         of invoking obsolescent AC_HEADER_DIRENT macro.
19941         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19942         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
19943         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19944         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19945         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
19946         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19947         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
19948         * m4/readdir.m4: Remove; no longer needed.
19949
19950 2006-07-06  Derek R. Price  <derek@ximbiot.com>
19951         and Paul Eggert  <eggert@cs.ucla.edu>
19952
19953         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
19954         Don't worry about this obsolete case any more.
19955         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
19956         directories.
19957         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
19958         worry about this obsolete case any more.
19959         * lib/fts.c: Likewise.
19960         * lib/getcwd.c: Likewise.
19961         * lib/glob.h: Likewise.
19962         * lib/savedir.c: Likewise.
19963
19964 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19965
19966         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
19967         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
19968         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
19969         needed.
19970         All uses removed.
19971         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19972         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
19973         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
19974         needed.
19975         * m4/getdate.m4 (gl_GETDATE): Likewise.
19976         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
19977         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
19978         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19979         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19980         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
19981         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19982         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
19983         needed.
19984
19985 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19986
19987         * lib/memcasecmp.c: Include <limits.h>.
19988         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
19989         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
19990         Don't assume isdigit succeeds only on '0' through '9'.
19991
19992 2006-07-05  Eric Blake  <ebb9@byu.net>
19993
19994         * modules/getaddrinfo (Depends-on): Add snprintf.
19995
19996 2006-07-05  Eric Blake  <ebb9@byu.net>
19997
19998         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
19999         to avoid 'header present but could not be compiled' on cygwin.
20000
20001 2006-07-05  Eric Blake  <ebb9@byu.net>
20002
20003         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
20004         missing from netdb.h.
20005         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
20006
20007 2006-07-05  Derek R. Price  <derek@ximbiot.com>
20008
20009         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
20010         no longer needed.
20011         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
20012         * m4/getdate.m4 (gl_GETDATE): Likewise.
20013         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
20014         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
20015         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20016         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20017         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20018
20019 2006-07-05  Derek R. Price  <derek@ximbiot.com>
20020
20021         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
20022         All uses of is_space replaced by isspace.
20023         * lib/exit.h: Don't talk about STDC_HEADERS.
20024         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
20025         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
20026         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
20027         replaced by isprint etc.
20028         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
20029         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
20030         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
20031         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
20032         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
20033         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
20034
20035 2006-07-05  Bruno Haible  <bruno@clisp.org>
20036
20037         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
20038         the function exists, before testing against AIX.
20039         Reported by Martin Lambers <marlam@marlam.de>.
20040
20041 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20042
20043         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
20044         From Mark D. Baushke.
20045
20046 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20047
20048         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
20049         to the absolute name, not just one, to bypass Sun C 5.8's
20050         "warning: #include of /usr/include/... may be non-portable".
20051
20052 2006-07-04  Eric Blake  <ebb9@byu.net>
20053
20054         * modules/dirname-tests: New test module.
20055         * tests/test-dirname.c: New file, replacing dirname.c
20056         TEST_DIRNAME section that was recently deleted.
20057
20058 2006-07-04  Bruno Haible  <bruno@clisp.org>
20059
20060         Assume ANSI C header files and <ctype.h> functions.
20061         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
20062         (mbsnwidth): Use isprint, iscntrl instead.
20063
20064 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20065
20066         Merge from coreutils.
20067         * MODULES.html.sh: Add xstrtold.
20068         * modules/xstrtold: New file.
20069         * modules/cycle-check (Files): Add lib/same-inode.h.
20070         * modules/dirname (Files): Add m4/double-slash-root.m4.
20071         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
20072         * modules/mkdir-p (Files): Add lib/same-inode.h.
20073         * modules/same (Files): Add lib/same-inode.h.
20074
20075 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20076
20077         * m4/absolute-header.m4: Renamed from full-header-path.m4.
20078         This is to keep the terminology clean; POSIX talks about
20079         "absolute pathnames", not "full pathnames", but the GNU
20080         Coding Standards say to use "path" for something else;
20081         so use "absolute" to keep both sides happy.
20082         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
20083         Set gl_absolute_header, not gl_full_header_path.
20084         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
20085         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
20086         All uses changed.
20087
20088         Merge from coreutils.
20089
20090         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
20091
20092         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
20093         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
20094         want to require the building of c-strtod.o.
20095         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
20096         needs -lm directly.
20097         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
20098
20099         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
20100
20101         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
20102         --as-needed option if available.  Problem reported by Albert Chin in
20103         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
20104         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
20105         cc merely issues a bunch of annoying warnings for --as-needed
20106         (this problem was reported by Bob Proulx).  Also, try linking with
20107         -lm to detect a bug in binutils 2.16 (this problem was reported
20108         by Ralf Wildenhues).
20109
20110         2006-06-18  Jim Meyering  <jim@meyering.net>
20111
20112         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
20113         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
20114         macro.
20115         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
20116         also check for glibc-2.4's abort-inducing bug.
20117
20118         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
20119         Low-probability clean-up should be to use rmdir to get rid of
20120         the just-created directory, not unlink.
20121
20122         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
20123         configure fail, and request a bug report to inform us about it.
20124         Add a comment that, barring reports to the contrary, in 2007 we'll
20125         assume ftruncate is universally available.
20126
20127         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
20128
20129         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
20130
20131         2006-03-12  Jim Meyering  <jim@meyering.net>
20132
20133         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
20134         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
20135         * m4/same.m4 (gl_SAME): Likewise.
20136         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
20137
20138         2006-03-11  Eric Blake  <ebb9@byu.net>
20139
20140         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
20141         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
20142         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
20143         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
20144
20145 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20146
20147         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
20148         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
20149         reported by Mark D. Baushke, one in
20150         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
20151
20152         Merge from coreutils.
20153
20154         * lib/.cppi-disable: Add stdint_.h.
20155         * lib/.cvsignore: Add stdint.h.
20156
20157         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
20158
20159         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
20160         both double and long double versions.
20161         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
20162         * lib/xstrtold.c: New file.
20163         * lib/xstrtod.h (xstrtold): New decl.
20164
20165         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20166
20167         * lib/filemode.c (setst): Remove.
20168         (strmode): Rewrite to avoid setst.  This makes the code shorter,
20169         (arguably) clearer, and the generated code is a bit smaller on my
20170         Debian GNU/Linux stable x86 host.
20171
20172         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
20173
20174         * lib/filemode.c: Include "filemode.h" first, to test the interface.
20175         Assume that filemode.h includes sys/types.h and sys/stat.h.
20176         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
20177         (ftypelet): Reorder to put common cases first, for efficiency.
20178         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
20179         to do 'M'.
20180         (strmode): Renamed from mode_string, and now stores 12 bytes instead
20181         of 10, for compatibility with FreeBSD.  All callers changed.
20182         (filemodestring): Now stores 12 bytes instead of 10, and sets file
20183         types that can't be deduced solely from st_mode.  First arg is now a
20184         const pointer.
20185         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
20186         (strmode): Renamed from mode_string.
20187         (filemodestring): New decl.
20188         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
20189         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
20190         needed.
20191         (S_ISPORT, S_ISWHT): New macros, if not already defined.
20192
20193         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
20194
20195         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
20196         fsusage.h now does that.  Include fsusage.h first, to test interface.
20197         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
20198         at most one method (the old code could have generated decls that
20199         didn't conform to C89, not that this was ever exercised).
20200         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
20201
20202         2006-03-19  Jim Meyering  <jim@meyering.net>
20203
20204         Work even in a chroot where d_ino values for entries in "/"
20205         don't match the stat.st_ino values for the same names.
20206         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
20207         number, iterate through all entries again, using lstat instead.
20208         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
20209         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
20210
20211         * lib/getcwd.c (__getcwd): Clarify a comment.
20212         Use memcpy in place of a call to strcpy.
20213
20214         2006-03-12  Jim Meyering  <jim@meyering.net>
20215
20216         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
20217         matches that of the current directory (which we're about to chdir ".."
20218         out of), then save the dev-ino of the parent, instead.
20219
20220         * lib/same-inode.h (SAME_INODE): New file/macro.
20221         * lib/chdir-safer.c (SAME_INODE): Remove definition.
20222         Include "same-inode.h", instead.
20223         * lib/same.c: Likewise.
20224         * lib/cycle-check.h: Include "same-inode.h".
20225         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
20226         * lib/cycle-check.c (SAME_INODE): Remove definition.
20227         * lib/root-dev-ino.h: Include "same-inode.h".
20228
20229         2006-03-11  Eric Blake  <ebb9@byu.net>
20230
20231         * lib/same.c (same_name): s/base_name/last_component/
20232         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
20233         * lib/filenamecat.c (file_name_concat): Likewise.
20234
20235         2006-03-11  Eric Blake  <ebb9@byu.net>,
20236                     Paul Eggert  <eggert@cs.ucla.edu>
20237
20238         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
20239         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
20240         drive prefix.
20241         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
20242         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
20243         (last_component): New method.
20244         * lib/dirname.c (dir_len): Determine when drive letters need a
20245         subsequent slash.  Preserve // when it is special.
20246         (dir_name): Don't append dot when drive letter is absolute.
20247         [TEST_DIRNAME]: Move into a full-blown gnulib test.
20248         * lib/basename.c (base_name): New semantics - malloc the result.
20249         Preserve // when it is special.  Preserve relative files that look
20250         like drive letters.
20251         (base_len): Preserve // when it is special.
20252         (last_component): New method, similar to old base_name semantics.
20253         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
20254         base_name.  Strip redundant slashes from ///.
20255
20256 2006-07-03  Jim Meyering  <jim@meyering.net>
20257
20258         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
20259         macro is used before the first cycle_check call.
20260
20261 2006-07-03  Eric Blake  <ebb9@byu.net>
20262
20263         * modules/dirname (Depends-on): Add xstrndup.
20264
20265 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20266
20267         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
20268         test cases, so that config.log is a bit easier to follow.
20269
20270 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20271
20272         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
20273         both are 64 bits, since this seems to be the tradition, and this
20274         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
20275         we ever run into a host that prefers long long to long in this
20276         case, we'll need another configure-time test.  Problem reported by
20277         Jim Meyering.
20278
20279 2006-07-02  Eric Blake  <ebb9@byu.net>
20280
20281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
20282
20283 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20284
20285         * modules/inttypes (Depends-on): No longer depends on stdint.
20286         * modules/stdint (Description): Say more about assumptions.
20287         Say that the fast types might differ.  Say macros are used.
20288         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
20289         (Makefile.am): Revise list of substituted symbols to match
20290         new stdint.m4.
20291         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
20292         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
20293         * tests/test-stdint.c (verify_same_types)
20294         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
20295         the code conforms to C99/C89.
20296         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
20297         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
20298
20299 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20300
20301         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
20302         but fix a bug, by requiring at least 64 bits.
20303         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
20304         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
20305         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
20306         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
20307
20308         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
20309         changes.  Make 2.59 a prerequisite.  Check and substitute for
20310         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
20311         inttypes.h.  Do not use special include files; just use the
20312         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
20313         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
20314         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
20315         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
20316         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
20317         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
20318         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
20319         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
20320         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
20321         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
20322         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
20323         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
20324         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
20325         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
20326         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
20327         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
20328         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
20329         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
20330         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
20331         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
20332         WINT_MAX.  Check for C99 conformance more strictly, by detecting
20333         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
20334         not check for things that C99 does not require, e.g., int8_t.  If
20335         a test isn't needed unless <stdint.h> isn't working, and is
20336         unlikely to be needed for any other reason, then don't do it
20337         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
20338         size_t, since we assume C89 freestanding at least.  Do not check
20339         for sig_atomic_t, wchar_t, or wint_t, since the code now does
20340         the right thing even if the types are not defined.  Instead use:
20341         (gl_STDINT_TYPE_PROPERTIES): New macro.
20342         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
20343         testing whether <sys/types.h> clashes, as Autoconf does this for
20344         us now.  All uses removed.
20345         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
20346         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
20347         (gl_CHECK_TYPE_SAME):
20348         Remove; no longer needed.
20349         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
20350         exists, since we'll return 0 anyway in that case.
20351         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
20352
20353 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20354
20355         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
20356         possible collision with system files.
20357         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
20358         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
20359         WCHAR_MIN and WCHAR_MAX in this case.
20360         (<stddef.h>): Do not include; no longer needed.
20361         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
20362         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
20363         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
20364         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
20365         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
20366         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
20367         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
20368         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
20369         !defined(__c99))]: Include in this case too, since it's harmless
20370         now.
20371         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
20372         dangerous to do so.
20373         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
20374         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
20375         (_STDINT_MIN, _STDINT_MAX): New macros.
20376         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
20377         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
20378         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
20379         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
20380         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
20381         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
20382         macros, not typedefs; this simplifies things quite a bit.
20383         Use long int for all types narrower than int64_t.
20384         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
20385         Define in terms of long long int or int64_t or long int,
20386         not int64_t or int32_t.  This saves some compile-time testing.
20387         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
20388         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
20389         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
20390         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
20391         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
20392         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
20393         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
20394         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
20395         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
20396         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
20397         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
20398         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
20399         undef any previous version and define our own version, for
20400         simplicity and consistency with the new macros for types.
20401         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
20402         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
20403         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
20404         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
20405         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
20406         @WINT_T_SUFFIX@ to keep things simple here.
20407         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
20408         Simplify by assuming typical 8/16/32/64 host, since we're
20409         already doing that elsewhere anyway.
20410         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
20411         and assume long long int is 64 bits if available.  This
20412         speeds up 'configure'.
20413
20414 2006-07-01  Eric Blake  <ebb9@byu.net>
20415
20416         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
20417         Reported by Andreas Buening.
20418
20419 2006-07-01  Eric Blake  <ebb9@byu.net>
20420
20421         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
20422
20423 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
20424
20425         * lib/getaddrinfo.c: fixed typo
20426
20427 2006-06-29  Jim Meyering  <jim@meyering.net>
20428
20429         * modules/strftime (Maintainer): Add my name, since with the
20430         FPRINTFTIME changes strftime.c has forked from glibc.
20431
20432 2006-06-29  Eric Blake  <ebb9@byu.net>
20433
20434         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
20435
20436 2006-06-29  Eric Blake  <ebb9@byu.net>
20437
20438         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
20439
20440 2006-06-29  Eric Blake  <ebb9@byu.net>
20441
20442         * lib/stat_.h: New file.
20443
20444 2006-06-29  Eric Blake  <ebb9@byu.net>
20445
20446         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
20447         unused static function.
20448
20449 2006-06-29  Eric Blake  <ebb9@byu.net>
20450
20451         * doc/functions.texi (Function Portability): Document missing lstat
20452         on mingw.
20453
20454 2006-06-29  Eric Blake  <ebb9@byu.net>
20455
20456         * MODULES.html.sh: Add sys_stat.
20457         * modules/sys_stat: New module.
20458         * modules/mkstemp (Depends-on): Add sys_stat.
20459
20460 2006-06-29  Derek R. Price  <derek@ximbiot.com>
20461
20462         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
20463
20464 2006-06-29  Derek R. Price  <derek@ximbiot.com>
20465
20466         * m4/c-bs-a.m4: Removed.
20467
20468 2006-06-29  Derek R. Price  <derek@ximbiot.com>
20469
20470         * lib/strftime.c: Assume strftime() exists.
20471
20472 2006-06-29  Derek Price  <derek@ximbiot.com>
20473
20474         * modules/c-bs-a: Removed - \a is C89.
20475         * MODULES.html.sh: Remove c-bs-a.
20476
20477 2006-06-29  Bruno Haible  <bruno@clisp.org>
20478
20479         * modules/wcwidth (License): Change to LGPL.
20480
20481 2006-06-28  Simon Josefsson  <jas@extundo.com>
20482
20483         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
20484         on _WIN32.
20485
20486         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
20487         getnameinfo.
20488
20489 2006-06-28  Simon Josefsson  <jas@extundo.com>
20490
20491         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
20492
20493 2006-06-28  Simon Josefsson  <jas@extundo.com>
20494
20495         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
20496         functions there.  It will succeed on Windows XP, but on Windows
20497         2000 and (presumably) earlier, it will fail, and use the internal
20498         re-implementation.
20499         (use_win32_p): New function.
20500         (getaddrinfo): Use strtoul on servname, to support numeric ports.
20501         Support AI_NUMERICSERV to disable getservbyname.
20502         (getnameinfo): New function, only supports
20503         NI_NUMERICHOST|NI_NUMERICSERV for now.
20504
20505         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
20506         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
20507         getnameinfo.
20508
20509 2006-06-28  Eric Blake  <ebb9@byu.net>
20510
20511         * modules/wcwidth: New file.
20512         * modules/mbchar (Depends-on): Add wcwidth.
20513         * modules/mbswidth (Depends-on): Add wcwidth.
20514         * MODULES.html.sh: Add wcwidth.
20515
20516 2006-06-28  Eric Blake  <ebb9@byu.net>
20517
20518         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
20519         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
20520
20521 2006-06-28  Eric Blake  <ebb9@byu.net>
20522
20523         * lib/xvasprintf.h: Fix comments.
20524
20525 2006-06-28  Eric Blake  <ebb9@byu.net>
20526
20527         * lib/mbchar.h (wcwidth): Include wcwidth.h.
20528         * lib/mbswidth.c (wcwidth): Move from here...
20529         * lib/wcwidth.h: ...to this new file.
20530
20531 2006-06-28  Derek R. Price  <derek@ximbiot.com>
20532
20533         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
20534
20535         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
20536         it's obsolete.
20537         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
20538
20539 2006-06-28  Derek R. Price  <derek@ximbiot.com>
20540
20541         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
20542         Autoconf 2.60 says this stuff was obsolete.
20543
20544 2006-06-28  Bruno Haible  <bruno@clisp.org>
20545
20546         * modules/wcwidth (Files): Add m4/wchar_t.m4.
20547
20548 2006-06-28  Bruno Haible  <bruno@clisp.org>
20549
20550         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
20551         gt_TYPE_WCHAR_T.
20552
20553 2006-06-28  Bruno Haible  <bruno@clisp.org>
20554
20555         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
20556         declaration for wcwidth.
20557         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
20558
20559 2006-06-28  Bruno Haible  <bruno@clisp.org>
20560
20561         * lib/mkdtemp.c [MINGW]: Include <io.h>.
20562         (mkdir): Define using _mkdir.
20563
20564 2006-06-28  Bruno Haible  <bruno@clisp.org>
20565
20566         * lib/getaddrinfo.h: Fix POSIX URL.
20567         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
20568         _WIN32.
20569         (use_win32_p): Make static.
20570         (getaddrinfo): Reject service name if it is empty or does not consist
20571         solely of decimal digits, or if its value is > 65535.
20572         (getnameinfo): Remove useless casts.
20573
20574 2006-06-27  Simon Josefsson  <jas@extundo.com>
20575
20576         * modules/sys_select: New file, suggested by Bruno Haible, Paul
20577         Eggert and Martin Lambers.
20578
20579 2006-06-27  Simon Josefsson  <jas@extundo.com>
20580
20581         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
20582         Eggert and Martin Lambers.
20583
20584 2006-06-27  Bruno Haible  <bruno@clisp.org>
20585
20586         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
20587         result to 0, not to empty.
20588         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
20589
20590 2006-06-27  Bruno Haible  <bruno@clisp.org>
20591
20592         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
20593
20594 2006-06-26  Simon Josefsson  <jas@extundo.com>
20595
20596         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
20597         present.
20598
20599 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
20600
20601         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
20602         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
20603         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
20604
20605 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
20606
20607         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
20608
20609 2006-06-26  Bruno Haible  <bruno@clisp.org>
20610
20611         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
20612
20613 2006-06-26  Bruno Haible  <bruno@clisp.org>
20614
20615         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
20616
20617 2006-06-26  Bruno Haible  <bruno@clisp.org>
20618
20619         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
20620         SGI C compiler in pre-C99 mode.
20621         Suggested by Mark D. Baushke and Larry Jones.
20622
20623 2006-06-26  Bruno Haible  <bruno@clisp.org>
20624
20625         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
20626         WCHAR_MAX.
20627         Reported by Mark D. Baushke and Larry Jones.
20628
20629 2006-06-26  Bruno Haible  <bruno@clisp.org>
20630
20631         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
20632         in pre-C99 mode.
20633         Suggested by Mark D. Baushke and Larry Jones.
20634
20635 2006-06-23  Simon Josefsson  <jas@extundo.com>
20636             Bruno Haible  <bruno@clisp.org>
20637
20638         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
20639         Emit mostlyclean-local rule.
20640         (func_emit_tests_Makefile_am): Likewise.
20641         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
20642
20643 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
20644
20645         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
20646
20647 2006-06-23  Bruno Haible  <bruno@clisp.org>
20648
20649         * tests/test-stdint.c: Update to match ISO C 99 Technical
20650         Corrigendum 1.
20651
20652 2006-06-23  Bruno Haible  <bruno@clisp.org>
20653
20654         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
20655
20656 2006-06-23  Bruno Haible  <bruno@clisp.org>
20657
20658         * lib/stdint_.h: Treat IRIX like OpenBSD.
20659
20660 2006-06-23  Bruno Haible  <bruno@clisp.org>
20661
20662         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
20663         ISO C 99 Technical Corrigendum 1.
20664
20665 2006-06-22  Simon Josefsson  <jas@extundo.com>
20666
20667         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
20668         MinGW.
20669
20670 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20671
20672         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
20673         needed.  Some compiler complained about some of them.  Problem reported
20674         by Larry Jones in
20675         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
20676
20677 2006-06-21  Simon Josefsson  <jas@extundo.com>
20678
20679         * tests/test-getaddrinfo.c: New file.
20680
20681         * modules/getaddrinfo-tests: New file.
20682
20683         * MODULES.html.sh: Add inet_pton.
20684
20685         * modules/inet_pton: New file.
20686
20687 2006-06-21  Simon Josefsson  <jas@extundo.com>
20688
20689         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
20690         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
20691         of using the (limited) gnulib implementation on Windows XP.
20692
20693         * m4/inet_pton.m4: New file.
20694
20695 2006-06-21  Simon Josefsson  <jas@extundo.com>
20696
20697         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
20698         variable.
20699
20700         * lib/socket_.h: Don't define WINVER.
20701
20702         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
20703         slightly modified to work in gnulib.
20704
20705 2006-06-21  Simon Josefsson  <jas@extundo.com>
20706
20707         * doc/gnulib.texi (Windows sockets): Add.
20708
20709 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
20710
20711         * lib/read-file.c (fread_file): Start with buffer allocation of
20712         0 bytes rather than 1 byte; this simplifies the code.
20713         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
20714         code to free buffer and save/restore errno.
20715         (internal_read_file): Remove unused local.
20716
20717 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
20718
20719         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
20720         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
20721         Problem reported by Denis Excoffier in
20722         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
20723
20724 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20725
20726         * modules/sys_socket, modules/socklen: Include sys/types since
20727         FreeBSD 4.x's sys/socket.h needs it.
20728
20729 2006-06-19  Simon Josefsson  <jas@extundo.com>
20730
20731         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
20732
20733 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
20734
20735         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
20736
20737 2006-06-19  Bruno Haible  <bruno@clisp.org>
20738
20739         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
20740         and FULL_PATH_INTTYPES_H in angle brackets.
20741         Reported by Mark D. Baushke <mdb@gnu.org>.
20742
20743 2006-06-17  Eric Blake  <ebb9@byu.net>
20744
20745         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
20746         errno.
20747
20748 2006-06-17  Bruno Haible  <bruno@clisp.org>
20749
20750         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
20751         <sys/inttypes.h>.
20752
20753 2006-06-17  Bruno Haible  <bruno@clisp.org>
20754
20755         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
20756         whether errno is declared. Assume <errno.h> declares errno.
20757
20758 2006-06-17  Bruno Haible  <bruno@clisp.org>
20759
20760         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
20761
20762 2006-06-17  Bruno Haible  <bruno@clisp.org>
20763
20764         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
20765         problem on Solaris 2.5.1.
20766
20767 2006-06-16  Eric Blake  <ebb9@byu.net>
20768
20769         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
20770         * lib/unicodeio.c [!defined errno]: Likewise.
20771         * lib/strtol.c [!defined errno]: Likewise.
20772         * lib/strtod.c [!defined errno]: Likewise.
20773
20774 2006-06-15  Eric Blake  <ebb9@byu.net>
20775
20776         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
20777
20778 2006-06-15  Eric Blake  <ebb9@byu.net>
20779
20780         * config/srclist.txt (ssize_t.m4): Lose sync.
20781
20782 2006-06-15  Bruno Haible  <bruno@clisp.org>
20783
20784         * modules/stdint (Files): Include m4/full-header-path.m4,
20785         m4/size_max.m4, m4/wchar_t.m4.
20786         (Makefile.am): Many more substitutions.
20787         * modules/stdint-tests: New file.
20788         * tests/test-stdint.c: New file.
20789
20790 2006-06-15  Bruno Haible  <bruno@clisp.org>
20791
20792         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
20793         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
20794         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
20795         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
20796         gl_CHECK_TYPE_SAME): New macros.
20797
20798 2006-06-15  Bruno Haible  <bruno@clisp.org>
20799
20800         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
20801
20802 2006-06-15  Bruno Haible  <bruno@clisp.org>
20803
20804         * lib/stdint_.h: Rewritten to be fully auto-configured.
20805         Fixes bug on HP-UX/IA64.
20806
20807 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
20808
20809         * lib/getdate.y (__attribute__): Don't define if already defined.
20810         Problem reported by Larry Jones.
20811         * lib/utimens.c (__attribute__): Likewise.
20812
20813 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
20814
20815         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
20816         reported by Andreas Schwab.
20817
20818 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20819             Bruno Haible  <bruno@clisp.org>
20820
20821         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
20822         check for the declaration of strnlen and a run test that exposes the
20823         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
20824         rpl_strndup.
20825
20826 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20827             Bruno Haible  <bruno@clisp.org>
20828
20829         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
20830
20831 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20832
20833         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
20834         compile test, for Tru64 4.0D.
20835
20836 2006-05-28  Karl Berry  <karl@gnu.org>
20837
20838         * config/srclist.txt (printf-args.c): lose sync.
20839
20840 2006-05-26  Martin Lambers  <marlam@marlam.de>
20841
20842         * lib/getpass.c: Updates the test for the native W32 API, and adds
20843         missing includes, thus fixing compilation warnings.
20844
20845 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20846
20847         * lib/exclude.c (exclude_fnmatch): New function.
20848         (excluded_file_name): Call exclude_fnmatch.
20849         * lib/exclude.h (excluded_file_name): New prototype
20850
20851 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
20852
20853         * lib/tempname.c (small_open, large_open): New macros.
20854         (__open, __open64) [!_LIBC]: Remove.
20855         (__gen_tempname): Use small_open and large_open instead of __open
20856         and __open64.  This fixes a portability bug on HP-UX 11.11i
20857         reported by Simon Wing-Tang in
20858         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
20859
20860 2006-05-24  Bruno Haible  <bruno@clisp.org>
20861
20862         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
20863         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
20864         Reported by Thorsten Maerz <torte@netztorte.de> via
20865         Aaron Stone <aaron@serendipity.cx>.
20866
20867 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20868
20869         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
20870         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
20871         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
20872         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
20873         not really conditional on the cache.
20874         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
20875
20876 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20877
20878         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
20879         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
20880         (my_usleep): Don't mishandle maximum value.
20881
20882 2006-05-19  Jim Meyering  <jim@meyering.net>
20883
20884         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
20885
20886 2006-05-17  Bruno Haible  <bruno@clisp.org>
20887
20888         Cygwin portability.
20889         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
20890
20891 2006-05-17  Bruno Haible  <bruno@clisp.org>
20892
20893         * lib/stdint_.h: Fix recognition of Cygwin.
20894
20895 2006-05-15  Bruno Haible  <bruno@clisp.org>
20896
20897         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
20898         on libtool patch by Ralf Wildenhues.
20899
20900 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20901
20902         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
20903         test for C99 conformance; (bool) 0.5 is an integer constant
20904         expression, but (bool) -0.5 is not.  Problem reported by Fedor
20905         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
20906
20907 2006-05-11  Simon Josefsson  <jas@extundo.com>
20908
20909         * m4/xvasprintf.m4: Fix obvious typo.
20910
20911 2006-05-11  Jim Meyering  <jim@meyering.net>
20912
20913         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
20914         James Lemley.
20915
20916 2006-05-10  Simon Josefsson  <jas@extundo.com>
20917
20918         * lib/md4.c: Typo fix, update copyright years.
20919         (K1, K2): Don't use L because it turn computations into 64-bit on
20920         64-bit platforms.
20921
20922 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
20923
20924         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
20925         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
20926         unwanted sign propagation, e.g., on hosts with 64-bit int.
20927         There still are some problems with reeelly weird theoretical hosts
20928         (e.g., 33-bit int) but it's not worth worrying about now.
20929         * lib/sha1.c (rol): Likewise.
20930         (K1, K2, K3, K4): Remove unnecessary L suffix.
20931
20932 2006-05-10  Bruno Haible  <bruno@clisp.org>
20933
20934         * lib/des.c: Cast to avoid warnings.
20935
20936 2006-05-09  Bruno Haible  <bruno@clisp.org>
20937
20938         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
20939         (Depends-on): Depend also on xsize, stdarg.
20940         (configure.ac): Add gl_XVASPRINTF.
20941
20942 2006-05-09  Bruno Haible  <bruno@clisp.org>
20943
20944         * m4/xvasprintf.m4: New file.
20945
20946 2006-05-09  Bruno Haible  <bruno@clisp.org>
20947
20948         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
20949         (EOVERFLOW): Define fallback value.
20950         (xstrcat): New function.
20951         (xvasprintf): Recognize the special case of a string concatenation.
20952
20953 2006-05-08  Eric Blake  <ebb9@byu.net>
20954
20955         * gnulib-tool (func_version): Base copyright year on CVS date.
20956         (func_emit_copyright_notice): New function.
20957         (func_emit_lib_Makefile_am): Use it.
20958         (func_emit_tests_Makefile_am): Likewise.
20959         (func_import): Likewise.
20960
20961 2006-05-08  Bruno Haible  <bruno@clisp.org>
20962
20963         * modules/stdarg: New file.
20964         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
20965
20966 2006-05-08  Bruno Haible  <bruno@clisp.org>
20967
20968         * m4/stdarg.m4: New file, from GNU gettext.
20969
20970 2006-05-08  Bruno Haible  <bruno@clisp.org>
20971
20972         * config/srclist.txt (build-aux/config.rpath): different from latest
20973         release.
20974
20975 2006-05-08  Bruno Haible  <bruno@clisp.org>
20976
20977         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
20978
20979 2006-05-05  Jim Meyering  <jim@meyering.net>
20980
20981         * m4/warning.m4: New file, derived from bison's file by the same name.
20982
20983 2006-05-03  Bruno Haible  <bruno@clisp.org>
20984
20985         * lib/stdint_.h: Shorter URL.
20986         * lib/inttypes.h: Likewise.
20987
20988 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20989
20990         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
20991
20992 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20993
20994         * lib/verify.h: Document the internals better.  Most of this change
20995         was written by Bruno Haible.
20996
20997 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20998
20999         * doc/verify.texi: New file, partly based on a proposal by
21000         Bruno Haible.
21001
21002 2006-05-02  Bruno Haible  <bruno@clisp.org>
21003
21004         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
21005         test from here...
21006         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
21007
21008 2006-04-29  Bruno Haible  <bruno@clisp.org>
21009
21010         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
21011         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
21012
21013 2006-04-29  Bruno Haible  <bruno@clisp.org>
21014
21015         * gnulib-tool: Make --update option actually work.
21016
21017 2006-04-29  Bruno Haible  <bruno@clisp.org>
21018
21019         * doc/gcd.texi: New file.
21020         * doc/gnulib.texi: Include it.
21021
21022 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21023
21024         * lib/getdate.y (get_date): When adding relative date, start with the
21025         initial time, not with the result of the first mktime call.
21026
21027 2006-04-25  Bruno Haible  <bruno@clisp.org>
21028
21029         * gnulib-tool (func_import): Output the include directives in three
21030         blocks, sorted separately.
21031         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21032
21033 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21034
21035         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
21036         to define main with arguments, for C++.  Reported by Eric Blake.
21037         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
21038         Prefer 'int main ()' to 'int main (void)', for C++.
21039         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21040         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
21041         for 'main', for C99 and C++.
21042
21043 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21044
21045         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
21046         Don't assume that exit status -1 is valid.
21047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21048         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21049         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21050         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
21051         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
21052         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
21053         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
21054         functions can be used without declaring them, or that you can
21055         exit with status -1.
21056         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21057
21058 2006-04-24  Karl Berry  <karl@gnu.org>
21059
21060         * config/srclist.txt (longdouble.m4): sync lost.
21061
21062 2006-04-24  Eric Blake  <ebb9@byu.net>
21063
21064         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
21065
21066 2006-04-24  Bruno Haible  <bruno@clisp.org>
21067
21068         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
21069         poll() implementation in AIX.
21070         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21071
21072 2006-04-24  Bruno Haible  <bruno@clisp.org>
21073
21074         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
21075         assigned exactly once.
21076
21077 2006-04-23  Claudio Fontana  <claudio@gnu.org>
21078             Bruno Haible  <bruno@clisp.org>
21079
21080         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
21081         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
21082         for AM_CPPFLAGS.
21083
21084 2006-04-23  Bruno Haible  <bruno@clisp.org>
21085
21086         * modules/copy-file: Depend on unistd.
21087         * modules/execute: Likewise.
21088         * modules/fatal-signal: Likewise.
21089         * modules/findprog: Likewise.
21090         * modules/mkdtemp : Likewise.
21091         * modules/pipe: Likewise.
21092         * modules/wait-process: Likewise.
21093
21094 2006-04-23  Bruno Haible  <bruno@clisp.org>
21095
21096         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
21097         condition was already detected.
21098         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21099
21100 2006-04-23  Bruno Haible  <bruno@clisp.org>
21101
21102         * lib/copy-file.c: Include <unistd.h> unconditionally.
21103         * lib/execute.c: Likewise.
21104         * lib/fatal-signal.c: Likewise.
21105         * lib/findprog.c: Likewise.
21106         * lib/mkdtemp.c: Likewise.
21107         * lib/pipe.h: Likewise.
21108         * lib/pipe.c: Likewise.
21109         * lib/wait-process.h: Likewise.
21110
21111 2006-04-23  Bruno Haible  <bruno@clisp.org>
21112
21113         * gnulib-tool (func_usage): Fix --import description. Document
21114         --update.
21115         (func_import): Create temporary file in a temporary directory, if
21116         --dry-run is specified. Silence errors from 'grep' when there are no
21117         m4 files in $m4dir.
21118         (func_create_testdir): Silence errors from 'grep' when there are no
21119         m4 files in $m4dir.
21120         Reported by Karl Berry <karl@freefriends.org>.
21121
21122 2006-04-20  Bruno Haible  <bruno@clisp.org>
21123
21124         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
21125         one argument, so that the code will be portable to Autoconf 2.60.
21126         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
21127         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
21128         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
21129
21130 2006-04-19  Derek Price  <derek@ximbiot.com>
21131             Eric Blake  <ebb9@byu.net>
21132
21133         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
21134         rather than "/full/path.h".  Update comment to match.  Shorten &
21135         generalize m4_translit call via AS_TR_CPP.
21136
21137 2006-04-19  Derek Price  <derek@ximbiot.com>
21138             Eric Blake  <ebb9@byu.net>
21139
21140         * lib/inttypes.h: Correct grammar in comment.
21141
21142 2006-04-18  Derek Price  <derek@ximbiot.com>
21143             Paul Eggert  <eggert@cs.ucla.edu>
21144
21145         * modules/inttypes: New file.
21146         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
21147
21148 2006-04-18  Derek Price  <derek@ximbiot.com>
21149             Paul Eggert  <eggert@cs.ucla.edu>
21150
21151         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
21152         New files.
21153
21154 2006-04-18  Derek Price  <derek@ximbiot.com>
21155             Paul Eggert  <eggert@cs.ucla.edu>
21156
21157         * lib/inttypes.h: New file.
21158         * lib/strtoimax.c: Assume <inttypes.h>.
21159
21160 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
21161
21162         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
21163         isn't mounted.  Problem reported by Kir Kolyshkin.
21164
21165 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
21166
21167         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
21168         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
21169         Derek R. Price.
21170         * lib/regex.h (RE_DUP_MAX): Update comment to match current
21171         implementation.
21172
21173 2006-04-12  Eric Blake  <ebb9@byu.net>
21174
21175         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
21176         is now done automatically by the corresponding Autoconf macro.
21177
21178 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
21179
21180         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
21181         time_r.h.
21182
21183 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21184
21185         Merge regex changes from libc, removing some of our
21186         POSIX-conformance changes that were rejected and redoing them in a
21187         less-intrusive way.
21188
21189         * lib/regcomp.c (re_compile_internal, init_dfa):
21190         Length arg is now size_t, not Idx.  All uses changed.
21191         (peek_token): Forward decl now says internal_function.
21192         (__re_error_msgid, __re_error_msgid_idx):
21193         Now static rather than extern with attribute_hidden.
21194         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
21195         For some reason libc prefers K&R style defns for external functions.
21196         (regerror) [!defined _LIBC]: Likewise.
21197         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
21198         (seek_collating_symbol_entry, lookup_collation_sequence_value):
21199         (build_range_exp, build_collating_symbol):
21200         Use K&R-style defn.
21201         (re_compile_fastmap): Use '\0' to memset, not 0.
21202         (utf8_sb_map): Make the calculations more obvious.
21203         (init_dfa, parse_bracket_exp, build_charclass_op):
21204         Call calloc and cast result, as glibc does.
21205         (init_word_char, fetch_token, peek_token, peek_token_bracket):
21206         (build_range_exp, build_collating_symbol):
21207         Now internal functions.
21208
21209         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
21210
21211         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
21212         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
21213         Don't depend on VMS; depend on __VMS instead, for POSIX
21214         namespace cleanness.
21215         (regoff_t): Define to ssize_t, not long int.
21216
21217         Remove the REG_ macros named below.  Instead, make the old names
21218         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
21219         __USE_GNU_REGEX.
21220         (REG_BACKSLASH_ESCAPE_IN_LISTS):
21221         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
21222         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
21223         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
21224         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
21225         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
21226         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
21227         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
21228         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
21229         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
21230         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
21231         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
21232         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
21233         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
21234         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
21235         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
21236         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
21237         (REG_NREGS):
21238         Remove.  All uses replaced by the old RE_* names.
21239         (RE_BACKSLASH_ESCAPE_IN_LISTS):
21240         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
21241         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
21242         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
21243         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
21244         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
21245         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
21246         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
21247         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
21248         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
21249         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
21250         Don't bother having these macros be independent of each others'
21251         values, since they no longer exist in the POSIX name space.
21252
21253         Rename the following member names back to their old names,
21254         unless !__USE_GNU_REGEX.  All uses changed back.
21255         (buffer): Renamed from re_buffer.
21256         (allocated): Renamed from re_allocated.
21257         (used): Renamed from re_used.
21258         (syntax): Renamed from re_syntax.
21259         (fastmap): Renamed from re_fastmap.
21260         (translate): Renamed from re_translate.
21261         (can_be_null): Renamed from re_can_be_null.
21262         (regs_allocated): Renamed from re_regs_allocated.
21263         (fastmap_accurate): Renamed from re_fastmap_accurate.
21264         (no_sub): Renamed from re_no_sub.
21265         (not_bol): Renamed from re_not_bol.
21266         (not_eol): Renamed from re_not_eol.
21267         (newline_anchor): Renamed from re_newline_anchor.
21268         (num_regs): Renamed from rm_num_regs.
21269         (start): Renamed from rm_start.
21270         (end): Renamed from rm_end.
21271
21272         (free_state): Move up a bit.
21273
21274         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
21275         #define to be empty.
21276         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
21277         when that is what is intended.
21278         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
21279         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
21280         (MAX): New macro.
21281         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
21282         All uses changed back to re_malloc, etc.  It's now the caller's
21283         responsibility to check for overflow; all callers changed.
21284         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
21285         (re_x2nrealloc): Remove.
21286         (free_state): Remove decl.
21287
21288         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
21289         (re_set_registers, re_exec):
21290         Use K&R-style defn.
21291
21292         2006-01-31  Roland McGrath  <roland@redhat.com>
21293
21294         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
21295         Reported by Mike Frysinger <vapier@gentoo.org>.
21296
21297         2006-01-15  Andreas Jaeger  <aj@suse.de>
21298
21299         [BZ #1950]
21300         * lib/regex_internal.c (re_string_reconstruct): Adjust for
21301         build_wcs_upper_buffer change.
21302         (build_wcs_upper_buffer): Change return type.
21303
21304         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
21305
21306         * lib/regex_internal.h: Include <stdint.h> if available.
21307
21308         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
21309
21310         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
21311
21312         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
21313
21314         * lib/regcomp.c: Adjust for changed secondary hash function.
21315
21316         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
21317
21318         * lib/regex.h: Pretty printing.
21319         Clean up namespace a bit.
21320
21321         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
21322
21323         * lib/regexec.c (update_cur_sifted_state, check_arrival,
21324         check_arrival_add_next_nodes): Avoid using uninitialized variable.
21325
21326         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21327                     Ulrich Drepper  <drepper@redhat.com>
21328
21329         [BZ #1302]
21330         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
21331         changed.
21332         (bitset_word_t): Renamed from bitset_word.  All uses changed.
21333
21334         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
21335
21336         [BZ #281]
21337         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
21338         * lib/regcomp.c: Remove unnecessary uses of
21339         unsigned RE_TRANSLATE_TYPE.
21340         * lib/regex_internal.h: Likewise.
21341         * lib/regex_internal.c: Likewise.
21342         * lib/regexec.c: Likewise.
21343         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
21344
21345         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
21346
21347         * lib/regexec.c (find_recover_state): Remove unnecessary
21348         initialization.
21349         (transit_state_bkref): Make DFA a const pointer.
21350         (get_subexp): Likewise.
21351         (check_arrival): Likewise.
21352         (update_cur_sifted_state): Likewise.
21353         (re_search_internal): Likewise.
21354         (prune_impossible_nodes): Likewise.
21355         (acquire_init_state_context): Likewise.
21356         (proceed_next_node): Likewise.
21357         (set_regs): Likewise.
21358         (free_fail_stack_return): Likewise.
21359         (check_arrival_expand_ecl): Mark DFA parameter as const.
21360         (check_arrival_expand_ecl_sub): Likewise.
21361         (check_subexp_limits): Likewise.
21362         (sub_epsilon_src_nodes):  Likewise.
21363         (add_epsilon_src_nodes):  Likewise.
21364         (merge_state_array): Likewise.
21365         (update_regs): Likewise.
21366         (build_trtable): Likewise.
21367         (sift_states_backward): Mark MCTX parameter as const.
21368         (build_sifted_states): Likewise.
21369         (update_cur_sifted_state): Likewise.
21370         (sift_states_mkref): Likewise.
21371         (check_arrival_expand_ecl): Mark eclosure as const.
21372         (check_dst_limits_calc_pos_1): Likewise.
21373         * lib/regex_internal.h (re_match_context_t): Make dfa a const
21374         pointer.
21375
21376         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
21377
21378         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
21379         (transit_state_sb): Likewise.
21380         (transit_state_mb): Likewise.
21381         (sift_states_iter_mb): Likewise.
21382         (check_arrival_add_next_nodes): Likewise.
21383         (check_node_accept_bytes): Change first parameter to pointer-to-const.
21384         [_LIBC] (re_search_2_stub): Use mempcpy.
21385
21386         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
21387         mbrtowc for very simple UTF-8 case.
21388
21389         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
21390         a pointer-to-const.
21391         (re_acquire_state_context): Likewise.
21392         * lib/regex_internal.h: Adjust prototypes.
21393
21394         * lib/regex.c: Prevent using C++ compilers.
21395
21396         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
21397         (re_acquire_state_context): Likewise.
21398
21399 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21400
21401         * modules/regex (Depends-on): Add ssize_t.
21402
21403 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21404
21405         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
21406         translation table.
21407
21408 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21409
21410         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
21411
21412 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
21413             Bruno Haible  <bruno@clisp.org>
21414
21415         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
21416         <sys/types.h> and <inttypes.h>.
21417
21418 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21419
21420         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
21421         `__error_t_defined', so argp.h will not typedef the former.
21422
21423 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
21424
21425         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
21426         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
21427         glibc names.  Even if glibc is changed to conform to POSIX, the
21428         traditional names will be available anyway, since regex depends on
21429         the extensions module.  Also, fix a longstanding typo in the
21430         implementation of Spencer ERE test #75 from grep 2.3.  Problems
21431         reported by Emanuele Giaquinta.  Also, change sense of cached
21432         variable, so that the message makes sense.
21433
21434 2006-03-24  Simon Josefsson  <jas@extundo.com>
21435
21436         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
21437         including some doc fixes.
21438         (base64_encode_alloc): Fix +1 bug on allocation failures.
21439
21440 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21441
21442         * lib/base64.c (base64_encode): Do not read past end of array with
21443         unsanitized input on systems with CHAR_BIT > 8.
21444
21445 2006-03-24  Eric Blake  <ebb9@byu.net>
21446
21447         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
21448
21449 2006-03-22  Karl Berry  <karl@gnu.org>
21450
21451         * config/srclist.txt (*setenv.[ch]): get from coreutils.
21452         * config/srclistvars.sh (COREUTILS): new var.
21453
21454 2006-03-17  Jim Meyering  <jim@meyering.net>
21455
21456         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
21457         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
21458
21459 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21460
21461         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
21462         no longer needs it.  Instead, check that regoff_t is as least
21463         as wide as ptrdiff_t.
21464
21465         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
21466         so that our regex.h stays compatible with the installed regex.
21467         This is helpful for installers who configure --without-included-regex.
21468         Problem reported by Emanuele Giaquinta.
21469
21470 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21471
21472         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
21473         Typedef to long int, not to off_, as POSIX will likely change
21474         in that direction.
21475
21476 2006-03-15  Eric Blake  <ebb9@byu.net>
21477
21478         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
21479
21480 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
21481
21482         * lib/argp-help.c (validate_uparams): Fix typo
21483         * lib/argp-parse.c (argp_default_options): Consistently begin help
21484         messages with a lowercase letter.
21485
21486 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
21487
21488         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
21489         overrun buffers and shouldn't be used (much as gets shouldn't be
21490         used).
21491         * lib/time_r.c (asctime_r, ctime_r): Likewise.
21492
21493 2006-03-08  Simon Josefsson  <jas@extundo.com>
21494
21495         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
21496         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21497
21498 2006-03-08  Simon Josefsson  <jas@extundo.com>
21499
21500         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
21501         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21502
21503 2006-03-08  Simon Josefsson  <jas@extundo.com>
21504
21505         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
21506         signal that configure disabled the device.
21507
21508 2006-03-08  Simon Josefsson  <jas@extundo.com>
21509
21510         * build-aux/maint.mk: Fix refresh-po, to handle no translated
21511         languages.
21512
21513 2006-03-07  Simon Josefsson  <jas@extundo.com>
21514
21515         * modules/getopt (Depends-on): Add unistd.
21516
21517         * modules/unistd: New file.
21518
21519 2006-03-07  Simon Josefsson  <jas@extundo.com>
21520
21521         * modules/gc-random: New file.
21522
21523 2006-03-07  Simon Josefsson  <jas@extundo.com>
21524
21525         * m4/unistd_h.m4: New file.
21526
21527 2006-03-07  Simon Josefsson  <jas@extundo.com>
21528
21529         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
21530         test to be side-effect free by storing the result in the cache
21531         variable gl_cv_lib_readline, and moving the assignment of
21532         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
21533         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21534
21535 2006-03-07  Simon Josefsson  <jas@extundo.com>
21536
21537         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
21538         error on missing devices (the functions will return an error).
21539
21540         * m4/gc.m4: Move random stuff to gc-random.m4
21541
21542 2006-03-07  Simon Josefsson  <jas@extundo.com>
21543
21544         * lib/unistd_.h: New file.
21545
21546 2006-03-07  Simon Josefsson  <jas@extundo.com>
21547
21548         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
21549
21550 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
21551
21552         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
21553         Problem reported by Juan Manuel Guerrero.
21554
21555 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
21556
21557         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
21558         the unistd module.
21559         * lib/getlogin_r.c: Likewise.
21560         * lib/getlogin_r.h: Likewise.
21561         * lib/glob.c: Likewise.
21562         * lib/pagealign_alloc.c: Likewise.
21563         * lib/unistd_.h: Remove; no longer needed.
21564
21565 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
21566
21567         * MODULES.html.sh (Support for systems lacking POSIX:2001):
21568         Add unistd.
21569         * modules/c-stack (Depends-on): Add unistd.
21570         * modules/getlogin_r: Likewise.
21571         * modules/glob: Likewise.
21572         * modules/pagealign_alloc: Likewise.
21573         * modules/unistd (Files): Remove lib/unistd_.h.
21574         (EXTRA_DIST): Remove.
21575         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
21576         need unistd_.h.
21577         (MOSTLYCLEANFILES): Remove unistd.h-t.
21578
21579 2006-03-03  Simon Josefsson  <jas@extundo.com>
21580
21581         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
21582
21583 2006-03-03  Simon Josefsson  <jas@extundo.com>
21584
21585         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
21586         libidn and bison.
21587
21588 2006-03-03  Simon Josefsson  <jas@extundo.com>
21589
21590         * build-aux/maint.mk: Add indent target.
21591
21592 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
21593
21594         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
21595         our replacement poll.h in any case, to avoid a differing
21596         declaration from a system header.  Seen on AIX.
21597
21598 2006-03-01  Simon Josefsson  <jas@extundo.com>
21599
21600         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
21601         <kasal@ucw.cz>.
21602
21603 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21604
21605         * modules/gettime (Depends-on): Add extensions module.
21606         * modules/nanosleep (Depends-on): Likewise.
21607         * modules/settime (Depends-on): Likewise.
21608
21609 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21610
21611         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
21612         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
21613         pedantically.
21614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21615         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
21616
21617         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
21618         not "==".  Reported by Ralf Wildenhues.
21619
21620 2006-03-01  Karl Berry  <karl@gnu.org>
21621
21622         * doc/Copyright/request-*: new files, synced from gnuorg.
21623
21624 2006-03-01  Karl Berry  <karl@gnu.org>
21625
21626         * config/srclist.txt (Copyright/*): new entries.
21627
21628 2006-02-28  Simon Josefsson  <jas@extundo.com>
21629
21630         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
21631
21632 2006-02-27  Simon Josefsson  <jas@extundo.com>
21633
21634         * lib/base64.h: Indent #define's.  From Jim Meyering
21635         <jim@meyering.net>.
21636
21637 2006-02-27  Jim Meyering  <jim@meyering.net>
21638
21639         Revert the change of 2006-02-24, so these files can continue
21640         to be sync'd from gettext.
21641         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
21642         of `config.h'.
21643
21644 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
21645
21646         * modules/intprops: New file.
21647         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21648         Add intprops.
21649         * modules/getloadavg (Files): Remove lib/intprops.h.
21650         (Depends-on): Add intprops.
21651         * modules/human: Likewise.
21652         * modules/inttostr: Likewise.
21653         * modules/openat: Likewise.
21654         * modules/sig2str: Likewise.
21655         * modules/userspec: Likewise.
21656         * modules/utimecmp: Likewise.
21657         * modules/xnanosleep: Likewise.
21658         * modules/xstrtol: Likewise.
21659
21660 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
21661
21662         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
21663         * modules/lock-tests (TESTS): Use $(EXEEXT).
21664         * modules/tls-tests: Likewise.
21665         * modules/argp-tests: Likewise.
21666         (check_PROGRAMS): New var, replacing...
21667         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
21668
21669 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21670
21671         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
21672         `config.h'.
21673
21674 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21675
21676         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
21677
21678 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21679
21680         Sync from coreutils.
21681         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
21682         gl_CHDIR_SAFER.
21683
21684 2006-02-22  Jim Meyering  <jim@meyering.net>
21685
21686         Sync from coreutils.
21687         * m4/chdir-safer.m4: New file.
21688
21689 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
21690
21691         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
21692         AT_FDCWD exceeds INT_MAX.
21693         * lib/openat.h (AT_FDCWD): Likewise.
21694
21695 2006-02-17  Eric Blake  <address@hidden>
21696
21697         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
21698
21699 2006-02-16  Simon Josefsson  <jas@extundo.com>
21700
21701         * modules/getaddrinfo (Depends-on): Add sys_socket.
21702
21703 2006-02-15  Simon Josefsson  <jas@extundo.com>
21704
21705         * build-aux/maint.mk: Add dsyntax-check rule.
21706
21707 2006-02-15  Eric Blake  <ebb9@byu.net>
21708
21709         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
21710         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
21711         'present but cannot compile' warnings on cygwin.
21712         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
21713         use ws2tcpip.h if sys/socket.h works.
21714         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
21715         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
21716
21717 2006-02-14  Simon Josefsson  <jas@extundo.com>
21718
21719         * modules/maintainer-makefile (Files): Rename.
21720
21721         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
21722         and (the local) Makefile.cfg to maint-cfg.mk.
21723
21724         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
21725         to the latter.
21726
21727         * modules/maintainer-makefile: New module.
21728
21729         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
21730         severaly stripped to make it possible to build it up from scratch
21731         with reliable tests.
21732
21733         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
21734         fixes to permit overriding the default actions when configure and
21735         makefile are not available.
21736
21737 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
21738
21739         Sync from coreutils.
21740         * modules/lstat (Depends-on): Don't depend on xalloc.
21741         (License): Change from GPL to LGPL, since this is now simply a
21742         replacement for a libc function.
21743
21744 2006-02-14  Jim Meyering  <jim@meyering.net>
21745
21746         Sync from coreutils.
21747
21748         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
21749         failure on deficient systems, and simplify gnulib lgpl dependencies.
21750         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
21751         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
21752
21753         * lib/xalloc-die.c: Remove unused definition of N_.
21754
21755 2006-02-14  Jim Meyering  <jim@meyering.net>
21756
21757         Sync from coreutils.
21758         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
21759         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
21760         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
21761         double-quote uses of that variable, to accommodate the rare case in
21762         which getmntent is available in none of the libraries checked.  This
21763         happens at least on FreeBSD 5.0.
21764
21765 2006-02-13  Simon Josefsson  <jas@extundo.com>
21766
21767         * gnulib-tool (Usage): Fix --import, from
21768         karl@freefriends.org (Karl Berry).
21769
21770 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
21771
21772         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
21773
21774 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
21775
21776         * lib/argp-namefrob.h: Restore changes accidentally lost during the
21777         "autoupdate" on 2005-12-12.
21778
21779 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
21780
21781         * modules/closeout (Depends-on): Remove atexit.
21782
21783 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
21784
21785         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
21786         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
21787
21788 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
21789
21790         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
21791         __EXTENSIONS__ if this causes compilation to fail.  Problem
21792         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
21793         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
21794
21795 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
21796
21797         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
21798         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
21799         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
21800         All uses changed.
21801
21802 2006-01-26  Simon Josefsson  <jas@extundo.com>
21803
21804         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
21805         prototype is visible on mingw32.
21806
21807         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
21808         for mingw32.
21809
21810         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
21811         mingw32).
21812
21813 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
21814
21815         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
21816         attempt to open for write; this always fails, at least on POSIX
21817         hosts.  This reinstates the 2006-01-09 change, which was
21818         inadvertently removed.
21819
21820 2006-01-26  Bruno Haible  <bruno@clisp.org>
21821
21822         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
21823         Reported by Paul Eggert.
21824
21825 2006-01-26  Bruno Haible  <bruno@clisp.org>
21826             Paul Eggert  <eggert@cs.ucla.edu>
21827
21828         * lib/stdbool_.h (_Bool)
21829         [(! (defined __cplusplus || defined __BEOS__)
21830           && !defined __GNUC__
21831           && !(defined __HP_cc || defined __xlc__
21832                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
21833                || defined __sgi))]:
21834         #define to signed char in these cases too; this simplifies
21835         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
21836         etc., separately) and makes it more conservative.
21837
21838 2006-01-25  Simon Josefsson  <jas@extundo.com>
21839
21840         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
21841         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
21842         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
21843
21844 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21845
21846         * lib/argp-namefrob.h: Bugfix. Remove stray #
21847
21848 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
21849
21850         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
21851         so that we test the test.
21852         Check for yet another HP-UX cc bug involving *bool |= bool.
21853
21854 2006-01-25  Karl Berry  <karl@gnu.org>
21855
21856         * config/srclist.txt (vasnprintf.c): sync lost.
21857
21858 2006-01-25  Jim Meyering  <jim@meyering.net>
21859
21860         Sync from the stable (b5) branch of coreutils:
21861
21862         * lib/fts.c (fts_children): Don't let close() clobber errno from
21863         failed fchdir().
21864
21865         * lib/fts.c (fts_stat): When following a symlink-to-directory,
21866         don't necessarily interpret stat-fails+lstat-succeeds as indicating
21867         a dangling symlink.  That can also happen at least for ELOOP.
21868         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
21869         FYI, this bug predates the inclusion of fts.c in coreutils.
21870
21871         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
21872         in their own block, so pre-c99 compilers don't object.
21873
21874         Avoid the double-free (first in fts_read, second in fts_close) that
21875         would occur when an `active' directory is made inaccessible (e.g.,
21876         via chmod a-x) during a traversal.
21877         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
21878         before returning.  Reproduce this failure by
21879         mkdir -p a/b; cd a; chmod a-x . b
21880         Reported by Stavros Passas.
21881
21882 2006-01-25  Jim Meyering  <jim@meyering.net>
21883
21884         * lib/fileblocks.c: Remove more useless parentheses.
21885         * lib/readutmp.h: Likewise.
21886
21887 2006-01-25  Bruno Haible  <bruno@clisp.org>
21888
21889         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
21890         warnings.
21891         Reported by Paul Eggert.
21892
21893 2006-01-25  Bruno Haible  <bruno@clisp.org>
21894
21895         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
21896         rid of a trap command. For Solaris sh.
21897         Reported by Mark D. Baushke <mdb@gnu.org>.
21898
21899 2006-01-24  Simon Josefsson  <jas@extundo.com>
21900
21901         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
21902         Bruno.
21903
21904 2006-01-24  Karl Berry  <karl@gnu.org>
21905
21906         * config/srclist.txt (argp-namefrob.h): sync lost.
21907
21908 2006-01-24  Jim Meyering  <jim@meyering.net>
21909
21910         * modules/openat (Files): Add lib/intprops.h.
21911         From Mark D. Baushke.
21912
21913 2006-01-24  Jim Meyering  <jim@meyering.net>
21914
21915         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
21916         Reported by Mark D. Baushke.
21917
21918 2006-01-24  Jim Meyering  <jim@meyering.net>
21919
21920         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
21921
21922 2006-01-24  Bruno Haible  <bruno@clisp.org>
21923
21924         * modules/strnlen (Maintainer): Change from glibc to all.
21925
21926 2006-01-24  Bruno Haible  <bruno@clisp.org>
21927
21928         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
21929         Patch by Paul Eggert.
21930
21931 2006-01-24  Bruno Haible  <bruno@clisp.org>
21932
21933         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
21934         already has it.
21935         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
21936         2005-11-26.
21937
21938         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
21939         'signed char' to avoid problems with the built-in _Bool type.
21940         Reported by Paul Eggert on 2005-11-26.
21941
21942 2006-01-24  Bruno Haible  <bruno@clisp.org>
21943
21944         * gnulib-tool (func_import): Avoid constructing complicated sed
21945         expressions inside backquote.
21946         Report and solution by Mark D. Baushke <mdb@gnu.org>.
21947
21948 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
21949
21950         These changes imported from libc.
21951         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
21952         test and two separate function calls.
21953         * lib/strndup.c (__strndup): Add libc_hidden_def.
21954
21955 2006-01-23  Simon Josefsson  <jas@extundo.com>
21956
21957         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
21958         Remove the test_*_SOURCES variable: automake infers it by default.
21959         * modules/tls-tests: Likewise.
21960
21961 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21962
21963         Work around porting bugs reported by Dieter in
21964         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
21965         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
21966         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
21967         Include "getopt.h" first, to check interface.
21968         (getenv): Declare only if defined HAVE_DECL_GETENV &&
21969         !HAVE_DECL_GETENV.
21970         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
21971         (__strndup): Revert to K&R-style function dfns, the glibc style.
21972         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
21973         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
21974         Include strnlen.h first, to get prototype properly.
21975         (strnlen): Renamed from __strnlen.
21976         Remove weak alias.
21977
21978 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21979
21980         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
21981
21982 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21983
21984         * config/srclist.txt: Adjust to reflect glibc reorganization.
21985         This affects only comments.
21986
21987 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
21988
21989          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
21990          Reported by Bruce Korb <bkorb@gnu.org>.
21991
21992 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
21993
21994         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
21995         to pacify gcc -Wswitch-default.
21996
21997 2006-01-22  Bruno Haible  <bruno@clisp.org>
21998
21999         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
22000         temporary buffer for sprintf, take into account the precision also
22001         for 'd', 'i', 'u', 'o', 'x', 'X'.
22002
22003 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
22004
22005         * modules/argp-tests: New module
22006         * tests/test-argp.c: New file
22007         * tests/test-argp-2.sh: New file
22008
22009 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
22010
22011         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
22012         (__argp_base_name): Removed
22013         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
22014         typo.
22015         (__argp_base_name): Provide macro definition or extern declaration
22016         depending on the configuration
22017
22018 2006-01-20  Simon Josefsson  <jas@extundo.com>
22019
22020         * modules/inet_ntop (Depends-on): Depend on sys_socket.
22021
22022 2006-01-20  Simon Josefsson  <jas@extundo.com>
22023
22024         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
22025
22026 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22027
22028         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
22029         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
22030         Suggested by Bruno Haible.
22031
22032 2006-01-20  Karl Berry  <karl@gnu.org>
22033
22034         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
22035         until changes propagate, I guess.
22036
22037 2006-01-19  Simon Josefsson  <jas@extundo.com>
22038
22039         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
22040
22041 2006-01-19  Simon Josefsson  <jas@extundo.com>
22042
22043         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
22044
22045 2006-01-19  Simon Josefsson  <jas@extundo.com>
22046
22047         * gnulib-tool: Set check_PROGRAMS.
22048
22049         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
22050         modules/des-tests, modules/gc-arcfour-tests,
22051         modules/gc-arctwo-tests, modules/gc-des-tests,
22052         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
22053         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
22054         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22055         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22056         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22057         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
22058         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
22059         test_*_SOURCES.
22060
22061 2006-01-18  Simon Josefsson  <jas@extundo.com>
22062
22063         * modules/socklen (Depends-on): Depend on sys_socket.
22064
22065 2006-01-18  Simon Josefsson  <jas@extundo.com>
22066
22067         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
22068         modules/des-tests, modules/gc-arcfour-tests,
22069         modules/gc-arctwo-tests, modules/gc-des-tests,
22070         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
22071         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
22072         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22073         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22074         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22075         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
22076         $(EXEEXT) to automake TESTS variable, for mingw32.
22077
22078 2006-01-17  Simon Josefsson  <jas@extundo.com>
22079
22080         * modules/socklen (Include): Need sys/socket.h.
22081
22082 2006-01-17  Bruno Haible  <bruno@clisp.org>
22083
22084         * modules/ssize_t (Include): Add <sys/types.h>.
22085
22086 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
22087
22088         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
22089         it's not portable and it doesn't work with cross-compiles.
22090         Problem reported by Bruno Haible.  Fix missing-$ typo in
22091         'test "gl_cv_ignore_unused_libraries" ...' that prevented
22092         -zignore from being used with Sun's C compiler.
22093
22094 2006-01-12  Simon Josefsson  <jas@extundo.com>
22095
22096         * lib/base64.c: Fix warning, reported by Bruno Haible
22097         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
22098
22099 2006-01-12  Bruno Haible  <bruno@clisp.org>
22100
22101         * modules/ldd: New file.
22102         * build-aux/ldd.sh.in: New file.
22103         * MODULES.html.sh (Support for building libraries and executables): Add
22104         ldd.
22105
22106 2006-01-12  Bruno Haible  <bruno@clisp.org>
22107
22108         * m4/ldd.m4: New file.
22109
22110 2006-01-12  Bruno Haible  <bruno@clisp.org>
22111
22112         * gnulib-tool (func_import, func_create_testdir): Don't go into an
22113         endless loop while replacing $auxdir with build-aux.
22114
22115 2006-01-11  Simon Josefsson  <jas@extundo.com>
22116
22117         * lib/stdint_.h (SIZE_MAX): Add missing (.
22118
22119 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22120
22121         Sync from coreutils.
22122         * lib/md5.c: Fix commentary typos.
22123         (alignof, UNALIGNED_P): No need for a GCC-specific version.
22124         * lib/md5.h (__attribute__): Remove; unused.
22125         * lib/sha1.c: Fix commentary to match md5 better.
22126         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
22127         so that we don't need to worry about alignment.  All uses changed.
22128         This merges the 2005-10-28 md5 change into sha1.
22129
22130 2006-01-11  Jim Meyering  <jim@meyering.net>
22131
22132         Sync from coreutils.
22133         * lib/md5.c (OP): Fix spacing.
22134
22135 2006-01-11  Bruno Haible  <bruno@clisp.org>
22136
22137         Ensure automatic ordering between gl_LOCK and gl_ARGP.
22138         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
22139         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
22140
22141 2006-01-11  Bruno Haible  <bruno@clisp.org>
22142
22143         Ensure automatic ordering between gl_LOCK and gl_ARGP.
22144         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
22145         the "early" section as well.
22146
22147 2006-01-11  Bruno Haible  <bruno@clisp.org>
22148
22149         Avoid "ar: no archive members specified" error on MacOS X.
22150         * gnulib-tool (func_modules_add_dummy): New function.
22151         (func_import, func_create_testdir): Invoke it.
22152
22153 2006-01-11  Bruno Haible  <bruno@clisp.org>
22154
22155         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
22156         with $auxdir in AC_CONFIG_FILES statements.
22157
22158 2006-01-11  Bruno Haible  <bruno@clisp.org>
22159
22160         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22161         Initialize also noinst_HEADERS to empty.
22162
22163 2006-01-11  Bruno Haible  <bruno@clisp.org>
22164
22165         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
22166         variables.
22167         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
22168         autoreconf.
22169
22170 2006-01-11  Bruno Haible  <bruno@clisp.org>
22171
22172         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
22173         overridable by the user.
22174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22175
22176 2006-01-10  Simon Josefsson  <jas@extundo.com>
22177
22178         * modules/sys_socket: New file.
22179
22180 2006-01-10  Simon Josefsson  <jas@extundo.com>
22181
22182         * m4/sys_socket_h.m4: New file.
22183
22184 2006-01-10  Simon Josefsson  <jas@extundo.com>
22185
22186         * lib/socket_.h: New file.
22187
22188 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22189
22190         * modules/readutmp (Maintainer): Add myself.
22191
22192 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22193
22194         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
22195         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
22196         People who are still concerned with buggy memcmp implementations
22197         can invoke gl_FUNC_MEMCMP themselves.
22198
22199 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22200
22201         * lib/regex_internal.h (BITSET_WORD_BITS):
22202         Work around a bug in 64-bit PGC (before version 6.1-2), where the
22203         preprocessor mishandles large unsigned values as if they were signed.
22204         Problem reported by Claudio Fontana in
22205         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
22206
22207 2006-01-10  Jim Meyering  <jim@meyering.net>
22208
22209         Avoid the double-free (first in fts_read, second in fts_close) that
22210         would occur when an `active' directory is made inaccessible (e.g.,
22211         via chmod a-x) during a traversal.
22212         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
22213         before returning.  Reproduce this failure by
22214         mkdir -p a/b; cd a; chmod a-x . b
22215         Reported by Stavros Passas.
22216
22217         Sync from coreutils.
22218         * lib/sha1.c: Tweak grammar in a comment.
22219
22220 2006-01-10  Jim Meyering  <jim@meyering.net>
22221
22222         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
22223         Patch by Joerg Sonnenberger.
22224
22225 2006-01-10  Bruno Haible  <bruno@clisp.org>
22226
22227         * modules/readutmp: Depend on module free.
22228         * modules/strtok_r: Depend on module restrict.
22229
22230 2006-01-10  Bruno Haible  <bruno@clisp.org>
22231
22232         * modules/gettext (configure.ac): Add an invocation of
22233         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
22234
22235 2006-01-10  Bruno Haible  <bruno@clisp.org>
22236
22237         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
22238         Reported by Werner Lemberg <wl@gnu.org>.
22239
22240 2006-01-10  Bruno Haible  <bruno@clisp.org>
22241
22242         * lib/localcharset.c: Update from GNU gettext.
22243
22244 2006-01-10  Bruno Haible  <bruno@clisp.org>
22245
22246         * lib/argp.h (__const): Remove macro. Use const instead.
22247         * lib/argp-fmtstream.h (__const): Likewise.
22248         * lib/glob_.h (__const): Remove macro.
22249         * lib/glob-libc.h: Use const instead of __const.
22250
22251 2006-01-10  Bruno Haible  <bruno@clisp.org>
22252
22253         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
22254         variable.
22255         Needed to avoid an automake error regarding the 'gettext' module.
22256
22257 2006-01-09  Simon Josefsson  <jas@extundo.com>
22258
22259         * modules/inet_ntop (Depends-on): Add restrict.
22260
22261 2006-01-09  Simon Josefsson  <jas@extundo.com>
22262
22263         * modules/gc-rijndael-tests (License): Put under LGPL.
22264
22265         * modules/gc-des-tests (License): Likewise.
22266
22267         * modules/gc-arcfour-tests (License): Likewise.
22268
22269         * modules/gc-arctwo-tests (License): Likewise.
22270
22271         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
22272
22273         * modules/gc-hmac-sha1-tests (Files): Likewise.
22274
22275         * modules/gc-hmac-md5-tests (License): Likewise.
22276
22277         * modules/gc-sha1-tests (License): Likewise.
22278
22279         * modules/gc-md5-tests (License): Likewise.
22280
22281         * modules/gc-md4-tests (License): Likewise.
22282
22283         * modules/gc-md2-tests (License): Likewise.
22284
22285         * modules/gc-tests (License): Likewise.
22286
22287         * modules/des-tests (License): Likewise.
22288
22289         * modules/md4-tests (License): Likewise.
22290
22291         * modules/md2-tests (License): Likewise.
22292
22293 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22294
22295         Sync from coreutils:
22296
22297         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
22298         * modules/lib-ignore: New file.
22299         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
22300         chdir-safer.m4, lchmod.m4.
22301         * modules/openat: Add mkdirat.c, openat-priv.h.
22302
22303 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22304
22305         Sync from coreutils.
22306         * m4/lib-ignore.m4: New file.
22307         * m4/lchmod.m4: New file.
22308
22309 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22310
22311         Sync from coreutils.
22312         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
22313         for write access: POSIX says that must fail.
22314         * lib/fts.c (diropen): Likewise.
22315         * lib/save-cwd.c (save_cwd): Likewise.
22316         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
22317         well, for minor improvements on hosts that lack O_DIRECTORY.
22318         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
22319         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
22320         Fall back on chown if open failed with EACCES.
22321
22322         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
22323         Report an error at compile-time if only a 1-second nominal clock
22324         resolution is found.
22325
22326         * lib/lchmod.h: New file.
22327         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
22328         (make_dir_parents): Use lchown rather than chown, and
22329         lchmod rather than chmod.
22330
22331         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
22332         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
22333         "proc" reported by n0dalus.
22334
22335         * lib/mountlist.c: Include <limits.h>.
22336         (dev_from_mount_options)
22337         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
22338         New function.  It no longer assumes "dev=" has the System V meaning
22339         on Linux (since it doesn't).  It also parses "dev=" more carefully.
22340         (read_file_system_list)
22341         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
22342         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
22343         dev= in that case.
22344
22345         * lib/posixtm.h (PDS_PRE_2000): New macro.
22346         * lib/posixtm.c (year): Arg is now syntax_bits rather than
22347         allow_century.  All usages changed.  Reject dates outside the range
22348         1969-1999 if PDS_PRE_2000 is used.
22349
22350 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22351
22352         Sync from coreutils.
22353         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
22354         (Time of day items): Mention the possibility of leap seconds.
22355         Problem reported by Dr. David Alan Gilbert.
22356
22357 2006-01-09  Jim Meyering  <jim@meyering.net>
22358
22359         Sync from coreutils.
22360
22361         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
22362
22363         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
22364
22365         * lib/modechange.c (mode_compile): Reject an invalid mode string
22366         that starts with an octal digit.  From Andreas Gruenbacher.
22367
22368         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
22369         and dup to open_safer and dup_safer, respectively.
22370         (openat_permissive): Fix typo in comment.
22371
22372         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
22373         "gettext.h"; either no longer needed or are guaranteed by openat.h.
22374         (_): Remove; no longer needed.
22375         (openat): Renamed from rpl_openat; no need for rpl_openat
22376         since openat.h renames openat for us.
22377         Replace most of the body with a call to openat_permissive,
22378         to avoid duplicate code.
22379         Port to (probably hypothetical) environments were mode_t is
22380         wider than int.
22381         (openat_permissive): Require mode arg, so that we can check
22382         types better.  Put it just after flags.  Change cwd failure
22383         indicator from pointer-to-bool to pointer-to-errno-value.
22384         All callers changed.
22385         Invoke openat_save_fail and/or openat_restore_fail if
22386         cwd_errno is null, so that openat can call us.
22387         (openat_permissive, fdopendir, fstatat, unlinkat):
22388         Simplify errno handling to avoid some duplicate code,
22389         as it's OK to set errno on success.
22390         * lib/openat.h: Revamp code so that function macros depend on
22391         __OPENAT_PREFIX only, not also on AT_FDCWD.
22392         (openat_ro): Remove.  Caller changed to use openat_permissive.
22393         (openat_permissive): Now a macro, if not a function.
22394         (openat_restore_fail, openat_save_fail): Now always functions,
22395         since mkdirat needs them even if __OPENAT_PREFIX is defined.
22396
22397         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
22398         and openat.c.
22399         * lib/mkdirat.c: Include openat-priv.h.
22400         Remove definitions of macros defined therein.
22401         * lib/openat.c: Likewise.
22402
22403         * lib/mkdirat.c (mkdirat): New file and function.
22404         * lib/openat.h (mkdirat): Declare.
22405
22406         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
22407
22408         * lib/openat.h (openat_permissive): Declare.
22409         (openat_ro): Define.
22410
22411         * lib/openat.c (EXPECTED_ERRNO): New macro.
22412         (openat_permissive): New function -- used in remove.c rewrite.
22413         (all functions): Set errno just before returning, only if there
22414         was an actual failure.
22415         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
22416
22417         Emulate openat-family functions using Linux's procfs, if possible.
22418         Idea and some code based on Ulrich Drepper's glibc changes.
22419
22420         * lib/openat.c: (BUILD_PROC_NAME): New macro.
22421         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
22422         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
22423         before falling back on save_cwd and restore_cwd.
22424         (fdopendir, fstatat, unlinkat): Likewise.
22425
22426         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
22427         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
22428
22429         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
22430         as second argument to va_arg.  Otherwise, some versions of gcc
22431         warn that `if this code is reached, the program will abort'.
22432
22433 2006-01-09  Jim Meyering  <jim@meyering.net>
22434
22435         Sync from coreutils.
22436         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
22437         Require openat-priv.h.
22438
22439 2006-01-09  Bruno Haible  <bruno@clisp.org>
22440
22441         * modules/strnlen (Include): Use strnlen.h.
22442
22443 2006-01-09  Bruno Haible  <bruno@clisp.org>
22444
22445         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
22446
22447 2006-01-09  Bruno Haible  <bruno@clisp.org>
22448
22449         * lib/sysexit_.h (EX_OK): New macro.
22450         Suggested by Martin Lambers <marlam@marlam.de>.
22451
22452 2006-01-09  Bruno Haible  <bruno@clisp.org>
22453
22454         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
22455         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
22456
22457 2006-01-09  Bruno Haible  <bruno@clisp.org>
22458
22459         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
22460         numbers.
22461
22462 2006-01-09  Bruno Haible  <bruno@clisp.org>
22463
22464         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
22465         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
22466         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
22467         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
22468
22469 2006-01-09  Bruno Haible  <bruno@clisp.org>
22470
22471         * build-aux/javacomp.sh.in: New file, moved from lib/.
22472         * modules/javacomp-script (Files): Update.
22473         (configure.ac): Add AC_CONFIG_FILES invocation.
22474         (EXTRA_DIST): Remove variable.
22475
22476         * build-aux/javaexec.sh.in: New file, moved from lib/.
22477         * modules/javaexec (Files): Update.
22478         (configure.ac): Add AC_CONFIG_FILES invocation.
22479         (EXTRA_DIST): Remove javaexec.sh.in.
22480
22481         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
22482         * modules/csharpcomp-script (Files): Update.
22483         (configure.ac): Add AC_CONFIG_FILES invocation.
22484         (EXTRA_DIST): Remove variable.
22485
22486         * build-aux/csharpexec.sh.in: New file, moved from lib/.
22487         * modules/csharpexec (Files): Update.
22488         (configure.ac): Add AC_CONFIG_FILES invocation.
22489         (EXTRA_DIST): Remove csharpexec.sh.in.
22490
22491 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
22492
22493         Sync from coreutils.
22494
22495         Add POSIX ACL support
22496         * lib/acl.h (copy_acl, set_acl): Add declarations.
22497         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
22498         systems other than Linux.
22499         (chmod_or_fchmod): New function: use fchmod when possible,
22500         and chmod otherwise.
22501         (file_has_acl): Add a POSIX ACL implementation, with a
22502         Linux-specific subcase.
22503         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
22504         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
22505         acls are unsupported.
22506         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
22507         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
22508         are unsupported.
22509
22510 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
22511
22512         Sync from coreutils.
22513         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
22514
22515 2006-01-07  Bruno Haible  <bruno@clisp.org>
22516
22517         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
22518         gl_EARLY.
22519
22520 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22521
22522         * lib/strftime.c (tzname): Don't declare if it is already #defined.
22523         Problem reported for Mingw by Mark Junker.
22524
22525 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22526
22527         * README: Gnulib normally doesn't generate a tarball.
22528
22529 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
22530
22531         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
22532         long int, not int, for nanosecond counts, so that people who are
22533         used to POSIX struct timespec won't be surprised.  Reported by Jim
22534         Meyering.
22535
22536 2005-12-28  Bruno Haible  <bruno@clisp.org>
22537
22538         * build-aux/config.rpath: Update from GNU gettext.
22539
22540 2005-12-16  Jim Meyering  <jim@meyering.net>
22541
22542         * modules/fprintftime: New module.
22543         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
22544
22545 2005-12-16  Jim Meyering  <jim@meyering.net>
22546
22547         * m4/fprintftime.m4: New file.
22548
22549 2005-12-16  Jim Meyering  <jim@meyering.net>
22550
22551         * lib/fprintftime.c, lib/fprintftime.h: New files.
22552
22553 2005-12-15  Simon Josefsson  <jas@extundo.com>
22554
22555         * modules/socklen (configure.ac): Fix M4 macro name, to align with
22556         new m4/socklen.m4.
22557
22558 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22559
22560         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
22561         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
22562
22563 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22564
22565         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
22566         * lib/argp-help.c (fill_in_uparams): Check if the constructed
22567         struct uparams is valid. Fall back to the default values if it is
22568         not.
22569
22570 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22571
22572         * modules/argp (Files): Add argp-pin.c
22573         (Depends-on): dirname
22574         (lib_SOURCES): Add argp-pin.c
22575
22576 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22577
22578         * m4/argp.m4:  Check if program_invocation_name and
22579         program_invocation_short_name are declared and define appropriate
22580         macros if they are not.
22581
22582 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22583
22584         * lib/argp-help.c (__argp_base_name): New function
22585         (__argp_short_program_name): Rewrite using __argp_base_name
22586         * lib/argp-namefrob.h: Define program_invocation_name and
22587         program_invocation_short_name if requested
22588         (__argp_base_name): Add prototype
22589         * lib/argp-parse.c (argp_def): Use gettext wrappers
22590         (argp_default_parser): Use __argp_base_name
22591         * lib/argp-pin.c: New file. Defines program_invocation_name and
22592         program_invocation_short_name on systems that lack them.
22593
22594 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
22595
22596         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
22597         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
22598         porting problem reported by Georg Schwarz in
22599         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
22600
22601 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
22602
22603         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
22604         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
22605         porting problem reported by Georg Schwarz in
22606         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
22607
22608 2005-12-05  Bruno Haible  <bruno@clisp.org>
22609
22610         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
22611         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
22612         Reported by Mark Junker <mjscod@gmx.de>.
22613
22614 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
22615
22616         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
22617         Use implementation from Albert Chin, with some
22618         comments/corrections by Stepan Kasal and myself.
22619
22620 2005-12-02  Bruno Haible  <bruno@clisp.org>
22621
22622         * gnulib-tool (func_import): Accept GPLed build tool modules when
22623         --lgpl is given.
22624         * modules/csharpcomp-script: New file.
22625         * modules/csharpcomp: Depend on it.
22626         * modules/javacomp-script: New file.
22627         * modules/javacomp: Depend on it.
22628         Suggested by Simon Josefsson.
22629
22630 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
22631
22632         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
22633         statement, to work around an HP-UX 10.20 compiler bug reported by
22634         Peter O'Gorman.
22635
22636 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
22637
22638         * modules/savedir (Depends-on): Add openat.
22639
22640 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
22641
22642         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
22643         (uintmax_t) [defined uintmax_t]: Do not declare.
22644         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
22645         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
22646         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
22647         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
22648         sake of portability to weird hosts that C allows (though we don't
22649         know of any practical examples).
22650
22651         * lib/savedir.h (fdsavedir): New decl.
22652         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
22653         contains most of the former guts of savedir.
22654         (savedir): Use savedirstream.
22655         Include "openat.h".
22656
22657 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22658
22659         * modules/obstack (Files): Add m4/ulonglong.m4.
22660         Problem reported by Davide Angelocola.
22661
22662 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
22663
22664         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
22665         coreutils no longer futzes with rounding modes.
22666
22667 2005-11-14  Jim Meyering  <jim@meyering.net>
22668
22669         * lib/mkstemp-safer.c: Include <config.h>, required for possible
22670         replacement of mkstemp.
22671
22672 2005-11-10  Simon Josefsson  <jas@extundo.com>
22673
22674         * lib/readline.c: Remove EOL.
22675
22676 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
22677
22678         * modules/gethrxtime (Depends-on): Add gettime.
22679
22680 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
22681
22682         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
22683         or gettimeofday; no longer needed.
22684
22685 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
22686
22687         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
22688         time business.
22689         (gethrxtime) [! (HAVE_NANOUPTIME
22690         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
22691         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
22692         our own approximation.
22693
22694 2005-11-08  Eric Blake  <ebb9@byu.net>
22695
22696         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
22697
22698 2005-11-08  Eric Blake  <ebb9@byu.net>
22699
22700         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
22701
22702 2005-11-04  Bruno Haible  <bruno@clisp.org>
22703
22704         * gnulib-tool: Implement --update mode.
22705
22706 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
22707
22708         Fix porting problem reported by Theodoros V. Kalamatianos.
22709         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
22710         Don't assume that futimes failing means we must fail.
22711
22712 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
22713
22714         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
22715         variables to suggest the intended function of the PATH_MAX check.
22716
22717 2005-10-30  Kean Johnston  <jkj@sco.com>
22718
22719         Trivial changes to support SCO systems.
22720         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
22721         as PATH_MAX.
22722         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
22723         where __ptr is null when no I/O is pending.
22724
22725 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
22726
22727         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
22728         leave errno alone.  Problem reported by Dmitry V. Levin.
22729
22730 2005-10-28  Simon Josefsson  <jas@extundo.com>
22731
22732         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
22733         Test more.
22734
22735         * tests/test-gc-md2.c, tests/test-md2.c: New files.
22736
22737         * modules/md2, modules/md2-tests: New files.
22738
22739 2005-10-28  Simon Josefsson  <jas@extundo.com>
22740
22741         * m4/inet_ntop.m4: More tests.
22742
22743         * m4/gc-md2.m4, md2.m4: New file.
22744
22745 2005-10-28  Simon Josefsson  <jas@extundo.com>
22746
22747         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
22748         "restrict" keywords, as per POSIX.  Protect the function
22749         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
22750         Don't use K&R prototypes.  Check the sprintf return values.
22751         Re-define EAFNOSUPPORT if not present.  Indent.
22752
22753         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
22754         suggested by Bruno Haible <bruno@clisp.org>.
22755
22756         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
22757
22758         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
22759
22760         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
22761         libgcrypt).
22762
22763         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
22764
22765         * lib/md2.h, lib/md2.c: New files.
22766
22767 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
22768
22769         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
22770         errno alone.  Problem reported by Frederic Jolliton.
22771
22772 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
22773
22774         * modules/verify (License): Change from GPL to LGPL.  This is a
22775         tiny module and there are apparently near-equivalents that are
22776         under the BSD license.
22777
22778 2005-10-24  Simon Josefsson  <jas@extundo.com>
22779
22780         * modules/sha1: Relicense to LGPL.
22781
22782 2005-10-24  Simon Josefsson  <jas@extundo.com>
22783
22784         * lib/md4.h: Shrink buffer size, now that we changed the type.
22785
22786 2005-10-23  Simon Josefsson  <jas@extundo.com>
22787
22788         * gnulib-tool (func_import): Fix --tests-base.
22789
22790 2005-10-22  Simon Josefsson  <jas@extundo.com>
22791
22792         * modules/arcfour (Depends-on): Need stdint.
22793
22794 2005-10-22  Simon Josefsson  <jas@extundo.com>
22795
22796         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
22797         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
22798
22799 2005-10-22  Simon Josefsson  <jas@extundo.com>
22800
22801         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
22802         suggested by Bruno Haible <bruno@clisp.org>.
22803
22804 2005-10-22  Simon Josefsson  <jas@extundo.com>
22805
22806         * lib/crc.h: Include stddef.h, for size_t.
22807
22808 2005-10-22  Simon Josefsson  <jas@extundo.com>
22809
22810         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
22811         arcfour_context struct (simplify test vector testing in GNU
22812         Shishi).
22813
22814 2005-10-21  Simon Josefsson  <jas@extundo.com>
22815
22816         * modules/des, modules/des-tests: New files.
22817
22818         * modules/gc-des, modules/gc-des-tests: New files.
22819
22820         * tests/test-des.c, tests/test-gc-des.c: New file.
22821
22822 2005-10-21  Simon Josefsson  <jas@extundo.com>
22823
22824         * modules/arctwo, modules/arctwo-tests: New files.
22825
22826         * tests/test-arctwo.c: New file.
22827
22828         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
22829
22830         * tests/test-gc-arctwo.c: New file.
22831
22832 2005-10-21  Simon Josefsson  <jas@extundo.com>
22833
22834         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
22835         Bruno Haible <bruno@clisp.org>.
22836
22837         * m4/gc-des.m4: New file.
22838
22839 2005-10-21  Simon Josefsson  <jas@extundo.com>
22840
22841         * m4/arctwo.m4: New file.
22842
22843         * m4/gc-arctwo.m4: New file.
22844
22845 2005-10-21  Simon Josefsson  <jas@extundo.com>
22846
22847         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
22848         block.
22849
22850 2005-10-21  Simon Josefsson  <jas@extundo.com>
22851
22852         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
22853         <bruno@clisp.org>.
22854
22855         * lib/hmac-sha1.c (hmac_sha1): Likewise.
22856
22857         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
22858         Bruno Haible <bruno@clisp.org>.
22859
22860         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
22861         <bruno@clisp.org>.
22862
22863 2005-10-21  Simon Josefsson  <jas@extundo.com>
22864
22865         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
22866
22867 2005-10-21  Simon Josefsson  <jas@extundo.com>
22868
22869         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
22870
22871 2005-10-21  Simon Josefsson  <jas@extundo.com>
22872
22873         * lib/des.h, lib/des.c: New files.
22874
22875         * lib/gc-gnulib.c: Support DES.c
22876
22877 2005-10-21  Simon Josefsson  <jas@extundo.com>
22878
22879         * lib/arctwo.h, lib/arctwo.c: New files.
22880
22881         * lib/gc-gnulib.c: Support ARCTWO.
22882
22883 2005-10-21  Simon Josefsson  <jas@extundo.com>
22884
22885         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
22886         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22887
22888 2005-10-21  Simon Josefsson  <jas@extundo.com>
22889
22890         * gnulib-tool (func_import, func_create_testdir): Define automake
22891         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
22892         Makefile.am snippet),
22893         suggested by Bruno Haible <bruno@clisp.org>.
22894
22895         * modules/gc (Makefile.am): Use it.
22896
22897 2005-10-21  Bruno Haible  <bruno@clisp.org>
22898
22899         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
22900         patch.
22901
22902 2005-10-19  Simon Josefsson  <jas@extundo.com>
22903
22904         * tests/test-gc-rijndael.c: New file.
22905
22906         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
22907
22908 2005-10-19  Simon Josefsson  <jas@extundo.com>
22909
22910         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
22911         interface too.
22912
22913 2005-10-19  Simon Josefsson  <jas@extundo.com>
22914
22915         * tests/test-gc-arcfour.c: New file.
22916
22917         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
22918
22919 2005-10-19  Simon Josefsson  <jas@extundo.com>
22920
22921         * modules/gc-md4, modules/gc-md4-tests: New file.
22922
22923         * tests/test-gc-md4.c: New file.
22924
22925 2005-10-19  Simon Josefsson  <jas@extundo.com>
22926
22927         * m4/gc-md4.m4: New file.
22928
22929 2005-10-19  Simon Josefsson  <jas@extundo.com>
22930
22931         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
22932         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
22933         <kasal@ucw.cz>.
22934
22935 2005-10-19  Simon Josefsson  <jas@extundo.com>
22936
22937         * m4/gc-arcfour.m4: New file.
22938
22939         * m4/gc-rijndael.m4: New file.
22940
22941 2005-10-19  Simon Josefsson  <jas@extundo.com>
22942
22943         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
22944
22945 2005-10-19  Simon Josefsson  <jas@extundo.com>
22946
22947         * lib/gc-gnulib.c: Support ARCFOUR.
22948
22949 2005-10-19  Simon Josefsson  <jas@extundo.com>
22950
22951         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
22952         support.
22953
22954         * lib/gc.h: Add ECB enum type.
22955
22956         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
22957
22958 2005-10-18  Simon Josefsson  <jas@extundo.com>
22959
22960         * tests/test-md5.c: New file.
22961
22962         * modules/md5-tests: New file.
22963
22964 2005-10-18  Simon Josefsson  <jas@extundo.com>
22965
22966         * tests/test-md4.c: New file.
22967
22968         * modules/md4, modules/md4-tests: New files.
22969
22970 2005-10-18  Simon Josefsson  <jas@extundo.com>
22971
22972         * m4/md4.m4: New file.
22973
22974 2005-10-18  Simon Josefsson  <jas@extundo.com>
22975
22976         * lib/md4.h, lib/md4.c: New files, based on md5.?.
22977
22978 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
22979
22980         * gnulib-tool (func_create_testdir): Omit the second check whether
22981         BUILT_SOURCES in nonempty.
22982
22983 2005-10-17  Simon Josefsson  <jas@extundo.com>
22984
22985         * tests/test-rijndael.c: New file.
22986
22987 2005-10-17  Simon Josefsson  <jas@extundo.com>
22988
22989         * modules/sha1: Depend on stdint instead of md5.
22990
22991         * modules/md5: Depend on stdint, remove uint32_t.
22992
22993 2005-10-17  Simon Josefsson  <jas@extundo.com>
22994
22995         * modules/gc-sha1-tests: New file.
22996
22997         * tests/test-gc-sha1.c: New file.
22998
22999 2005-10-17  Simon Josefsson  <jas@extundo.com>
23000
23001         * m4/md5.m4: Remove call to uint32_t.m4.
23002
23003 2005-10-17  Simon Josefsson  <jas@extundo.com>
23004
23005         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
23006
23007         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
23008         md5.h.
23009
23010         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
23011
23012         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
23013
23014 2005-10-17  Simon Josefsson  <jas@extundo.com>
23015
23016         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
23017
23018 2005-10-17  Simon Josefsson  <jas@extundo.com>
23019
23020         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
23021
23022 2005-10-17  Simon Josefsson  <jas@extundo.com>
23023
23024         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
23025
23026         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
23027
23028 2005-10-17  Bruno Haible  <bruno@clisp.org>
23029
23030         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
23031         that it can also be used in a test.
23032
23033 2005-10-16  Bruno Haible  <bruno@clisp.org>
23034
23035         * gnulib-tool (func_emit_tests_Makefile_am): Also define
23036         TESTS_ENVIRONMENT, so that individual tests can augment it.
23037
23038         * gnulib-tool (func_create_testdir): Use an intermediate target for
23039         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
23040         macros, like $(ALLOCA_H), which cannot be passed through the command
23041         line.
23042
23043 2005-10-15  Simon Josefsson  <jas@extundo.com>
23044
23045         * modules/rijndael-tests: New file.
23046
23047         * modules/rijndael: New file.
23048
23049 2005-10-15  Simon Josefsson  <jas@extundo.com>
23050
23051         * m4/rijndael.m4: New file.
23052
23053 2005-10-15  Simon Josefsson  <jas@extundo.com>
23054
23055         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
23056
23057         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
23058
23059 2005-10-14  Simon Josefsson  <jas@extundo.com>
23060
23061         * tests/test-arcfour.c: New file.
23062
23063         * modules/arcfour, modules/arcfour-tests: New files.
23064
23065 2005-10-14  Simon Josefsson  <jas@extundo.com>
23066
23067         * m4/arcfour.m4: New file.
23068
23069 2005-10-14  Simon Josefsson  <jas@extundo.com>
23070
23071         * lib/arcfour.h, lib/arcfour.c: New files.
23072
23073 2005-10-14  Roland McGrath  <roland@redhat.com>
23074
23075         Import from libc.  [BZ #1331]
23076         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
23077         macro argument.
23078         Reported by Matej Vela <vela@debian.org>.
23079
23080 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
23081
23082         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
23083         include <wchar.h>; no longer needed.
23084
23085 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
23086
23087         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
23088
23089 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
23090         and  Ulrich Drepper  <drepper@redhat.com>
23091
23092         Import from libc.
23093         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
23094         instead of inline stream orientation test and two separate
23095         function calls.  Pay no attention to USE_IN_LIBIO.
23096
23097 2005-10-13  Simon Josefsson  <jas@extundo.com>
23098
23099         * modules/gc-hmac-md5-tests: New file.
23100
23101         * tests/test-gc-hmac-sha1.c: New file.
23102
23103         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
23104
23105         * modules/gc-hmac-md5-tests: New file.
23106
23107         * tests/test-gc-md5.c: New file.
23108
23109         * modules/gc-md5-tests: New file.
23110
23111 2005-10-13  Simon Josefsson  <jas@extundo.com>
23112
23113         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
23114         Move memory allocation outside of loop.
23115
23116 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23117
23118         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
23119         intermediate directory is in a read-only file system.  Problem
23120         reported by Eric Blake.
23121
23122 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
23123
23124         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
23125
23126 2005-10-12  Simon Josefsson  <jas@extundo.com>
23127
23128         * tests/test-hmac-sha1.c: New file.
23129
23130         * modules/hmac-sha1-tests: New file.
23131
23132         * modules/hmac-sha1: New file.
23133
23134 2005-10-12  Simon Josefsson  <jas@extundo.com>
23135
23136         * modules/gc-sha1: New file.
23137
23138 2005-10-12  Simon Josefsson  <jas@extundo.com>
23139
23140         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
23141
23142         * tests/test-gc-pbkdf2-sha1.c: New file.
23143
23144 2005-10-12  Simon Josefsson  <jas@extundo.com>
23145
23146         * modules/gc-md5, modules/gc-hmac-md5: New files.
23147
23148         * modules/gc (Files): Remove md5, memxor and hmac files.
23149
23150 2005-10-12  Simon Josefsson  <jas@extundo.com>
23151
23152         * m4/gc-pbkdf2-sha1.m4: New file.
23153
23154         * m4/gc-hmac-sha1.m4: New file.
23155
23156         * m4/gc-sha1: New file.
23157
23158         * m4/hmac-sha1.m4: New file.
23159
23160 2005-10-12  Simon Josefsson  <jas@extundo.com>
23161
23162         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
23163
23164         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
23165
23166 2005-10-12  Simon Josefsson  <jas@extundo.com>
23167
23168         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
23169         suggested by Bruno Haible <bruno@clisp.org>.
23170
23171 2005-10-12  Simon Josefsson  <jas@extundo.com>
23172
23173         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
23174
23175 2005-10-12  Simon Josefsson  <jas@extundo.com>
23176
23177         * lib/gc-pbkdf2-sha1.c: New file.
23178
23179         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
23180
23181 2005-10-12  Simon Josefsson  <jas@extundo.com>
23182
23183         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
23184
23185         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
23186
23187 2005-10-12  Simon Josefsson  <jas@extundo.com>
23188
23189         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
23190         GC_USE_HMAC_MD5, respectively.
23191
23192         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
23193         (gc_md5): Fix typo.
23194
23195         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
23196
23197         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
23198
23199         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
23200
23201 2005-10-12  Bruno Haible  <bruno@clisp.org>
23202
23203         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
23204         Reported by Stepan Kasal <kasal@ucw.cz>.
23205
23206 2005-10-11  Simon Josefsson  <jas@extundo.com>
23207
23208         * tests/test-crc.c: New file.
23209
23210         * modules/crc, modules/crc-tests: New files.
23211
23212 2005-10-11  Simon Josefsson  <jas@extundo.com>
23213
23214         * m4/crc.m4: New file.
23215
23216 2005-10-11  Simon Josefsson  <jas@extundo.com>
23217
23218         * lib/gc.h: Add gc_hash and gc_hash_buffer.
23219
23220         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
23221
23222         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
23223
23224 2005-10-11  Simon Josefsson  <jas@extundo.com>
23225
23226         * lib/crc.h, lib/crc.c: New files.
23227
23228         * lib/gc.h (gc_hash_buffer): Add doc.
23229
23230 2005-10-11  Bruno Haible  <bruno@clisp.org>
23231
23232         * modules/c-strcasestr: New file.
23233         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
23234
23235 2005-10-11  Bruno Haible  <bruno@clisp.org>
23236
23237         * modules/c-strcase: New file.
23238         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
23239
23240 2005-10-11  Bruno Haible  <bruno@clisp.org>
23241
23242         * lib/strcasecmp.c: Include limits.h.
23243         (strcasecmp): Avoid integer overflow on exotic platforms.
23244         * lib/strncasecmp.c: Include limits.h.
23245         (strncasecmp): Avoid integer overflow on exotic platforms.
23246         Reported by Paul Eggert.
23247
23248 2005-10-11  Bruno Haible  <bruno@clisp.org>
23249
23250         * lib/c-strcasestr.h: New file, from GNU gettext.
23251         * lib/c-strcasestr.c: New file, from GNU gettext.
23252
23253 2005-10-11  Bruno Haible  <bruno@clisp.org>
23254
23255         * lib/c-strcase.h: New file, from GNU gettext.
23256         * lib/c-strcasecmp.c: New file, from GNU gettext.
23257         * lib/c-strncasecmp.c: New file, from GNU gettext.
23258
23259 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23260
23261         * modules/mempcpy (License): GPL -> LGPL.
23262         * modules/strchrnul (License): Likewise.
23263         * modules/sysexits (License): Likewise.
23264
23265 2005-10-08  Simon Josefsson  <jas@extundo.com>
23266
23267         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
23268
23269 2005-10-07  Simon Josefsson  <jas@extundo.com>
23270
23271         * m4/memxor.m4: Remove gl_C_RESTRICT call.
23272
23273 2005-10-06  Simon Josefsson  <jas@extundo.com>
23274
23275         * tests/test-hmac-md5.c: New file.
23276
23277         * modules/hmac-md5-tests: New file.
23278
23279         * modules/hmac-md5: New file.
23280
23281 2005-10-06  Simon Josefsson  <jas@extundo.com>
23282
23283         * m4/hmac-md5.m4: New file.
23284
23285         * m4/memxor.m4: Require gl_C_RESTRICT.
23286
23287 2005-10-06  Simon Josefsson  <jas@extundo.com>
23288
23289         * lib/memxor.c (memxor): Avoid casts and warnings.
23290
23291 2005-10-06  Simon Josefsson  <jas@extundo.com>
23292
23293         * lib/hmac-md5.c: New file.
23294
23295         * lib/hmac.h: New file.
23296
23297 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23298
23299         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
23300         promotes to int, not unsigned int, to catch the AIX 5.3
23301         compiler bug.
23302
23303 2005-10-05  Simon Josefsson  <jas@extundo.com>
23304
23305         * modules/memxor: New file.
23306
23307         * modules/iconv (Files): Move config.rpath to havelib, it is used
23308         there.
23309
23310         * modules/havelib (Files): Add config.rpath.
23311
23312 2005-10-05  Simon Josefsson  <jas@extundo.com>
23313
23314         * m4/memxor.m4: New file.
23315
23316 2005-10-05  Simon Josefsson  <jas@extundo.com>
23317
23318         * lib/memxor.c (memxor): Fix compiler error.
23319
23320         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
23321         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
23322
23323         * lib/memxor.h, lib/memxor.c: New files.
23324
23325         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
23326         we assume all systems have it, suggested by Jim Meyering
23327         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
23328         any systems lack sys/socket.h; mingw32 is known to lack it, but we
23329         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
23330         same reasons.
23331
23332 2005-10-05  Simon Josefsson  <jas@extundo.com>
23333
23334         * config/srclist.txt: Add glibc bug 1423 for md5.h.
23335
23336 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23337
23338         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
23339         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
23340         needed, since the source code now assumes these .h files.
23341
23342 2005-10-05  Derek Price  <derek@ximbiot.com>
23343
23344         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
23345
23346 2005-10-05  Bruno Haible  <bruno@clisp.org>
23347
23348         * modules/stdint (License): Change to LGPL.
23349
23350 2005-10-04  Simon Josefsson  <jas@extundo.com>
23351
23352         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
23353         D. Baushke" <mdb@gnu.org>.
23354
23355 2005-10-04  Bruno Haible  <bruno@clisp.org>
23356
23357         * lib/verify.h (verify_true): Provide alternative definition for C++.
23358
23359 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
23360
23361         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
23362         (SSIZE_MAX): New macro, if not already defined.
23363         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
23364         than 2 GiB.
23365
23366 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23367
23368         Sync from coreutils.
23369         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
23370         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
23371         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
23372         ULLONG_MAX doesn't work with 2.7.2.1.
23373
23374 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23375
23376         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
23377         From Ben Pfaff.
23378
23379         * modules/exclude (Depends-on): Depend on verify.
23380         * modules/strtoimax (Depends-on): Likewise.
23381         * modules/utimecmp (Depends-on): Likewise.
23382
23383 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23384
23385         * lib/exclude.c: Include verify.h.
23386         (verify): Remove.  All callers changed to use verify.h's version.
23387         * lib/strtoimax.c: Likewise.
23388         * lib/utimecmp.c: Likewis.e
23389
23390         Sync from coreutils.
23391         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
23392         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
23393         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
23394         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
23395         bother returning ENOSYS if settimeofday or stime fails; just let
23396         them return whatever errno they want to return.
23397         * lib/utimens.c: Include unistd.h, for dup2.
23398         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
23399         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
23400
23401 2005-10-02  Jim Meyering  <jim@meyering.net>
23402
23403         Sync from coreutils.
23404         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
23405         from glibc-2.2.5 that fails for read-only files.
23406
23407 2005-10-02  Jim Meyering  <jim@meyering.net>
23408
23409         Sync from coreutils.
23410         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
23411         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
23412         `#if HAVE_CONFIG_H'.
23413         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
23414         Remove AT_FDCWD test.
23415         Do not consume the fd unless successful.
23416         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
23417         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
23418         block, so that we don't even try to compile it if settimeofday is
23419         available.  This works around a compilation failure on OSF1 V5.1,
23420         due to stime requiring a `long int*' while tv_sec is `int'.
23421
23422 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
23423
23424         Sync from coreutils.
23425         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
23426         against `yes', rather than just testing for nonempty.
23427
23428 2005-10-01  Simon Josefsson  <jas@extundo.com>
23429
23430         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
23431         and Darwin.
23432
23433         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
23434         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
23435         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
23436         freeaddrinfo and gai_strerror are declared by the POSIX headers.
23437         Check if struct addrinfo is declared.
23438
23439 2005-10-01  Simon Josefsson  <jas@extundo.com>
23440
23441         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
23442         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
23443         AI_* and EAI_* definitions.  Protect function declarations.
23444
23445 2005-10-01  Jim Meyering  <jim@meyering.net>
23446
23447         Sync from coreutils.
23448
23449         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
23450         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
23451         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
23452         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
23453         in the inet and nsl libraries.  Required on Solaris 5.7.
23454
23455 2005-10-01  Jim Meyering  <jim@meyering.net>
23456
23457         Sync from coreutils.
23458         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
23459         in the inet and nsl libraries.  Required on Solaris 5.7.
23460
23461 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
23462
23463         * lib/getdelim.c (getdelim): Remove unused variables.
23464
23465 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
23466
23467         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
23468         so that the code works even with ancient cpp.  Portability problem
23469         with GCC 2.7.2.1 reported by Thomas M.Ott.
23470
23471 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
23472
23473         * modules/regex (Depends-on): Add strcase.
23474
23475         * modules/gethostname (Licence): Change from GPL to LGPL, since
23476         gethostname.c is a trivial implementation of a standard library
23477         function.
23478         * modules/poll (License): Change from GPL to LGPL, since it's
23479         derived from LGPL code.
23480
23481 2005-09-27  Jim Meyering  <jim@meyering.net>
23482
23483         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
23484         HAVE_CONFIG_H.
23485
23486         * lib/intprops.h (signed_type_or_expr__): Define.
23487         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
23488         for unsigned types.
23489
23490 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
23491
23492         * lib/verify.h (verify_expr): Remove, replacing with:
23493         (verify_true): New macro that returns true instead of void.
23494         (verify_type__): Remove.
23495         (verify): Use verify_true rather than verify_type__.
23496
23497 2005-09-26  Bruno Haible  <bruno@clisp.org>
23498
23499         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
23500         is necessary.
23501         (lib_SOURCES): Remove mbchar.c.
23502         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
23503         (Files): Add m4/mbrtowc.m4.
23504         * modules/mbiter: Likewise.
23505         * modules/mbuiter: Likewise.
23506
23507 2005-09-26  Bruno Haible  <bruno@clisp.org>
23508
23509         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
23510         compile mbchar.c if they are not both present.
23511         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
23512         * m4/mbiter.m4 (gl_MBITER): Likewise.
23513         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
23514         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
23515         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
23516
23517 2005-09-25  Jim Meyering  <jim@meyering.net>
23518
23519         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
23520         also uses socklen_t.
23521
23522 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
23523
23524         * lib/utimens.c (ENOSYS): Define if not already defined.
23525         (futimens): Support having a null PATH if the file descriptor
23526         is nonnegative.
23527
23528         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
23529         Remove.
23530         (__attribute): Define to empty unless GCC 3.1 or later.
23531         This works around a core dump on OpenBSD 3.4, which has GCC
23532         2.95.3, which dumps core when given __attribute__(()).  It also
23533         simplifies other tests, since we really don't want to bother with
23534         worrying about which ancient version of GCC supported what.
23535         Original problem reported by Yoann Vandoorselaere, with part of
23536         the fix suggested by Derek Price.
23537
23538 2005-09-24  Jim Meyering  <jim@meyering.net>
23539
23540         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
23541         so we can once again use a positive bitfield width of 1 -- now we
23542         don't have to explain why we were using a bitfield width of 2.
23543
23544 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
23545
23546         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
23547         and similarly for the other external symbols.  Problem reported
23548         by James Gallager.
23549
23550         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
23551         bug reported by Jim Meyering.
23552
23553         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
23554         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
23555         not needed, since socklen is a prerequisite module.
23556
23557 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
23558
23559         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
23560         Problem reported by Eric Blake.
23561         (getaddrinfo): Initialize se so that it's not garbage.
23562         Redo internal storage allocation so that it doesn't make unportable
23563         assumptions about alignment.
23564         Fix a memory leak.
23565
23566         * lib/utimens.c (futimens): Use futimesat if available.
23567         Prefer it to futimes since it doesn't have the futimes bug.
23568
23569         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
23570         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
23571         Instead, declare a function that returns a pointer to an array,
23572         and use verify_type__ to declare the size of the array.
23573         Problem and germ of a solution reported by Bruno Haible.
23574         (verify_type__): Use 2, not 1, for bitfield size, to avoid
23575         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
23576
23577 2005-09-23  Jim Meyering  <jim@meyering.net>
23578
23579         Sync from coreutils.
23580         Correct build failure (socklen_t not defined) on at least
23581         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
23582         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
23583
23584 2005-09-23  Jim Meyering  <jim@meyering.net>
23585
23586         * modules/getaddrinfo (Depends-on): Add socklen.
23587
23588 2005-09-23  Bruno Haible  <bruno@clisp.org>
23589
23590         * tests/test-verify.c: New file.
23591
23592 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23593
23594         Sync from coreutils.
23595
23596         * modules/argmatch (Depends-on): Add verify.
23597         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
23598         unistd-safer.
23599         * modules/save-cwd (Depends-on): Likewise.
23600
23601         * modules/openat (Files): Add lib/openat-die.c.
23602         (Depends-on): Remove error, exitfail.
23603         Add dirname.
23604
23605         * modules/verify: New file.
23606         * MODULES.html.sh (Diagnostics <assert.h>): New section,
23607         with "verify" module.
23608
23609 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23610
23611         Sync from coreutils.
23612
23613         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
23614         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
23615         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
23616         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
23617         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
23618         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
23619         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
23620         Don't bother checking for string.h, stdlib.h, unistd.h.
23621         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
23622         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
23623         module's job.
23624         * m4/jm-macros.m4 (gl_MACROS): Likewise.
23625         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
23626
23627         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
23628         (gl_GETDATE): Use it.
23629
23630         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
23631
23632 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23633
23634         Sync from coreutils.
23635
23636         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
23637         stat-time.h.
23638         * lib/argmatch.h: Include verify.h
23639         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
23640         (ARGMATCH_ASSERT): Remove; unused.
23641         * lib/canonicalize.c: Assume STDC_HEADERS.
23642         * lib/exclude.c: Include "strcase.h".
23643         * lib/regex_internal.h [!defined _LIBC]: Likewise.
23644         * lib/getusershell.c: Include stdio--.h rather than stdio.h
23645         and stdio-safer.h.
23646         (getusershell): Call fopen, not fopen_safer.
23647         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
23648         Do not include unistd-safer.h.
23649         (save_cwd): Don't call fd_safer; no longer needed
23650         now that we include fcntl--.h.
23651
23652         * lib/getdate.y (relative_time): New type.
23653         (RELATIVE_TIME_0): New constant.
23654         (parser_control): Use relative_time instead of doing it ourselves.
23655         (%union): Add new relative_time rel member.
23656         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
23657         Now typeless.
23658         (relunit, relunit_snumber): Now of type rel.
23659         (zone, rel, relunit, get_date): Adjust to above changes.
23660
23661         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
23662         Do not include unistd-safer.h.
23663         (getloadavg): Don't call fd_safer; no longer needed
23664         now that we include fcntl--.h.
23665
23666         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
23667         (make_dir_parents): Treat ENOSYS like EEXIST.
23668
23669         Improve quality of diagnostics on restore_cwd failure.
23670         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
23671         (make_dir_parents): Last arg is now int * (for errno), not bool *.
23672         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
23673         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
23674         each time through the loop.  Do not diagnose restore_cwd failure;
23675         that is the caller's job (and perhaps the caller does not care).
23676
23677         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
23678         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
23679         If the file already exists but is not a directory, don't bother
23680         to try to make its parents.
23681         Close potential file descriptor leak if we can't chdir("/") (!).
23682         Don't always return true if chdir($PWD) fails; return true only
23683         if the requested action was done successfully (except for the
23684         chdir($PWD)).
23685         Don't log final directory unless we actually made it.
23686         Refactor to avoid duplicate code to fix up permissions.
23687         Don't attempt to fix up parent permissions if chdir($PWD) fails.
23688
23689         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
23690         to make it a bit faster and (I hope) clearer.
23691         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
23692         Fix bug in formats like %2N.
23693
23694         * lib/verify.h: New file.
23695
23696 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23697
23698         Sync from coreutils.
23699         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
23700
23701 2005-09-22  Jim Meyering  <jim@meyering.net>
23702
23703         Sync from coreutils.
23704
23705         * m4/lstat.m4 (gl_FUNC_LSTAT):
23706         Use AC_LIBSOURCES to require lstat.c and lstat.h.
23707         Remove obsolete comment.
23708         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
23709         * m4/xstrtod.m4: Likewise.
23710
23711         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
23712
23713 2005-09-22  Jim Meyering  <jim@meyering.net>
23714
23715         Sync from coreutils.
23716
23717         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
23718
23719         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
23720         the .tm_year member, since otherwise gcc-4.0 would now warn about
23721         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
23722
23723         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
23724         order to avoid an unsuppressible warning from gcc on 64-bit systems.
23725
23726         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
23727         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
23728         when run in a time zone for which daylight savings time is in effect
23729         for the starting date.
23730
23731         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
23732         stop us from restricting permissions of just-created absolute-named
23733         directories.
23734         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
23735         to restore initial working directory.
23736         * lib/mkdir-p.c (make_dir_parents): New parameter:
23737         different_working_dir, to tell caller if/when we change the working
23738         directory and are unable to return to the initial one.
23739         * lib/mkdir-p.h (make_dir_parents): Update prototype.
23740         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
23741         `return false'.  This fixes a bug introduced on 2004-07-30.
23742
23743         * lib/openat.c (fdopendir): Be sure to close the supplied
23744         file descriptor before returning.  This makes our replacement
23745         implementation a little closer to Solaris's, where fdopendir
23746         ties the file descriptor to the returned DIR* pointer.
23747         * lib/openat.c (unlinkat): New function.
23748         * lib/openat.h (unlinkat): Add prototype.
23749         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
23750         (openat_restore_fail): Rename from openat_restore_die.
23751         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
23752
23753         Provide an alternative to exiting immediately upon save_cwd or
23754         restore_cwd failure.  Now, an application can arrange e.g.,
23755         to perform a longjump in that case.
23756         * lib/openat.c: Include dirname.h.
23757         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
23758         (rpl_openat, fdopendir, fstatat): Call openat_save_die
23759         and openat_restore_die rather than calling error directly.
23760         Don't include "error.h" or "exitfail.h"; they're no longer needed.
23761
23762         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
23763         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
23764         define.
23765
23766         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
23767         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
23768                             int utc, int nanoseconds);
23769         Background:
23770         date should not have to allocate a megabyte of virtual memory to
23771         handle a format argument like +%1048575T.  When implemented with
23772         strftime, it must allocate such a buffer, use strftime to fill it
23773         in, print it, then free it.
23774         With fprintftime, it simply prints everything and exits.
23775         With no need for memory allocation, that's one fewer way to fail.
23776         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
23777         optional field width, not before, so we accept %9:z, not %:9z.
23778         (my_strftime): Be sure to use L_('x') for literals.
23779
23780         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
23781         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
23782         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
23783         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
23784         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
23785         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
23786         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
23787         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
23788         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
23789         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
23790         * lib/xgethostname.c, lib/xreadlink.c:
23791         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
23792
23793         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
23794         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
23795         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
23796         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
23797         and don't include <sys/file.h>).
23798
23799 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
23800
23801         Sync from coreutils.
23802
23803         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
23804         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
23805         [!LDAV_DONE]: Avoid unused variable warning.
23806
23807 2005-09-21  Bruno Haible  <bruno@clisp.org>
23808
23809         * lib/unicodeio.h (unicode_to_mb): New declaration.
23810
23811 2005-09-20  Derek Price  <derek@ximbiot.com>
23812
23813         * lib/getaddrinfo.c: Don't include <netdb.h> included from
23814         getaddrinfo.h.
23815
23816 2005-09-20  Bruno Haible  <bruno@clisp.org>
23817
23818         * gnulib-tool: Remove trailing slashes from the values specified for
23819         --source-base, --m4-base, --tests-base, --aux-dir.
23820         Suggested by Simon Josefsson <jas@extundo.com>.
23821
23822 2005-09-20  Bruno Haible  <bruno@clisp.org>
23823
23824         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
23825         func_modules_to_filelist, func_import, func_create_testdir): Make all
23826         sorting results locale-independent, so that gnulib-cache.m4 doesn't
23827         change when gnulib-tool is invoked in a different locale.
23828
23829 2005-09-19  Simon Josefsson  <jas@extundo.com>
23830
23831         * m4/socklen.m4: Fix typo.
23832
23833 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23834
23835         Use a consistent style for including <config.h>.
23836         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
23837         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
23838         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
23839         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
23840         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
23841         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
23842         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
23843         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
23844         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
23845         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
23846         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
23847         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
23848         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
23849         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
23850         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
23851         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
23852         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
23853         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
23854         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
23855         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
23856         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
23857         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
23858         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
23859         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
23860         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
23861         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
23862         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
23863         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
23864         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
23865         lib/xstrtoumax.c, lib/yesno.c:
23866         Standardize inclusion of config.h.
23867         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
23868         lib/inttostr.h:  Removed inclusion of config.h from header files.
23869         * lib/inttostr.c:  Adjusted in-tree users.
23870         * lib/timespec.h: Remove superfluous warning to include config.h.
23871         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
23872         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
23873         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
23874         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
23875         config.h with HAVE_CONFIG_H.
23876
23877 2005-09-19  Jim Meyering  <jim@meyering.net>
23878
23879         * modules/pathmax (License): Change to LGPL.
23880
23881 2005-09-19  Derek Price  <derek@ximbiot.com>
23882
23883         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
23884
23885 2005-09-19  Bruno Haible  <bruno@clisp.org>
23886
23887         * gnulib-tool (import): Provide default for --tests-base.
23888
23889 2005-09-19  Bruno Haible  <bruno@clisp.org>
23890
23891         * doc/quote.texi: New file, extracted from gnulib.texi.
23892         * doc/ctime.texi: New file, extracted from gnulib.texi.
23893         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
23894         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
23895         * doc/gnulib.texi: Include them.
23896
23897 2005-09-18  Bruno Haible  <bruno@clisp.org>
23898
23899         Portability fix.
23900         * gnulib-tool (func_readlink): New function.
23901         (func_ln_if_changed): Use it.
23902
23903 2005-09-18  Bruno Haible  <bruno@clisp.org>
23904
23905         * gnulib-tool: Support --with-tests also with --import.
23906         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
23907         (func_import): Use variables $testsbase and $inctests. Emit a
23908         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
23909         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
23910         SUBDIRS += $testsdir.
23911         (func_create_testdir): Update.
23912
23913 2005-09-18  Bruno Haible  <bruno@clisp.org>
23914
23915         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
23916         instead of $dry_run.
23917         (func_cp_if_changed, func_mv_if_changed): Remove functions.
23918         (func_ln_if_changed): Don't handle dry-run here.
23919         (func_import): In dry-run mode, detect more precisely which actions
23920         would be performed, and don't use "...ing" verbs.
23921
23922 2005-09-18  Bruno Haible  <bruno@clisp.org>
23923
23924         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
23925         (func_import): Use join on two temporary files instead of three nested
23926         loops, in order to determine which files are new or old.
23927
23928 2005-09-18  Bruno Haible  <bruno@clisp.org>
23929
23930         * gnulib-tool (func_import): Comment out code that spits out the
23931         new files with --dry-run.
23932
23933 2005-09-18  Bruno Haible  <bruno@clisp.org>
23934
23935         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
23936
23937 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23938
23939         * lib/stat-time.h: New file.
23940         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
23941         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
23942         in a different way.
23943         (timespec_cmp): New function.
23944         * lib/utimecmp.c: Include stat-time.h.
23945         (SYSCALL_RESOLUTION): Depend on whether various struct stat
23946         members exist, not on the obsolescent ST_MTIM_NSEC.
23947         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
23948
23949 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23950
23951         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
23952
23953 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23954
23955         * MODULES.html.sh (File system functions): Add stat-time.
23956         * modules/stat-time: New file.
23957         * modules/timespec (Files): Remove m4/st_mtim.m4; this
23958         is now done in a different way, by the stat-time module.
23959         * modules/utimecmp (Depends-on): Add stat-time.
23960
23961 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23962
23963         * m4/st_mtim.m4: Remove.  Superseded by...
23964         * m4/stat-time.m4: New file.
23965         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
23966         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
23967
23968 2005-09-15  Derek Price  <derek@ximbiot.com>
23969
23970         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
23971
23972 2005-09-15  Derek Price  <derek@ximbiot.com>
23973
23974         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
23975         * lib/regex_internal.c: Ditto, using this...
23976         (__GNUC_PREREQ): ...new macro.
23977         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
23978         using...
23979         (__GNUC_PREREQ): ...this new macro.
23980
23981         * lib/strstr.h: Include string.h. Define strstr as a macro here.
23982
23983 2005-09-15  Derek Price  <derek@ximbiot.com>
23984             Paul Eggert  <eggert@cs.ucla.edu>
23985
23986         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
23987         changes, consolidating in...
23988         * lib/regex_internal.h: ...this file.
23989
23990 2005-09-13  Jim Meyering  <jim@meyering.net>
23991
23992         * lib/canon-host.c: Filter through gnu indent and reword comments
23993         slightly.
23994         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
23995
23996 2005-09-13  Derek Price  <derek@ximbiot.com>
23997
23998         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
23999         failure.
24000         Reported by Jim Meyering  <jim@meyering.net>.
24001
24002 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24003
24004         * lib/base64.c: Typo.
24005         (base64_encode): Put b64str in initialized data section.
24006
24007 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24008
24009         Merge glibc and coreutils changes into gnulib, plus a few
24010         extra fixes.
24011         * lib/md5.c: Use #error rather than a string.
24012         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
24013         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
24014         (__attribute__): Define to empty for non recent-GCC.
24015         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
24016         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
24017         Renamed from their non-__ counterparts, with new macros replacing
24018         them if not _LIBC.  Add __THROW attribute.
24019         (rol): Remove.
24020         (struct md5_ctx): Align buffer if using GCC.
24021         * lib/sha1.h (struct sha1_ctx): Likewise.
24022         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
24023         The old name was backwards.
24024         (NOTSWAP): Remove; not used.
24025         (rol): New macro, moved here from md5.h.
24026         (sha1_process_block): Remove a FIXME that doesn't make sense.
24027
24028 2005-09-12  Derek Price  <derek@ximbiot.com>
24029
24030         Return usable errors from canon-host.
24031         * lib/canon-host.h: New file.
24032         * lib/canon-host.c (canon_host): Wrap...
24033         (canon_host_r): ...this new function, which now relies exclusively on
24034         getaddrinfo.
24035         (ch_strerror): New function.
24036         (last_cherror): New global.
24037         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
24038         interface.
24039         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
24040         void *.
24041         (freeaddrinfo): Free ai->ai_canonname when set.
24042
24043 2005-09-12  Derek Price  <derek@ximbiot.com>
24044
24045         Make canon-host require getaddrinfo.
24046         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
24047         AC_LIBSOURCE canon-host.h.  Call...
24048         (gl_PREREQ_CANON_HOST): ...this new function, which requires
24049         gl_GETADDRINFO.
24050         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
24051
24052 2005-09-12  Derek Price  <derek@ximbiot.com>
24053
24054         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
24055         LGPL.
24056         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
24057
24058 2005-09-12  Derek Price  <derek@ximbiot.com>
24059
24060         * lib/gai_strerror.c: Include config.h when available.  Include
24061         getaddrinfo.h before other headers to test interface.
24062         Reported by Larry Jones <lawrence.jones@ugs.com>.
24063
24064 2005-09-12  Derek Price  <derek@ximbiot.com>
24065             Paul Eggert  <eggert@cs.ucla.edu>
24066
24067         * modules/glob (Files): Add glob-libc.h.
24068
24069 2005-09-12  Derek Price  <derek@ximbiot.com>
24070             Paul Eggert  <eggert@cs.ucla.edu>
24071
24072         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
24073         glob_.h, glob-libc.h.
24074         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
24075
24076 2005-09-12  Derek Price  <derek@ximbiot.com>
24077             Paul Eggert  <eggert@cs.ucla.edu>
24078
24079         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
24080         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
24081         protecting things that should be done only in gnulib contexts.
24082         * lib/glob_.h: New file, containing only the glob things needed for
24083         gnulib.
24084         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
24085         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
24086         (glob, globfree, glob_pattern_p): Now defined simply in terms of
24087         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
24088         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
24089         and to respect the namespace rules better.
24090
24091 2005-09-08  Simon Josefsson  <jas@extundo.com>
24092
24093         * modules/socklen: New file.
24094
24095 2005-09-08  Simon Josefsson  <jas@extundo.com>
24096
24097         * m4/socklen.m4: New file.
24098
24099 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24100
24101         * modules/utimens (Files): Add m4/utimbuf.m4, since
24102         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
24103         Reported by Sergey Poznyakoff.
24104
24105 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24106
24107         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
24108         definitions, since that's the preferred style in glibc.
24109         Fix a minor spacing issue, and update copyright notice to match
24110         glibc's.
24111
24112 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24113
24114         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
24115
24116 2005-09-06  Simon Josefsson  <jas@extundo.com>
24117
24118         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
24119         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
24120
24121 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24122
24123         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
24124         warning.
24125
24126 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24127
24128         * config/srclist.txt: Add glibc bug 1302.
24129
24130 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
24131
24132         Change bitset word type from unsigned int to unsigned long int,
24133         as this has better performance on typical 64-bit hosts.
24134         Port bitset code to hosts with unusual word sizes.
24135         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
24136         (build_collating_symbol):
24137         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
24138         argument is a bitset.  This is merely a style issue, but it makes
24139         it clearer that an entire array is expected.
24140         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
24141         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
24142         Port to the case where bitset_word is not the same as unsigned int.
24143         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
24144         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
24145         Likewise.
24146         * lib/regexec.c (check_dst_limits_calc_pos_1,
24147         check_subexp_matching_top):
24148         (build_trtable, group_nodes_into_DFAstates):
24149         Likewise.
24150         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
24151         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
24152         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
24153         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
24154         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
24155         * lib/regcomp.c (optimize_subexps, lower_subexp):
24156         Work even if bitset_word has holes in its bitwise representation.
24157         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
24158         * lib/regexec.c (check_dst_limits_calc_pos_1,
24159         check_subexp_matching_top):
24160         Likewise.
24161         * lib/regex_internal.c (re_string_reconstruct):
24162         Don't assume UCHAR_MAX == 255.
24163         * lib/regex_internal.h (bitset_set_all): Likewise.
24164         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
24165         All uses changed.
24166         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
24167         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
24168         All uses changed.
24169         (BITSET_WORD_MAX): New macro.
24170         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
24171         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
24172         (bitset_empty, bitset_copy):
24173         Prefer sizeof (bitset) to multiplying it out ourselves.
24174         (bitset_not_merge): Remove; unused.
24175         (bitset_contain): Return bool, not unsigned int with one bit on.
24176         All callers changed.
24177         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
24178         alignment than re_node_set; do this by defining a new internal
24179         type struct dests_alloc and using it to allocate memory.
24180
24181 2005-09-05  Bruno Haible  <bruno@clisp.org>
24182
24183         * gnulib-tool (func_import): Fix comparison in handling of symbolic
24184         links.
24185
24186 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
24187
24188         * modules/size_max (Makefile.am): Add size_max.h
24189
24190 2005-09-04  Derek Price  <derek@ximbiot.com>
24191
24192         * gnulib-tool (func_import): Fix reversed $symbolic logic.
24193
24194 2005-09-03  Simon Josefsson  <jas@extundo.com>
24195
24196         * gnulib-tool: Fix typo.
24197
24198 2005-09-03  Simon Josefsson  <jas@extundo.com>
24199
24200         * config/srclist.txt: Add glibc bug 1293.
24201
24202 2005-09-03  Derek Price  <derek@ximbiot.com>
24203
24204         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
24205         From Larry Jones <lawrence.jones@ugs.com>.
24206
24207 2005-09-02  Simon Josefsson  <jas@extundo.com>
24208
24209         * modules/socklen: New file.
24210
24211 2005-09-02  Simon Josefsson  <jas@extundo.com>
24212
24213         * modules/havelib: New module.
24214
24215         * modules/gettext, modules/iconv, modules/lock, modules/readline:
24216         Use havelib.
24217
24218 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24219
24220         Check for arithmetic overflow when calculating sizes, to prevent
24221         some buffer-overflow issues.  These patches are conservative, in the
24222         sense that when I couldn't determine whether an overflow was possible,
24223         I inserted a run-time check.
24224         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
24225         macros.
24226         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
24227         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
24228         (re_xnrealloc, re_x2nrealloc): New inline functions.
24229         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
24230         parse_bracket_exp):
24231         (build_equiv_class, build_charclass): Check for arithmetic overflow
24232         in size expression calculations.
24233         * lib/regex_internal.c (re_string_realloc_buffers):
24234         (build_wcs_upper_buffer, re_node_set_add_intersect):
24235         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
24236         (re_dfa_add_node, register_state): Likewise.
24237         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
24238         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
24239         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
24240         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
24241
24242 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24243
24244         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
24245         m4/ulonglong.m4.  Problem reported by Martin Lambers.
24246
24247 2005-09-02  Bruno Haible  <bruno@clisp.org>
24248
24249         Support for lib vs. lib64 distinction on biarch platforms.
24250         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
24251         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
24252         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
24253
24254 2005-09-02  Bruno Haible  <bruno@clisp.org>
24255
24256         * gnulib-tool (import): In the other first-use case, provide defaults
24257         as well.
24258
24259 2005-09-02  Bruno Haible  <bruno@clisp.org>
24260
24261         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
24262         patches not yet found in the latest gettext release.
24263
24264 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24265
24266         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
24267         to avoid a collision with bits/local_lim.h in glibc.
24268         All uses changed.  Problem reported by Dmitry V. Levin in
24269         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
24270
24271         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
24272         bugs in int versus size_t comparisons.
24273         (re_string_context_at): Fix bug where the code assumed that
24274         Idx is signed.
24275
24276         Use bool where appropriate.
24277         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
24278         All callers changed.
24279         (calc_eclosure_iter): Likewise, for ROOT arg.
24280         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
24281         (build_charclass_op): Likewise, for NON_MATCH arg.
24282         * lib/regex_internal.c (re_string_allocate, re_string_construct):
24283         (re_string_construct_common): Likewise, for ICASE arg.
24284         * lib/regexec.c (re_search_2_stub, re_search_stub):
24285         Likewise, for RET_LEN arg.
24286         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
24287         (set_regs): Likewise, for FL_BACKTRACK arg.
24288         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
24289         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
24290         (calc_eclosure_iter, parse_bracket_exp):
24291         Use bool for internal variables that are booleans.
24292         * lib/regexec.c (re_search_internal, check_matching,
24293         proceed_next_node):
24294         (set_regs, build_sifted_states, sift_states_bkref):
24295         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
24296         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
24297         (find_collation_sequence_value):
24298         Likewise.
24299         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
24300         (re_node_set_compare):
24301         Return bool, not int. All callers changed.
24302         * lib/regexec.c (check_halt_node_context, check_dst_limits):
24303         (build_trtable, check_node_accept): Likewise.
24304         * lib/regex_internal.h: Include stdbool.h.
24305
24306         Fix bugs uncovered when converting to bool.
24307         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
24308         failure instead of charging ahead blindly.
24309         * lib/regex_internal.c (register_state): Likewise.
24310         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
24311         for freeing internal storage.
24312         (group_nodes_into_DFA_states): Use unsigned int, not int, for
24313         bitset pieces used as boolean, to avoid undefined behavior
24314         on hosts that do int overflow checking.
24315
24316 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24317
24318         * config/srclist.txt: Add glibc bugs 1285-1287.
24319
24320 2005-09-01  Jim Meyering  <jim@meyering.net>
24321
24322         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
24323         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
24324         Require gl_STAT_MACROS, too.
24325
24326 2005-09-01  Bruno Haible  <bruno@clisp.org>
24327
24328         * gnulib-tool (import): In the first-use case, provide defaults.
24329
24330 2005-09-01  Bruno Haible  <bruno@clisp.org>
24331
24332         * gnulib-tool (func_import): Remove the .tmp files.
24333
24334 2005-09-01  Bruno Haible  <bruno@clisp.org>
24335
24336         * gnulib-tool (func_import): Fix handling of symbolic links.
24337
24338 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24339
24340         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
24341         old glibc regex code mishandles strings longer than 2**31 bytes.
24342         This patch fixes this when the regex code is used in gnulib
24343         (i.e., outside glibc).
24344
24345         This patch should not affect the use of the regex code inside
24346         glibc.  No doubt this problem also needs to be handled for glibc
24347         as well, but the result will be an incompatible change to the
24348         glibc ABI, and the old ABI will have to be supported too.  That
24349         can be the the subject for another patch.
24350
24351         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
24352         governing whether the rest of this patch is active.  By default,
24353         the macro is disabled and the patch has no effect.
24354         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
24355         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
24356         (struct re_pattern_buffer, re_search, re_search_2, re_match):
24357         (re_match_2, re_set_registers): Use the new types.
24358         * lib/regex_internal.h (Idx, re_hashval_t): New types.
24359         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
24360         New macros.
24361         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
24362         (re_string_context_at, bin_tree_t, re_dfastate_t):
24363         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
24364         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
24365         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
24366         (re_string_char_size_at, re_string_wchar_at):
24367         (re_string_elem_size_at):
24368         Use the new types and macros to port to 64-bit hosts.
24369         Use unsigned types for internal values, so that the code
24370         mostly works even for arrays larger than SSIZE_MAX.
24371         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
24372         (search_duplicated_node, calc_eclosure_iter, fetch_number):
24373         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
24374         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
24375         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
24376         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
24377         (calc_inveclosure, parse_dup_op, build_range_exp):
24378         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
24379         (fetch_number, create_token_tree, mark_opt_subexp):
24380         Likewise.
24381         * lib/regex_internal.c (re_string_construct_common,
24382         create_ci_newstate):
24383         (create_cd_newstate, re_string_allocate, re_string_construct):
24384         (re_string_realloc_buffers, build_wcs_upper_buffer):
24385         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
24386         (re_string_reconstruct, re_string_peek_byte_case):
24387         (re_string_fetch_byte_case, re_string_context_at):
24388         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
24389         (re_node_set_init_copy, re_node_set_add_intersect):
24390         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24391         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
24392         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
24393         (re_acquire_state, re_acquire_state_context, register_state):
24394         Likewise.
24395         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
24396         search_cur_bkref_entry):
24397         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
24398         (re_search_internal, re_search_2_stub, re_search_stub)
24399         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
24400         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
24401         (update_cur_sifted_state, check_dst_limits):
24402         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
24403         (check_subexp_limits, sift_states_bkref, merge_state_array):
24404         (check_subexp_matching_top, get_subexp, get_subexp_sub):
24405         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
24406         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
24407         (expand_bkref_cache, check_node_accept_bytes):
24408         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
24409         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
24410         (acquire_init_state_context, check_halt_node_context):
24411         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
24412         (sift_states_backward, clean_state_log_if_needed):
24413         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
24414         (find_recover_state, transit_state_sb, transit_state_mb):
24415         (transit_state_bkref, build_trtable, match_ctx_clean):
24416         Likewise.
24417         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
24418         to work around an assumption that REG_MISSING is negative.
24419
24420         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
24421         (seek_collating_symbol_entry) [defined _LIBC]:
24422         (lookup_collation_sequence_value) [defined _LIBC]:
24423         (build_range_exp, build_collating_symbol) [defined _LIBC]:
24424         Use prototypes rather than old-style function definitions.
24425         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
24426         (transit_state_sb) [0]:
24427         (find_collation_sequence_value) [defined _LIBC]: Likewise.
24428
24429         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
24430         rm_eo.
24431
24432         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
24433         (optimize_subexps, lower_subexp):
24434         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
24435         since the signed shift might overflow.  Use 1u<<31 instead.
24436         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
24437         Likewise.
24438         * lib/regexec.c (check_dst_limits_calc_pos_1,
24439         check_subexp_matching_top): Likewise.
24440
24441         * lib/regcomp.c (optimize_subexps, lower_subexp):
24442         Use CHAR_BIT rather than 8, for clarity.
24443         * lib/regexec.c (check_dst_limits_calc_pos_1):
24444         (check_subexp_matching_top): Likewise.
24445         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
24446         have to worry about portability issues when shifting it left.
24447         Remove no-longer-needed test for table_size > 0.
24448         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
24449         in a word, as the resulting behavior is undefined.
24450         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
24451         in one case, a <= should have been an <, and in another case the
24452         whole test was missing.
24453         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
24454         the standard name CHAR_BIT.
24455         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
24456         this is not true on one's complement and signed-magnitude hosts.
24457
24458         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
24459         next_last_offset.
24460         (struct re_dfa_t): Remove unused member states_alloc.
24461         * lib/regcomp.c (init_dfa): Don't initialize unused members.
24462
24463 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24464
24465         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
24466         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
24467         and large-file glibc and in 32-bit large-file Solaris.
24468
24469 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24470
24471         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
24472         lengths fit in regoff_t; this isn't true if regoff_t is the same
24473         width as size_t.
24474         * lib/regex.c (re_search_internal): 5th arg is LAST_START
24475         (= START + RANGE) instead of RANGE.  This avoids overflow
24476         problems when regoff_t is the same width as size_t.
24477         All callers changed.
24478         (re_search_2_stub): Check for overflow when adding the
24479         sizes of the two strings.
24480         (re_search_stub): Check for overflow when adding START
24481         to RANGE; if it occurs, substitute the extreme value.
24482
24483 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24484
24485         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
24486
24487 2005-08-31  Jim Meyering  <jim@meyering.net>
24488
24489         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
24490         a pointer-to-const.
24491         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
24492         (register_state): Likewise.
24493         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
24494         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
24495         (group_nodes_into_DFAstates): Likewise.
24496
24497 2005-08-31  Jim Meyering  <jim@meyering.net>
24498
24499         * check-module: Add a FIXME comment.
24500
24501 2005-08-31  Eric Blake  <ebb9@byu.net>
24502
24503         * modules/unistd-safer (Files): Add unistd--.h.
24504         * modules/stdio-safer (Files): Add stdio--.h.
24505
24506 2005-08-31  Derek Price  <derek@ximbiot.com>
24507
24508         * lib/getdelim.c (getdelim): Return EOF on EOF.
24509         Reported by Larry Jones <lawrence.jones@ugs.com>.
24510
24511 2005-08-31  Bruno Haible  <bruno@clisp.org>
24512
24513         Avoid unnecessary diffs in the generated lib/Makefile.am.
24514         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
24515         the generated files.
24516         (func_import): Don't set cmd.
24517
24518 2005-08-31  Bruno Haible  <bruno@clisp.org>
24519
24520         * lib/strstr.c: Include <stddef.h>, for NULL.
24521         * lib/strcasestr.c: Likewise.
24522         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24523
24524 2005-08-31  Bruno Haible  <bruno@clisp.org>
24525
24526         * gnulib-tool: New option --macro-prefix.
24527         (func_import): Use macro_prefix.
24528         (import): Handle option --macro-prefix.
24529
24530 2005-08-31  Bruno Haible  <bruno@clisp.org>
24531
24532         * gnulib-tool (import): Rename most ac_* variables to cached_*.
24533         Also use new variables cached_lgpl, cached_libtool.
24534
24535 2005-08-31  Bruno Haible  <bruno@clisp.org>
24536
24537         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
24538         always instantiating them.
24539
24540 2005-08-31  Bruno Haible  <bruno@clisp.org>
24541
24542         * gnulib-tool (func_import): Read the previous cached settings
24543         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
24544         earlier added by gnulib but are now dropped. Warn when a gnulib file
24545         overwrites a non-gnulib file.
24546
24547 2005-08-31  Bruno Haible  <bruno@clisp.org>
24548
24549         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
24550         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
24551         projects that don't keep autogenerated files in CVS. Put into
24552         actioncmd only the specified modules, not the transitive closure.
24553
24554 2005-08-31  Bruno Haible  <bruno@clisp.org>
24555
24556         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
24557         Create directories that shall be filled.
24558         (import): Don't look for gl_* macros in configure.ac. Recurse across
24559         all directories containing a gnulib-cache.m4 files, if meaningful.
24560
24561 2005-08-31  Bruno Haible  <bruno@clisp.org>
24562
24563         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
24564         (import): Set seen_libtool when we see gl_LIBTOOL.
24565
24566 2005-08-31  Bruno Haible  <bruno@clisp.org>
24567
24568         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
24569         declaration macro definitions from generated gnulib.m4.
24570
24571 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
24572
24573         * lib/iconvme.h: Add prototype for iconv_alloc.
24574
24575 2005-08-29  Simon Josefsson  <jas@extundo.com>
24576
24577         * lib/iconvme.c: Fix errno.
24578
24579 2005-08-29  Bruno Haible  <bruno@clisp.org>
24580
24581         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
24582         that it works when the directory contains spaces.
24583
24584 2005-08-29  Bruno Haible  <bruno@clisp.org>
24585
24586         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
24587
24588 2005-08-29  Bruno Haible  <bruno@clisp.org>
24589
24590         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
24591         Emit more advice.
24592
24593 2005-08-29  Bruno Haible  <bruno@clisp.org>
24594         and Stepan Kasal  <kasal@ucw.cz>
24595
24596         * check-module: If more parameters are given, check each of them
24597         separately; add more exceptions, as noted by Jim Meyering.
24598         (check_module): New procedure.
24599         (%exempt_header): Now contains all exceptions.
24600
24601 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
24602
24603         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
24604
24605 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
24606
24607         * lib/iconvme.c: Split iconv_string into iconv_alloc.
24608
24609 2005-08-28  Bruno Haible  <bruno@clisp.org>
24610
24611         * m4/gnulib-tool.m4: New file.
24612
24613 2005-08-27  Jim Meyering  <jim@meyering.net>
24614
24615         * modules/unistd-safer (Files): Add pipe-safer.c.
24616         * modules/fcntl-safer (Files): Add creat-safer.c.
24617
24618 2005-08-27  Jim Meyering  <jim@meyering.net>
24619
24620         * m4/stdlib-safer.m4: New file.  From coreutils.
24621         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
24622         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
24623         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
24624         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
24625         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
24626
24627 2005-08-27  Jim Meyering  <jim@meyering.net>
24628
24629         * lib/fopen-safer.c: Merge minor changes from coreutils.
24630         * lib/dup-safer.c: Likewise.
24631         * lib/fd-safer.c: Likewise.
24632
24633         Merge from coreutils.
24634         * lib/stdio--.h: New file.
24635         * lib/stdlib--.h: New file.
24636         * lib/mkstemp-safer.c: New file.
24637
24638         GNU tar needs these.
24639         * lib/pipe-safer.c: New file.
24640         * lib/creat-safer.c: New file.
24641         * lib/fcntl--.h (creat): Define to creat_safer.
24642         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
24643         * lib/unistd--.h (pipe): Define to pipe_safer.
24644         * lib/unistd-safer.h: Declare pipe_safer.
24645
24646 2005-08-26  Simon Josefsson  <jas@extundo.com>
24647
24648         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
24649         Haible <bruno@clisp.org>.
24650
24651 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
24652
24653         * lib/regex_internal.h: Remove all references to
24654         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
24655         or better.
24656         (bitset_not, bitset_merge, bitset_not_merge):
24657         (bitset_mask, re_string_allocate, re_string_construct):
24658         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
24659         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
24660         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
24661         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
24662         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24663         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
24664         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
24665         (re_acquire_state_context):
24666         Remove unnecessary forward decls.
24667         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
24668         Put __attribute at function definition,
24669         now that the function decl has been removed.
24670         * lib/regex_internal.c (re_string_peek_byte_case):
24671         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
24672         Likewise.
24673
24674 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
24675
24676         * m4/regex.m4: Add AC_PREREQ(2.50).
24677         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
24678
24679 2005-08-25  Simon Josefsson  <jas@extundo.com>
24680
24681         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
24682         __fsetlocking.
24683
24684 2005-08-25  Simon Josefsson  <jas@extundo.com>
24685
24686         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
24687         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
24688         GLIBC specific code.
24689
24690 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24691
24692         Make regex safe for g++.  This fixes one real bug (an "err"
24693         that should have been "*err").  g++ problem reported by
24694         Sam Steingold.
24695         * lib/regex_internal.h (re_calloc): New macro, consistent with
24696         re_malloc etc.  All callers of calloc changed to use re_calloc.
24697         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
24698         not int.  All callers changed.
24699         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
24700         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
24701         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
24702         (find_recover_state): Change "err" to "*err"; this fixes what
24703         appears to be a real bug.
24704         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
24705         versus int.
24706
24707 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24708
24709         * modules/regex (Depends-on): Add malloc, since the code
24710         assumes that !malloc(0) means failure.
24711
24712 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24713
24714         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
24715
24716         alloca modernization/simplification for regex.
24717         * lib/regex.c: Remove portability cruft for alloca.  This no longer
24718         needs to be at the start of the file, and can be moved into
24719         regex_internal.h and simplified.
24720         * lib/regex_internal.h: Include <alloca.h>.
24721         (__libc_use_alloca) [!defined _LIBC]: New macro.
24722         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
24723         now works outside glibc.
24724
24725 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24726
24727         * config/srclist.txt: Add glibc bugs 1241, 1245.
24728
24729 2005-08-25  Jim Meyering  <jim@meyering.net>
24730
24731         * lib/open-safer.c: Include <config.h>.
24732         Otherwise, we'd lose LARGEFILE support in any file using
24733         e.g. "fcntl--.h"
24734
24735 2005-08-25  Bruno Haible  <bruno@clisp.org>
24736
24737         * m4/minmax.m4: Require autoconf 2.52.
24738         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
24739         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
24740         alternatives of translit over the alphabet.
24741         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
24742
24743 2005-08-24  Simon Josefsson  <jas@extundo.com>
24744
24745         * tests/test-getpass.c: New file.
24746
24747 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24748
24749         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
24750         for GNU regex features.
24751
24752 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24753
24754         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
24755         * lib/regex.h (regerror): Likewise.
24756
24757         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
24758         requires this.  (The code never needed it.)
24759
24760         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
24761         All uses of recently-renamed identifiers changed to use the new,
24762         POSIX-compliant names.  The code will build and run just fine
24763         without these changes, but it's better to eat our own dog food
24764         and use the standard-conforming names.
24765
24766         * lib/regex.h: Fix a multitude of POSIX name space violations.
24767         These changes have an effect only for programs that define
24768         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
24769         do not change anything for programs compiled in the normal way.
24770         Also, there is no effect on the ABI.
24771
24772         (_REGEX_SOURCE): New macro.
24773         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
24774         defined and _GNU_SOURCE is not; this fixes a name space violation.
24775
24776         Rename the following macros to obey POSIX requirements.
24777         The old names are still visible as macros if _REGEX_SOURCE is defined.
24778         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
24779         RE_BACKSLASH_ESCAPE_IN_LISTS.
24780         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
24781         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
24782         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
24783         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
24784         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
24785         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
24786         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
24787         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
24788         (REG_INTERVALS): renamed from RE_INTERVALS.
24789         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
24790         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
24791         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
24792         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
24793         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
24794         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
24795         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
24796         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
24797         RE_UNMATCHED_RIGHT_PAREN_ORD.
24798         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
24799         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
24800         (REG_DEBUG): renamed from RE_DEBUG.
24801         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
24802         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
24803         unusual, since we can't clash with the POSIX REG_ICASE.
24804         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
24805         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
24806         (REG_NO_SUB): renamed from RE_NO_SUB.
24807         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
24808         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
24809         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
24810         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
24811         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
24812         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
24813         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
24814         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
24815         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
24816         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
24817         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
24818         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
24819         RE_SYNTAX_POSIX_MINIMAL_BASIC.
24820         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
24821         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
24822         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
24823         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
24824         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
24825         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
24826         (REG_FIXED): Renamed from REGS_FIXED.
24827         (REG_NREGS): Renamed from RE_NREGS.
24828
24829         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
24830         of other REG_* macros, since POSIX says the user is allowed to
24831         #undef these macros selectively.
24832
24833         (reg_errcode_t): Update comment stating what other tables need
24834         to be consistent.
24835
24836         Rename the following enum values to obey POSIX requirements.
24837         The old names are still visible as macros.
24838         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
24839         is not defined, since GNU is supposed to be a superset of POSIX as
24840         much as possible, and since we want reg_errcode_t to be a signed
24841         type for implementation consistency.
24842         (_REG_NOERROR): Renamed from REG_NOERROR.
24843         (_REG_NOMATCH): Renamed from REG_NOMATCH.
24844         (_REG_BADPAT): Renamed from REG_BADPAT.
24845         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
24846         (_REG_ECTYPE): Renamed from REG_ECTYPE.
24847         (_REG_EESCAPE): Renamed from REG_EESCAPE.
24848         (_REG_ESUBREG): Renamed from REG_ESUBREG.
24849         (_REG_EBRACK): Renamed from REG_EBRACK.
24850         (_REG_EPAREN): Renamed from REG_EPAREN.
24851         (_REG_EBRACE): Renamed from REG_EBRACE.
24852         (_REG_BADBR): Renamed from REG_BADBR.
24853         (_REG_ERANGE): Renamed from REG_ERANGE.
24854         (_REG_ESPACE): Renamed from REG_ESPACE.
24855         (_REG_BADRPT): Renamed from REG_BADRPT.
24856         (_REG_EEND): Renamed from REG_EEND.
24857         (_REG_ESIZE): Renamed from REG_ESIZE.
24858         (_REG_ERPAREN): Renamed from REG_ERPAREN.
24859         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
24860         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
24861         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
24862         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
24863
24864         (_REG_RE_NAME, _REG_RM_NAME): New macros.
24865         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
24866         changed.  But support the old name if the new one is not defined
24867         and if _REGEX_SOURCE.
24868
24869         Change the following member names in struct re_pattern_buffer.
24870         The old names are still supported if !_REGEX_SOURCE.
24871         The new names are always supported, regardless of _REGEX_SOURCE.
24872         (re_buffer): Renamed from buffer.
24873         (re_allocated): Renamed from allocated.
24874         (re_used): Renamed from used.
24875         (re_syntax): Renamed from syntax.
24876         (re_fastmap): Renamed from fastmap.
24877         (re_translate): Renamed from translate.
24878         (re_can_be_null): Renamed from can_be_null.
24879         (re_regs_allocated): Renamed from regs_allocated.
24880         (re_fastmap_accurate): Renamed from fastmap_accurate.
24881         (re_no_sub): Renamed from no_sub.
24882         (re_not_bol): Renamed from not_bol.
24883         (re_not_eol): Renamed from not_eol.
24884         (re_newline_anchor): Renamed from newline_anchor.
24885
24886         Change the following member names in struct re_registers.
24887         The old names are still supported if !_REGEX_SOURCE.
24888         The new names are always supported, regardless of _REGEX_SOURCE.
24889         (rm_num_regs): Renamed from num_regs.
24890         (rm_start): Renamed from start.
24891         (rm_end): Renamed from end.
24892
24893         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
24894         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
24895         Prepend __ to parameter names.
24896
24897         Undo yesterday's changes.
24898
24899 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24900
24901         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
24902         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
24903         lib/regex.c.
24904
24905 2005-08-24  Jim Meyering  <jim@meyering.net>
24906
24907         Sync from coreutils.
24908         * m4/fcntl-safer.m4: New file.
24909
24910         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
24911         and object files for this module.
24912
24913 2005-08-24  Jim Meyering  <jim@meyering.net>
24914
24915         Sync from coreutils.
24916         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
24917
24918 2005-08-24  Jim Meyering  <jim@meyering.net>
24919
24920         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
24921         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
24922
24923 2005-08-24  Jim Meyering  <jim@meyering.net>
24924
24925         * modules/fcntl-safer: New module.
24926         * modules/fts (Depends-on): Add fcntl-safer.
24927         * MODULES.html.sh (File descriptor based Input/Output):
24928         Add fcntl-safer.
24929
24930 2005-08-24  Bruno Haible  <bruno@clisp.org>
24931
24932         Support for unit test modules.
24933         * modules/README: Mention tests modules.
24934         * modules/TEMPLATE-TESTS: New file.
24935         * gnulib-tool: New options --extract-tests-module, --with-tests and
24936         --tests-base (unused for the moment).
24937         (testsbase, inctests): New variables.
24938         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
24939         (func_verify_module): Exclude TEMPLATE-TESTS.
24940         (func_verify_nontests_module, func_verify_tests_module): New functions.
24941         (func_get_dependencies): Add implicit dependency for tests modules.
24942         (func_get_tests_module): New function.
24943         (func_modules_transitive_closure): When --with-tests was specified,
24944         include the unit tests as well, unless explicitly avoided.
24945         (func_emit_lib_Makefile_am): Ignore the tests modules here.
24946         (func_emit_tests_Makefile_am): New function.
24947         (func_create_testdir): When --with-tests was specified, emit a
24948         tests/ directory.
24949         * MODULES.html.sh (Future developments): Update.
24950
24951 2005-08-24  Bruno Haible  <bruno@clisp.org>
24952
24953         * modules/tls-tests: New file.
24954         * tests/test-tls.c: New file, from GNU gettext.
24955
24956 2005-08-24  Bruno Haible  <bruno@clisp.org>
24957
24958         * modules/lock-tests: New file.
24959         * tests/test-lock.c: New file, from GNU gettext.
24960
24961 2005-08-24  Bruno Haible  <bruno@clisp.org>
24962
24963         * lib/lock.h: Add multiple inclusion guard.
24964         * lib/tls.h: Add multiple inclusion guard.
24965
24966 2005-08-24  Bruno Haible  <bruno@clisp.org>
24967
24968         * gnulib-tool: Add support for the --aux-dir option to
24969         --create-testdir, --create-megatestdir, --test, --megatest.
24970         (func_create_testdir, func_create_megatestdir): Optionally emit a
24971         AC_CONFIG_AUX_DIR directive.
24972         (create-testdir, create-megatestdir, test, megatest): Provide a
24973         default value for $auxdir.
24974
24975 2005-08-24  Bruno Haible  <bruno@clisp.org>
24976
24977         * gnulib-tool (import): Use compound statement instead of subshell
24978         where possible.
24979
24980 2005-08-24  Bruno Haible  <bruno@clisp.org>
24981
24982         * gnulib-tool (import): Change --aux-dir default to "build-aux".
24983
24984 2005-08-24  Bruno Haible  <bruno@clisp.org>
24985
24986         * gnulib-tool (func_version): Update.
24987
24988 2005-08-24  Bruno Haible  <bruno@clisp.org>
24989
24990         * gnulib-tool (func_import, func_create_testdir,
24991         func_create_megatestdir): Quote all autoconf macro arguments.
24992
24993 2005-08-24  Bruno Haible  <bruno@clisp.org>
24994
24995         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
24996         option --force, because --force causes the aclocal.m4 of each
24997         subdirectory to be newer than the corresponding config.h.in.
24998
24999 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25000
25001         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
25002         All contents moved to gl_REGEX.
25003         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
25004         assume that it does.
25005
25006 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25007
25008         * lib/regex.h (REG_NOSYS)
25009         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
25010         Define, since POSIX requires it as of 2001.
25011         (_REG_ENOSYS)
25012         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
25013         New private symbol, used to keep the enum signed in all cases.
25014         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
25015         Youngman in
25016         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
25017
25018         * lib/regex_internal.c (re_string_skip_chars, register_state):
25019         (calc_state_hash):
25020         Remove forward decls; no longer needed now that we use prototypes.
25021         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
25022         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
25023         (clean_state_log_if_needed): Likewise.
25024
25025 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25026
25027         * config/srclist.txt: Add glibc bugs 1231-1233.
25028
25029 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25030
25031         Fix problems reported by Sam Steingold in
25032         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
25033         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
25034         assumed that reg_errcode_t is a signed type, which is not
25035         necessarily true if _XOPEN_SOURCE is not defined.
25036         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
25037         since some compilers warn about it otherwise.
25038
25039 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25040
25041         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
25042         (init_word_char, create_initial_state, duplicate_node_closure):
25043         (fetch_token, peek_token_bracket, build_range_exp):
25044         (build_collating_symbol): Remove forward decls; no longer needed
25045         now that we use prototypes.
25046
25047         * lib/regcomp.c:
25048         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
25049         (re_compile_fastmap_iter, regcomp, regerror, regfree):
25050         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
25051         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
25052         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
25053         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
25054         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
25055         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
25056         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
25057         (build_range_exp, build_collating_symbol, parse_bracket_exp):
25058         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
25059         (build_charclass, build_charclass_op, fetch_number, create_tree):
25060         (create_token_tree, mark_opt_subexp, duplicate_tree):
25061         Use prototypes rather than old-style definitions.
25062
25063         * lib/regex_internal.c:
25064         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
25065         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
25066         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
25067         (re_string_reconstruct, re_string_peek_byte_case):
25068         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
25069         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
25070         (re_node_set_init_copy, re_node_set_add_intersect):
25071         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
25072         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25073         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
25074         (re_acquire_state, re_acquire_state_context, register_state):
25075         (create_ci_newstate, create_cd_newstate, free_state):
25076         Likewise.
25077         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
25078         re_search_2):
25079         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
25080         (re_search_internal, prune_impossible_nodes):
25081         (acquire_init_state_context, check_matching, static):
25082         (check_halt_node_context, check_halt_state_context, proceed_next_node):
25083         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
25084         (update_regs, sift_states_backward, build_sifted_states):
25085         (clean_state_log_if_needed, merge_state_array):
25086         (update_cur_sifted_state, add_epsilon_src_nodes):
25087         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
25088         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
25089         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
25090         (find_recover_state, check_subexp_matching_top, transit_state_mb):
25091         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
25092         (check_arrival, check_arrival_add_next_nodes):
25093         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
25094         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
25095         (check_node_accept_bytes, check_node_accept, extend_buffers):
25096         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
25097         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
25098         (sift_ctx_init):
25099         Likewise.
25100
25101         * lib/regex_internal.h:
25102         (re_string_allocate, re_string_construct, re_string_reconstruct):
25103         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
25104         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
25105         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
25106         (re_string_context_at, re_string_peek_byte_case):
25107         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
25108         is defined, since we now use prototypes always.
25109
25110         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
25111         C89 or better.  All uses removed.
25112
25113 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25114
25115         * config/srclist.txt: Add glibc bugs 1220-1227.
25116
25117 2005-08-20  Jim Meyering  <jim@meyering.net>
25118
25119         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
25120         of unused local, dfa.
25121
25122 2005-08-20  Bruno Haible  <bruno@clisp.org>
25123
25124         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
25125
25126 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25127
25128         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
25129         (re_node_set_insert_last, re_dfa_add_node):
25130         Rename local variables to avoid GCC shadowing warnings.
25131
25132 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25133
25134         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
25135         [defined lint]: Suppress bogus uninitialized-variable warnings.
25136
25137         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
25138         and let the caller return REG_ESPACE if out of space.  This
25139         removes an uninitialied-variable warning with GCC 4.0.1, and also
25140         avoids taking the address of a local variable.  All callers
25141         changed.
25142
25143 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25144
25145         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
25146         $LIBCSRC/posix/regexec.c.
25147         Add glibc bug 1217 for regcomp.c.
25148
25149 2005-08-19  Jim Meyering  <jim@meyering.net>
25150
25151         * lib/regexec.c (proceed_next_node): Redo local variables to
25152         avoid GCC shadowing warnings.
25153
25154 2005-08-18  Bruno Haible  <bruno@clisp.org>
25155
25156         * lib/strstr.c (strstr): Fix return value in multibyte case.
25157         * lib/strcasestr.c (strcasestr): Likewise.
25158
25159 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25160
25161         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
25162
25163 2005-08-17  Jim Meyering  <jim@meyering.net>
25164
25165         Make the %s format (seconds since the epoch) work for a negative
25166         number and when used with a zero-padded field width, e.g. %015s.
25167
25168         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
25169         label so that it precedes the code to set `digits'.  Otherwise,
25170         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
25171         print `00-22'.  Now, it prints `-0022', as it should.
25172
25173 2005-08-17  Bruno Haible  <bruno@clisp.org>
25174
25175         * modules/strstr (Files): Add m4/mbrtowc.m4.
25176         (Depends-on): Add mbuiter.
25177
25178 2005-08-17  Bruno Haible  <bruno@clisp.org>
25179
25180         * modules/strcasestr: New file.
25181         * MODULES.html.sh (String handling, based on ANSI C 89): Add
25182         strcasestr.
25183
25184 2005-08-17  Bruno Haible  <bruno@clisp.org>
25185
25186         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
25187
25188 2005-08-17  Bruno Haible  <bruno@clisp.org>
25189
25190         * modules/mbuiter: New file.
25191         * MODULES.html.sh (Extended multibyte and wide character utilities):
25192         Add mbuiter.
25193
25194 2005-08-17  Bruno Haible  <bruno@clisp.org>
25195
25196         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
25197         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
25198
25199 2005-08-17  Bruno Haible  <bruno@clisp.org>
25200
25201         * m4/strcasestr.m4: New file.
25202
25203 2005-08-17  Bruno Haible  <bruno@clisp.org>
25204
25205         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
25206         * lib/strstr.c: Completely rewritten, with multibyte locale support.
25207
25208 2005-08-17  Bruno Haible  <bruno@clisp.org>
25209
25210         * lib/strcasestr.h: New file.
25211         * lib/strcasestr.c: New file.
25212
25213 2005-08-17  Bruno Haible  <bruno@clisp.org>
25214
25215         * lib/strcasecmp.c: Use mbuiter.h.
25216
25217 2005-08-17  Bruno Haible  <bruno@clisp.org>
25218
25219         * lib/mbuiter.h: New file.
25220
25221 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25222
25223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
25224         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
25225         and gl_GETOPT are both invoked via different paths (as happens
25226         with GNU tar CVS because it uses both argp and getopt), the former
25227         wins.
25228
25229 2005-08-16  Bruno Haible  <bruno@clisp.org>
25230
25231         * modules/tls: New file.
25232         * MODULES.html.sh (Multithreading): Add tls.
25233
25234 2005-08-16  Bruno Haible  <bruno@clisp.org>
25235
25236         * modules/strnlen1: New file.
25237         * MODULES.html.sh (String handling): Add strnlen1.
25238
25239 2005-08-16  Bruno Haible  <bruno@clisp.org>
25240
25241         * modules/strcase (Files): Add m4/mbrtowc.m4.
25242         (Depends-on): Add strnlen1, mbchar.
25243
25244 2005-08-16  Bruno Haible  <bruno@clisp.org>
25245
25246         * modules/mbiter: New file.
25247         * MODULES.html.sh (Extended multibyte and wide character utilities):
25248         Add mbiter.
25249
25250 2005-08-16  Bruno Haible  <bruno@clisp.org>
25251
25252         * modules/mbfile: New file.
25253         * MODULES.html.sh (Extended multibyte and wide character utilities):
25254         Add mbfile.
25255
25256 2005-08-16  Bruno Haible  <bruno@clisp.org>
25257
25258         * modules/mbchar: New file.
25259         * MODULES.html.sh (Extended multibyte and wide character utilities):
25260         New section.
25261
25262 2005-08-16  Bruno Haible  <bruno@clisp.org>
25263
25264         * m4/tls.m4: New file, from GNU gettext.
25265
25266 2005-08-16  Bruno Haible  <bruno@clisp.org>
25267
25268         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
25269         always.
25270         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
25271
25272 2005-08-16  Bruno Haible  <bruno@clisp.org>
25273
25274         * m4/mbiter.m4: New file.
25275
25276 2005-08-16  Bruno Haible  <bruno@clisp.org>
25277
25278         * m4/mbfile.m4: New file.
25279
25280 2005-08-16  Bruno Haible  <bruno@clisp.org>
25281
25282         * m4/mbchar.m4: New file.
25283
25284 2005-08-16  Bruno Haible  <bruno@clisp.org>
25285
25286         * lib/tls.h: New file, from GNU gettext.
25287         * lib/tls.c: New file, from GNU gettext.
25288
25289 2005-08-16  Bruno Haible  <bruno@clisp.org>
25290
25291         * lib/strnlen1.h: New file.
25292         * lib/strnlen1.c: New file.
25293
25294 2005-08-16  Bruno Haible  <bruno@clisp.org>
25295
25296         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
25297         (mbi_init): Update.
25298         (mbi_avail, mbi_advance): Let the iteration end before the terminating
25299         NUL byte, not after it.
25300
25301 2005-08-16  Bruno Haible  <bruno@clisp.org>
25302
25303         * lib/strcase.h (strcasecmp): Add note in comments.
25304         * lib/strncasecmp.c: Use code from strcasecmp.c.
25305         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
25306         (strcasecmp): Work correctly in multibyte locales.
25307
25308 2005-08-16  Bruno Haible  <bruno@clisp.org>
25309
25310         * lib/mbiter.h: New file.
25311
25312 2005-08-16  Bruno Haible  <bruno@clisp.org>
25313
25314         * lib/mbfile.h: New file.
25315
25316 2005-08-16  Bruno Haible  <bruno@clisp.org>
25317
25318         * lib/mbchar.h: New file.
25319         * lib/mbchar.c: New file.
25320
25321 2005-08-16  Bruno Haible  <bruno@clisp.org>
25322
25323         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
25324         the valid ones. Makes the comparison operations transitive:
25325         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
25326         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
25327
25328 2005-08-15  Simon Josefsson  <jas@extundo.com>
25329
25330         * modules/ssize_t (License): Change to 'unlimited'.
25331
25332         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
25333
25334 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25335
25336         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
25337         Add comments for each pending glibc patch.
25338
25339 2005-08-15  Bruno Haible  <bruno@clisp.org>
25340
25341         * lib/regex.h (__restrict_arr): Don't define to __restrict if
25342         __cplusplus is defined.
25343
25344 2005-08-14  Jim Meyering  <jim@meyering.net>
25345
25346         Sync from coreutils.
25347
25348         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
25349         Use the hash-table-based cycle-detection code not just when
25350         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
25351         Reported by James Youngman in
25352         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
25353         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
25354         FTS_TIGHT_CYCLE_CHECK.
25355         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
25356         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
25357         once again.
25358         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
25359         * lib/fts.c (fd_safer): Remove decl.
25360         Include fcntl--.h rather than unistd-safer.h
25361         (fts_safe_changedir): Don't call fd_safer; no longer needed
25362         now that we include fcntl--.h.
25363
25364 2005-08-12  Simon Josefsson  <jas@extundo.com>
25365
25366         * modules/getndelim2: Use ssize_t module.
25367         * modules/getnline: Likewise.
25368         * modules/safe-read: Likewise.
25369         * modules/xreadlink: Likewise.
25370
25371         * modules/ssize_t: New file.
25372
25373 2005-08-12  Simon Josefsson  <jas@extundo.com>
25374
25375         * m4/readline.m4: Look for termcap, curses or ncurses if required.
25376
25377 2005-08-12  Simon Josefsson  <jas@extundo.com>
25378
25379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25380         ssize_t.
25381
25382 2005-08-12  Simon Josefsson  <jas@extundo.com>
25383
25384         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
25385         readline, getdelim and check_version.
25386         (Support for systems lacking ISO C 99: Sizes of integer types):
25387         Add size_max.
25388
25389 2005-08-12  Bruno Haible  <bruno@clisp.org>
25390
25391         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
25392
25393 2005-08-11  Simon Josefsson  <jas@extundo.com>
25394
25395         * modules/readline: New file.
25396
25397         * modules/strnlen (Files): Add strnlen.h.
25398
25399 2005-08-11  Simon Josefsson  <jas@extundo.com>
25400
25401         * m4/readline.m4: New file.
25402
25403 2005-08-11  Simon Josefsson  <jas@extundo.com>
25404
25405         * lib/readline.h, readline.c: New file.
25406
25407 2005-08-11  Simon Josefsson  <jas@extundo.com>
25408
25409         * doc/gnulib.texi (Initial import, Finishing touches): Mention
25410         gl_AVOID.
25411
25412 2005-08-11  Bruno Haible  <bruno@clisp.org>
25413
25414         * lib/strnlen.h (strnlen): Change parameter name to match comment.
25415
25416 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
25417
25418         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
25419
25420 2005-08-10  Simon Josefsson  <jas@extundo.com>
25421
25422         * tests/test-iconvme.c: New file.
25423
25424 2005-08-10  Simon Josefsson  <jas@extundo.com>
25425
25426         * m4/strnlen.m4: New file.
25427
25428         * m4/strndup.m4: Don't check for strnlen declaration, done in
25429         strnlen.m4.
25430
25431 2005-08-10  Simon Josefsson  <jas@extundo.com>
25432
25433         * lib/strndup.c: Use strnlen.h.
25434
25435         * lib/strnlen.h: New file.
25436
25437 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25438
25439         * README: Typos.
25440
25441 2005-08-02  Simon Josefsson  <jas@extundo.com>
25442
25443         * modules/readline: New file.
25444
25445 2005-08-02  Simon Josefsson  <jas@extundo.com>
25446
25447         * modules/getdelim: New file.
25448
25449         * modules/getline: Rewrite, don't use getndelim2.
25450
25451 2005-08-02  Simon Josefsson  <jas@extundo.com>
25452
25453         * m4/getline.m4: Separate out getdelim stuff into separate module.
25454
25455         * m4/getdelim.m4: New file.
25456
25457 2005-08-02  Simon Josefsson  <jas@extundo.com>
25458
25459         * lib/getline.h, getline.c: Rewrite.
25460
25461         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
25462
25463 2005-07-31  Bruno Haible  <bruno@clisp.org>
25464
25465         * lib/lock.h (gl_lock_initializer): New macro.
25466         (gl_lock_define_initialized): Use it.
25467         (gl_rwlock_initializer): New macro.
25468         (gl_rwlock_define_initialized): Use it.
25469         (gl_recursive_lock_initializer): New macro.
25470         (gl_recursive_lock_define_initialized): Use it.
25471
25472 2005-07-30  Karl Berry  <karl@gnu.org>
25473
25474         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
25475         Report from Ben Pfaff, regarding getopt.
25476
25477 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
25478
25479         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
25480         normal way.
25481         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
25482         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
25483         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
25484         (gl_GETOPT): Use the new macros.  Most of the implementation
25485         is moved to the new macros.  This is for programs like Emacs
25486         that don't want all the functionality of gl_GETOPT.
25487
25488 2005-07-26  Bruno Haible  <bruno@clisp.org>
25489
25490         * m4/lock.m4: Update from GNU gettext.
25491
25492 2005-07-26  Bruno Haible  <bruno@clisp.org>
25493
25494         * lib/lock.h: Update from GNU gettext.
25495         * lib/lock.c: Update from GNU gettext.
25496
25497 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
25498
25499         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
25500         obsolescent AC_TRY_RUN.  Include the default includes files, for
25501         'exit'.
25502
25503 2005-07-24  Bruno Haible  <bruno@clisp.org>
25504
25505         * modules/visibility: New file.
25506         * MODULES.html.sh (Misc): Add visibility.
25507
25508 2005-07-24  Bruno Haible  <bruno@clisp.org>
25509
25510         * m4/visibility.m4: New file.
25511
25512 2005-07-24  Bruno Haible  <bruno@clisp.org>
25513
25514         * doc/visibility.texi: New file.
25515
25516 2005-07-22  Bruno Haible  <bruno@clisp.org>
25517
25518         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
25519         $(ALLOCA_H), redundant through BUILT_SOURCES.
25520         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
25521         redundant through BUILT_SOURCES.
25522         * modules/byteswap (Makefile.am): Remove explicit dependency on
25523         $(BYTESWAP_H), redundant through BUILT_SOURCES.
25524         * modules/fnmatch (Makefile.am): Remove explicit dependency on
25525         $(FNMATCH_H), redundant through BUILT_SOURCES.
25526         * modules/getopt (Makefile.am): Remove explicit dependency on
25527         $(GETOPT_H), redundant through BUILT_SOURCES.
25528         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
25529         redundant through BUILT_SOURCES.
25530         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
25531         redundant through BUILT_SOURCES.
25532         * modules/stdbool (Makefile.am): Remove explicit dependency on
25533         $(STDBOOL_H), redundant through BUILT_SOURCES.
25534         * modules/stdint (Makefile.am): Remove explicit dependency on
25535         $(STDINT_H), redundant through BUILT_SOURCES.
25536         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
25537         Remove explicit dependency on $(SYSEXITS_H).
25538         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
25539
25540 2005-07-18  Simon Josefsson  <jas@extundo.com>
25541
25542         * lib/check-version.c (check_version): Accept identical versions too.
25543
25544 2005-07-18  Bruno Haible  <bruno@clisp.org>
25545
25546         * modules/lock: New file.
25547         * MODULES.html.sh (Multithreading): New section.
25548
25549 2005-07-18  Bruno Haible  <bruno@clisp.org>
25550
25551         * m4/lock.m4: New file, from GNU gettext.
25552
25553 2005-07-18  Bruno Haible  <bruno@clisp.org>
25554
25555         * lib/lock.h: New file, from GNU gettext.
25556         * lib/lock.c: New file, from GNU gettext.
25557
25558 2005-07-18  Bruno Haible  <bruno@clisp.org>
25559
25560         * lib/lock.h (gl_once_t): New type.
25561         (gl_once_define, gl_once): New macros.
25562         * lib/lock.c (fresh_once): New variable.
25563         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
25564         functions.
25565
25566 2005-07-16  Simon Josefsson  <jas@extundo.com>
25567
25568         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
25569         workaround, suggested by Bruno.
25570
25571 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
25572
25573         * modules/xalloc (Depends-on): Add xalloc-die.
25574         * modules/xvasprintf (Depends-on): Add xalloc-die.
25575
25576 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
25577
25578         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
25579         with a minor change.
25580
25581 2005-07-15  Bruno Haible  <bruno@clisp.org>
25582
25583         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
25584         When using lib/poll.c, define poll as rpl_poll.
25585
25586 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
25587
25588         * modules/argp (Depends-on): Remove unlocked-io.
25589
25590 2005-07-14  Derek Price  <derek@ximbiot.com>
25591
25592         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
25593         for glob symlink bug.
25594
25595 2005-07-14  Bruno Haible  <bruno@clisp.org>
25596
25597         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
25598         Instead, test for *_unlocked function declarations directly.
25599
25600 2005-07-11  Simon Josefsson  <jas@extundo.com>
25601
25602         * modules/size_max: New file.
25603
25604         * modules/xsize: Depend on size_max module for size_max.m4.
25605
25606 2005-07-11  Simon Josefsson  <jas@extundo.com>
25607
25608         * lib/size_max.h: New file.
25609
25610 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
25611
25612         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
25613         copyright symbol and the year.
25614         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
25615         (version_etc_va): Use parameterized copyright notice.
25616         Reword to conform to the current GNU coding standards.
25617
25618 2005-07-11  Karl Berry  <karl@gnu.org>
25619
25620         * doc/gnulib.texi (Quoting): new node.
25621         (Initial import): more info, from Patrice.
25622
25623 2005-07-11  Bruno Haible  <bruno@clisp.org>
25624
25625         * gnulib-tool (func_usage): Document option --avoid.
25626         (Command line options): Handle --avoid.
25627         (func_acceptable): New function.
25628         (func_modules_transitive_closure): Use it.
25629
25630 2005-07-11  Bruno Haible  <bruno@clisp.org>
25631
25632         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
25633         Reported by Jim Meyering.
25634
25635 2005-07-10  Bruno Haible  <bruno@clisp.org>
25636
25637         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
25638         Needed when size_t is smaller than 'unsigned int'.
25639         Reported by Paul Eggert.
25640
25641 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
25642
25643         * modules/argp (Depends-on): Add unlocked-io
25644
25645 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
25646
25647         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
25648         block of defines.
25649
25650 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25651
25652         * config/srclist.txt: Comment out regcomp.c, since we have a porting
25653         fix now.
25654
25655 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
25656         and Paul Eggert  <eggert@cs.ucla.edu>
25657
25658         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
25659         in wint_t, not wchar_t.  Remove now-unnecessary cast.
25660
25661 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
25662
25663         * modules/regex (Files): Add lib/regex_internal.c,
25664         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
25665         (Depends-on): Add extensions.
25666         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
25667
25668 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
25669
25670         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
25671         pathconf.
25672         * m4/same.m4 (gl_SAME): Likewise.
25673         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
25674
25675         * m4/regex.m4: Adjust to new libc regex implementation.
25676         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
25677         all the .c and .h parts of (the new) regex.
25678         Quote the m4 stuff better.
25679         Check for RE_ICASE bug of old gnulib.
25680         Check for REG_STARTEND of recent libc.
25681         Rename local variables from jm_* to gl_*.
25682         Quote operand of "test -f".
25683         Say "recent enough" version of libc, not "version 2".
25684         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
25685         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
25686         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
25687         Remove check for btowc, isascii.
25688         Require AM_LANGINFO_CODESET.
25689
25690 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
25691
25692         * lib/regex.c, regex.h: Sync from libc.
25693         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
25694         * lib/regexec.c:
25695         New files, synced from libc, except that regex_internal.h
25696         currently has a small porting fix.
25697
25698 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
25699
25700         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
25701         regex_internal.c, regexec.c.
25702         Add regex_internal.h too, but as a comment, since the libc version
25703         is currently broken in gnulib mode.
25704
25705 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
25706
25707         Support programs like Emacs that use gnulib but not gettext.
25708         * MODULES.html.sh (Internationalization functions): Add gettext-h.
25709         * modules/gettext-h: New file.
25710         * modules/gettext (Files): Remove lib/gettext.h.
25711         (Depends-on): Add gettext-h.
25712         (Makefile.am): Remove lib_SOURCES.
25713         * modules/argmatch, modules/c-stack, modules/closeout:
25714         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
25715         * modules/execute, modules/file-type, modules/getaddrinfo:
25716         * modules/getopt, modules/human, modules/javacomp:
25717         * modules/javaexec, modules/mkdir-p, modules/obstack:
25718         * modules/openat, modules/pagealign_alloc, modules/pipe:
25719         * modules/quotearg, modules/regex, modules/rpmatch:
25720         * modules/unicodeio, modules/userspec, modules/version-etc:
25721         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
25722         * modules/xsetenv:
25723         Depend on gettext-h, not gettext.
25724
25725 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
25726
25727         * gnulib-tool (func_import): Add support for 'public domain' license.
25728         * modules/alloca, modules/atexit, modules/memmove:
25729         Now public domain, not GPL.
25730         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
25731         * modules/realloc, modules/strerror, modules/strtod:
25732         Now LGPL, not GPL.
25733
25734 2005-07-05  Bruno Haible  <bruno@clisp.org>
25735
25736         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
25737         autoconf CVS. Needed for mingw.
25738
25739 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25740
25741         Remove the dependency of the strftime module on the tzset module.
25742         * modules/strftime (Depends-on): Remove dependency on tzset.
25743
25744 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25745
25746         Remove the dependency of the strftime module on the tzset module.
25747         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
25748         gl_FUNC_TZSET_CLOBBER.
25749
25750 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25751
25752         Remove the dependency of the strftime module on the tzset module.
25753         * lib/strftime.c (my_strftime)
25754         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
25755         Copy the input structure, to work around some of the bug with
25756         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
25757         Solaris releases, you should also use the tzset module, but we won't
25758         require it as a dependency any more since we don't want LGPLed code
25759         to depend on GPLed code.
25760
25761 2005-07-02  Jim Meyering  <jim@meyering.net>
25762
25763         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
25764         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
25765         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
25766         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
25767
25768 2005-07-02  Jim Meyering  <jim@meyering.net>
25769
25770         * lib/backupfile.c (backup_args): Change a `0' to NULL.
25771
25772 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
25773
25774         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
25775         declares only 'struct timespec;' (!).
25776
25777 2005-07-01  Jim Meyering  <jim@meyering.net>
25778
25779         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
25780         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
25781         * lib/save-cwd.c, tempname.c:
25782         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
25783         and don't include <sys/file.h>).
25784
25785 2005-06-29  Jim Meyering  <jim@meyering.net>
25786
25787         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
25788         type name.  Use the variable name instead.
25789         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
25790         Likewise.
25791
25792 2005-06-28  Simon Josefsson  <jas@extundo.com>
25793
25794         * modules/check-version (Files): Add check-version.m4.
25795
25796 2005-06-28  Simon Josefsson  <jas@extundo.com>
25797
25798         * m4/check-version.m4: New file, suggested by Jim Meyering
25799         <jim@meyering.net>.
25800
25801 2005-06-28  Simon Josefsson  <jas@extundo.com>
25802
25803         * lib/check-version.h, lib/check-version.c: New files.
25804
25805 2005-06-28  Simon Josefsson  <jas@extundo.com>
25806
25807         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
25808         collision with global variable.  Better indentation.  Don't
25809         increment buffer pointer beyond buffer end.  Based on comments
25810         from Paul Eggert <eggert@cs.ucla.edu>.
25811
25812         * lib/base64.h: Indent.
25813
25814 2005-06-28  Simon Josefsson  <jas@extundo.com>
25815
25816         * doc/gnulib.texi (Library version handling): New section.
25817
25818 2005-06-28  Jim Meyering  <jim@meyering.net>
25819
25820         * check-module (find_included_lib_files): Hard-code another
25821         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
25822         but modules/fts-lgpl (correctly) does not list those files.
25823
25824         * modules/canonicalize (Files): Add lib/pathmax.h.
25825
25826 2005-06-25  Simon Josefsson  <jas@extundo.com>
25827
25828         * modules/check-version: New file.
25829
25830 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
25831
25832         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
25833         initializer of struct addrinfo, as an indication that we don't
25834         care how many members the structure has.
25835
25836 2005-06-24  Derek Price  <derek@ximbiot.com>
25837         and Bruno Haible  <bruno@clisp.org>
25838
25839         Remove stat module & update lstat.
25840         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
25841         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25842         * m4/stat.m4: Remove this file.
25843
25844 2005-06-24  Derek Price  <derek@ximbiot.com>
25845         and Bruno Haible  <bruno@clisp.org>
25846
25847         Remove stat module & update lstat.
25848         * lib/stat.c: Remove this file...
25849         (slash_aware_lstat): ...moving this content and its support...
25850         * lib/lstat.c (rpl_lstat): ...into here.
25851         * lib/lstat.h: New file.
25852
25853 2005-06-24  Derek Price  <derek@ximbiot.com>
25854         and Bruno Haible  <bruno@clisp.org>
25855
25856         Remove stat module & update lstat.
25857         * config/srclist.txt (libc sources): Remove stat.
25858
25859 2005-06-24  Derek Price  <derek@ximbiot.com>
25860         and Bruno Haible  <bruno@clisp.org>
25861
25862         Remove stat module & update lstat.
25863         * MODULES.html.sh (stat): Remove.
25864         * MODULES.html: Regenerated.
25865         * modules/lstat (Description): Correct function name.
25866         (Files): Add "lstat.h".
25867         (Depends-on): Remove stat, add xalloc, stat-macros.
25868         * modules/stat: Remove this file.
25869         (Include): Add "lstat.h", remove <sys/stat.h>.
25870
25871 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
25872
25873         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
25874         (ranged_convert): Don't save conversion in a temporary struct.
25875         This causes a warning with GCC 4.0.0, and anyway in the typical
25876         case it's not worth the extra 100 bytes or so of code.
25877         (ranged_convert, __mktime_internal): When calling a function via a
25878         pointer P, use P () rather than (*P) (), as we now assume C89 or
25879         better.
25880
25881 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
25882
25883         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
25884         "who -r" failed to give output.  Problem reported by Tim Waugh.
25885
25886         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
25887         (xcalloc): Use it to avoid needless tests.
25888         Problem reported by Jim Meyering.
25889
25890 2005-06-20  Derek Price  <derek@ximbiot.com>
25891
25892         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
25893         unnecessary for Autoconfs > 2.59c.
25894
25895 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25896
25897         * lib/argp.h (__option_is_short): Check upper limit of
25898         __key. Isprint() requires its argument to have the value
25899         of an unsigned char or EOF.
25900
25901 2005-06-16  Jim Meyering  <jim@meyering.net>
25902
25903         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
25904         when either N or S is zero.
25905
25906 2005-06-16  Derek Price  <derek@ximbiot.com>
25907
25908         * m4/bison.m4: Declare YACC & YFLAGS precious.
25909
25910 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
25911
25912         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
25913         multibyte string or pattern, fall back on unibyte matching.
25914         Problem reported by James Youngman.
25915
25916 2005-06-08  Bruno Haible  <bruno@clisp.org>
25917
25918         * modules/csharpcomp: New file.
25919         * MODULES.html.sh (C#): Add csharpcomp.
25920
25921 2005-06-08  Bruno Haible  <bruno@clisp.org>
25922
25923         * m4/csharpcomp.m4: New file, from GNU gettext.
25924
25925 2005-06-08  Bruno Haible  <bruno@clisp.org>
25926
25927         * lib/csharpcomp.h: New file, from GNU gettext.
25928         * lib/csharpcomp.c: New file, from GNU gettext.
25929         * lib/csharpcomp.sh.in: New file, from GNU gettext.
25930
25931 2005-06-08  Bruno Haible  <bruno@clisp.org>
25932
25933         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
25934         warning on mingw.
25935
25936 2005-06-07  Derek Price  <derek@ximbiot.com>
25937
25938         Sync from CVS.
25939         * lib/glob_.h: Indent nested #ifdef.
25940
25941 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
25942
25943         Sync from coreutils.
25944         Use "file name" when talking about file names, instead of "filename"
25945         or "path", as per the GNU coding standards.
25946         * lib/mkdir-p.c: Renamed from makepath.c.
25947         (make_dir_parents): Renamed from make_path.  All callers changed.
25948         * lib/mkdir-p.h: Likewise.  All includers changed.
25949         * lib/filenamecat.c: Renamed from path-concat.c.
25950         (file_name_concat): Renamed from path_concat.  All callers changed.
25951         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
25952         * lib/filenamecat.h: Likewise.  All includers changed.
25953         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
25954         in comments or local variable names.
25955         * lib/basename.c: Likewise.
25956         * lib/canonicalize.c, canonicalize.h: Likewise.
25957         * lib/dirname.c, dirname.h: Likewise.
25958         * lib/euidaccess.c: Likewise.
25959         * lib/exclude.c: Likewise
25960         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
25961         * lib/fsusage.c, fsuage.h: Likewise.
25962         * lib/fts.c, fts_.h: Likewise.
25963         * lib/getcwd.c: Likewise.
25964         * lib/getloadavg.c: Likewise.
25965         * lib/mkstemp.c: Likewise.
25966         * lib/mountlist.c, mountlist.h: Likewise.
25967         * lib/openat.c, openat.h: Likewise.
25968         * lib/readlink-stub.c: Likewise.
25969         * lib/readutmp.c, readutmp.h: Likewise.
25970         * lib/rename.c: Likewise.
25971         * lib/rmdir.c: Likewise.
25972         * lib/same.c: Likewise.
25973         * lib/savedir.c: Likewise.
25974         * lib/stripslash.c: Likewise.
25975         * lib/tempname.c: Likewise.
25976         * lib/xreadlink.c: Likewise.
25977         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
25978         All uses changed.
25979         * lib/exclude.h: Likewise.
25980
25981         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
25982         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
25983         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
25984         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
25985         * lib/pathmax.h: Include <limits.h> unconditionally, since other
25986         files have been getting away with it for years (MORE/BSD 4.3
25987         is extinct now).
25988         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
25989         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
25990
25991         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
25992         Define to 256, not 255, as per modern POSIX.
25993
25994 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
25995
25996         Sync from coreutils.
25997         Use "file name" when talking about file names, instead of "filename"
25998         or "path", as per the GNU coding standards.
25999         * MODULES.html.sh: mkdir-p renamed from makepath.
26000         filenamecat renamed from path-concat.
26001         * modules/filenamecat: Renamed from modules/path-concat.
26002         (Files): filenamecat.h and filenamecat.c renamed from
26003         path-concat.h and path-concat.c.
26004         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
26005         (Include): filenamecat.h, not path-concat.h.
26006         * modules/mkdir-p: Renamed from modules/makepath.
26007         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
26008         makepath.c.
26009         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
26010         (Include): mkdir-p.h, not makepath.h.
26011
26012 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26013
26014         Sync from coreutils.
26015         * m4/mkdir-p.m4: Renamed from makepath.m4.
26016         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
26017         Rename files from makepath.c to mkdir-p.c, and from
26018         makepath.h to mkdir-p.h.
26019         * m4/filenamecat.m4: Renamed from path-concat.m4.
26020         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
26021         Rename files from path-concat.c to filenamecat.c,
26022         and from path-concat.h to filenamecat.h.
26023         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
26024         "file name" in local variables or comments.
26025         * m4/rename.m4: Likewise.
26026
26027 2005-06-01  Bruno Haible  <bruno@clisp.org>
26028
26029         * modules/csharpexec: New file.
26030         * MODULES.html.sh (C#): New section.
26031
26032 2005-06-01  Bruno Haible  <bruno@clisp.org>
26033
26034         * m4/csharp.m4: New file, from GNU gettext.
26035         * m4/csharpexec.m4: New file, from GNU gettext.
26036
26037 2005-06-01  Bruno Haible  <bruno@clisp.org>
26038
26039         * lib/csharpexec.h: New file, from GNU gettext.
26040         * lib/csharpexec.c: New file, from GNU gettext.
26041         * lib/csharpexec.sh.in: New file, from GNU gettext.
26042
26043 2005-05-31  Derek Price  <derek@ximbiot.com>
26044             Paul Eggert  <eggert@cs.ucla.edu>
26045
26046         Sync from cvs.
26047         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
26048
26049 2005-05-31  Derek Price  <derek@ximbiot.com>
26050             Paul Eggert  <eggert@cs.ucla.edu>
26051
26052         Sync from cvs.
26053         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
26054
26055 2005-05-29  Derek Price  <derek@ximbiot.com>
26056
26057         * config/srclist.txt (glob_.h, glob.c): Add these files.
26058
26059 2005-05-29  Derek Price  <derek@ximbiot.com>
26060
26061         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
26062         * modules/glob: New file.
26063         * modules/getlogin_r: Add link to POSIX spec in description.
26064
26065 2005-05-29  Derek Price  <derek@ximbiot.com>
26066             Paul Eggert  <eggert@cs.ucla.edu>
26067
26068         * m4/glob.m4: New file.
26069
26070 2005-05-29  Derek Price  <derek@ximbiot.com>
26071             Paul Eggert  <eggert@cs.ucla.edu>
26072
26073         * lib/glob_.h, lib/glob.c: New files.
26074
26075 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26076
26077         * modules/fts (Files): Remove m4/inttypes-pri.m4.
26078         * modules/fts-lgpl (Depends-on): Remove gettext.
26079
26080 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26081
26082         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
26083         and don't require gt_INTTYPES_PRI.
26084
26085 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26086
26087         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
26088
26089         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
26090         the configuration hassle isn't worth it.
26091         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
26092         (LONGEST_MODIFIER, PRIuMAX): Remove.
26093
26094 2005-05-27  Bruno Haible  <bruno@clisp.org>
26095
26096         * lib/getlogin_r.h: Remove second include of <stddef.h>.
26097
26098 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
26099
26100         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
26101         _POSIX_PTHREAD_SEMANTICS for Solaris.
26102
26103 2005-05-25  Derek Price  <derek@ximbiot.com>
26104
26105         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
26106
26107 2005-05-25  Derek Price  <derek@ximbiot.com>
26108             Paul Eggert  <eggert@cs.ucla.edu>
26109
26110         * modules/getlogin_r, m4/getlogin_r.m4: New files.
26111         * lib/getlogin_r.c, getlogin_r.h: New files.
26112
26113 2005-05-25  Bruno Haible  <bruno@clisp.org>
26114             Derek Price  <derek@ximbiot.com>
26115
26116         * lib/getlogin_r.h: Simplify API documentation.
26117
26118 2005-05-23  Derek Price  <derek@ximbiot.com>
26119
26120         * modules/minmax (Files): Add m4/minmax.m4.
26121         (configure.ac): Add gl_MINMAX.
26122
26123 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
26124
26125         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
26126         so that unistd-safer.h (GPL'ed code) need not be included.
26127
26128 2005-05-22  Bruno Haible  <bruno@clisp.org>
26129
26130         * m4/minmax.m4: New file.
26131         Based on a patch by Derek Price <derek@ximbiot.com>.
26132
26133 2005-05-22  Bruno Haible  <bruno@clisp.org>
26134
26135         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
26136         (INT64_MIN): Fix definition.
26137         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
26138
26139         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
26140         NEED_SIGNED_INT_TYPES.
26141
26142         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
26143         HAVE_SYSTEM_INTTYPES.
26144
26145 2005-05-22  Bruno Haible  <bruno@clisp.org>
26146
26147         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
26148         Also include <sys/param.h> if it defines MIN, MAX.
26149         Based on a patch by Derek Price <derek@ximbiot.com>.
26150
26151 2005-05-21  Jim Meyering  <jim@meyering.net>
26152
26153         * modules/fts (Files): Add m4/inttypes-pri.m4.
26154         (Depends-on): Add lstat and remove gettext.  Alphabetize.
26155
26156 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26157
26158         New fts module.
26159         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
26160         (setup_dir, free_dir): New functions.
26161         (enter_dir, leave_dir): Define trivial
26162         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
26163         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
26164         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
26165         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
26166         Move to fts-cycle.c.
26167         (fts_open): Use setup_dir.
26168         (fts_close): Use free_dir.
26169         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
26170         This adds a label and some gotos, but the alternatives were messier.
26171         Check for memory allocation failure when entering a dir.
26172         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
26173         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
26174         (FTS): New member fts_cycle, that is a union that contains the
26175         old active_dir_ht and cycle_state.  All uses changed to mention
26176         fts_cycle.ht and fts_cycle.state.
26177         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
26178         fts.c, with the following changes:
26179         (setup_dir, free_dir): New functions.
26180         (enter_dir): Now returns bool.  Return true if successful, false
26181         if memory exhausted.  All callers changed.
26182         Do not bother partly cleaning up on
26183         memory allocation failure; that is free_dir's job.
26184         However, free ad if hash_insert fails, to avoid memory leak.
26185         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
26186         fts->fts_options to see which union member to use.
26187
26188 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26189
26190         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
26191         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
26192
26193 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26194
26195         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
26196
26197 2005-05-20  Jim Meyering  <jim@meyering.net>
26198
26199         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
26200         Now a macro, to pacify GCC.
26201
26202 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
26203
26204         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
26205         of -1.
26206
26207 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
26208
26209         * lib/chown.c (rpl_chown): Return -1 on failure.
26210
26211 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26212
26213         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
26214         Don't check for stddef.h.
26215         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
26216         don't use its results.
26217         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
26218         since we include them unconditionally.  Don't require
26219         AM_STDBOOL_H, since stdbool is a prerequisite.
26220         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
26221         since we assume C89 or better.
26222         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
26223         as we don't use their results.
26224         Don't check for fchdir, memmove, memset, strrchr, as we use
26225         them unconditionally.
26226         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
26227         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
26228
26229 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26230
26231         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
26232         Include <stddef.h> unconditionally, since we assume C89 now.
26233         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
26234         * lib/fts.c: Include fts_.h first, to check interface.
26235         Do not include intprops.h; no longer needed.
26236         Include cycle-check.h and hash.h, since fts_.h no longer does.
26237         Remove unnecessary casts of closedir to void.
26238         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
26239         decide whether to decrement nlinks.
26240         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
26241         (FTS): Use struct hash_table * instead of Hash_table, so that
26242         we no longer need to include hash.h here.
26243
26244 2005-05-18  Jim Meyering  <jim@meyering.net>
26245
26246         * modules/dirfd (License): Change to LGPL.  Most of the code
26247         is already in the public domain.
26248
26249 2005-05-18  Jim Meyering  <jim@meyering.net>
26250
26251         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
26252         Reported by Yoann Vandoorselaere.
26253
26254 2005-05-17  Jim Meyering  <jim@meyering.net>
26255
26256         * m4/fts.m4: New file, from coreutils.
26257
26258 2005-05-17  Jim Meyering  <jim@meyering.net>
26259
26260         * lib/fts.c, lib/fts_.h: New files, from coreutils.
26261
26262 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26263
26264         Sync from coreutils.
26265         * m4/unlinkdir.m4: New file.
26266
26267 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26268
26269         Sync from coreutils.
26270         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
26271         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
26272         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
26273         White space changes only.
26274         * lib/makepath.c (make_path): Port to hosts where leading "//" is
26275         special.
26276         * lib/yesno.c: Include getline.h, not ctype.h.
26277         (yesno): Don't remove leading white space; POSIX doesn't allow it.
26278         Use getline to remove arbitrary restriction on response length.
26279
26280 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26281
26282         * config/srclist-update: Spell out "Street" in FSF postal
26283         mail address; this is the style the FSF seems to prefer.
26284
26285         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
26286         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
26287         this updates FSF postal mail address.
26288
26289         Sync from coreutils.
26290         * modules/unlinkdir: New file.
26291         * modules/yesno (Depends-on): Add getline.
26292         * MODULES.html.sh (File system functions): Add unlinkdir.
26293
26294 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
26295
26296         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
26297         lib/strsep.h:
26298         Change the initial comment to refer to GPL, not LGPL.
26299         gnulib-tool will change it to LGPL as needed.
26300
26301         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
26302         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
26303         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
26304         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
26305         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
26306         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
26307         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
26308         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
26309         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
26310         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
26311         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
26312         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
26313         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
26314         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
26315         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
26316         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
26317         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
26318         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
26319         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
26320         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
26321         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
26322         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
26323         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
26324         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
26325         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
26326         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
26327         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
26328         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
26329         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
26330         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
26331         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
26332         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
26333         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
26334         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
26335         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
26336         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
26337         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
26338         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
26339         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
26340         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
26341         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
26342         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
26343         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
26344         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
26345         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
26346         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
26347         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
26348         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
26349         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
26350         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
26351         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
26352         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
26353         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
26354         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
26355         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
26356         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
26357         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
26358         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
26359         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
26360         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
26361         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
26362         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
26363         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
26364         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
26365         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
26366         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
26367         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
26368         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
26369         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
26370         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
26371         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
26372         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
26373         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
26374         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
26375         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
26376         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
26377         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
26378         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
26379         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
26380         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
26381         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
26382         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
26383         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
26384         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
26385         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
26386         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
26387         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
26388         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
26389         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
26390         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
26391         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
26392         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
26393         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
26394         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
26395         lib/yesno.c, lib/yesno.h:
26396         Update FSF postal mail address.
26397
26398 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
26399
26400         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
26401         tests/test-memmem.c, tests/test-stpncpy.c:
26402         Update FSF postal mail address.
26403
26404 2005-05-13  Bruno Haible  <bruno@clisp.org>
26405
26406         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
26407         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
26408         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
26409         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
26410         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
26411         Add support for 64-bit integers in the MSVC compiler.
26412
26413 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26414
26415         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
26416
26417 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
26418
26419         * gnulib-tool (func_import): Sort and uniquify recommended includes.
26420
26421 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
26422
26423         * doc/getdate.texi (General date syntax): Don't say that date
26424         date --iso-8601=ns generates acceptable dates; it doesn't yet.
26425         Problem reported by Nic Ferrier.
26426
26427 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26428
26429         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
26430         specified in ai_socktype. Fix invalid ai_protocol
26431         check. ai_protocol is usually set to 0 or depending on
26432         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
26433         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
26434         ai_socktype / ai_protocol in the returned addrinfo structure.
26435
26436 2005-05-10  Simon Josefsson  <jas@extundo.com>
26437
26438         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
26439         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26440
26441 2005-05-10  Karl Berry  <karl@gnu.org>
26442
26443         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
26444         (from http://www.gnu.org/licenses).
26445         * doc/COPYING.LIB: also rename to COPYING.LESSER.
26446         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
26447         fdl.texi suffices.
26448
26449 2005-05-10  Karl Berry  <karl@gnu.org>
26450
26451         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
26452         (COPYING.DOC): remove.
26453
26454         * config/srclist-update: new FSF address.
26455
26456 2005-05-10  Derek Price  <derek@ximbiot.com>
26457
26458         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
26459         possible.
26460
26461 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26462             Bruno Haible  <bruno@clisp.org>
26463
26464         * modules/inet_ntop: New file.
26465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26466         inet_ntop.
26467
26468 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26469             Bruno Haible  <bruno@clisp.org>
26470
26471         * m4/inet_ntop.m4: New file.
26472
26473 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26474             Bruno Haible  <bruno@clisp.org>
26475
26476         * lib/inet_ntop.h: New file.
26477         * lib/inet_ntop.c: New file, from glibc with modifications.
26478
26479 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
26480
26481         * modules/time_r (License): Change to LGPL.
26482         * modules/extensions (License): Change to LGPL.  Actually,
26483         the license is more permissive than that, but currently gnulib-tool
26484         doesn't know how to handle more-permissive licenses.
26485
26486         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
26487         Problem reported by Dave Love.
26488
26489 2005-05-08  Jim Meyering  <jim@meyering.net>
26490
26491         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
26492         blank.
26493
26494 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
26495
26496         * modules/argmatch (Depends-on): Add stdbool.
26497         * modules/backupfile (Depends-on): Likewise.
26498         * modules/chdir-long (Depends-on): Likewise.
26499         * modules/closeout (Depends-on): Likewise.
26500         * modules/cycle-check (Depends-on): Likewise.
26501         * modules/dirname (Depends-on): Likewise.
26502         * modules/fnmatch (Depends-on): Likewise.
26503         * modules/fsusage (Depends-on): Likewise.
26504         * modules/fwriteerror (Depends-on): Likewise.
26505         * modules/getcwd (Depends-on): Likewise.
26506         * modules/getloadavg (Depends-on): Likewise.
26507         * modules/hard-locale (Depends-on): Likewise.
26508         * modules/makepath (Depends-on): Likewise.
26509         * modules/mountlist (Depends-on): Likewise.
26510         * modules/nanosleep (Depends-on): Likewise.
26511         * modules/posixtm (Depends-on): Likewise.
26512         * modules/quotearg (Depends-on): Likewise.
26513         * modules/readtokens (Depends-on): Likewise.
26514         * modules/readtokens0 (Depends-on): Likewise.
26515         * modules/readutmp (Depends-on): Likewise.
26516         * modules/save-cwd (Depends-on): Likewise.
26517         * modules/strftime (Depends-on): Likewise.
26518         * modules/userspec (Depends-on): Likewise.
26519         * modules/utimecmp (Depends-on): Likewise.
26520         * modules/xgetcwd (Depends-on): Likewise.
26521         * modules/xnanosleep (Depends-on): Likewise.
26522         * modules/xstrtod (Depends-on): Likewise.
26523         * modules/yesno (Depends-on): Likewise.
26524
26525 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
26526
26527         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
26528         needless checks.
26529
26530 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
26531
26532         Merge from coreutils.  Among other things,
26533         add bulletproofing for cases where stdin, stdout, or stderr are closed.
26534         * lib/fd-safer.c: New file.
26535         * lib/fcntl-safer.h, open-safer.c: Remove.
26536         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
26537         * lib/dup-safer.c: Include unistd-safer.h first.
26538         Don't include errno.h.
26539         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
26540         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
26541         * lib/file-type.c: Rely on file-type.h change.
26542         * lib/getloadavg.c: Include unistd-safer.h.
26543         (getloadavg): Use safer open.
26544         * lib/getusershell.c: Include "stdio-safer.h".
26545         (getusershell): Use safer fopen.
26546         * lib/long-options.c (long_options): Use NULL rather than 0.
26547         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
26548         'free'.
26549         * lib/modechange.c: Likewise.
26550         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
26551         (MODE_DONE): New constant.
26552         (struct mode_change): Remove 'next' member.
26553         (make_node_op_equals): New function; like the old one of the
26554         same name, except it allocates an array.
26555         (mode_compile, mode_create_from_ref): Use it.
26556         (mode_compile): Allocate result as an array, not a linked list.
26557         Parse octal string ourself, so that we catch mistakes like "+0".
26558         (mode_adjust): Arg is an array, not a linked list.
26559         * lib/modechange.c: Include stat-macros.h, xalloc.h.
26560         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
26561         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
26562         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
26563         Remove.  This is now stat-macros.h's job.
26564         (talloc): Remove.  All callers replaced by xalloc, so that
26565         our invokers don't have to worry about reporting memory failures.
26566         (make_node_op_equals): Remove.
26567         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
26568         New constants.
26569         (struct mode_change): Moved here from modechange.h.
26570         (mode_append_entry): Remove.
26571         (mode_compile): Remove MASKED_OPS arg, since it encouraged
26572         apps to have incorrect behavior.  Use simpler algorithm for head
26573         and tail.  Don't futz with umask; that's now the job of mode_adjust.
26574         Detect more invalid usages rather than having somewhat-random behavior.
26575         Don't insert an "a=" action, as that leads to incorrect behavior.
26576         (mode_compile, mode_create_from_ref): Return NULL on error instead
26577         of an enum, since now there's only one way to have an error.  All
26578         callers changed.
26579         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
26580         at the correct time.  Simplify calculation of "+u" and its ilk.
26581         Don't mishandle "+X".
26582         (mode_free): Remove "register" and localize decls.
26583         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
26584         (struct mode_change): Move to modechange.c; callers don't
26585         need to see this stuff.
26586         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
26587         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
26588         (mode_change, mode_adjust): Reflect the new signatures noted above.
26589         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
26590         that might redefine system include files.
26591         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
26592         (my_usleep): Use NULL rather than (void *) 0.
26593         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
26594         Use siginterrupt to specify that system calls should be interrupted.
26595         (rpl_nanosleep): Move initialization of suspended closer to call of
26596         my_usleep.
26597         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
26598         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
26599         (desirable_utmp_entry): New function.
26600         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
26601         using x2nrealloc, to simplify logic.
26602         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
26603         size calculation.  Do not assume utmp file is a regular file.
26604         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
26605         (READ_UTMP_CHECK_PIDS): New constant.
26606         * lib/save-cwd.c: Include unistd-safer.h.
26607         (save_cwd): Use fd_safer.
26608         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
26609         [!_LIBC] Include "stat-macros.h" instead.
26610         * lib/unistd-safer.h (fd_safer): New decl.
26611
26612 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
26613
26614         * modules/getloadavg (Depends-on): Add unistd-safer.
26615         * modules/getusershell (Depends-on): Add stdio-safer.
26616         * modules/lstat (Depends-on): Remove xalloc.
26617         * modules/mkstemp (Depends-on): Add stat-macros.
26618         * modules/modechange (Depends-on): Remove xstrtol.
26619         Add stat-macros, xalloc.
26620         * modules/save-cwd (Depends-on): Add unistd-safer.
26621         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
26622         * modules/unistd-safer (Files): Add lib/fd-safer.c
26623         (Makefile.am): Remove lib_SOURCES.
26624
26625         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
26626         Remove fcntl-safer; unistd-safer supersedes it.
26627
26628 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
26629
26630         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
26631         AC_HEADER_STAT.
26632         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
26633         (gl_PREREQ_CHOWN): Remove.
26634         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
26635         it.  Don't require AC_HEADER_STAT.
26636         (gl_PREREQ_LSTAT): Remove.
26637         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
26638         Don't require AC_HEADER_STAT.
26639         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
26640         (gl_PREREQ_RMDIR): Remove.
26641         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
26642         mention stat-macros.h or AC_HEADER_STAT, since we'll make
26643         the stat-macros module a prerequisite.
26644         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
26645         * m4/filemode.m4 (gl_FILEMODE): Likewise.
26646         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
26647         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
26648         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
26649         variable names.
26650         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
26651         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
26652         variable prefixes.
26653         * m4/fcntl-safer.m4: Remove.
26654         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
26655         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
26656         Invoke gl_PREREQ_FD_SAFER.
26657         (gl_PREREQ_FD_SAFER): New macro.
26658         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
26659         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
26660         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
26661         Remove duplicate call to AC_LIBOBJ(readutmp).
26662         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
26663
26664         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
26665         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
26666
26667 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
26668
26669         * MODULES.html.sh (Misc): Add byteswap.
26670
26671 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
26672
26673         * modules/getcwd (Depends-on): Add extensions.
26674         * modules/openat (Depends-on): Likewise.
26675
26676 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
26677
26678         * modules/byteswap: New file.
26679
26680 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
26681
26682         * m4/byteswap.m4: New file.
26683
26684 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
26685
26686         * lib/byteswap_.h: New file.
26687
26688 2005-04-25  Karl Berry  <karl@gnu.org>
26689
26690         * m4/gettext.m4: Update from GNU gettext 0.14.4.
26691
26692 2005-04-25  Albert Chin  <china@thewrittenword.com>
26693
26694         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
26695         Toolkit C bug.
26696
26697 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
26698
26699         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
26700         (func_ln_if_changed) Remove forcibly for no error message
26701         in case file does not exist.
26702
26703 2005-04-19  Simon Josefsson  <jas@extundo.com>
26704
26705         * gnulib-tool (Options): Make --symlink mean --symbolic.
26706
26707 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
26708
26709         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
26710
26711 2005-04-16  Simon Josefsson  <jas@extundo.com>
26712
26713         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
26714
26715 2005-04-15  Simon Josefsson  <jas@extundo.com>
26716
26717         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
26718
26719 2005-04-15  Simon Josefsson  <jas@extundo.com>
26720
26721         * gnulib-tool: Rename --symlink to --symbolic.
26722
26723 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
26724
26725         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
26726         symbolic links to files instead of copying/moving.  Add --aux-dir,
26727         specifying directory relative --dir where auxiliary build tools
26728         are placed.
26729
26730 2005-04-14  Bruno Haible  <bruno@clisp.org>
26731
26732         * modules/allocsa (License): Change to LGPL.
26733         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26734
26735 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26736
26737         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
26738         that "UTC +1 second" continues to work.  Problem reported
26739         by Dmitry V. Levin.
26740         (relunit_snumber): New rule.
26741         (relunit): Use it.
26742
26743 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
26744
26745         * lib/getdate.y (universal_time_zone_table): New constant.
26746         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
26747         universal_time_zone_table.
26748         (lookup_zone): Prefer universal_time_zone_table to
26749         local_time_zone_table, so that "GMT" time stamps are allowed in
26750         London during the summer.  Problem reported by Ian Abbott.
26751
26752 2005-04-12  Jim Meyering  <jim@meyering.net>
26753
26754         * lib/human.c (humblock): Set *options even when returning due to
26755         xstrtoumax conversion failure.  Thanks to a used-uninitialized
26756         warning from gcc-4.
26757
26758 2005-04-09  Jim Meyering  <jim@meyering.net>
26759
26760         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
26761         -Wuninitialized: initialize tm0.tm_year.
26762
26763 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
26764
26765         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
26766         count, since there's no maximum.  All uses changed.
26767         Add member dsts_seen.
26768         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
26769         not being INT_MAX.
26770         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
26771         Use pc_rels_seen to decide whther a date is absolute.
26772
26773         * lib/getdate.y (number): Don't overwrite year.
26774         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
26775         check.
26776
26777 2005-04-02  Simon Josefsson  <jas@extundo.com>
26778
26779         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
26780         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
26781
26782 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
26783
26784         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
26785         where no absolute path name can be longer than PATH_MAX.
26786
26787 2005-03-27  Jim Meyering  <jim@meyering.net>
26788
26789         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
26790
26791 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
26792
26793         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
26794         "one's complement" -> "ones' complement" in comment, as per Knuth.
26795         "value of type" -> "type or expression" in comment.
26796         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
26797
26798 2005-03-26  Jim Meyering  <jim@meyering.net>
26799
26800         Comment nits.
26801         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
26802         Correct typos: s/or/of/.
26803
26804 2005-03-26  Jim Meyering  <jim@meyering.net>
26805
26806         * modules/check-include-files: Move to ../ and rename to...
26807         * check-module: ...this.
26808
26809 2005-03-25  Jim Meyering  <jim@meyering.net>
26810
26811         * modules/xvasprintf (Files): Add xalloc.h.
26812
26813 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
26814
26815         * modules/gettext (Files): config/config.rpath ->
26816         build-aux/config.rpath
26817         * modules/iconv (Files): Likewise.
26818         Problem reported by Oskar Liljeblad.
26819
26820 2005-03-23  Jim Meyering  <jim@meyering.net>
26821
26822         * modules/check-include-files: New script to check for
26823         missing dependencies, multiple includes, etc.
26824
26825         * modules/c-strtold (Depends-on): Add xalloc.
26826         * modules/c-strtod (Depends-on): Add xalloc.
26827         * modules/hash (Depends-on): Add xalloc.
26828         (Files): Remove lib/xalloc.h.
26829
26830         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
26831         * modules/userspec (Files): Add lib/inttostr.h.
26832
26833 2005-03-23  Jim Meyering  <jim@meyering.net>
26834
26835         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
26836
26837 2005-03-22  Jim Meyering  <jim@meyering.net>
26838
26839         * modules/stat-macros: New module.
26840         * modules/canonicalize, modules/euidaccess, modules/file-type,
26841         * modules/filemode, modules/lchown, modules/makepath,
26842         * modules/rmdir, modules/stat: Depend on new stat-macros module
26843         rather than listing lib/stat-macros.h manually.
26844         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
26845
26846 2005-03-22  Jim Meyering  <jim@meyering.net>
26847
26848         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
26849
26850 2005-03-22  Bruno Haible  <bruno@clisp.org>
26851
26852         * config/srclist.txt: Replace target directory 'config' with
26853         'build-aux'.
26854         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
26855         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
26856         ../build-aux/.
26857
26858 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
26859
26860         * modules/chdir-long (Depends-on): Add mempcpy.
26861
26862         * modules/acl, modules/backupfile, modules/c-strtod,
26863         modules/c-strtold, modules/canon-host, modules/canonicalize,
26864         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
26865         modules/exclude, modules/exitfail, modules/file-type,
26866         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
26867         modules/getdate, modules/getline, modules/getpagesize,
26868         modules/getpass, modules/getugroups, modules/group-member,
26869         modules/hard-locale, modules/hash, modules/human, modules/idcache,
26870         modules/inttostr, modules/long-options, modules/makepath,
26871         modules/md5, modules/memcasecmp, modules/memcoll,
26872         modules/modechange, modules/mountlist, modules/path-concat,
26873         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
26874         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
26875         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
26876         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
26877         modules/strftime, modules/strndup, modules/strverscmp,
26878         modules/timespec, modules/unlocked-io, modules/userspec,
26879         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
26880         modules/yesno:
26881         Remove lib_SOURCES line from Makefile.am section, as this is now
26882         done automatically by the corresponding Autoconf macro.
26883
26884 2005-03-21  Jim Meyering  <jim@meyering.net>
26885
26886         Changes imported from coreutils.
26887
26888         * lib/cycle-check.c: Don't include xalloc.h.
26889
26890         * lib/path-concat.c: Don't include assert.h.
26891         (path_concat): Remove assertion that would have triggered
26892         for ABASE starting with more than one slash.
26893         Reported by Andreas Schwab.
26894
26895         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
26896         properly when ABASE is an absolute file name.
26897         Correct the description of this function.
26898         Include <assert.h>.
26899         Add an assertion and a test driver.
26900         This fixes a bug introduced on 2004-07-02.
26901         Andreas Schwab reported the resulting failure of cp --parents:
26902         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
26903
26904 2005-03-21  Jim Meyering  <jim@meyering.net>
26905
26906         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
26907         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
26908
26909 2005-03-21  Jim Meyering  <jim@meyering.net>
26910         and  Paul Eggert  <eggert@cs.ucla.edu>
26911
26912         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
26913         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
26914         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
26915         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
26916         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
26917         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
26918         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
26919         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
26920         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
26921         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
26922         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
26923         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
26924         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
26925         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
26926         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
26927         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
26928         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
26929         for these modules.
26930
26931 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
26932
26933         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
26934         (which shouldn't happen), generate nothing instead of returning 0
26935         immediately, so that nstrftime (NULL, ...) doesn't return 0.
26936
26937 2005-03-16  Bruno Haible  <bruno@clisp.org>
26938
26939         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
26940         HAVE_LONGLONG_64BIT.
26941
26942 2005-03-16  Bruno Haible  <bruno@clisp.org>
26943
26944         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
26945         HAVE_LONGLONG_64BIT.
26946
26947 2005-03-16  Bruno Haible  <bruno@clisp.org>
26948
26949         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
26950         HAVE_LONGLONG_64BIT.
26951
26952 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
26953
26954         * lib/strftime.c (my_strftime): Prepend space to format so that we can
26955         reliably distinguish strftime failure from empty output on POSIX
26956         hosts.
26957
26958 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
26959
26960         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
26961         (iconv_string): Don't guess a size-zero buffer, as that might cause
26962         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
26963         result would be 'too large', where 'too large' is (heuristically)
26964         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
26965         overflow concerns.  This will prevent some unwanted malloc failures
26966         when the inputs are very large.
26967
26968 2005-03-15  Karl Berry  <karl@gnu.org>
26969
26970         * config/srclist.txt (config.rpath): from gettext.
26971         * config/config.rpath: update.
26972
26973 2005-03-15  Bruno Haible  <bruno@clisp.org>
26974
26975         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
26976         to 'negate'.
26977
26978         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
26979         variable.
26980
26981         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
26982         results.
26983
26984 2005-03-14  Simon Josefsson  <jas@extundo.com>
26985
26986         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
26987         <fx@gnu.org>.
26988
26989 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
26990
26991         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
26992         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
26993         intprops.h.
26994         * lib/strtol.c: Likewise.
26995
26996 2005-03-14  Jim Meyering  <jim@meyering.net>
26997
26998         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
26999         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
27000         to be nonzero so that we (and caller) can detect the difference
27001         between a valid zero-length expansion and an error return, even
27002         when the underlying strftime fails before writing anything into
27003         that location.
27004
27005 2005-03-14  Bruno Haible  <bruno@clisp.org>
27006
27007         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
27008         Update from GNU gettext 0.14.3.
27009
27010 2005-03-10  Jim Meyering  <jim@meyering.net>
27011
27012         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
27013
27014 2005-03-10  Jim Meyering  <jim@meyering.net>
27015
27016         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
27017         so that this module works on systems without fchdir.
27018
27019 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
27020
27021         Factor int-properties macros into a single file, except for
27022         glibc-related files.
27023         * lib/intprops.h: New file.
27024         * lib/getloadavg.c: Include it instead of limits.h.
27025         (INT_STRLEN_BOUND): Remove.
27026         * lib/human.c: Include intprops.h.
27027         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
27028         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
27029         302/1000.
27030         * lib/inttostr.h: Include intprops.h instead of limits.h.
27031         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
27032         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
27033         for consistency with intprops.h.
27034         (time_t_is_integer, twos_complement_arithmetic): Use them.
27035         * lib/sig2str.h: Include <signal.h>, intprops.h.
27036         (INT_STRLEN_BOUND): Remove.
27037         * lib/strftime.c (TYPE_SIGNED): Remove.
27038         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
27039         * lib/strtol.c: Adjust comments to match intprops.h.
27040         * lib/userspec.c: Include intprops.h.
27041         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
27042         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
27043         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
27044         instead of rolling our own expressions.
27045         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
27046
27047         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
27048         instead of int.
27049         (my_strftime): Do not mishandle years close to INT_MAX, by doing
27050         the right thing even if adding 1900 would overflow.  Similarly
27051         for tm_mon + 1 and tm_yday + 1.
27052         Make %Y always equivalent to %C%y, and similarly for %G and %g.
27053         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
27054         (DO_SIGNED_NUMBER): New macro.
27055         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
27056
27057 2005-03-07  Bruno Haible  <bruno@clisp.org>
27058
27059         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
27060
27061 2005-03-07  Bruno Haible  <bruno@clisp.org>
27062
27063         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
27064
27065 2005-03-04  Derek R. Price  <derek@ximbiot.com>
27066
27067         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
27068         (func_import): Only replace files via --import when they have actually
27069         changed.
27070
27071 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27072
27073         * m4/mmap-anon.m4: New file.
27074         * m4/pagealign_alloc.m4: New file.
27075
27076 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27077             Bruno Haible  <bruno@clisp.org>
27078
27079         * modules/pagealign_alloc: New file.
27080         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
27081
27082 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27083             Bruno Haible  <bruno@clisp.org>
27084
27085         * lib/pagealign_alloc.h: New file.
27086         * lib/pagealign_alloc.c: New file.
27087
27088 2005-03-03  Bruno Haible  <bruno@clisp.org>
27089
27090         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
27091         Use an all-permissive copyright notice, recommended by RMS.
27092
27093 2005-03-02  Bruno Haible  <bruno@clisp.org>
27094
27095         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
27096         of AIX, the replacement has to be done only after <string.h> is
27097         included, therefore not in config.h. stpncpy.h does the replacement,
27098         and stpncpy.c uses it.
27099
27100 2005-03-02  Bruno Haible  <bruno@clisp.org>
27101
27102         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
27103         stpncpy.c uses it.
27104
27105 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27106
27107         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
27108         The workaround isn't strictly needed for POSIX conformance, and
27109         it's too much of a pain to configure and maintain.  We'll ask
27110         people to fix their kernels instead.
27111         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
27112         (NANOSLEEP_BUG_WORKAROUND): Remove.
27113         (xnanosleep): Remove the workaround.
27114
27115 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27116
27117         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
27118         Reported by Derek Price.
27119         (Include): Add "timespec.h".
27120
27121         * modules/xnanosleep (Depends-on): Remove gethrxtime.
27122
27123 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27124
27125         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
27126         to detect nanosleep bug.
27127
27128 2005-03-01  Bruno Haible  <bruno@clisp.org>
27129
27130         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
27131
27132 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27133
27134         * modules/gethrxtime: New file.
27135         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
27136         (Depends-on): Add gethrxtime.
27137         (configure.ac): Add gl_XNANOSLEEP.
27138         (Makefile.am): Remove lib_SOURCES line.
27139
27140 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27141
27142         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
27143         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
27144
27145 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27146
27147         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
27148         * lib/timespec.h (gettime): Return void, since it always
27149         succeeds now.  All uses changed.
27150         * lib/gettime.c (gettime) Likewise.
27151         [HAVE_NANOTIME]: Prefer nanotime.
27152         Assume gettimeofday succeeds, as POSIX requires.
27153         Assime time () succeeds, since other code already does.
27154         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
27155         (timespec_subtract): Remove.
27156         (NANOSLEEP_BUG_WORKAROUND): New constant.
27157         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
27158         things considerably.  Use it only on GNU/Linux hosts, since the
27159         workaround shouldn't be needed elsewhere.
27160
27161 2005-02-24  Bruno Haible  <bruno@clisp.org>
27162
27163         * modules/gettext (Files): Add m4/glibc2.m4.
27164
27165 2005-02-24  Bruno Haible  <bruno@clisp.org>
27166
27167         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
27168         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
27169         * m4/progtest.m4:
27170         Update from GNU gettext 0.14.2.
27171         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
27172
27173 2005-02-24  Bruno Haible  <bruno@clisp.org>
27174
27175         * lib/localcharset.c: Update from GNU gettext 0.14.2.
27176         * lib/config.charset: Update from GNU gettext 0.14.2.
27177
27178 2005-02-24  Bruno Haible  <bruno@clisp.org>
27179
27180         * lib/gettext.h: Update from GNU gettext 0.14.2.
27181
27182 2005-02-23  Simon Josefsson  <jas@extundo.com>
27183
27184         * m4/iconvme.m4: New file.
27185
27186 2005-02-23  Jim Meyering  <jim@meyering.net>
27187
27188         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
27189         change.
27190         Thanks to Bruno Haible for catching it.
27191
27192 2005-02-22  Simon Josefsson  <jas@extundo.com>
27193
27194         * modules/iconvme: New file.
27195
27196         * MODULES.html.sh: Add iconvme.
27197
27198 2005-02-22  Simon Josefsson  <jas@extundo.com>
27199
27200         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
27201
27202 2005-02-22  Simon Josefsson  <jas@extundo.com>
27203
27204         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
27205
27206 2005-02-22  Jim Meyering  <jim@meyering.net>
27207
27208         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
27209         s/ifndef/ifdef/.
27210
27211 2005-02-20  Neil Conway  <neilc@samurai.com>
27212
27213         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
27214         returned by OSX/Darwin if the specified buffer is not large
27215         enough for the hostname.
27216
27217 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27218
27219         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
27220         pass it to _help, otherwise the latter coredumps trying to
27221         dereference state.root_argp.
27222
27223 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27224
27225         * modules/chdir-long (Depends-on): Add memrchr.
27226         * modules/memrchr (Files): Add lib/memrchr.h.
27227         (Include): "memrchr.h".
27228
27229 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27230
27231         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
27232
27233 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27234
27235         * lib/memrchr.h: New file.
27236         * lib/chdir-long.c: Include it.
27237         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
27238         Don't bother including stddef.h.
27239
27240 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
27241
27242         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
27243         inclusion.
27244         Include <sys/types.h>, for dev_t.
27245         (ME_DUMMY, ME_REMOTE): Move from here....
27246         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
27247         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
27248         Dmitry V. Levin.
27249         Include mountlist.h first, to test the interface.
27250
27251 2005-01-29  Bruno Haible  <bruno@clisp.org>
27252
27253         * lib/progname.c (program_name): Initialize.
27254         Needed when linking statically on MacOS X.
27255
27256 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27257
27258         Sync from coreutils.
27259         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
27260         (Depends-on): Add c-strtod.
27261         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
27262
27263 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27264
27265         Sync from coreutils.
27266         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
27267
27268         Remove files that are specific to coreutils.
27269         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
27270
27271 2005-01-28  Bruno Haible  <bruno@clisp.org>
27272
27273         * modules/javacomp: New file.
27274         * MODULES.html.sh (Java): Add javacomp.
27275
27276 2005-01-28  Bruno Haible  <bruno@clisp.org>
27277
27278         * m4/javacomp.m4: New file, from GNU gettext.
27279
27280 2005-01-28  Bruno Haible  <bruno@clisp.org>
27281
27282         * lib/javacomp.sh.in: New file, from GNU gettext.
27283         * lib/javacomp.h: New file, from GNU gettext.
27284         * lib/javacomp.c: New file, from GNU gettext.
27285
27286 2005-01-26  Simon Josefsson  <jas@extundo.com>
27287
27288         * lib/gai_strerror.c: Use GPL in header.
27289
27290 2005-01-26  Bruno Haible  <bruno@clisp.org>
27291
27292         * modules/javaexec: New file.
27293         * MODULES.html.sh (Java): Add javaexec.
27294
27295 2005-01-26  Bruno Haible  <bruno@clisp.org>
27296
27297         * m4/javaexec.m4: New file, from GNU gettext.
27298
27299 2005-01-26  Bruno Haible  <bruno@clisp.org>
27300
27301         * lib/javaexec.sh.in: New file, from GNU gettext.
27302         * lib/javaexec.h: New file, from GNU gettext.
27303         * lib/javaexec.c: New file, from GNU gettext.
27304
27305 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27306
27307         * modules/lchown (Depends-on): Remove lchown.h
27308
27309 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27310
27311         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
27312         must be defined if the header file was not found, in order
27313         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
27314
27315 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27316
27317         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
27318         initializers for struct pentry_state.
27319         (__argp_error): Check return value of __asprintf
27320         (__argp_failure): Translate error message
27321
27322         * lib/argp-parse.c: Removed braces around the expansion of N_()
27323
27324 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27325
27326         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
27327         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
27328         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
27329         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
27330         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
27331         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
27332         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
27333         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
27334         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
27335         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
27336         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
27337         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
27338         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
27339         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
27340         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
27341         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
27342         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
27343         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
27344         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
27345         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
27346         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
27347         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
27348         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
27349         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
27350         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
27351         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
27352         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
27353         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
27354         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
27355         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
27356         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
27357         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
27358         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
27359         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
27360         xstrtol.m4, xstrtoumax.m4, yesno.m4:
27361         Use an all-permissive copyright notice, recommended by RMS.
27362
27363 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
27364
27365         * modules/chdir-long (Depends-on): Remove mempcpy.
27366
27367 2005-01-21  Jim Meyering  <jim@meyering.net>
27368
27369         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
27370         same value as for Solaris 9.
27371
27372         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
27373         component length.  This included changing the parameter to be
27374         of type `char *' rather than `char const *'.
27375         * lib/chdir-long.h (chdir_long): Update prototype.
27376
27377         * lib/openat.c (fdopendir, fstatat): New functions.
27378         * lib/openat.h: Include headers required for use of DIR and struct
27379         stat.
27380         [AT_SYMLINK_NOFOLLOW]: Define.
27381         (fdopendir, fstatat): Add prototypes.
27382
27383 2005-01-21  Bruno Haible  <bruno@clisp.org>
27384
27385         * modules/classpath: New file.
27386         * MODULES.html.sh (Java): Add classpath.
27387
27388 2005-01-21  Bruno Haible  <bruno@clisp.org>
27389
27390         * lib/classpath.h: New file, from GNU gettext.
27391         * lib/classpath.c: New file, from GNU gettext.
27392
27393 2005-01-20  Simon Josefsson  <jas@extundo.com>
27394
27395         * modules/version-etc-fsf: New file.
27396
27397 2005-01-20  Simon Josefsson  <jas@extundo.com>
27398
27399         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
27400         * lib/version-etc.c: Remove version_etc_copyright.
27401         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
27402         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
27403
27404 2005-01-20  Simon Josefsson  <jas@extundo.com>
27405
27406         * lib/base64.h (isbase64): Add.
27407
27408         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
27409         using a unsigned prototype, don't inline.
27410         (base64_decode): Use it.
27411
27412 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27413
27414         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
27415         it.
27416
27417 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27418
27419         * lib/save-cwd.c (save_cwd): Remove code to support the case
27420         where fchdir is missing or flaky.
27421
27422 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27423
27424         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
27425
27426 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
27427
27428         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
27429         AC_LIBSOURCES now does this.
27430         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
27431         with new ullong_max module.
27432
27433 2005-01-19  Bruno Haible  <bruno@clisp.org>
27434
27435         * modules/sh-quote: New file.
27436         * MODULES.html.sh (Executing programs): Add sh-quote.
27437
27438 2005-01-19  Bruno Haible  <bruno@clisp.org>
27439
27440         * lib/sh-quote.h: New file, from GNU gettext.
27441         * lib/sh-quote.c: New file, from GNU gettext.
27442
27443 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27444
27445         Merge from coreutils.
27446         * m4/ullong_max.m4: New file.
27447         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
27448         (gl_MACROS): Assume localeconv exists.
27449
27450 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27451
27452         Merge changes from coreutils, as described below in several
27453         changelogs dated today.
27454
27455         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
27456         (O_DIRECTORY): Remove; not needed here, since "." must be
27457         a directory.  All uses removed.
27458         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
27459         universal on Suns, and we also need to test for IRIX.
27460         Revamp code to use 'if' rather than '#if'.
27461         Avoid unnecessary comparison of cwd->desc to 0.
27462
27463         * lib/utimens.c (futimens): Robustify the previous patch, by checking
27464         for known valid error numbers rather than observed invalid ones.
27465
27466 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27467
27468         * modules/ullong_max: New file.
27469
27470         * modules/chdir-long, modules/openat: New files.
27471         * modules/save-cwd (Depends-on): Depend on chdir-long.
27472         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
27473
27474 2005-01-18  Jim Meyering  <jim@meyering.net>
27475
27476         Merge from coreutils.
27477         * m4/chdir-long.m4, m4/openat.m4: New files.
27478         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
27479         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
27480         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
27481         is sane and DOES follow symlinks.  Besides, testing 20 different
27482         systems found no broken chown implementations.
27483         Prompted by a change in rsync's copy of this macro.
27484         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
27485
27486         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
27487
27488         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
27489         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
27490         NULL-means-set-to-current-time semantics.
27491         Remove temporary file immediately, rather than waiting
27492         for configure's at-exit trap code to do it.
27493
27494 2005-01-18  Jim Meyering  <jim@meyering.net>
27495
27496         * lib/version-etc.c (version_etc_copyright): Update copyright date.
27497
27498         * lib/utimens.c (futimens): Account for the fact that futimes
27499         can also fail with errno == ENOSYS or errno == ENOENT.
27500         Patch from Dmitry V. Levin.
27501
27502         Change the name of the robust chdir function from chdir to chdir_long.
27503         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
27504         (restore_cwd): Use chdir_long, not chdir.
27505         * lib/chdir-long.c: Renamed from chdir.c.
27506         * lib/chdir-long.h: Renamed from chdir.h.
27507         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
27508         Hurd.
27509
27510 2005-01-18  Bruno Haible  <bruno@clisp.org>
27511
27512         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
27513         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
27514         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
27515         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
27516         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
27517         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
27518         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
27519         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
27520         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
27521         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
27522         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
27523         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
27524         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
27525         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
27526         Use an all-permissive copyright notice, recommended by RMS.
27527
27528 2005-01-18  Bob Proulx  <bob@proulx.com>
27529
27530         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
27531         simplify offsetof() macro construct to avoid compile failure with
27532         native HP-UX 11.0 ANSI C compiler.
27533
27534 2005-01-17  Bruno Haible  <bruno@clisp.org>
27535
27536         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
27537         redundant because stpncpy.m4 takes care of it.
27538
27539 2005-01-17  Bruno Haible  <bruno@clisp.org>
27540
27541         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
27542
27543 2005-01-17  Bruno Haible  <bruno@clisp.org>
27544
27545         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
27546         used.
27547
27548 2005-01-17  Bruno Haible  <bruno@clisp.org>
27549
27550         * lib/fwriteerror.h (fwriteerror): Change specification to include
27551         fclose.
27552         * lib/fwriteerror.c: Include <stdbool.h>.
27553         (fwriteerror): At the end, close the file stream. Record whether
27554         stdout was already closed.
27555
27556 2005-01-17  Bruno Haible  <bruno@clisp.org>
27557
27558         * lib/execute.c (environ): Declare if needed.
27559         * lib/pipe.c (environ): Likewise.
27560         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
27561
27562 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27563
27564         * modules/argp: Depend on vsnprintf
27565
27566 2005-01-10  Jim Meyering  <jim@meyering.net>
27567
27568         * modules/closeout (Depends-on): Add atexit.
27569
27570 2005-01-06  Bruno Haible  <bruno@clisp.org>
27571
27572         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
27573
27574 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27575
27576         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
27577         definitions to be after all include files, to avoid collisions.
27578         Problem reported by Bob Proulx.
27579
27580 2005-01-04  Jim Meyering  <jim@meyering.net>
27581
27582         Changes imported from coreutils.
27583         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
27584         as the mkstemp template, use a temporary directory and an
27585         8.3-friendly template to avoid trouble on systems like DJGPP.
27586         Reported by Juan M. Guerrero via Stepan Kasal.
27587         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
27588         close. Remove the temporary directory right away, rather than waiting
27589         for configure's at-exit trap code to do it.
27590         Suggestion from Stepan Kasal.
27591
27592 2005-01-01  Simon Josefsson  <jas@extundo.com>
27593
27594         * gnulib-tool: Print #include directives when --import'ing.
27595
27596 2004-12-28  Simon Josefsson  <jas@extundo.com>
27597
27598         * tests/test-base64.c: Include required header files.  Remove
27599         unused variables.
27600
27601 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27602
27603         * modules/error (Depends-on): Remove gettext.
27604
27605 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27606
27607         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
27608         not needed.  This removes a dependency on the gettext module.
27609         [defined _LIBC]: Do not include <libintl.h>; not needed.
27610
27611 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
27612
27613         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
27614         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
27615
27616 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
27617
27618         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
27619         HAVE_DECL_STRTOLD.
27620
27621 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27622
27623         * modules/getdate (Depends-on): Remove alloca-opt.
27624
27625 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27626
27627         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
27628
27629 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27630
27631         * lib/argp-parse.c: Include <stddef.h>.
27632         (alignof, alignto): New macros.
27633         (parser_init): Don't assume that void * is aligned sufficiently
27634         for struct option.
27635
27636         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
27637         need to extend the stack.
27638         (YYINITDEPTH): New macro, so that the initial stack isn't overly
27639         large.
27640
27641 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27642
27643         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
27644
27645 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27646
27647         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
27648         (2004-10-24) change.  Apparently this was a false alarm.
27649
27650         * modules/getdate: Depend on alloca-opt, not alloca.
27651
27652 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27653
27654         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
27655         Remove now-obsolete comment about AIX.
27656         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
27657         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
27658         (YYMAXDEPTH): New macro.
27659
27660 2004-12-18  Simon Josefsson  <jas@extundo.com>
27661
27662         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
27663
27664 2004-12-18  Bruno Haible  <bruno@clisp.org>
27665
27666         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
27667
27668 2004-12-18  Bruno Haible  <bruno@clisp.org>
27669
27670         * lib/fatal-signal.c (fatal_signals): Make non-const.
27671         (init_fatal_signals): New function.
27672         (uninstall_handlers, install_handlers): Ignore signals that were set to
27673         SIG_IGN.
27674         (at_fatal_signal): Call init_fatal_signals.
27675         (init_fatal_signal_set): Likewise. Ignore signals that were set to
27676         SIG_IGN.
27677         Reported by Paul Eggert.
27678
27679 2004-12-18  Bruno Haible  <bruno@clisp.org>
27680
27681         * doc/alloca.texi: New file.
27682         * doc/alloca-opt.texi: New file.
27683
27684 2004-12-17  Jim Meyering  <jim@meyering.net>
27685
27686         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
27687         Otherwise, install-sh could exit with improper exit status when
27688         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
27689
27690 2004-12-16  Simon Josefsson  <jas@extundo.com>
27691
27692         * tests/test-base64.c: Add license.
27693
27694 2004-12-15  Stepan Kasal  <address@hidden>
27695
27696         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
27697
27698 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
27699
27700         * modules/getcwd (Files): Add m4/d-ino.m4.
27701         Suggested by Mark D. Baushke.
27702
27703 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
27704
27705         * lib/getdate.y (textint): New member "negative".
27706         (time_zone_hhmm): New function.
27707         Expect 14 shift-reduce conflicts, not 13.
27708         (o_colon_minutes): New rule.
27709         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
27710         (yylex): Set the "negative" member of signed numbers.
27711
27712 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
27713
27714         * doc/getdate.texi (Time of day items, Time zone items):
27715         Describe new formats +00:00, UTC+00:00.
27716
27717 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27718
27719         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
27720         spurious "-l"s.  Problem reported by Stepan Kasal.
27721
27722 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
27723
27724         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
27725         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
27726
27727 2004-12-04  Simon Josefsson  <jas@extundo.com>
27728
27729         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
27730         Vandoorselaere <yoann@prelude-ids.org>.
27731
27732 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
27733
27734         Changes imported from coreutils.
27735         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
27736         exist.
27737         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
27738
27739 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
27740
27741         Changes imported from coreutils.
27742         * lib/hard-locale.c: Assume <locale.h> exists.
27743         Include "strdup.h".
27744         (GLIBC_VERSION): New macro.
27745         (hard_locale): Assume setlocale exists.
27746         Rewrite to avoid #ifdef.
27747         Use strdup rather than malloc + strcpy.
27748         * lib/human.c: Assume <locale.h> exists.
27749         (human_readable): Assume localeconv exists.
27750
27751 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
27752
27753         * modules/hard-locale (Depends-on): Add strdup.
27754
27755 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
27756
27757         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
27758         convert T2, not T.  (Imported from libc.)
27759
27760 2004-11-30  Simon Josefsson  <jas@extundo.com>
27761
27762         * modules/restrict (License): Change to LGPL.
27763
27764 2004-11-30  Simon Josefsson  <jas@extundo.com>
27765
27766         * m4/restrict.m4: Add copyright and copying conditions.
27767
27768 2004-11-30  Simon Josefsson  <jas@extundo.com>
27769
27770         * m4/base64.m4: New file.
27771
27772 2004-11-30  Simon Josefsson  <jas@extundo.com>
27773
27774         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
27775         base64.
27776
27777         * tests/test-base64.c: New file.
27778
27779         * modules/base64: New file.
27780
27781 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
27782
27783         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
27784         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
27785
27786         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
27787
27788 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
27789
27790         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
27791         (__getcwd.c): Don't restore errno; glibc doesn't.
27792         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
27793         first, falling back to our code only if its results look suspicious.
27794         Ensure that the resulting buffer is only as large as necessary.
27795
27796         * lib/readutmp.c: Include readutmp.h first.
27797         Include <errno.h>, since readutmp.h no longer does that.
27798         * lib/readutmp.h: Don't include <errno.h>,
27799         <sys/param.h>, <time.h>; not needed to establish interface.
27800         (errno): Remove decl.
27801         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
27802         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
27803         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
27804
27805 2004-11-28  Simon Josefsson  <jas@extundo.com>
27806
27807         * lib/base64.h, base64.c: New file.
27808
27809 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
27810
27811         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
27812
27813 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
27814
27815         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
27816         (Depends-on): Remove pathmax, same.  Add mempcpy.
27817         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
27818         (Makefile.am): Append getcwd.h to lib_SOURCES.
27819         (Include): Add getcwd.h.
27820         (Maintainer): Change from Jim Meyering to "all, glibc",
27821         since getdate now uses intended-for-glibc code.
27822         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
27823         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
27824
27825 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27826
27827         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
27828         HP's ANSI C compiler.
27829         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
27830         Declaring int functions causes warnings on some modern systems and
27831         shouldn't be needed to compile on ancient ones.
27832         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
27833         defined.
27834
27835         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
27836         with the following changes.
27837         (__set_errno): Parenthesize properly.
27838         Include <stdbool.h>.
27839         (MIN, MAX, MATCHING_INO): New macros.
27840         (__getcwd): Define with prototype, not K&R form.
27841         Use heuristics to allocate default buffer on stack if possible.
27842         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
27843         behavior, and to avoid the PATH_MAX limit when computing
27844         ../../../../...
27845         Use MATCHING_INO to compare inode number to file.
27846         Check for arithmetic overflow in size calculations.
27847         Fix bug in reallocation of dot array that caused getcwd to fail
27848         on directories nested deeper than 75.
27849         Be more careful about saving errno on error.
27850         Do not use realloc; use only free+malloc, as this is a bit
27851         more flexible and avoids a needless copy operation.
27852         Do not inspect st_dev and st_ino for symbolic links; POSIX
27853         doesn't specify the latter.
27854         Check for closedir errors.
27855         Avoid needless casts.
27856         Use "#ifdef weak_alias" around weak_alias, to be like other
27857         glibc code.
27858         The following changes to getcwd.c have effect only when used in
27859         gnulib; they have no effect inside glibc proper.
27860         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
27861         as alloca isn't used.
27862         (alloca, __alloca): Likewise.
27863         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
27864         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
27865         unconditionally, as gnulib assumes C89 or better.
27866         Do not include <sys/param.h>.
27867         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
27868         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
27869         better.
27870         (NULL) [!defined NULL]: Remove; we assume C89 or better.
27871         Include <dirent.h> in a way that is compatible with modern Autoconf.
27872         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
27873         New macros, if not already defined.
27874         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
27875         Use "_LIBC", not "defined _LIBC", for consistency.
27876         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
27877         a mempcpy module.
27878         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
27879         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
27880         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
27881         credit only to Jim Meyering and adjust the copyright dates.
27882         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
27883         <stdlib.h>, <unistd.h>, "pathmax.h".
27884         Instead, include "xgetcwd.h" (first) and "getcwd.h".
27885         (INITIAL_BUFFER_SIZE): Remove.
27886         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
27887
27888 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27889
27890         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
27891         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
27892         Use the _ONCE methods, for efficiency.
27893         Check for fcntl.h.  In test program, include <errno.h>
27894         and <fcntl.h> if available.  Remove old K&R cruft from
27895         test program.  Check for common errors in GNU/Linux,
27896         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
27897         don't do AC_LIBOBJ, as that's getcwd.m4's job.
27898         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
27899         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
27900         name accordingly.
27901         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
27902         accommodate new getcwd.c.
27903         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
27904         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
27905         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
27906         that's all we need now.
27907
27908 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27909
27910         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
27911         argp-parse.c depends on getopt internals, that means we should
27912         always use our getopt, to be on the safe side.
27913         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
27914         order not to spoil the result of an eventual previous invocation
27915         of gl_GETOPT_SUBSTITUTE.
27916
27917 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27918
27919         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
27920         redefinition warnings. To avoid them, include the defines
27921         in `#if !defined __need_getopt ... #endif'. The only place
27922         where __getopt_argv_const is used is in definitions
27923         of getopt_long and getopt_long_only below, which are as well
27924         protected by `#ifndef __need_getopt'.
27925         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
27926         __need_getopt after including <stdio.h> and <unistd.h> These
27927         headers might have defined it.
27928
27929 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
27930
27931         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
27932
27933 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
27934
27935         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
27936         (futimens): New function, which uses futimes if available.
27937         (futimens, utimens): Support timespec==NULL, with same semantics
27938         as utime and utimens.
27939         * lib/utimens.h (futimens): New decl.
27940
27941 2004-11-23  Jim Meyering  <jim@meyering.net>
27942
27943         * lib/getopt_.h: Remove trailing blanks.
27944
27945 2004-11-23  Jim Meyering  <jim@meyering.net>
27946
27947         * lib/__fpending.c: Add comment.
27948
27949 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
27950
27951         * modules/canonicalize (Depends-on): Add xreadlink.
27952         Problem reported by James Youngman.
27953
27954 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27955
27956         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
27957         New macros.
27958         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
27959         optopt): Use them instead of invoking ## directly; otherwise, the
27960         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
27961
27962 2004-11-19  Bruno Haible  <bruno@clisp.org>
27963
27964         * lib/strtok_r.c: Move comments from here...
27965         * lib/strtok_r.h: ... to here.
27966
27967 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27968
27969         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
27970         implementations that mishandle size_t overflow.
27971
27972 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27973
27974         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
27975         might fail.  Problem reported by Yoann Vandoorselaere.
27976         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
27977         implementations that mishandle size_t overflow.
27978
27979 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27980
27981         * modules/canon-host (Depends-on): Add strdup.
27982
27983 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27984
27985         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
27986
27987 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27988
27989         * lib/canon-host.c: Include "strdup.h".
27990         (canon_host): Use getaddrinfo if available, so that IPv6 works.
27991         Use strdup instead of malloc/strcpy to duplicate strings.
27992
27993         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
27994         (human_space_before_unit): New constant.
27995         * lib/human.c (human_readable): Support it.
27996
27997         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
27998         (xgetcwd): Set errno correctly when failing.
27999         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
28000         the failure is actually due to a PATH_MAX problem.
28001
28002         Further getopt changes to make it more likely that glibc will
28003         buy the changes back.
28004         * lib/getopt.c (POSIXLY_CORRECT): New constant.
28005         (getopt): Use it, so to preserve glibc semantic
28006         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
28007         when compiling for libc.
28008         * lib/getopt_.h (__getopt_argv_const): Bring it back.
28009         (getopt_long, getopt_long_only): Use it.
28010
28011         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28012         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
28013         (getopt): Argv is now char * const *, as per standard.
28014         (_getopt_internal_r, _getopt_internal): Argv is now char **,
28015         not char *__getopt_argv_const *.
28016         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28017         _getopt_long_only_r): Likewise.
28018         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
28019         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28020         _getopt_long_r, _getopt_long_only_r): Likewise.
28021         * lib/getopt_.h (__getopt_argv_const): Remove.
28022         (getopt): Argv is now char * const *, as per standard.
28023
28024         * lib/getdate.y (tORDINAL): New token.
28025         (day, relunit): Allow it for relative times.
28026         (relative_time_table): Use tORDINAL for ordinals.
28027
28028 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28029
28030         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
28031         Document that "second" isn't allowed as an ordinal number.
28032
28033 2004-11-16  Jim Meyering  <jim@meyering.net>
28034
28035         * modules/closeout (Depends-on): Add fpending.
28036
28037 2004-11-15  Jim Meyering  <jim@meyering.net>
28038
28039         * lib/closeout.c: Include "__fpending.h" once again.
28040         Include <stdbool.h>.
28041         (close_stdout): Don't fail just because stdout was closed initially,
28042         since some programs don't write to stdout in the normal course of
28043         operation (other than --version and --help), and we don't want this
28044         function to make e.g. `touch file >&-' fail.
28045         But do fail if it was closed and someone has tried to write to it.
28046         E.g., `printf foo >&-' must fail.
28047
28048 2004-11-13  Jim Meyering  <jim@meyering.net>
28049
28050         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
28051
28052 2004-11-12  Simon Josefsson  <jas@extundo.com>
28053
28054         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
28055         small doc fix is still pending.
28056
28057 2004-11-11  Simon Josefsson  <jas@extundo.com>
28058
28059         * modules/strtok_r: New file.
28060
28061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28062         strtok_r.
28063
28064 2004-11-11  Simon Josefsson  <jas@extundo.com>
28065
28066         * m4/strtok_r.m4: New file.
28067
28068         * m4/getopt.m4: Replace opterr.
28069
28070 2004-11-11  Simon Josefsson  <jas@extundo.com>
28071
28072         * lib/strtok_r.h, strtok_r.c: New file.
28073
28074 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28075
28076         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
28077         of replacing opterr, getopt, etc.  This should handle the
28078         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
28079
28080 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28081
28082         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
28083         we can stop lying to compilers about the constness of argv when we
28084         are compiled outside glibc.
28085         (getopt, getopt_long, getopt_long_only): Use it.
28086         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28087         _getopt_internal, getopt): Likewise.
28088         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28089         _getopt_long_only_r): Likewise.
28090         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28091         _getopt_long_r, _getopt_long_only_r): Likewise.
28092
28093         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
28094         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
28095         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
28096         the other external symbols.
28097         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
28098         declaration, since the above renaming now works around collisions.
28099
28100 2004-11-11  Jim Meyering  <jim@meyering.net>
28101
28102         * lib/linebreak.c: Remove trailing blanks.
28103         * lib/alloca_.h: Likewise.
28104         * lib/acosl.c: Likewise.
28105         * lib/euidaccess.c: Likewise.
28106         * lib/allocsa.h: Likewise.
28107
28108 2004-11-10  Simon Josefsson  <jas@extundo.com>
28109
28110         * m4/getaddrinfo.m4: New file.
28111
28112 2004-11-10  Simon Josefsson  <jas@extundo.com>
28113
28114         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
28115
28116 2004-11-10  Simon Josefsson  <jas@extundo.com>
28117
28118         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28119         getaddrinfo.
28120
28121         * modules/getaddrinfo: New file.
28122
28123 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28124
28125         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
28126
28127 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28128
28129         * lib/mktime.c (SHR): New macro, which is a portable
28130         substitute for >> that should work even on Crays.
28131         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
28132         Problem reported by Mark D. Baushke in
28133         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
28134         * lib/getdate.y (SHR): Likewise.
28135         (tm_diff): Use it.
28136         * lib/strftime.c (SHR): Likewise.
28137         (tm_diff): Use it.
28138         * lib/quotearg.c (struct quoting_options): Use unsigned int for
28139         quote_these_too, so that right shifts are well defined.  All uses
28140         changed.
28141
28142 2004-11-10  Jim Meyering  <jim@meyering.net>
28143
28144         Ensure that no close failure goes unreported.
28145         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
28146         return early when it seems there's nothing to flush.
28147         Don't include __fpending.h.
28148
28149 2004-11-10  Jim Meyering  <jim@meyering.net>
28150
28151         * modules/closeout (Depends-on): Remove fpending.
28152
28153 2004-11-10  Jim Meyering  <jim@meyering.net>
28154
28155         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
28156
28157 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28158
28159         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
28160         gl_FUNC_STRFTIME.
28161         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
28162         and AC_REQUIRE when possible, to avoid duplicate checks.
28163         Check for <wchar.h>.
28164
28165 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28166
28167         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
28168
28169 2004-11-09  Bruno Haible  <bruno@clisp.org>
28170
28171         * m4/sockpfaf.m4: New file.
28172
28173 2004-11-05  Bruno Haible  <bruno@clisp.org>
28174
28175         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
28176         Reported by Mark D. Baushke <mdb@cvshome.org>.
28177
28178 2004-11-04  Bruno Haible  <bruno@clisp.org>
28179
28180         2004-09-11  Bruno Haible  <bruno@clisp.org>
28181                 * allocsa.valgrind: New file.
28182         2004-02-06  Bruno Haible  <bruno@clisp.org>
28183                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
28184                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
28185                 Reported by Christopher Seip <chris.seip@hp.com>.
28186
28187 2004-11-04  Bruno Haible  <bruno@clisp.org>
28188
28189         * modules/allocsa (Files): Add lib/allocsa.valgrind.
28190         (Makefile.am): Distribute it.
28191
28192 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28193
28194         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
28195         with errno == ERANGE if the buffer is too small.
28196         Problem reported by Mark D. Baushke.
28197
28198 2004-11-03  Albert Chin  <china@thewrittenword.com>
28199             Paul Eggert  <eggert@cs.ucla.edu>
28200
28201         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
28202         equivalent, substitute $ac_type for equivalent type rather than
28203         blindly using uint32_t *always* which won't work if uint32_t is not
28204         available.  Define _UINT32_T to work around typedef of uint32_t if
28205         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
28206         2.5.1.
28207
28208 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28209
28210         * m4/jm-macros.m4: Sync from coreutils.
28211         (gl_MACROS): Check for mbrlen, for pathchk.
28212         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
28213
28214 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28215
28216         * lib/xreadlink.c (MAXSIZE): New macro.
28217         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
28218         size does not exceed MAXSIZE.  Avoid cast.
28219         As suggested by Mark D. Baushke in
28220         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
28221         if readlink fails with buffer size just under MAXSIZE, try again
28222         with MAXSIZE.
28223
28224 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28225
28226         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
28227
28228 2004-11-02  Derek R. Price  <derek@ximbiot.com>
28229         and  Paul Eggert  <eggert@cs.ucla.edu>
28230
28231         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
28232         (get_date): Overparenthesize to avoid GCC warning.
28233
28234 2004-11-02  Bruno Haible  <bruno@clisp.org>
28235
28236         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
28237         returns void.
28238
28239 2004-11-02  Bruno Haible  <bruno@clisp.org>
28240
28241         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
28242         function returns void.
28243
28244 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28245
28246         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
28247         fflush_unlocked, flockfile, funlockfile, funlockfile,
28248         fputs_unlocked, putc_unlocked.
28249
28250 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28251
28252         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28253         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
28254         already declared.
28255
28256 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28257
28258         * modules/getdate (Files): Add doc/getdate.texi.
28259         (Depends-on): Add setenv, xalloc.
28260
28261 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28262
28263         * lib/getdate.y: Add support for TZ="foo" within a date string.
28264         Fix some bugs near time_t boundaries.  Reject dates with
28265         out-of-range components, e.g., "Sept 31".
28266         Include <stdlib.h>, "setenv.h", "xalloc.h".
28267         (ISDIGIT_LOCALE): Remove; unused.
28268         Note that the TZ and time functions used here are not reentrant.
28269         (mktime_ok, get_tz): New functions.
28270         (TZBUFSIZE): New constant.
28271         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
28272         This requires that we sometimes generate our own TZ="XXX..." setting.
28273
28274 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28275
28276         * doc/getdate.texi: New file, from coreutils with modifications for
28277         the new TZ parsing.
28278
28279 2004-10-27  Derek R. Price  <derek@ximbiot.com>
28280
28281         * lib/mktime.c (not_equal_tm): Remove redundant check.
28282
28283 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28284
28285         * modules/regex (lib_SOURCES): Add regex.c.
28286         Reported by James Youngman in
28287         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
28288
28289 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28290
28291         * lib/getdate.y: Use Bison 1.875 features, and some minor
28292         code cleanups.  This change does not affect semantics.
28293         Don't include <stdlib.h>; no longer needed.
28294         Don't include unlocked-io.h; only the "#if TEST" code uses
28295         stdio, and performance isn't crucial there.
28296         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
28297         Bison 1.875 features as described below.
28298         All uses of "PC." replaced by "pc->".
28299         (YYSTYPE): Add a forward declaration.
28300         (yylex, yyerror): Use full prototypes in forward decls.
28301         Use "%pure-parser" rather than obsolescent "%pure_parser".
28302         Use %parse-param and %lex-param instead of obsolescent
28303         YYPARSE_PARAM and YYLEX_PARAM.
28304         (meridian_table, month_and_day_table, time_units_table,
28305         relative_time_table, time_zone_table, military_table,
28306         lookup_zone, lookup_word, get_date):
28307         Use NULL instead of 0 where appropriate.
28308         (to_hour): Avoid abort (), to avoid a dependency on
28309         stdlib.h.
28310         (yyerror, yylex): Now accepts parser_control * arg.
28311         (main) [TEST]: Use '\0' rather than 0 for char.
28312
28313 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28314
28315         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
28316
28317 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28318
28319         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
28320         It's now the caller's responsibility to handle the case where
28321         !HAVE_GETPAGESIZE && !defined getpagesize.
28322
28323         * lib/mktime.c (leapyear): Arg is long int, not int.
28324
28325 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28326
28327         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
28328
28329 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28330
28331         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
28332         missing.  Problem reported by James Youngman.
28333
28334 2004-10-16  Simon Josefsson  <jas@extundo.com>
28335
28336         * gnulib-tool: Fix comments.  Fix parse problem.
28337         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
28338
28339 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
28340
28341         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
28342         implementation of getopt_long.  Problem reported by Alexander Taler in:
28343         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
28344
28345 2004-10-15  Bruno Haible  <bruno@clisp.org>
28346
28347         * gnulib-tool: Untabify. Initialize supplied_libname.
28348         (func_usage): More homogenous output.
28349         (func_modules_transitive_closure, func_modules_to_filelist,
28350         func_emit_lib_Makefile_am): New functions.
28351         (func_import): New function, extracted from big case statement. Use
28352         func_get_license, func_modules_transitive_closure,
28353         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
28354         opt_lgpl. Don't use test -a, as it's not portable.
28355         (func_create_testdir): Use func_modules_transitive_closure,
28356         func_modules_to_filelist, func_emit_lib_Makefile_am.
28357
28358 2004-10-15  Bruno Haible  <bruno@clisp.org>
28359
28360         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
28361
28362 2004-10-15  Bruno Haible  <bruno@clisp.org>
28363
28364         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
28365         the portions belonging to each module.
28366         Suggested by Derek Robert Price <derek@ximbiot.com>.
28367
28368 2004-10-12  Simon Josefsson  <jas@extundo.com>
28369
28370         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28371         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
28372         to real functions.
28373
28374 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28375
28376         * modules/vsnprintf: New file.
28377
28378 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28379
28380         * m4/vsnprintf.m4: New file.
28381
28382 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28383
28384         * lib/vsnprintf.h: New file.
28385         * lib/vsnprintf.c: New file.
28386
28387 2004-10-11  Bruno Haible  <bruno@clisp.org>
28388
28389         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
28390         vsnprintf.
28391
28392 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28393
28394         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
28395
28396 2004-10-07  Bruno Haible  <bruno@clisp.org>
28397
28398         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
28399         fits into the provided buffer.
28400
28401 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28402
28403         * lib/diacrit.c, diacrit.h: Add GPL notice.
28404
28405         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
28406         notice.
28407         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
28408         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
28409         This avoids a potential constant-folding bug.
28410
28411 2004-10-05  Bruno Haible  <bruno@clisp.org>
28412
28413         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
28414         for the declaration of strsep.
28415
28416 2004-10-05  Bruno Haible  <bruno@clisp.org>
28417
28418         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
28419
28420 2004-10-04  Simon Josefsson  <jas@extundo.com>
28421
28422         * modules/memmem: New file.
28423         * tests/test-memmem.c: New file.
28424         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
28425
28426 2004-10-04  Simon Josefsson  <jas@extundo.com>
28427
28428         * m4/memmem.m4: New file.
28429
28430 2004-10-04  Simon Josefsson  <jas@extundo.com>
28431
28432         * lib/memmem.h: New file.
28433         * lib/memmem.c: New file, taken from glibc.
28434
28435 2004-10-04  Simon Josefsson  <jas@extundo.com>
28436
28437         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
28438         '#ifdef USE_UNLOCKED_IO'.
28439
28440 2004-10-04  Simon Josefsson  <jas@extundo.com>
28441
28442         * config/srclist.txt: Add memmem from glibc.
28443
28444 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28445
28446         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
28447
28448         * modules/argmatch, modules/argp, modules/closeout, modules/error,
28449         modules/exclude, modules/getdate, modules/getline,
28450         modules/getndelim2, modules/getpass, modules/getpass-gnu,
28451         modules/getusershell, modules/linebuffer, modules/md5,
28452         modules/mountlist, modules/posixtm, modules/readtokens,
28453         modules/readutmp, modules/regex, modules/sha1,
28454         modules/version-etc, modules/yesno:
28455         Remove dependency on unlocked-io.
28456
28457 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28458
28459         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
28460
28461         * m4/unlocked-io.m4: Add copyright notice.
28462         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
28463
28464 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28465
28466         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
28467         * lib/xmalloc.c (xmemdup): Likewise.
28468         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
28469         XFREE): Remove these long-obsolescent macros.
28470         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
28471         * lib/xstrdup.c: Remove.
28472
28473         * lib/regex.c (re_comp): Cast gettext return value to char *,
28474         Problem reported by Martin Neitzel via Mark D. Baushke.
28475
28476 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28477
28478         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
28479         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
28480         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
28481         regex.c, sha1.c, version-etc.c, yesno.c:
28482         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
28483         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
28484         the includer's responsibility.
28485
28486         Sync from coreutils.
28487
28488         * lib/modechange.c (mode_compile): Don't decrement a pointer that
28489         points to the start of a string, as the C Standard says the
28490         resulting behavior is undefined.
28491
28492         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
28493         simple -> simple_backups, numbered_existing ->
28494         numbered_existing_backups, numbered -> numbered_backups
28495         to avoid shadowing problems.  All uses changed.
28496         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
28497         * lib/backupfile.c (check_extension, numbered_backup):
28498         Rename locals to avoid shadowing 'basename'.
28499         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
28500         once.
28501
28502         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
28503         * lib/.cvsignore: Add getopt.h.
28504
28505 2004-10-04  Bruno Haible  <bruno@clisp.org>
28506
28507         * modules/README: New file.
28508         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
28509         not a module.
28510
28511 2004-10-02  Jim Meyering  <jim@meyering.net>
28512
28513         * lib/dirfd.h, getpagesize.h: Add copyright notice.
28514
28515 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28516
28517         * modules/strsep: New file.
28518
28519 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28520
28521         * m4/strsep.m4: New file.
28522
28523 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28524
28525         * lib/strsep.h: New file.
28526         * lib/strsep.c: New file.
28527
28528 2004-10-01  Simon Josefsson  <jas@extundo.com>
28529
28530         * lib/snprintf.c (snprintf): Handle size==0.
28531
28532 2004-10-01  Simon Josefsson  <jas@extundo.com>
28533             Bruno Haible  <bruno@clisp.org>
28534
28535         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
28536         (snprintf): Declare 'args'.
28537
28538 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
28539
28540         * lib/snprintf.c: Remove comments as to why each header is needed.
28541
28542 2004-10-01  Bruno Haible  <bruno@clisp.org>
28543
28544         * MODULES.html.sh: Add strsep.
28545
28546 2004-09-30  Simon Josefsson  <jas@extundo.com>
28547
28548         * modules/snprintf: New file.
28549
28550 2004-09-30  Simon Josefsson  <jas@extundo.com>
28551
28552         * m4/snprintf.m4: New file.
28553
28554 2004-09-30  Simon Josefsson  <jas@extundo.com>
28555
28556         * lib/snprintf.h, lib/snprintf.c: New files.
28557
28558 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28559
28560         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
28561         (hol_entry_help): Never translate an empty string.
28562         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
28563         * lib/argp.h (OPTION_NO_TRANS): New option.
28564
28565 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
28566
28567         * modules/argp (Maintainer): Replace Simon Josefsson
28568         by Sergey Poznyakoff.
28569
28570 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
28571
28572         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
28573         changes merged back into glibc.
28574
28575 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
28576
28577         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
28578
28579 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
28580
28581         * lib/xvasprintf.c: Include xalloc.h.
28582         (xvasprintf): Use xalloc_die, not xmalloc_die.
28583
28584 2004-09-29  Bruno Haible  <bruno@clisp.org>
28585
28586         * modules/alloca-opt: New file, derived from modules/alloca.
28587         * modules/allocsa: Depend on alloca-opt instead of alloca.
28588         * modules/setenv: Likewise.
28589         * modules/vasnprintf: Likewise.
28590         * MODULES.html.sh: Add alloca-opt.
28591
28592 2004-09-28  Simon Josefsson  <jas@extundo.com>
28593
28594         * gnulib-tool: New parameter --lgpl, to asseert that modules are
28595         LGPL, and to replace license template from GPL to LGPL.
28596
28597 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
28598
28599         * modules/dummy: Change license to LGPL.
28600
28601 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
28602
28603         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
28604
28605 2004-09-24  Simon Josefsson  <jas@extundo.com>
28606
28607         * modules/minmax (License): Change from GPL to LGPL.
28608
28609 2004-09-23  Simon Josefsson  <jas@extundo.com>
28610
28611         * gnulib-tool (--import): Typo.
28612
28613 2004-09-23  Simon Josefsson  <jas@extundo.com>
28614
28615         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
28616
28617 2004-09-22  Bruno Haible  <bruno@clisp.org>
28618
28619         * modules/*: Add 'License' field.
28620         * gnulib-tool: Accept --extract-license option.
28621         (func_get_license): New function.
28622
28623 2004-09-21  Bruno Haible  <bruno@clisp.org>
28624
28625         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
28626         Reported by Simon Josefsson.
28627
28628 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28629
28630         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
28631         gl_AC_TYPE_LONG_LONG.
28632
28633 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28634
28635         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
28636
28637 2004-09-18  Simon Josefsson  <jas@extundo.com>
28638         and  Paul Eggert  <eggert@cs.ucla.edu>
28639
28640         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
28641         calls with autoreconf.  Define GL_LIB.
28642
28643 2004-09-14  Karl Berry  <karl@gnu.org>
28644
28645         * config/srclist.txt: unsync setenv.c, sigh.
28646
28647 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28648
28649         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
28650         Problem reported by Bruno Haible in:
28651         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
28652
28653 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28654
28655         * config/srclist.txt: Comment out argp-pvh.c.
28656
28657 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
28658
28659         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
28660         in case some system header has #define'd it.  Problem reported by
28661         Soeren D. Schulze in
28662         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
28663
28664 2004-09-09  Karl Berry  <karl@gnu.org>
28665
28666         * regex.[ch]: delete from the root.  These were supposed to be
28667                 synced with emacs cvs, but this has not happened for about
28668                 a year, and anyway nothing else uses emacs regex.[ch].
28669                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
28670                 lib/regex[.ch] is untouched.
28671
28672 2004-09-09  Bruno Haible  <bruno@clisp.org>
28673
28674         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
28675
28676 2004-09-09  Bruno Haible  <bruno@clisp.org>
28677
28678         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
28679         modifications.
28680         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
28681
28682 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
28683
28684         * modules/xvasprintf: New file.
28685         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
28686
28687 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
28688
28689         * lib/xvasprintf.h: New file.
28690         * lib/xvasprintf.c: New file.
28691         * lib/xasprintf.c: New file.
28692
28693 2004-09-08  Bruno Haible  <bruno@clisp.org>
28694
28695         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
28696
28697 2004-09-08  Bruno Haible  <bruno@clisp.org>
28698
28699         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
28700         length is > INT_MAX.
28701         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
28702         more.
28703
28704 2004-09-08  Bruno Haible  <bruno@clisp.org>
28705
28706         * lib/stdint_.h: New file, taken from GNU clisp.
28707
28708 2004-09-08  Bruno Haible  <bruno@clisp.org>
28709             Oskar Liljeblad  <oskar@osk.mine.nu>
28710
28711         * modules/stdint: New file.
28712         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
28713
28714 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28715
28716         Import from coreutils.
28717         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
28718         strings on unbounded length.  alloca's performance benefits aren't
28719         that important here.
28720         (V_STRDUP): Remove.
28721         (parse_with_separator): New function, with most of the internals
28722         of the old parse_user_spec.  Allow user to omit both user and group,
28723         for compatibility with FreeBSD.
28724         Clone only the user name, not the entire spec.
28725         Do not set *uid, *gid unless entirely successful.
28726         Avoid memory leak in some failing cases.
28727         Fix regression for USER.GROUP reported by Dmitry V. Levin in
28728         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
28729         (parse_user_spec): Rewrite to use parse_with_separator.
28730
28731 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28732
28733         * modules/userspec: Don't depend on alloca.
28734
28735 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28736
28737         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
28738
28739 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28740
28741         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
28742         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
28743         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
28744
28745 2004-08-16  Simon Josefsson  <jas@extundo.com>
28746
28747         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
28748         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
28749         Add --dry-run for --import.
28750         Let user provided command line parameters override configure.ac
28751         settings.
28752
28753 2004-08-12  Simon Josefsson  <jas@extundo.com>
28754
28755         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
28756         as discussed with Paul Eggert in threads rooted at
28757         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
28758         and
28759         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
28760         Before, the test was empty, and relied on ELIDE_CODE in source
28761         code.)
28762         (gl_PREREQ_GETOPT): New macro.
28763         (gl_GETOPT): Use them.
28764
28765 2004-08-12  Simon Josefsson  <jas@extundo.com>
28766
28767         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
28768         * lib/getopt_.h: Renamed from getopt.h.
28769
28770 2004-08-12  Simon Josefsson  <jas@extundo.com>
28771
28772         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
28773         Change default library name from libfoo to libgnu.
28774         Now, if you have a configure.ac that says:
28775                 gl_SOURCE_BASE(gl)
28776                 gl_M4_BASE(gl/m4)
28777                 gl_MODULES(error getopt etcetera)
28778                 gl_INIT
28779         you can import all you need by running:
28780                 ../gnulib/gnulib-tool --import
28781
28782         * modules/getopt (Files): Rename getopt.h to getopt_.h.
28783         (Makefile.am): Rewrite, use logic from argz.
28784         (Include): Use <getopt.h> instead of "getopt.h".
28785
28786 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
28787
28788         * modules/argp (Files): Add m4/unlocked-io.m4.
28789         (Depends-on): Add extensions.
28790
28791 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
28792
28793         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
28794         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
28795         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
28796         Check for program_invocation_name, program_invocation_short_name,
28797         flockfile, funlockfile, features.h, _getopt_long_only_r.
28798
28799 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
28800
28801         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
28802         its complicated substitute.
28803         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
28804         and program_invocation_name.
28805         (__argp_basename) [!_LIBC]: Remove; the only use was
28806         replaced by its body.
28807         (__argp_short_program_name): Change condition from
28808         !defined __argp_short_program_name to
28809         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
28810         to match argp-namefrob.h.
28811         (__argp_failure): Don't assume strerror_r returns char *.
28812         * lib/argp-parse.c (N_): Define unconditionally.
28813         (argp_default_options): Fill out initializers with 0 to avoid
28814         gcc warnings.
28815
28816 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
28817
28818         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
28819         getopt1.c.
28820
28821 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
28822
28823         Merge from coreutils.
28824
28825         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
28826
28827         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
28828         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
28829
28830 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
28831
28832         Merge from coreutils.
28833
28834         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
28835         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
28836         for Reliant Unix 5.43.
28837
28838         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
28839         (union fooround): Use uintmax_t, not long int.
28840         The rest is a merge from libc:
28841         [defined _LIBC]: Include <shlib-compat.h>.
28842         (_obstack) [defined _LIBC]: Remove after 2.3.4.
28843
28844         * lib/settime.c (settime): Recode to avoid warning with
28845         Sun Forte C 6U2.
28846
28847         * lib/strverscmp.c: Convert to UTF-8.
28848
28849 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
28850
28851         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28852         m4/uintmax_t.m4.
28853
28854 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
28855
28856         * modules/xalloc-die: New file.
28857         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
28858
28859         * modules/md5 (Files): Add m4/uint32_t.m4.
28860         * modules/sha1: Renamed from modules/sha.
28861         (Files):
28862         Rename lib/sha.h to lib/sha1.h.
28863         Rename lib/sha.c to lib/sha1.c.
28864         Rename m4/sha.m4 to m4/sha1.m4.
28865         (lib_SOURCES): Likewise.
28866         (configure.ac): Rename gl_SHA to gl_SHA1.
28867         (Include): sha.h -> sha1.h.
28868
28869 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
28870
28871         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
28872         * m4/sha1.m4: Renamed from sha.m4.
28873         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
28874
28875 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
28876
28877         * lib/obstack.h (obstack_empty_p):
28878         Don't assume that chunk->contents is suitably aligned.
28879         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
28880         Likewise. Problem reported by Benno in
28881         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
28882
28883         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
28884         readable.  This could be improved further but it'd take some work.
28885
28886 2004-08-08  Simon Josefsson  <jas@extundo.com>
28887
28888         * modules/xgethostname (Depends-on): Remove exit and error (not
28889         used).
28890
28891         * modules/getpass-gnu: Add getpass.h.
28892         (Depends-on): Add stdbool.
28893         * modules/getpass: Add getpass.h.
28894
28895 2004-08-08  Simon Josefsson  <jas@extundo.com>
28896
28897         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
28898         Check getpass declaration.
28899
28900 2004-08-08  Simon Josefsson  <jas@extundo.com>
28901
28902         * lib/xgethostname.c: Don't include error.h (not used).
28903
28904         * lib/getpass.h: Add.
28905         * lib/getpass.c: Include getpass.h first.
28906
28907 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
28908
28909         * lib/xalloc-die.c: New file.
28910         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
28911         All uses removed.
28912         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
28913         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
28914         xalloc-die.c.
28915         (_, N_, xalloc_die): Move to xalloc-die.c.
28916         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
28917         so that we needn't mess with xalloc_msg_memory_exhausted.
28918
28919         * lib/sha1.h: Renamed from sha.h.
28920         (SHA1_H): Renamed from _SHA_H.
28921         (sha1_ctx): Renamed from sha_ctx.
28922         (sha1_init_ctx): Renamed from sha_init_ctx.
28923         (sha1_process_block): Renamed from sha_process_block.
28924         (sha1_process_bytes): Renamed from sha_process_bytes.
28925         (sha1_finish_ctx): Renamed from sha_finish_ctx.
28926         (sha1_read_ctx): Renamed from sha_read_ctx.
28927         (sha1_stream): Renamed from sha_stream.
28928         (sha1_buffer): Renamed from sha_buffer.
28929         * lib/sha1.c: Likewise; renamed from sha.c.
28930         Do not include <sys/types.h>.
28931         Include <stddef.h> rather than <stdlib.h>.
28932
28933 2004-08-08  Bruno Haible  <bruno@clisp.org>
28934
28935         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
28936         FILESYSTEM_PREFIX_LEN.
28937         * lib/progreloc.c: Likewise.
28938         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
28939
28940 2004-08-06  Simon Josefsson  <jas@extundo.com>
28941
28942         * modules/progname (Depends-on): Don't depend on stdbool.
28943
28944 2004-08-06  Simon Josefsson  <jas@extundo.com>
28945
28946         * modules/getsubopt: New file.
28947         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28948         getsubopt.
28949
28950 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
28951
28952         More merge from coreutils.
28953
28954         * m4/utimens.m4, m4/utimecmp.m4: New files.
28955         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
28956         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
28957         prereq.m4, sha.m4: Import changes from coreutils.
28958
28959 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
28960
28961         More merge from coreutils.
28962         * modules/raise, modules/readtokens0, modules/utimens:
28963         * modules/utimecmp, module/xnanosleep: New files.
28964         * modules/strftime: Add lib/strftime.h.
28965         Change include from <time.h> to "strftime.h".
28966         * modules/yesno: Add lib/yesno.h.
28967         * modules/backupfile: Remove lib/addext.c.
28968         * modules/euidaccess: Add stat-macros.h.
28969         * modules/canonicalize, modules/euidaccess,
28970         modules/filemode, modules/lchown, modules/makepath,
28971         modules/rmdir, modules/stat: Likewise.
28972
28973 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
28974
28975         Merge from tar.
28976         * lib/argp-help.c (make_hol, hol_append): Don't assume that
28977         SIZE_MAX is a valid preprocessor constant.
28978         (__argp_basename): Change from "#ifndef _LIBC"
28979         to "#ifndef __argp_short_program_name", so that
28980         we don't compile these functions for tar.
28981
28982         More merges from coreutils.
28983         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
28984         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
28985         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
28986         * lib/addext.c: Remove; no longer needed.
28987         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
28988         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
28989         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
28990         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
28991         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
28992         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
28993         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
28994         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
28995         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
28996         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
28997         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
28998         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
28999         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
29000         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
29001         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
29002         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
29003         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
29004         Import changes from coreutils.
29005
29006 2004-08-05  Simon Josefsson  <jas@extundo.com>
29007
29008         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
29009
29010 2004-08-05  Simon Josefsson  <jas@extundo.com>
29011
29012         * m4/getsubopt.m4: New file.
29013
29014 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29015
29016         Merge from coreutils.
29017
29018         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
29019         * m4/getcwd-path-max.m4: New files.
29020
29021         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
29022         FILESYSTEM_PREFIX_LEN ->
29023         FILE_SYSTEM_PREFIX_LEN.
29024         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
29025         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
29026         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
29027         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
29028
29029         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
29030         prerequisite modules now handle the DOS stuff.
29031         Don't check for unistd.h.
29032
29033 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29034
29035         Merge from coreutils.
29036
29037         * lib/.gdb-history: Remove; this doesn't belong here.
29038
29039         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
29040         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
29041         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
29042         * lib/getcwd.c: New files.
29043
29044         * lib/dirname.h: Include <stdbool.h>.
29045         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
29046         for consistency with POSIX terminology.  All uses changed.
29047         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
29048         (strip_trailing_slashes): Use bool for booleans.
29049         * lib/stripslash.c (strip_trailing_slashes): Likewise.
29050
29051         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
29052         sometimes returns a positive errno value even when it succeeds.
29053         (print_errno_message) [!LIBC]: Fall back on strerror if
29054         __strerror_r fails.
29055
29056         * lib/path-concat.c (mempcpy): Don't define if a system header defines
29057         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
29058         (longest_relative_suffix): New function.
29059         (path_concat): Use it.  Assume first argument is not NULL.
29060         Port to DOS.  Omit redundant separators.
29061         Report an error instead of returning NULL.
29062         Use mempcpy instead of memcpy.
29063         (xpath_concat): Remove: not declared or used.
29064
29065         * lib/same.h: Include <stdbool.h>
29066         (same_name): Return bool, not int.
29067         * lib/same.c (same_name): Likewise.
29068         (errno): Don't declare; we assume C89 or better now.
29069
29070         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
29071         if not already defined.
29072
29073         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
29074         * lib/dup-safer.c (errno): Likewise.
29075
29076 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29077
29078         Merge from coreutils.
29079         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
29080         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
29081         * modules/path-concat: Don't depend on strdup.
29082
29083 2004-08-03  Simon Josefsson  <jas@extundo.com>
29084
29085         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
29086         * lib/progname.h: Don't include stdbool.h.
29087
29088 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29089
29090         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
29091         * MODULES.html.sh (func_all_modules): Remove fatal.
29092
29093 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29094
29095         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
29096
29097 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29098
29099         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
29100         working.
29101
29102 2004-08-02  Simon Josefsson  <jas@extundo.com>
29103
29104         * lib/getsubopt.h: New file, with comments from Bruno Haible.
29105         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
29106         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
29107
29108 2004-08-01  Simon Josefsson  <jas@extundo.com>
29109
29110         * lib/xgetdomainname.c: Include stdlib.h, for free().
29111
29112 2004-07-19  Bruno Haible  <bruno@clisp.org>
29113
29114         * MODULES.html.sh (func_all_modules): Add dummy.
29115
29116 2004-07-16  Simon Josefsson  <jas@extundo.com>
29117
29118         * modules/dummy: New file.
29119
29120 2004-07-16  Simon Josefsson  <jas@extundo.com>
29121
29122         * lib/dummy.c: New file.
29123
29124 2004-07-16  Bruno Haible  <bruno@clisp.org>
29125
29126         * lib/backupfile.h: Add extern "C" for C++.
29127         * lib/closeout.h: Likewise.
29128         * lib/copy-file.h: Likewise.
29129         * lib/findprog.h: Likewise.
29130         * lib/full-write.h: Likewise.
29131         * lib/pathname.h: Likewise.
29132         * lib/progname.h: Likewise.
29133         * lib/stpcpy.h: Likewise.
29134         * lib/stpncpy.h: Likewise.
29135         * lib/strcase.h: Likewise.
29136         * lib/strstr.h: Likewise.
29137         * lib/xalloc.h: Likewise.
29138
29139         * lib/mbswidth.h: Add extern "C" for C++.
29140         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
29141
29142 2004-07-13  Robert Millan  <robertmh@gnu.org>
29143
29144         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
29145
29146 2004-07-09  Simon Josefsson  <jas@extundo.com>
29147
29148         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
29149         failed without this.)
29150
29151 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29152
29153         * modules/chown (Files): Add lib/fchown-stub.c, since
29154         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
29155
29156 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29157
29158         * lib/fchown-stub.c: New file.
29159
29160 2004-06-24  Jim Meyering  <jim@meyering.net>
29161
29162         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
29163
29164 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29165
29166         * modules/argz: Omit "#include".
29167
29168         * MODULES.html.sh (func_all_modules): Add calloc, to match
29169         2004-06-01 addition of calloc module.
29170
29171 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29172
29173         * m4/argz.m4: New file, which is autoupdated from libtool.
29174
29175 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29176
29177         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
29178         libtool.
29179
29180 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29181
29182         * config/srclist-update: Don't insist on "USA." before the
29183         close-comment, as libtool omits the period and puts the */ on a
29184         separate line.
29185         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
29186         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
29187
29188 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
29189
29190         * modules/argz: New file.
29191         * MODULES.html.sh (func_all_modules): Add argz.
29192
29193 2004-06-12  Jim Meyering  <jim@meyering.net>
29194         and  Paul Eggert  <eggert@cs.ucla.edu>
29195
29196         * modules/hash (Files): Add lib/xalloc.h.
29197         * modules/pipe (Depends-on): Add wait-process.
29198         * modules/stat (Depends-on): Add xalloc.
29199         * modules/userspec (Files): Add lib/userspec.h.
29200         * modules/xstrto
29201
29202         Upgrade from gettext-0.13.
29203         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
29204         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
29205         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
29206
29207 2004-06-10  Jim Meyering  <jim@meyering.net>
29208
29209         * lib/calloc.c: New file.
29210
29211 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29212
29213         * lib/getdate.y (yylex): Allow space between sign and number.
29214         Problem reported by Dan Jacobson.
29215
29216 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29217
29218         Merge from coreutils CVS.
29219
29220         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
29221         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
29222         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
29223         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
29224         xstrtol.m4: Fix copyright date and/or serial number.
29225
29226         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
29227         See if we need an fchown replacement.
29228         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
29229         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
29230         and use the replacement function if we detect either defect.
29231
29232         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
29233         gl_UTIMECMP.
29234
29235 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29236         and  Jim Meyering  <jim@meyering.net>
29237
29238         Merge from coreutils CVS.
29239
29240         * lib/stat-macros.h: New file, with contents from file-type.h
29241         and coreutils' system.h.
29242         * lib/file-type.c: Include "stat-macros.h".
29243         * lib/file-type.h (file_type): Move all macro definitions to new file,
29244         stat-macros.h.
29245
29246         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
29247         Wrap old code with this conditional.
29248         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
29249         function that does not dereference symlinks.
29250         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
29251
29252         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
29253         dependency problems.
29254         (xreadlink): Accept new arg SIZE, for efficiency.
29255         All decls and uses changed.
29256         * lib/xreadlink.h: Include <stddef.h>, for size_t.
29257
29258         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
29259         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
29260
29261         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
29262         sysexits.h.
29263
29264 2004-06-01  Jim Meyering  <jim@meyering.net>
29265
29266         * m4/calloc.m4: New file.
29267
29268 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29269
29270         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
29271         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
29272         Also, fix a typo in a diagnostic.
29273
29274 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29275
29276         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
29277         or AC_FUNC_REALLOC.
29278
29279 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29280
29281         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
29282         macros to be defined.
29283         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
29284         the allocator returns NULL because the requested size is zero.
29285
29286 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29287
29288         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
29289         var.  Add comment explaining why libc still defines it.  This
29290         merges the following patch from glibc:
29291         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
29292
29293 2004-05-20  Andreas Schwab  <schwab@suse.de>
29294
29295         * m4/free.m4: Replace free if it not known to work, not the other
29296         way round.
29297
29298 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
29299
29300         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
29301         present in glibc since revision 1.1 of this file.
29302         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
29303         obstack_alignment_mask, obstack_alloc, obstack_base,
29304         obstack_blank, obstack_blank_fast, obstack_chunk_size,
29305         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
29306         obstack_grow0, obstack_init, obstack_int_grow,
29307         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
29308         obstack_next_free, obstack_object_size, obstack_ptr_grow,
29309         obstack_ptr_grow_fast, obstack_room): Remove declarations of
29310         nonexistent functions.
29311
29312 2004-05-18  Karl Berry  <karl@gnu.org>
29313
29314         * config/srclist.txt: break link for vasnprintf.c.
29315
29316 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
29317
29318         Port obstack to the AS/400, where pointers are 16 bytes wide and
29319         you cannot cast an integer to a valid pointer.  This patch is
29320         currently waiting to be integrated into glibc; see
29321         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
29322
29323         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
29324         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
29325         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
29326         (struct obstack): temp member is now a union of a pointer and
29327         an integer, instead of an integer.  All integer uses changed.
29328         This does not affect the physical layout of struct obstack,
29329         except on hosts (like the AS/400) where the size or alignment of
29330         void * is greater than that of ptrdiff_t.
29331         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
29332         __STDC__)]: Store temporary in pointer member of union, not
29333         integer member.
29334         * lib/obstack.c: Include <stddef.h>, for offsetof.
29335         (struct fooalign): Remove; it doesn't need a name.
29336         (union fooround): Change double to long double, and add void *.
29337         (DEFAULT_ALIGNMENT): Use offsetof to compute.
29338         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
29339         not a macro.  Hence the values are always int; so remove all
29340         casts-to-int in uses.
29341
29342 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
29343
29344         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
29345         we can get this patch merged into glibc.
29346
29347 2004-05-17  Derek R. Price  <derek@ximbiot.com>
29348             Paul Eggert  <eggert@cs.ucla.edu>
29349
29350         * m4/argp: Depend on alloca.
29351
29352 2004-05-17  Derek R. Price  <derek@ximbiot.com>
29353             Paul Eggert  <eggert@cs.ucla.edu>
29354
29355         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
29356         freecoding.
29357
29358 2004-05-17  Bruno Haible  <bruno@clisp.org>
29359
29360         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
29361         precision that consists of a '.' followed by an empty digit string.
29362         Patch by Tor Lillqvist <tml@iki.fi>.
29363
29364 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29365
29366         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
29367         for backward compatibility with older code.  We need our own
29368         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
29369         it under some other name, and our alloca.h will define it.
29370
29371 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29372             Derek Price  <derek@ximbiot.com>
29373
29374         * lib/alloca.c: Include <alloca.h>, to get our interface.
29375         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
29376         include <alloca.h> first.  Use C89 prototype for alloca; this
29377         requires including <stddef.h> for size_t.  Use extern "C" if C++.
29378         Use #elif for simplicity, since we can assume C89 now.
29379         Don't try to source the system alloca.h since it will not be found
29380         and to prevent recursively including its replacement.
29381         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
29382         * lib/regex.c: Likewise.
29383
29384 2004-05-16  Derek Price  <derek@ximbiot.com>
29385             Paul Eggert  <eggert@cs.ucla.edu>
29386
29387         getline cleanup.  This changes the getndelim2 API: both order of
29388         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
29389         no delimiter).
29390
29391         * lib/getline.c: Don't include stddef.h or stdio.h, since our
29392         interface does that.
29393         (getline): Always use getdelim, so that we don't have two
29394         copies of this code.
29395         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
29396         if available.
29397         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
29398         (GETNDELIM2_MAXIMUM): New macro.
29399         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
29400         instead of the old practice of delim2==0.  All callers changed.
29401         Return -1 on overflow, instead of returning junk.
29402         Do not set *linesize unless allocation succeeds.
29403         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
29404         that we include sys/types.h.
29405         * lib/getnline.h: Likewise.
29406         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
29407         (getndelim2): Reorder arguments.
29408         * lib/getnline.c (getnline, getndelim):
29409         Don't discard the NMAX argument.
29410         (getnline): Invoke getndelim, to avoid code duplication.
29411         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
29412         of (size_t) -1 by callers of the getnline family.
29413
29414 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
29415
29416         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
29417         Check for gettimeofday.
29418         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
29419         Check for settimeofday, stime.
29420
29421 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
29422
29423         * lib/nanosleep.c (suspended): Change its type from int to
29424         sig_atomic_t volatile.
29425         (first_call): Make it private to rpl_nanosleep, and have it
29426         be zero initially as that's a bit faster.
29427         (my_usleep): Round up fractional times instead of truncating them,
29428         as this is the usual meaning for 'sleep'.
29429
29430         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
29431         doesn't work.
29432         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
29433         (ENOSYS): Define if not defined.
29434         (settime): Fall back on stime if it exists and settimeofday fails.
29435         But don't bother with fallbacks if a method fails with errno == EPERM.
29436
29437 2004-05-11  Jim Meyering  <jim@meyering.net>
29438
29439         Prior to this change, the save_cwd caller required read access to the
29440         current directory on most systems (ones with the fchdir function).
29441
29442         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
29443         fails, try write-only, and finally, resort to using xgetcwd.
29444
29445 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
29446
29447         * lib/obstack.c, obstack.h: Import changes from libc.
29448
29449 2004-04-28  Bruno Haible  <bruno@clisp.org>
29450
29451         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
29452         also implicitly appends .exe to executables.
29453         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
29454         accepts Windows pathnames.
29455         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
29456         Treat Cygwin like Windows, since it now accepts Windows pathnames.
29457         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
29458         Treat Cygwin like Windows, since it now accepts Windows pathnames.
29459         Reported by Derek Robert Price <derek@ximbiot.com>.
29460
29461 2004-04-21  Karl Berry  <karl@gnu.org>
29462
29463         * config/srclist.txt (localcharset.c): break sync.
29464
29465 2004-04-20  Paul Eggert  <eggert@twinsun.com>
29466
29467         * m4/host-os.m4: Add a copyright notice.
29468
29469 2004-04-20  Jim Meyering  <jim@meyering.net>
29470
29471         Change UTILS_ to gl_ in AC_DEFINE'd names.
29472         Change utils_- and jm_-prefixed variables, too.
29473         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
29474         UTILS_FUNC_MKDIR_TRAILING_SLASH.
29475         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
29476
29477         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
29478         Don't emit trailing blanks.
29479         Also rename jm_-prefixed variables to have gl_ prefix.
29480
29481         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
29482         Also rename jm_-prefixed variables to have gl_ prefix.
29483
29484         * m4/jm-macros.m4: Reflect the renamings.
29485         * m4/prereq.m4: Likewise.
29486
29487 2004-04-20  Jim Meyering  <jim@meyering.net>
29488
29489         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
29490         memory.
29491
29492 2004-04-20  Jim Meyering  <jim@meyering.net>
29493             Bruno Haible  <bruno@clisp.org>
29494
29495         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
29496         memory when realloc fails.
29497
29498 2004-04-19  Jim Meyering  <jim@meyering.net>
29499
29500         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
29501         now that readutmp.c may call `free (0)'.
29502
29503 2004-04-19  Bruno Haible  <bruno@clisp.org>
29504
29505         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
29506         * m4/inttypes_h.m4: Likewise.
29507         * m4/stdint_h.m4: Likewise.
29508         * m4/intmax_t.m4: Likewise.
29509         * m4/uintmax_t.m4: Likewise.
29510
29511 2004-04-18  Jim Meyering  <jim@meyering.net>
29512
29513         * m4/prereq.m4: Don't forbid jm_ prefix.
29514
29515         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
29516         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
29517         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
29518         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
29519         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
29520         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
29521         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
29522         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
29523         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
29524         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
29525         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
29526         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
29527         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
29528         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
29529         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
29530         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
29531         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
29532         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
29533         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
29534
29535 2004-04-18  Jim Meyering  <jim@meyering.net>
29536
29537         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
29538         failure, don't leak memory and do call END_UTMP_ENT.
29539
29540 2004-04-16  Jim Meyering  <jim@meyering.net>
29541
29542         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
29543         coreutils' stat program.
29544         (gl_PREREQ): Don't require jm_PREREQ_STAT.
29545
29546 2004-04-11  Paul Eggert  <eggert@twinsun.com>
29547
29548         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
29549         C89.
29550         (CHAR_BIT): Remove, since we assume C89.
29551         Include <stdint.h> if available, as per current Autoconf CVS advice.
29552
29553 2004-03-31  Jim Meyering  <jim@meyering.net>
29554
29555         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
29556         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
29557         * m4/xalloc.m4: Likewise.
29558
29559 2004-03-30  Paul Eggert  <eggert@twinsun.com>
29560
29561         Merge from coreutils.
29562
29563         * m4/inttostr.m4: New file.
29564         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
29565         Require AM_STDBOOL_H and gl_TIMESPEC instead.
29566         Require gl_CLOCK_TIME.
29567         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
29568
29569 2004-03-30  Paul Eggert  <eggert@twinsun.com>
29570
29571         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
29572         not bool, to be more consistent with Unix conventions.
29573         Suggested by Bruno Haible.
29574
29575         Merge from coreutils.
29576
29577         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
29578         * lib/umaxtostr.c: New files.
29579
29580         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
29581         the usual <time.h> dance.
29582         (get_date): Change signature to support fractional time stamps.
29583         All callers changed.
29584         * lib/getdate.y: Include "getdate.h" first, as we can now
29585         assume C89 and don't need to worry about 'const'.
29586         Similarly, include "unlocked-io.h" near start, not in middle.
29587         Include <limits.h>.
29588         (textint.value): Use long int rather than int.
29589         (textint.digits): Use size_t rather than int.
29590         (BILLION, LOG10_BILLION): New constants.
29591         (parser_control): New member rel_ns.  Members day_ordinal,
29592         time_zone, month, day, hour, minutes, rel_year, rel_month,
29593         rel_day, rel_hour, rel_minutes, rel_seconds
29594         are now long int, not int.  Member seconds is now struct timespec,
29595         not int.  New member timespec_seen.  Members dates_seen, days_seen,
29596         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
29597         not int.
29598         (%union.intval): Now long int, not int.
29599         New member timespec.
29600         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
29601         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
29602         (spec): Now is a timespec or an item list.
29603         (timespec, items): New nonterminals.
29604         (time, rel, relunit, number, get_date):
29605         Add support for fractional seconds.
29606         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
29607         (gmtime, localtime, mktime): Remove decls; not needed with C89.
29608         (to_hour): First arg is now long int, not int.
29609         (to_year): Returns long int, not int.
29610         Don't treat year -70 like 70.
29611         (tm_diff): Returns long int, not int.
29612         (lookup_word): Use bool instead of int when appropriate.
29613         (yylex): Use size_t for count, not int.
29614         Detect overflow when parsing large integer constants.
29615         Add support for fractions.
29616         (get_date): Make pointers 'const' if possible.
29617         Use more-portable code to detect integer overflow.
29618         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
29619         Don't use ctime; it's not reliable if the year has >4 digits.
29620
29621         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
29622         This is for compatibility with BSD.
29623
29624         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
29625         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
29626         From coreutils' system.h.
29627
29628         * lib/userspec.c: Don't include "posixver.h".
29629         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
29630         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
29631         compatible extension.  Simplify code by removing a boolean int
29632         that was always nonzero if a string was nonnull.
29633
29634 2004-03-30  Jim Meyering  <jim@meyering.net>
29635
29636         Merge from coreutils.
29637
29638         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
29639         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
29640         on some systems one must include <grp.h> before it.
29641         Reported by Christian Krackowizer.
29642
29643 2004-03-30  Jim Meyering  <jim@meyering.net>
29644
29645         Merge from coreutils.
29646
29647         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
29648
29649         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
29650         an empty input stream.
29651
29652         * lib/readtokens.c: Include <stdbool.h>.
29653         (readtoken): Use `size_t' rather than int/long.
29654         All callers adjusted.
29655         Use `bool' rather than `int' where appropriate.
29656         Use memset rather than an explicit loop.
29657         Use x2nrealloc rather than xrealloc.
29658         Allow the use of `\0' as a delimiter.
29659         (readtokens): Likewise.
29660         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
29661
29662 2004-03-30  Jim Meyering  <jim@meyering.net>
29663
29664         * m4/realloc.m4: Remove file, since now it does no more than
29665         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
29666         the `configure.ac' section of module/realloc.
29667         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
29668
29669 2004-03-30  Bruno Haible  <bruno@clisp.org>
29670
29671         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
29672         nonnull.
29673
29674 2004-03-29  Paul Eggert  <eggert@twinsun.com>
29675
29676         Merge changes to getloadavg.c from coreutils and Emacs.
29677
29678         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
29679         Define to an expression, not to the empty string.
29680         Include cloexec.h and xalloc.h.
29681         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
29682         Use set_cloexec_flag rather than rolling our own.
29683         * lib/cloexec.c, lib/cloexec.h: New files.
29684
29685 2004-03-29  Paul Eggert  <eggert@twinsun.com>
29686
29687         * m4/cloexec.m4: New file.
29688
29689 2004-03-18  Paul Eggert  <eggert@twinsun.com>
29690
29691         * lib/getopt.h: Sync with libc CVS.
29692
29693 2004-03-18  Paul Eggert  <eggert@twinsun.com>
29694             Bruno Haible  <bruno@clisp.org>
29695
29696         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
29697         mbswidth.
29698
29699 2004-03-18  Paul Eggert  <eggert@twinsun.com>
29700             Bruno Haible  <bruno@clisp.org>
29701
29702         * lib/mbswidth.h: Include <wchar.h> only if
29703         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
29704         <wchar.h>.
29705         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
29706
29707 2004-03-09  Paul Eggert  <eggert@twinsun.com>
29708
29709         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
29710         Sync with libc CVS.
29711         * lib/getopt_int.h: New file, also synced from libc.
29712
29713 2004-03-09  Paul Eggert  <eggert@twinsun.com>
29714
29715         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
29716         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
29717         Bring back getopt.c, getopt.h, getopt1.c.
29718
29719 2004-03-07  Paul Eggert  <eggert@twinsun.com>
29720
29721         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
29722         All uses changed.  Check for sa_sigaction member; this fixes
29723         a bug first reported by Jason Andrade in
29724         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
29725
29726 2004-03-07  Paul Eggert  <eggert@twinsun.com>
29727
29728         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
29729         '#if' expressions.  Unlike the code it replaces, it does not
29730         depend on (defined _SC_PAGESIZE).  However, it does depend on
29731         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
29732         first reported by Jason Andrade in
29733         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
29734
29735 2004-02-25  Simon Josefsson  <jas@extundo.com>
29736
29737         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
29738
29739 2004-02-25  Simon Josefsson  <jas@extundo.com>
29740
29741         * lib/strdup.h: New file.
29742         * lib/strdup.c: Include it.
29743         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
29744         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
29745
29746 2004-02-23  Karl Berry  <karl@gnu.org>
29747
29748         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
29749         (from fencepost.gnu.org:/gd/gnuorg).
29750
29751 2004-02-23  Karl Berry  <karl@gnu.org>
29752
29753         * config/srclistvars.sh (GNUORG) [karl]: redefine.
29754         * config/srclist.txt: add maintain/standards documents.
29755
29756 2004-02-18  Bruno Haible  <bruno@clisp.org>
29757
29758         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
29759         Reported by Derek Robert Price <derek@ximbiot.com>.
29760
29761 2004-02-16  Karl Berry  <karl@gnu.org>
29762
29763         * config/mkinstalldirs, install-sh: update from automake.
29764
29765 2004-02-06  Karl Berry  <karl@gnu.org>
29766
29767         * m4/po.m4: update from gettext 0.14.1.
29768
29769 2004-02-06  Karl Berry  <karl@gnu.org>
29770
29771         * lib/config.charset: update from gettext 0.14.1.
29772
29773 2004-02-05  Paul Eggert  <eggert@twinsun.com>
29774
29775         Add comments and code, prompted by suggestions from Bruno Haible
29776         for sh-quote.
29777         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
29778         describing the enum quoting_style values.
29779         * lib/quotearg.c (quotearg_alloc): New function.
29780         (quotearg_buffer_restyled): Treat lone { and } as special.
29781         Treat = as special.  Work around bug with older shells
29782         that "see" a '\' that is really the 2nd byte of a multibyte char.
29783         Quote empty string with shell_quoting_style.
29784
29785 2004-02-03  Bruno Haible  <bruno@clisp.org>
29786
29787         * m4/pipe.m4: New file, from GNU gettext.
29788
29789 2004-02-03  Bruno Haible  <bruno@clisp.org>
29790
29791         * lib/pipe.h: New file, from GNU gettext.
29792         * lib/pipe.c: New file, from GNU gettext.
29793
29794 2004-01-27  Bruno Haible  <bruno@clisp.org>
29795
29796         * m4/execute.m4: New file, from GNU gettext.
29797
29798 2004-01-27  Bruno Haible  <bruno@clisp.org>
29799
29800         * lib/execute.h: New file, from GNU gettext.
29801         * lib/execute.c: New file, from GNU gettext.
29802         * lib/w32spawn.h: New file, from GNU gettext.
29803
29804 2004-01-24  Paul Eggert  <eggert@twinsun.com>
29805
29806         Merge from diffutils.
29807
29808         * lib/file-type.c (file_type): Add typed memory objects.
29809         * lib/file-type.h (S_TYPEISTMO): New macro.
29810
29811         * lib/c-stack.h (c_stack_action): Remove argv argument.
29812         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
29813         (die): Don't calculate message unless segv_action returns.
29814         (get_stack_location, min_address_from_argv, max_address_from_argv,
29815         volatile stack_base, volatile_stack_size): Remove.
29816         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
29817         that every segmentation violation is a stack overflow.  (Ouch!)
29818         See Debian bug 136249 (still outstanding) for more info about why
29819         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
29820
29821 2004-01-24  Paul Eggert  <eggert@twinsun.com>
29822
29823         Exit-status fix from coreutils.
29824
29825         Use exit_failure consistently in place of EXIT_FAILURE,
29826         so that program exit statuses are consistent on failure.
29827
29828         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
29829         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
29830         * lib/argmatch.h: Comment fix to match the above.
29831         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
29832         Now a macro referring to exit_failure, instead of a separate
29833         variable.  Include "exitfail.h" to get it.
29834         * lib/xstrtol.h: Include "exitfail.h".
29835         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
29836
29837         * lib/long-options.c (parse_long_options): Use prototype
29838         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
29839         for clarity.
29840
29841 2004-01-21  Jim Meyering  <jim@meyering.net>
29842
29843         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
29844         so as not to conflict with a different-sized __mktime_internal
29845         function in GNU libc.
29846         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
29847         Problem building statically-linked `ls' reported by Michael Brunnbauer.
29848
29849 2004-01-20  Karl Berry  <karl@gnu.org>
29850
29851         * config/config.guess: update from config.
29852
29853         * config/srclistvars.sh: GNUWWWLICENSES for karl.
29854
29855 2004-01-20  Bruno Haible  <bruno@clisp.org>
29856
29857         Safer stack allocation.
29858         * lib/setenv.c: Include allocsa.h.
29859         (alloca): Remove fallback definition.
29860         (freea): Remove macro.
29861         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
29862         instead of freea.
29863
29864 2004-01-20  Bruno Haible  <bruno@clisp.org>
29865
29866         * m4/eealloc.m4: New file, from GNU gettext.
29867
29868 2004-01-20  Bruno Haible  <bruno@clisp.org>
29869
29870         * m4/allocsa.m4: New file, from GNU gettext.
29871
29872 2004-01-20  Bruno Haible  <bruno@clisp.org>
29873
29874         * lib/xallocsa.h: New file, from GNU gettext.
29875         * lib/xallocsa.c: New file, from GNU gettext.
29876
29877 2004-01-20  Bruno Haible  <bruno@clisp.org>
29878
29879         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
29880
29881 2004-01-20  Bruno Haible  <bruno@clisp.org>
29882
29883         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
29884         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
29885         specially.
29886
29887 2004-01-20  Bruno Haible  <bruno@clisp.org>
29888
29889         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
29890         patch.
29891
29892 2004-01-20  Bruno Haible  <bruno@clisp.org>
29893
29894         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
29895
29896 2004-01-20  Bruno Haible  <bruno@clisp.org>
29897
29898         * lib/eealloc.h: New file.
29899
29900 2004-01-20  Bruno Haible  <bruno@clisp.org>
29901
29902         * lib/binary-io.h: Avoid warnings on Cygwin.
29903
29904 2004-01-20  Bruno Haible  <bruno@clisp.org>
29905
29906         * lib/allocsa.h: New file, from GNU gettext.
29907         * lib/allocsa.c: New file, from GNU gettext.
29908
29909 2004-01-18  Karl Berry  <karl@gnu.org>
29910
29911         * doc/gpl.texi, doc/lgpl.texi: new files.
29912
29913 2004-01-18  Karl Berry  <karl@gnu.org>
29914
29915         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
29916         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
29917
29918 2004-01-15  Paul Eggert  <eggert@twinsun.com>
29919
29920         Merge from coreutils.
29921
29922         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
29923         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
29924         (gl_DEFAULT_POSIX2_VERSION): Move
29925         the documentation from 'configure' into 'config.hin',
29926         so that 'configure --help' isn't burdened by it and
29927         we don't have to worry about its formatting there.
29928         Reword the documentation so that it's more succinct
29929         and can be run together into a single paragraph.
29930         * m4/same.m4 (gl_SAME): Check for pathconf.
29931
29932 2004-01-15  Paul Eggert  <eggert@twinsun.com>
29933
29934         Merge from coreutils.
29935
29936         * lib/posixver.c: Include posixver.h.
29937
29938         * lib/same.c: Include <stdbool.h>, <limits.h>.
29939         (_POSIX_NAME_MAX): Define if not defined.
29940         (MIN): New macro.
29941         (same_name): If file names are silently truncated, report
29942         that the file names are the same if they are the same after
29943         the silent truncation.
29944
29945         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
29946         conversion function.
29947         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
29948         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
29949         longer needed.
29950
29951 2004-01-15  Jim Meyering  <jim@meyering.net>
29952
29953         Merge from coreutils.
29954
29955         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
29956         if no library is required.
29957         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
29958         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
29959         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
29960         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
29961         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
29962         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
29963         value, $ac_cv_search_crypt, if it's "none required".
29964         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
29965         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
29966         not gl_FUNC_GETLOADAVG.
29967         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
29968         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
29969
29970 2004-01-15  Jim Meyering  <jim@meyering.net>
29971
29972         Merge from coreutils.
29973
29974         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
29975         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
29976         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
29977
29978         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
29979         optional configure-time default.
29980
29981         * lib/version-etc.c (version_etc_copyright): Update copyright date.
29982
29983         * lib/xreadlink.c (xreadlink): Correct outdated comment.
29984
29985 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
29986
29987         Merge from coreutils.
29988
29989         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
29990         value, $ac_cv_search_nanosleep, if it's "none required".
29991
29992 2004-01-14  Paul Eggert  <eggert@twinsun.com>
29993
29994         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
29995         with like-named macro in fnmatch.c.
29996         (EXT): Use an internal constant instead.
29997
29998         Merge fnmatch patches from glibc.
29999         * lib/fnmatch.c (mbsinit): Remove define.
30000         Add libc_hidden_ver (__fnmatch, fnmatch).
30001         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
30002         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
30003
30004 2004-01-14  Karl Berry  <karl@gnu.org>
30005
30006         * config/install-sh: update from automake.
30007
30008 2004-01-13  Karl Berry  <karl@gnu.org>
30009
30010         * config/install-sh: update from automake.
30011
30012 2004-01-09  Karl Berry  <karl@gnu.org>
30013
30014         * config/install-sh: update from automake.
30015
30016 2004-01-05  Karl Berry  <karl@gnu.org>
30017
30018         * config/config.{sub,guess}: update from config.
30019
30020 2003-12-31  Karl Berry  <karl@gnu.org>
30021
30022         * config/depcomp: update from automake.
30023
30024 2003-12-14  Karl Berry  <karl@gnu.org>
30025
30026         * lib/config.charset: update from gettext-runtime.
30027
30028 2003-12-03  Paul Eggert  <eggert@twinsun.com>
30029
30030         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
30031         Bug reported by Alfred M. Szmidt.
30032
30033 2003-12-03  Bruno Haible  <bruno@clisp.org>
30034
30035         * m4/gettext.m4: Upgrade from gettext-0.13.
30036         * m4/po.m4: Upgrade from gettext-0.13.
30037         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
30038         * m4/intmax.m4: New file, from gettext-0.13.
30039         * m4/printf-posix.m4: New file, from gettext-0.13.
30040
30041 2003-11-29  Karl Berry  <karl@gnu.org>
30042
30043         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
30044
30045 2003-11-25  Paul Eggert  <eggert@twinsun.com>
30046             Bruno Haible  <bruno@clisp.org>
30047
30048         * lib/printf-parse.h: Don't include sys/types.h.
30049         (ARG_NONE): New macro.
30050         (char_directive): Change type of *arg_index fields to size_t.
30051         * lib/printf-parse.c: Don't include sys/types.h.
30052         (SSIZE_MAX): Remove macro.
30053         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
30054         Remove unnecessary overflow check.
30055         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
30056         fields.
30057
30058 2003-11-25  Bruno Haible  <bruno@clisp.org>
30059
30060         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
30061
30062 2003-11-25  Bruno Haible  <bruno@clisp.org>
30063
30064         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
30065         gt_TYPE_SSIZE_T.
30066
30067 2003-11-24  Paul Eggert  <eggert@twinsun.com>
30068
30069         * modules/alloca: Remove dependency on xalloc.
30070
30071 2003-11-24  Paul Eggert  <eggert@twinsun.com>
30072
30073         * lib/alloca.c: Remove dependency on xalloc module.
30074         (xalloc_die): Remove.
30075         (memory_full) [!defined emacs]: New macro.
30076         [!defined emacs]: Don't include xalloc.h.
30077         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
30078         address arithmetic overflows.  Change datatypes a bit to avoid
30079         unnecessary casts.
30080
30081 2003-11-22  Jim Meyering  <jim@meyering.net>
30082
30083         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
30084         s/size/size_t/.
30085
30086 2003-11-21  Karl Berry  <karl@gnu.org>
30087
30088         * config/config.{sub,guess}: update from config.
30089
30090 2003-11-18  Karl Berry  <karl@gnu.org>
30091
30092         * config/config.{sub,guess}: update from config.
30093
30094         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
30095
30096 2003-11-17  Paul Eggert  <eggert@twinsun.com>
30097
30098         * README: Mention that S+T cannot overflow if S is the size of
30099         an existing object and T is sufficiently small.
30100
30101 2003-11-17  Jim Meyering  <jim@meyering.net>
30102
30103         On systems without utime and without a utimes function capable of
30104         dealing with a NULL struct utimbuf* argument, this utime replacement
30105         could -- in unusual circumstances -- leak a file descriptor.
30106         * lib/utime.c: Include <unistd.h> and <errno.h>.
30107         (utime_null): Be sure to close `fd' and to preserve errno.
30108         Reported by Geoff Collyer via Arnold Robbins.
30109
30110 2003-11-17  Bruno Haible  <bruno@clisp.org>
30111
30112         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
30113         (Depends-on): Add xsize.
30114
30115 2003-11-17  Bruno Haible  <bruno@clisp.org>
30116
30117         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
30118
30119 2003-11-17  Bruno Haible  <bruno@clisp.org>
30120
30121         * lib/vasnprintf.c (alloca): Remove fallback definition.
30122         (freea): Remove definition.
30123         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
30124         Reported by Paul Eggert.
30125
30126 2003-11-16  Paul Eggert  <eggert@twinsun.com>
30127             Bruno Haible  <bruno@clisp.org>
30128
30129         Protect against address arithmetic overflow.
30130         * lib/printf-args.h: Include stddef.h.
30131         (arguments): Change type of field 'count' to size_t.
30132         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
30133         'unsigned int' where appropriate.
30134         * lib/printf-parse.h: Include sys/types.h.
30135         (char_directive): Change type of *arg_index fields to ssize_t.
30136         (char_directives): Change type of fields 'count', max_*_length to
30137         size_t.
30138         * lib/printf-parse.c: Include sys/types.h and xsize.h.
30139         (SSIZE_MAX): Define fallback value.
30140         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
30141         instead of 'int' where appropriate. Check a_allocated, d_allocated
30142         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
30143         * lib/vasnprintf.c: Include xsize.h.
30144         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
30145         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
30146         overflow. Avoid wraparound when converting a width or precision from
30147         decimal to binary.
30148
30149 2003-11-16  Bruno Haible  <bruno@clisp.org>
30150
30151         Update from GNU gettext.
30152         * lib/printf-parse.c: Generalize to it can be compiled for wide
30153         strings.
30154         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
30155         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
30156         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
30157         SNPRINTF): New macros.
30158         Don't include <alloca.h> if the file is used inside libintl.
30159         (local_wcslen): New function, for Solaris 2.5.1.
30160         (VASNPRINTF): Use it instead of wcslen.
30161
30162 2003-11-16  Bruno Haible  <bruno@clisp.org>
30163
30164         * lib/xsize.h (xmax): New function.
30165         (xsum, xsum3, xsum4): Declare as "pure" functions.
30166
30167 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30168
30169         * modules/xalloc (Files): Undo latest change, since xalloc.h
30170         no longer needs SIZE_MAX or PTRDIFF_MAX.
30171
30172 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30173
30174         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
30175         gl_PTRDIFF_MAX.
30176
30177 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30178
30179         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
30180         "return", to pacify some unknown compiler.  Problem reported
30181         by Joerg Schilling.
30182
30183 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30184
30185         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
30186         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
30187         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
30188         heuristic is just as accurate as far as we know, and it removes a
30189         dependency on size_max.m4 and ptrdiff_max.m4.
30190
30191 2003-11-11  Bruno Haible  <bruno@clisp.org>
30192
30193         * modules/xsize (Files): Add m4/size_max.m4.
30194         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
30195
30196 2003-11-11  Bruno Haible  <bruno@clisp.org>
30197
30198         * m4/size_max.m4: New file.
30199         * m4/ptrdiff_max.m4: New file.
30200         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
30201         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
30202         (gl_XALLOC): Invoke it.
30203
30204 2003-11-11  Bruno Haible  <bruno@clisp.org>
30205
30206         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
30207         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
30208         defined.
30209
30210 2003-11-10  Paul Eggert  <eggert@twinsun.com>
30211
30212         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
30213         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
30214         rejected some allocations of exactly SIZE_MAX - 2 bytes.
30215         From Bruno Haible.
30216         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
30217         not (size_t) -1, since it's defined here.
30218
30219 2003-11-09  Karl Berry  <karl@gnu.org>
30220
30221         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
30222
30223 2003-11-06  Paul Eggert  <eggert@twinsun.com>
30224
30225         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
30226         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
30227         Reject sizes of exactly SIZE_MAX bytes.
30228         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
30229         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
30230
30231 2003-11-05  Bruno Haible  <bruno@clisp.org>
30232
30233         * lib/xsize.h: Include limits.h, to avoid a possible collision with
30234         SIZE_MAX defined in <limits.h> on Solaris.
30235
30236 2003-11-04  Jim Meyering  <jim@meyering.net>
30237
30238         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
30239         variable names, rather than @VAR@.
30240         * modules/poll: Likewise.
30241
30242 2003-11-04  Bruno Haible  <bruno@clisp.org>
30243
30244         * modules/xsize: New file.
30245         * modules/linebreak: Depend on xsize.
30246         * MODULES.html.sh (func_all_modules): Add xsize.
30247
30248 2003-11-04  Bruno Haible  <bruno@clisp.org>
30249
30250         * m4/xsize.m4: New file.
30251
30252 2003-11-04  Bruno Haible  <bruno@clisp.org>
30253
30254         * lib/xsize.h: New file.
30255         * lib/linebreak.c: Include xsize.h.
30256         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
30257         argument for overflow.
30258         Suggested by Paul Eggert.
30259
30260 2003-11-03  Karl Berry  <karl@gnu.org>
30261
30262         * config/config.{guess,sub}: update from config.
30263
30264 2003-11-03  Jim Meyering  <jim@meyering.net>
30265
30266         * modules/userspec (lib_SOURCES): Add userspec.h.
30267         (Include): Add "userspec.h".
30268         Improve description.
30269
30270 2003-11-03  Jim Meyering  <jim@meyering.net>
30271
30272         * lib/userspec.c: Include "userspec.h".
30273         * lib/userspec.h: New file.
30274
30275 2003-11-03  Bruno Haible  <bruno@clisp.org>
30276
30277         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
30278
30279 2003-11-03  Bruno Haible  <bruno@clisp.org>
30280
30281         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
30282         available, to avoid (extremely rare) race condition.
30283         Suggested by Paul Eggert.
30284
30285 2003-11-02  Karl Berry  <karl@gnu.org>
30286
30287         * config/srclist.txt (vasprintf.c): sync broken, sigh.
30288
30289 2003-10-31  Paul Eggert  <eggert@twinsun.com>
30290
30291         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
30292         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
30293         (read_filesystem_list): Set and use me_type_malloced.
30294         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
30295         whatever the type happens to be), for brevity and consistency.
30296         Check for size calculation overflow on Alphas running OSF/1.
30297
30298 2003-10-31  Jim Meyering  <jim@meyering.net>
30299
30300         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
30301
30302         * lib/linebuffer.c: Include <string.h> for declaration of memset.
30303
30304 2003-10-30  Paul Eggert  <eggert@twinsun.com>
30305             Bruno Haible  <bruno@clisp.org>
30306
30307         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
30308         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
30309
30310 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30311
30312         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
30313         netbsd*-gnu*.  Suggested by Robert Millan.
30314
30315 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30316
30317         * modules/group-member: Depend on stdbool.
30318
30319 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30320
30321         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
30322
30323 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30324
30325         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
30326         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
30327         after the 'gnu' in these cases.  This fixes some bugs in the
30328         previous change, and is based on suggestions by Robert Millan.
30329
30330 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30331
30332         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
30333         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
30334         no longer needed.
30335         * lib/quotearg.c (quotearg_n_options): Use it.
30336         * lib/group-member.c: Include <stdbool.h>.
30337         (free_group_info): Arg is now const *; don't free arg.
30338         (get_group_info): Now returns bool and accepts struct group_info *,
30339         rather than returning a malloc'ed struct group_info *.
30340         All uses changed.  Check for overflow in internal size calculation.
30341
30342         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
30343         rather than xmalloc/xrealloc.
30344         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
30345         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
30346         conformance bug: the old code used a pointer after freeing the
30347         storage that it addressed.
30348         * lib/hash.c (hash_initialize): Simplify the code by using
30349         xalloc_oversized rather than doing it by hand.
30350         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
30351         the buffer preserved.  Use free and xmalloc instead.
30352         * lib/quotearg.c (quotearg_n_options): Likewise.
30353         Use a simpler test for size overflow.  Don't use xalloc_oversized
30354         because unsigned int might be wider than size_t (!); this suggests
30355         that we should switch from unsigned int to size_t for slot numbers.
30356
30357 2003-10-28  Paul Eggert  <eggert@twinsun.com>
30358
30359         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
30360         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
30361         NetBSD kernels.  Requested by Richard Stallman.
30362
30363 2003-10-27  Paul Eggert  <eggert@twinsun.com>
30364
30365         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
30366         to allocate the returned structure.  Do not allocate a subarray,
30367         as x2nrealloc will do that.
30368         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
30369         instead of xnrealloc.
30370         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
30371
30372 2003-10-27  Bruno Haible  <bruno@clisp.org>
30373
30374         * lib/stdbool_.h: Better support for BeOS.
30375
30376 2003-10-26  Paul Eggert  <eggert@twinsun.com>
30377
30378         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
30379         now uses inline.
30380
30381 2003-10-26  Paul Eggert  <eggert@twinsun.com>
30382
30383         * lib/xalloc.h (xalloc_oversized): New static inline function, for
30384         callers that want to do their own size-overflow checking.  Include
30385         <stdbool.h>, since xalloc_oversized returns bool.
30386         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
30387         to use xalloc_oversized.
30388
30389         Add two functions x2realloc, x2nrealloc, for programs that grow
30390         arrays dynamically by doubling their sizes.
30391         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
30392         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
30393         New functions.
30394
30395         Port to C99 semantics for 'inline' of external functions.
30396         Bug reported by Bruno Haible.
30397         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
30398         with the old contents of xnmalloc.
30399         (xnmalloc, xmalloc): Use it.
30400         (xnrealloc_inline): New static inline function,
30401         with the old contents of xnrealloc.
30402         (xnrealloc, xrealloc): Use it.
30403
30404         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
30405         that.
30406
30407 2003-10-26  Karl Berry  <karl@gnu.org>
30408
30409         * config/srclist.txt (COPYING.DOC): no longer available from
30410         /gd/gnuorg; don't know where the ultimate source is.
30411
30412 2003-10-25  Paul Eggert  <eggert@twinsun.com>
30413
30414         Fix several address-calculation bugs in the hash modules,
30415         plus some minor code cleanup.
30416
30417         * lib/hash.h: Include <stdbool.h>, for bool.
30418         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
30419         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
30420         hash_get_n_entries, hash_get_max_bucket_length,
30421         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
30422         hash_rehash): Use size_t rather than unsigned.
30423         * lib/hash.c (struct hash_table, hash_get_n_buckets,
30424         hash_get_n_buckets_used, hash_get_n_entries,
30425         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
30426         hash_get_entries, hash_do_for_each, hash_string, is_prime,
30427         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
30428         Likewise.
30429         (SIZE_MAX): Define if not defined.
30430         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
30431         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
30432         hash_print):
30433         Use const * when possible.
30434         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
30435         (check_tuning): Fix bug: if tuning parameters were very close to
30436         0 or 1, rounding errors could have caused subscript violations.
30437         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
30438         (hash_initialize): Add 'fail:' label
30439         to free table and return NULL, and use it to simplify code.
30440         Use calloc rather than clearing the storage ourself.
30441         (hash_initialize, hash_rehash): Check for arithmetic overflow in
30442         buffer size calculations.
30443         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
30444         Include <stddef.h>, for size_t.
30445         * lib/hash-pjw.c (hash_pjw): Likewise.
30446         Switch to method described by Bruno Haible.
30447         Include <limits.h>, for CHAR_BIT.
30448         (SIZE_BITS): New macro.
30449
30450 2003-10-23  Paul Eggert  <eggert@twinsun.com>
30451
30452         * m4/getline.m4 (AM_FUNC_GETLINE):
30453         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
30454         hosts.  Problem reported by Derek Robert Price in
30455         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
30456         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
30457         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
30458
30459 2003-10-21  Paul Eggert  <eggert@twinsun.com>
30460
30461         * lib/getndelim2.c (getndelim2): When size calculation overflows,
30462         ceiling the allocation at NMAX bytes rather than silently
30463         discarding input bytes before NMAX is reached.  This makes
30464         a difference only if NMAX exceeds SIZE_MAX / 2.
30465
30466         * lib/obstack.c: Merge from glibc.
30467         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
30468         Add libc_hidden_def (_obstack_newchunk).
30469         (_obstack_free) [! defined _LIBC]: Remove.
30470         [defined _LIBC]: Make a strong alias from obstack_free, rather than
30471         a clone of the function body.
30472         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
30473         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
30474
30475         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
30476         glibc.
30477         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
30478         arg to memcpy.
30479
30480         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
30481         (obstack_ptr_grow_fast, obstack_int_grow_fast):
30482         Don't use lvalue casts, as GCC plans to remove support for them
30483         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
30484         was also present in the non-GCC version, indicating that this
30485         code had always been buggy and had never been widely used.
30486         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
30487         Use the fast variant of each macro, rather than copying the
30488         definiens of the fast variant; that way, we'll be more likely to
30489         catch future bugs in the fast variants.
30490
30491 2003-10-20  Bruno Haible  <bruno@clisp.org>
30492
30493         * modules/wait-process: New file.
30494         * MODULES.html.sh (func_all_modules): Add wait-process.
30495
30496 2003-10-20  Bruno Haible  <bruno@clisp.org>
30497
30498         * m4/wait-process.m4: New file.
30499
30500 2003-10-20  Bruno Haible  <bruno@clisp.org>
30501
30502         * lib/wait-process.h: New file, from GNU gettext.
30503         * lib/wait-process.c: New file, from GNU gettext.
30504
30505 2003-10-19  Jim Meyering  <jim@meyering.net>
30506
30507         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
30508         HPUX 10.20.
30509
30510 2003-10-18  Karl Berry  <karl@gnu.org>
30511
30512         * config/config.guess: update from config.
30513
30514 2003-10-16  Paul Eggert  <eggert@twinsun.com>
30515
30516         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
30517         (getgroups): First arg is int, not size_t.
30518         Don't let 'free' mangle errno.
30519
30520 2003-10-16  Paul Eggert  <eggert@twinsun.com>
30521
30522         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
30523
30524 2003-10-16  Karl Berry  <karl@gnu.org>
30525
30526         * config/config.{guess,sub}: update from config.
30527
30528 2003-10-16  Jim Meyering  <jim@meyering.net>
30529
30530         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
30531         memcpy.
30532
30533 2003-10-15  Paul Eggert  <eggert@twinsun.com>
30534
30535         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
30536         (SIZE_MAX): Remove.
30537         (new_exclude, add_exclude_file): Initial size no longer needs to
30538         be a power of 2.
30539         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
30540         our own address arithmetic overflow checking.
30541
30542         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
30543         (fnmatch): Do not alloca more than 2000 wide characters;
30544         instead, use malloc for large buffers.
30545         Check for address arithmetic overflow, and return -1
30546         with errno set to ENOMEM in that case.
30547         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
30548         (NEW_PATTERN): Do not alloca more than 8000 bytes;
30549         instead, return -1.  Check for address arithmetic overflow.
30550
30551 2003-10-14  Paul Eggert  <eggert@twinsun.com>
30552
30553         Handle invalid suffixes and overflow independently, so that
30554         callers can treat them independently as needed.  Fix some bugs in
30555         suffix handling, e.g., "100k@" was not diagnosed as an invalid
30556         suffix for a human-readable blocksize.  The major caller-visible
30557         change is the addition of a new
30558         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
30559         that both overflow and suffix chars were found.
30560
30561         * lib/human.c (humblock): Don't check separately for invalid suffix
30562         char; that is xstrtoumax's job (now that its bug is fixed).
30563         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
30564         INTMAX_MAX]: New macros.
30565         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
30566         TYPE_MAXIMUM): New macros.
30567         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
30568         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
30569         if overflow occurs, as it's what __strtol does and it's more useful
30570         in practice.
30571         (__xstrtol): If __strtol reports some error other than ERANGE,
30572         reflect it to the caller as LONGINT_INVALID.  If it reports
30573         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
30574         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
30575         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
30576         value.
30577         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
30578         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
30579         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
30580         [defined UINTMAX_MAX]: New macros.
30581
30582 2003-10-14  Bruno Haible  <bruno@clisp.org>
30583
30584         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
30585
30586 2003-10-14  Bruno Haible  <bruno@clisp.org>
30587
30588         * m4/sig_atomic_t: New file, from GNU gettext.
30589         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
30590
30591 2003-10-14  Bruno Haible  <bruno@clisp.org>
30592
30593         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
30594         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
30595         Also use volatile where needed.
30596
30597 2003-10-12  Paul Eggert  <eggert@twinsun.com>
30598
30599         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
30600         Change maintainer from Bruno Haible to 'all'.
30601
30602 2003-10-12  Paul Eggert  <eggert@twinsun.com>
30603
30604         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
30605
30606 2003-10-12  Paul Eggert  <eggert@twinsun.com>
30607
30608         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
30609         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
30610         and define in terms of the other primitives.
30611         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
30612         (SIZE_MAX): Define if not already defined.
30613         (array_size_overflow): New function.
30614         (xalloc_die): Abort instead of exiting if 'error' returns.
30615         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
30616         (xmalloc, xrealloc): Use them.
30617         (xcalloc): Check for address arithmetic overflow.
30618         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
30619         a bit faster than strcpy.
30620
30621 2003-10-10  Simon Josefsson  <jas@extundo.com>
30622
30623         * modules/argp (Depends-on): Add restrict and strcase.
30624
30625 2003-10-10  Simon Josefsson  <jas@extundo.com>
30626
30627         * m4/argp.m4: Add AC_C_INLINE.
30628
30629 2003-10-08  Paul Eggert  <eggert@twinsun.com>
30630
30631         Merge getpass from libc, plus a few fixes.
30632
30633         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
30634         Include <stdbool.h>.
30635         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
30636         __fsetlocking to empty.
30637         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
30638         do include <bits/libc-lock.h>.
30639         Do not include <fcntl.h>; not needed.
30640         [_LIBC]: Include <wchar.h>.
30641         (NOTCANCEL_MODE): New macro.
30642         (flockfile, funlockfile) [_LIBC]: New macros.
30643         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
30644         [!_LIBC]: New macros.
30645         (call_fclose): New function.
30646         (getpass): Use it.  Save tty stream separately; this simplifies the
30647         code and makes it more reliable if stdin happens to equal stdout.
30648         Invoke __fsetlocking on tty.
30649         Handle thread cancellation if needed.
30650         Namespace cleanup (use __tcgetattr, __getline).
30651         Use bool for Booleans.
30652         [USE_IN_LIBIO]: Handle wide streams.
30653         [!_LIBC]: Unconditionally do the fseek, since we don't know what
30654         stream might go where.
30655
30656         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
30657         doesn't have to include <stdio.h> before us.
30658         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
30659         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
30660         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
30661         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
30662         if not declared, so that we can use getpass.c code from libc without
30663         rewriting it.
30664         (flockfile, ftrylockfile, funlockfile): New macros.
30665
30666 2003-10-08  Paul Eggert  <eggert@twinsun.com>
30667
30668         * modules/getpass: Depend on stdbool.
30669
30670 2003-10-08  Paul Eggert  <eggert@twinsun.com>
30671
30672         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
30673
30674 2003-10-07  Karl Berry  <karl@gnu.org>
30675
30676         * config/config.{guess,sub}: update from config.
30677
30678 2003-10-06  Jim Meyering  <jim@meyering.net>
30679             Bruno Haible  <bruno@clisp.org>
30680
30681         This lets translators provide better translations for the
30682         "Written by ..." part of --version output.
30683         * lib/version-etc.h: Include stdarg.h.
30684         (version_etc_copyright): Declare as readonly.
30685         (version_etc): Make this function variadic with a NULL-terminated list
30686         of author name strings.
30687         (version_etc_va): New declaration.
30688         * lib/version-etc.c: Include stdarg.h, stdlib.h.
30689         (version_etc_copyright): Declare as readonly.
30690         (version_etc_va): New function. Provide a different translatable string
30691         for each possible number of authors < 10. Abbreviate when there are 10
30692         authors or more.
30693         (version_etc): Make this function variadic. Call version_etc_va.
30694         Suggestion from Gary V. Vaughan.
30695
30696         * lib/long-options.h (parse_long_options): Change prototype: the
30697         authors string is moved to the end and becomes variadic.
30698         * lib/long-options.c: Include stdarg.h.
30699         (parse_long_options): Make this function variadic, too.
30700         Call version_etc_va, not version_etc.
30701
30702 2003-10-06  Bruno Haible  <bruno@clisp.org>
30703
30704         * modules/version-etc-2: Remove file.
30705         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
30706
30707 2003-10-06  Bruno Haible  <bruno@clisp.org>
30708
30709         * modules/fatal-signal: New file.
30710         * MODULES.html.sh (func_all_modules): Add fatal-signal.
30711
30712 2003-10-06  Bruno Haible  <bruno@clisp.org>
30713
30714         * m4/fatal-signal.m4: New file.
30715         * m4/signalblocking.m4: New file, from GNU gettext.
30716
30717 2003-10-06  Bruno Haible  <bruno@clisp.org>
30718
30719         * lib/version-etc-2.h: Remove file.
30720         * lib/version-etc-2.c: Remove file.
30721
30722 2003-10-06  Bruno Haible  <bruno@clisp.org>
30723
30724         * lib/fatal-signal.h: New file, from GNU gettext.
30725         * lib/fatal-signal.c: New file, from GNU gettext.
30726
30727 2003-10-05  Paul Eggert  <eggert@twinsun.com>
30728
30729         * README: Rework advice for preventing empty .o files.
30730         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
30731         not <sys/types.h>.
30732
30733 2003-10-04  Karl Berry  <karl@gnu.org>
30734
30735         * lib/argp*: update from libc.
30736
30737 2003-10-04  Karl Berry  <karl@gnu.org>
30738
30739         * config/config.{guess,sub}: update from config.
30740
30741 2003-10-02  Bruno Haible  <bruno@clisp.org>
30742
30743         * modules/lchown (Include): Add lchown.h.
30744         * modules/time_r (Include): Use "..." syntax.
30745         * modules/xgetdomainname (Include): Add xgetdomainname.h.
30746
30747 2003-10-01  Simon Josefsson  <jas@extundo.com>
30748
30749         * MODULES.html.sh (func_all_modules): Move gethostname from section
30750         'based on' to section 'lacking' POSIX:2001.
30751
30752 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
30753
30754         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
30755         to output mode on the same stream.
30756
30757 2003-09-29  Paul Eggert  <eggert@twinsun.com>
30758
30759         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
30760         Fix arg typo in previous patch.
30761
30762 2003-09-28  Jim Meyering  <jim@meyering.net>
30763
30764         * lib/error.c: Correct cpp indentation.
30765
30766 2003-09-27  Paul Eggert  <eggert@twinsun.com>
30767
30768         * modules/free: New file.
30769
30770 2003-09-27  Paul Eggert  <eggert@twinsun.com>
30771
30772         * m4/free.m4: New file.
30773
30774 2003-09-27  Paul Eggert  <eggert@twinsun.com>
30775
30776         * lib/minmax.h (MIN, MAX)
30777         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
30778         Omit the special code that used __typeof__, since we worry that
30779         it could be more trouble than it's worth.  See:
30780         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
30781         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
30782
30783         * lib/free.c: New file.
30784
30785 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
30786
30787         Trivial fixes to Makefile.am parts of module listings.
30788         * modules/strstr: Append strstr.h to lib_SOURCES.
30789         * modules/strcase: Likewise, for strcase.h.
30790
30791 2003-09-27  Karl Berry  <karl@gnu.org>
30792
30793         * config/mkinstalldirs: update from automake.
30794
30795 2003-09-26  Paul Eggert  <eggert@twinsun.com>
30796
30797         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
30798         (error_tail): Do not loop, reallocating temporary buffer, since
30799         the output cannot contain more wide characters than the input
30800         contains bytes, the size must be big enough already.  This avoids
30801         one potential size overflow calculation.  Check for size overflow
30802         when calculating temporary buffer size.  Free temporary buffer
30803         when done, if it was allocated with malloc; this plugs a memory
30804         leak.  Remove casts from void * to pointers, that are no longer
30805         needed now that we're assuming C89 or better.
30806
30807         Merge error changes from glibc.
30808
30809         * lib/error.c, error.h: Update copyright notice header to match glibc.
30810         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
30811         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
30812         Disable cancellation while printing error.
30813         * lib/error.h: Prepend __ to parameter names.
30814
30815 2003-09-26  Jim Meyering  <jim@meyering.net>
30816
30817         * lib/error.c (error_tail): Move some declarations
30818         into inner scope where the local variables are used.
30819
30820 2003-09-26  Bruno Haible  <bruno@clisp.org>
30821
30822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
30823         stpncpy().
30824         Don't define stpncpy through config.h; it's now done through stpncpy.h.
30825
30826 2003-09-26  Bruno Haible  <bruno@clisp.org>
30827
30828         * lib/stpncpy.h (gnu_stpncpy): New declaration.
30829         (stpncpy): Define as alias for gnu_stpncpy.
30830         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
30831
30832 2003-09-25  Simon Josefsson  <jas@extundo.com>
30833
30834         * lib/xgetdomainname.h: New file.
30835         * lib/xgetdomainname.c: New file.
30836
30837 2003-09-25  Simon Josefsson  <jas@extundo.com>
30838             Bruno Haible  <bruno@clisp.org>
30839
30840         * modules/getdomainname: New file.
30841         * modules/xgetdomainname: New file.
30842         * MODULES.html.sh (func_all_modules): Add getdomainname,
30843         xgetdomainname.
30844
30845 2003-09-25  Simon Josefsson  <jas@extundo.com>
30846             Bruno Haible  <bruno@clisp.org>
30847
30848         * m4/getdomainname.m4: New file.
30849
30850 2003-09-25  Simon Josefsson  <jas@extundo.com>
30851             Bruno Haible  <bruno@clisp.org>
30852
30853         * lib/getdomainname.h: New file.
30854         * lib/getdomainname.c: New file.
30855
30856 2003-09-25  Karl Berry  <karl@gnu.org>
30857
30858         * lib/argp-fmtstream.c, argp-help.c: update from libc.
30859
30860 2003-09-25  Karl Berry  <karl@gnu.org>
30861
30862         * config/install-sh: update from automake.
30863
30864 2003-09-25  Bruno Haible  <bruno@clisp.org>
30865
30866         * modules/version-etc-2: New file, from modules/version-etc with
30867         modifications.
30868         * MODULES.html.sh (func_all_modules): Add version-etc-2.
30869
30870 2003-09-25  Bruno Haible  <bruno@clisp.org>
30871
30872         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
30873         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
30874
30875 2003-09-24  Simon Josefsson  <jas@extundo.com>
30876
30877         * modules/xgethostname: Add xgethostname.h.
30878
30879 2003-09-24  Paul Eggert  <eggert@twinsun.com>
30880
30881         * lib/linebuffer.c (freebuffer): Don't free the argument, just
30882         the buffer associated with the argument.  Bug reported by
30883         Simon Josefsson.
30884
30885 2003-09-24  Paul Eggert  <eggert@twinsun.com>
30886
30887         * README: Document assumptions that 'int' is at least 32 bits
30888         wide, that integer arithmetic is 2's complement without overflow,
30889         that there are no holes in integer values, that adding sizes of
30890         two nonoverlapping objects can't overflow, and that all-bits-zero
30891         yields scalar zero.  Fix spelling and capitalization typos.
30892
30893 2003-09-19  Karl Berry  <karl@gnu.org>
30894
30895         * lib/argp.h: update from libc.
30896
30897 2003-09-17  Paul Eggert  <eggert@twinsun.com>
30898
30899         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
30900         to avoid spurious warnings like "AC_RUN_IFELSE was called before
30901         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
30902
30903 2003-09-17  Paul Eggert  <eggert@twinsun.com>
30904
30905         * gnulib-tool: Use "test -h", not "test -L", for portability
30906         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
30907         (tags_regexp): Remove, since \| doesn't conform to POSIX.
30908         (sed_extract_prog): Issue s commands one-by-one, rather than
30909         using \| in one s command.
30910
30911 2003-09-16  Paul Eggert  <eggert@twinsun.com>
30912
30913         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
30914         input error, instead of returning NULL the next time we are called
30915         (and therefore losing track of errno).
30916
30917 2003-09-16  Bruno Haible  <bruno@clisp.org>
30918
30919         * gnulib-tool (func_create_testdir): Warn about duplicated
30920         dependencies.
30921
30922 2003-09-15  Paul Eggert  <eggert@twinsun.com>
30923
30924         * modules/argmatch, modules/fatal, modules/obstack,
30925         modules/xalloc, modules/xgethostname: Sort dependencies by
30926         importance, not alphabetically.
30927
30928 2003-09-15  Paul Eggert  <eggert@twinsun.com>
30929
30930         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
30931         fails, so that the caller gets the proper errno.
30932
30933         * lib/readutmp.c (read_utmp): Likewise.
30934         Check for fstat error.  Close stream and free storage
30935         when failing.
30936
30937 2003-09-14  Karl Berry  <karl@gnu.org>
30938
30939         * config/srclist.txt (strdup.c): disable for c89 changes.
30940
30941 2003-09-14  Jim Meyering  <jim@meyering.net>
30942
30943         * lib/getloadavg.c: Correct cpp indentation.
30944         * lib/strdup.c: Likewise.
30945         * lib/vasnprintf.c: Likewise.
30946
30947 2003-09-14  Bruno Haible  <bruno@clisp.org>
30948
30949         * modules/fwriteerror: New file.
30950         * MODULES.html.sh (func_all_modules): Add fwriteerror.
30951
30952 2003-09-14  Bruno Haible  <bruno@clisp.org>
30953
30954         * lib/fwriteerror.h: New file.
30955         * lib/fwriteerror.c: New file.
30956
30957 2003-09-12  Paul Eggert  <eggert@twinsun.com>
30958
30959         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
30960         modules/xgethostname, modules/xalloc: Depend on exit.
30961
30962 2003-09-12  Paul Eggert  <eggert@twinsun.com>
30963
30964         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
30965
30966         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
30967         and AC_MINIX, too, so that their extensions are available.
30968
30969         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
30970         This macro has been superseded by gl_BACKUPFILE.
30971
30972         More patches to assume C89 or better.
30973
30974         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
30975
30976         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
30977         unconditionally.
30978         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
30979         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
30980         Include <string.h>, <stdlib.h> unconditionally.
30981         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
30982         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
30983         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
30984         headers or for string.h.
30985         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
30986         or strtoul.
30987
30988         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
30989         headers.
30990         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
30991         * m4/userspec.m4 (gl_USERSPEC): Likewise.
30992         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
30993         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
30994         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
30995         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
30996         memcpy, memset.
30997         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
30998         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
30999         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
31000         strtol.
31001         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
31002         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
31003         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
31004         strtoul.
31005
31006 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31007
31008         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
31009         * lib/obstack.c [!defined _LIBC]: Likewise.
31010         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
31011         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
31012         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
31013
31014         More changes to assume C89 or better.
31015
31016         * lib/error.c (error_tail): Assume vprintf.
31017
31018         * lib/argmatch.c (getenv): Remove decl.
31019         * lib/progreloc.c (get_full_program_name): Define via prototype.
31020         * lib/setenv.c (clearenv): Likewise.
31021         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
31022         needed.
31023         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
31024         (malloc, memcpy): Remove decls.
31025         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
31026         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
31027         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
31028         (memcpy): Remove macro.
31029         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
31030         (__P): Remove.  All uses removed.
31031         (PTR): Remove.  All uses changed to void *.
31032         (CHAR_BIT, NULL): Remove.
31033         (spaces, zeros, memset_space, memset_zero)
31034         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
31035         Remove.
31036         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
31037         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
31038         Define with prototype.
31039         Remove now-unnecessary prototype decl.
31040         (extra_args_spec): Assume ANSI C.  All uses changed.
31041         (extra_args_spec_iso): Remove.
31042         (my_strftime, emacs_strftimeu): Define via prototype.
31043         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
31044         unconditionally.
31045         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
31046         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
31047         (strtoul, strtol): Remove decls.
31048         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
31049         LONG_MAX): Remove.
31050         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
31051         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
31052         (LOCALE_PARAM_PROTO): New macro.
31053         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
31054         (INTERNAL (strtol), strtol): Define with a prototype.
31055         (PARAMS): Remove.  All uses removed.
31056         * lib/tempname.c: Include <string.h> unconditionally.
31057         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
31058         * lib/xgethostname.c (main): Define with a prototype.
31059         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
31060         Include <stdlib.h> unconditionally.
31061         (calloc, malloc, realloc, free): Remove decls.
31062         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
31063         Include <stdlib.h> unconditionally.  Sort include file names.
31064         (strtod): Remove.
31065         (xstrtod): Define with a prototype.
31066         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
31067         (strtol, strtoul): Remove decls.
31068
31069 2003-09-11  Paul Eggert  <eggert@twinsun.com>
31070
31071         More patches to assume C89 or better.
31072         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
31073         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
31074         string.h, memchr, STDC_HEADERS.
31075
31076 2003-09-11  Paul Eggert  <eggert@twinsun.com>
31077
31078         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
31079         Include <stdlib.h>, <string.h> unconditionally.
31080         Remove now-unnecessary cast to char *.
31081         * lib/strnlen.c: Include <string.h> unconditionally.
31082         * lib/yesno.c (yesno): Define with a prototype.
31083
31084 2003-09-11  Bruno Haible  <bruno@clisp.org>
31085
31086         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
31087
31088 2003-09-10  Jim Meyering  <jim@meyering.net>
31089
31090         * lib/error.c: Correct indentation of cpp directives.
31091
31092 2003-09-10  Bruno Haible  <bruno@clisp.org>
31093
31094         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
31095         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
31096         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
31097         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
31098         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
31099         <stdlib.h> and <string.h> checks.
31100         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
31101         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
31102
31103 2003-09-10  Bruno Haible  <bruno@clisp.org>
31104
31105         * lib/strcspn.c: Include <string.h> unconditionally.
31106         * lib/strpbrk.c: Include <string.h> unconditionally.
31107         * lib/strstr.c: Include <string.h> unconditionally.
31108         * lib/unicodeio.c: Include <string.h> unconditionally.
31109         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
31110         * lib/unsetenv.c: Likewise.
31111         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
31112         * lib/yesno.c: Include <stdlib.h> unconditionally.
31113         (rpmatch): Add prototype.
31114
31115 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31116
31117         More patches to assume C89 or better.
31118         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
31119         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
31120         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
31121         or for string.h.
31122         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
31123         stdlib.h.
31124         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
31125         C headers.
31126         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
31127         string.h.
31128         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
31129         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
31130         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
31131         or for string.h.
31132         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
31133         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
31134         C headers.
31135         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
31136         memcpy.
31137         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
31138         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
31139         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
31140         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
31141         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
31142         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
31143         string.h, free.
31144         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
31145         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
31146         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
31147         C headers, or for string.h.
31148         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
31149         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
31150         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
31151         headers, memory.h, stdlib.h, string.h, strings.h.
31152         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
31153         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
31154         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
31155         strchr.
31156         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
31157         headers, memory.h, string.h.
31158         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
31159         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
31160         free.
31161         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
31162         headers.
31163         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
31164         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
31165         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
31166         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
31167         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
31168
31169 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31170
31171         More K&R removal.
31172
31173         * lib/acosl.c (main): Use a prototype.
31174         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
31175         tanl.c: Likewise.
31176
31177         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
31178
31179         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
31180         (getopt, etopt_long, getopt_long_only, _getopt_internal)
31181         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
31182         with a prototype.
31183         * lib/getopt.c (const): Remove macro.
31184         Include <string.h> unconditionally.
31185         (my_index): Remove; all uses changed to strchr.
31186         (strlen): Remove decl.
31187         (exchange): Remove forward decl; no longer needed.
31188         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
31189         Define with prototype.
31190         * lib/getopt1.c (const): Remove macro.
31191         (getopt_long, getopt_long_only, main): Define with prototype.
31192
31193         * lib/getugroups.c: Include <string.h> unconditionally.
31194
31195         * lib/getusershell.c: Include <stdlib.h> unconditionally.
31196         (getusershell, setusershell, endusershell, readname, main):
31197         Define with prototypes.
31198
31199         * lib/group-member.c: Include group-member.h first.
31200         Include <stdlib.h> unconditionally.
31201
31202         * lib/hard-locale.c: Include hard-locale.h first.
31203         Include <stdlib.h>, <string.h> unconditionally.
31204
31205         * lib/hash.c (free, malloc): Remove decls.
31206         Include <stdlib.h> unconditionally.
31207
31208         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
31209         (getenv): Do not declare.
31210
31211         * lib/idcache.c: Include <string.h> unconditionally.
31212
31213         * lib/long-options.c: Include long-options.h first, to test interface.
31214         Include <stdlib.h> unconditionally.
31215
31216         * lib/makepath.c: Include makepath.h first, to test interface.
31217         Include <stdlib.h> and <string.h> unconditionally.
31218
31219         * lib/linebuffer.c: Include <stdlib.h>.
31220         (free): Remove decl.
31221
31222         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
31223         stddef.h. rpl_malloc returns void *, not char *.
31224         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
31225         prototype.
31226
31227         * lib/md5.h: Include <limits.h> unconditionally.
31228         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
31229         (__P): Remove; all uses removed.
31230         * lib/md5.c: Include "md5.h" first.
31231         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
31232         md5_buffer, md5_process_bytes, md5_process_block):
31233         Define with prototypes.
31234         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
31235         * lib/sha.c: Include "sha.h" first.
31236         Include <stdlib.h>, <string.h> unconditionally.
31237
31238         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
31239         * lib/memcmp.c (__ptr_t): Likewise.
31240         * lib/memrchr.c (__ptr_t): Likewise.
31241         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
31242         Include <string.h> unconditionally.
31243         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
31244         * lib/memchr.c: Include <stdlib.h> unconditionally.
31245         * lib/memchr.c (LONG_MAX): Remove.
31246         * lib/memrchr.c (LONG_MAX): Likewise.
31247         * lib/memchr.c (__memchr): Define via a prototype.
31248         * lib/memrchr.c (__memrchr): Likewise.
31249         * lib/memcmp.c (__P): Remove, and remove all uses.
31250         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
31251         Remove forward decls; no longer needed.
31252         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
31253         Use types required by C89 in prototype.
31254
31255         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
31256         * lib/savedir.c: Likewise.
31257         * lib/mkdir.c (free): Remove decl.
31258         * lib/rmdir.c (rmdir): Define with a prototype.
31259         * lib/savedir.c: Include savedir.h first, to test interface.
31260
31261         * lib/mktime.c (STDC_HEADERS): Remove.
31262         Include <stdlib.h>, <string.h> unconditionally.
31263
31264         * lib/modechange.c: Include <stdlib.h> unconditionally.
31265         (malloc): Remove decl.
31266
31267         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
31268         (free): Remove decl.
31269
31270         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
31271         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
31272         (This type really should be intptr_t, but that's a C99ism.)
31273         (_obstack_memcpy): Remove: all uses changed to memcpy.
31274         Include <string.h> unconditionally.
31275         (struct obstack): Assume __STDC__ for types of members
31276         chunkfun, freefun, extra_arg.
31277         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
31278         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
31279         obstack_begin, obstack_specify_allocation,
31280         obstack_specify_allocation_with_arg, obstack_chunkfun,
31281         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
31282         Remove unprototyped decls and the macros that use them.
31283         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
31284         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
31285         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
31286         (defined __STDC__ && __STDC__)]:
31287         Remove nonprototyped code.
31288         Include <stdlib.h> unconditionally.
31289         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
31290         _obstack_allocated_p, _obstack_free, obstack_free,
31291         _obstack_memory_used, print_and_abort):
31292         Define using prototypes.
31293         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
31294         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
31295         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
31296         obstack_next_free, obstack_object_size, obstack_room) [0]:
31297         Remove unused, unprototyped code.
31298
31299         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
31300
31301         * lib/physmem.c (physmem_total, physmem_available, main): Define
31302         with prototypes.
31303
31304         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
31305         (main): Define with a prototype.
31306
31307         * lib/posixver.c (getenv): Remove decl.
31308
31309         * lib/putenv.c (malloc): Returns void *, not char *.
31310         Include <string.h> unconditionally.
31311         (strchr, memcpy, NULL): Do not define.
31312
31313         * lib/readtokens.c: Include readtokens.h first, to test interface.
31314         Include <stdlib.h>, <string.h> unconditionally.
31315         (init_tokenbuffer): Define with a prototype.
31316
31317         * lib/regex.c (PARAMS): Remove.  All uses removed.
31318         All uses of _RE_ARGS removed, too.
31319         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31320         unconditionally.
31321         (bzero): Assume memset exists.
31322         (memcmp, memcpy, NULL): Remove.
31323         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
31324         char, or assignments to local vars of type signed char.
31325         (init_syntax_once, PREFIX(extract_number_and_incr),
31326         PREFIX(print_partial_compiled_pattern),
31327         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
31328         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
31329         PREFIX(regex_grow_registers), PREFIX(regex_compile),
31330         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
31331         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
31332         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
31333         wcs_compile_range, byte_compile_range, truncate_wchar,
31334         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
31335         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
31336         count_mbs_length, wcs_re_match_2_internal,
31337         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
31338         PREFIX(alt_match_null_string_p),
31339         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
31340         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
31341         regfree, PREFIX(extract_number)): Define with prototype.  Remove
31342         now-unnecessary declaration, if any.
31343         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
31344         regcomp, regexec):
31345         Remove now-unnecessary casts among pointer types.
31346         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
31347
31348         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
31349         (free): Remove decl.
31350
31351         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
31352
31353         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
31354         (free): Remove decl.
31355
31356         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
31357         * lib/xgetcwd.c: Likewise.
31358
31359         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
31360         (free): Remove decl.
31361
31362         * lib/strchrnul.c (strchrnul): Define with a prototype.
31363         Fix bug: c_in was not converted to char before searching.
31364
31365         The following changes are not K&R related:
31366
31367         * lib/group-member.h: Include <sys/types.h>, so that this file is
31368         self-contained.
31369         * lib/makepath.h: Likewise.
31370
31371         * lib/getusershell.c (readname, default_index, line_size, readname):
31372         Use size_t, not int, for sizes.
31373         (readname): If the size overflows, report an error instead of
31374         looping forever.
31375
31376 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31377
31378         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
31379         libc.
31380
31381 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31382
31383         * README: New section: portability guidelines.
31384
31385 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
31386
31387         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
31388         C89 spec.
31389
31390 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
31391
31392         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
31393
31394 2003-09-08  Paul Eggert  <eggert@twinsun.com>
31395
31396         Assume C89 or better; remove K&R cruft.
31397         A few of these changes were first proposed by Derek Robert Price
31398         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
31399
31400         * lib/addext.c: Include <string.h> unconditionally.
31401         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
31402         Don't declare getenv or malloc.
31403
31404         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
31405         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
31406         (NULL): Remove.
31407         (find_stack_direction, alloca): Use prototypes.
31408
31409         * lib/atexit.c (atexit): Define using a prototype.
31410
31411         * lib/basename.c, dirname.c, stripslash.c:
31412         Include <string.h> unconditionally.
31413
31414         * lib/bcopy.c: Include <stddef.h>.
31415         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
31416
31417         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
31418
31419         * lib/error.h (error, error_at_line, error_print_progname)
31420         [! (defined (__STDC__) && __STDC__)]: Remove decls.
31421         * lib/error.c: Include error.h first, to check interface.
31422         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
31423         (VA_START): Remove; all uses changeed to va_start.
31424         (exit, strerror): Remove decls.
31425         (error_print_progname): Prototype uncondionally.
31426         Don't include <errno.h>; no longer needed.
31427         (private_strerror): Remove.
31428         (error_tail): Always define.
31429         (error, error_at_line): Assume C89 or better; always use prototypes.
31430         * lib/fatal.c: Include "fatal.h" first, to test interface.
31431         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
31432         (VA_START): Remove; all uses changed to va_start.
31433         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
31434         this case.
31435         (exit): Remove decl.
31436         (fatal): Prototype unconditionally.  Assume va_start works.
31437         Abort at end, to pacify gcc.
31438
31439         * lib/euidaccess.c (main): Define with a prototype.
31440
31441         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
31442
31443         * lib/exitfail.c: Include <stdlib.h> unconditionally.
31444
31445         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
31446         prototypes.
31447         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
31448         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
31449         (getenv): Remove decl.
31450         (fnmatch): Define using a prototype.
31451         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
31452         (FCT): Define using a prototype.
31453
31454         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
31455
31456         * lib/gethostname.c: Include <stddef.h>.
31457         (gethostname): Define with prototype.  Length is size_t, not int.
31458
31459 2003-09-08  Paul Eggert  <eggert@twinsun.com>
31460
31461         Assume C89 or better; remove K&R cruft.
31462         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
31463         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
31464         string.h, getenv, malloc.
31465         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
31466         headers.
31467         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
31468         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
31469         do not check for strerror.
31470         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
31471         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
31472         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
31473         do not check for doprnt or vprintf.
31474         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
31475         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
31476
31477 2003-09-08  Paul Eggert  <eggert@twinsun.com>
31478
31479         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
31480         getversion.c should have been removed then, but was accidentally
31481         preserved.
31482
31483         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
31484         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
31485
31486 2003-09-08  Karl Berry  <karl@gnu.org>
31487
31488         * config/config.sub, config.guess, srclistvars.sh: update from savannah
31489                 config, forget about prep.
31490
31491         * config/depcomp, missing: update from automake.
31492
31493 2003-09-07  Paul Eggert  <eggert@twinsun.com>
31494
31495         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
31496         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
31497
31498 2003-09-07  Paul Eggert  <eggert@twinsun.com>
31499
31500         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
31501         copy_tm_result.  Bug reported by Simon Josefsson in
31502         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
31503
31504 2003-09-06  Paul Eggert  <eggert@twinsun.com>
31505
31506         * m4/time_r.m4: New file.
31507         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
31508         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
31509         is. Check for timegm declaration.
31510         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
31511         Do not check for gmtime_r.
31512         Replace mktime if __mktime_internal does not exist and if mktime
31513         hasn't been replaced already.
31514
31515 2003-09-06  Paul Eggert  <eggert@twinsun.com>
31516
31517         * lib/time_r.c, lib/time_r.h: New files.
31518
31519         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
31520         __localtime_r.
31521         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
31522         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
31523
31524         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
31525         __gmtime_r.
31526         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
31527         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
31528         Include <time_r.h>.
31529
31530         * lib/timegm.c: Switch to glibc implementation, with the following
31531         changes:
31532         [defined HAVE_CONFIG_H]: Include <config.h>.
31533         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
31534         (__mktime_internal) [!defined _LIBC]: New decl.
31535         (__gmtime_r) [!defined _LIBC]: New macro and function.
31536         (timegm): Use a prototype, since gnulib assumes C89.
31537         Do not bother declaring tmp to be const, as it's not really usefu.
31538         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
31539         (timegm): Declare only if HAVE_DECL_TIMEGM.
31540
31541 2003-09-06  Paul Eggert  <eggert@twinsun.com>
31542
31543         * MODULES.html.sh (func_all_modules): Add time_r.
31544         * modules/time_r: New file.
31545         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
31546         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
31547
31548 2003-09-03  Paul Eggert  <eggert@twinsun.com>
31549
31550         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
31551         Bug reported by Lute Kamstra in
31552         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
31553
31554         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
31555         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
31556         course with correspondingly smaller numbers for tomorrow and
31557         yesterday.  From Tadayoshi Funaba.  Originally installed into
31558         sh-utils on 1999-08-07, but the patch got lost (I guess during the
31559         coreutils merge?).
31560
31561 2003-08-31  Simon Josefsson  <jas@extundo.com>
31562
31563         * modules/timegm: New file.
31564         * MODULES.html.sh (func_all_modules): Add timegm.
31565
31566 2003-08-31  Simon Josefsson  <jas@extundo.com>
31567
31568         * m4/timegm.m4: New file.
31569
31570 2003-08-31  Simon Josefsson  <jas@extundo.com>
31571
31572         * lib/timegm.h: New file.
31573         * lib/timegm.c: New file.  Based on
31574         wget-1.8.2/src/http.c:mktime_from_utc.
31575
31576 2003-08-31  Karl Berry  <karl@gnu.org>
31577
31578         * lib/argp.h: update from libc.
31579
31580 2003-08-28  Bruno Haible  <bruno@clisp.org>
31581
31582         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
31583         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
31584         followed by '#define fnmatch fnmatch_posix' gives an error.
31585
31586 2003-08-28  Bruno Haible  <bruno@clisp.org>
31587
31588         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
31589         warning on QNX, which defines O_BINARY to 000000.
31590
31591 2003-08-27  Jim Meyering  <jim@meyering.net>
31592
31593         * m4/mkstemp.m4: Require that the system mkstemp be able to create
31594         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
31595         would fail after 32.  Reported by Danny Levinson.  Details here:
31596         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
31597
31598 2003-08-24  Bruno Haible  <bruno@clisp.org>
31599
31600         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
31601         MSVC7 <stdio.h> is included later.
31602
31603 2003-08-22  Simon Josefsson  <jas@extundo.com>
31604
31605         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
31606
31607 2003-08-20  Karl Berry  <karl@gnu.org>
31608
31609         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
31610
31611 2003-08-20  Bruno Haible  <bruno@clisp.org>
31612
31613         * modules/progname: New file.
31614         * MODULES.html.sh (func_all_modules): Add progname.
31615
31616 2003-08-20  Bruno Haible  <bruno@clisp.org>
31617
31618         * lib/progname.h: New file, from GNU gettext.
31619         * lib/progname.c: New file, from GNU gettext.
31620         * lib/progreloc.c: New file, from GNU gettext.
31621
31622 2003-08-19  Jim Meyering  <jim@meyering.net>
31623
31624         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
31625         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
31626
31627 2003-08-19  Bruno Haible  <bruno@clisp.org>
31628
31629         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
31630         more.
31631
31632 2003-08-19  Bruno Haible  <bruno@clisp.org>
31633
31634         * lib/xstrdup.c: Assume <string.h> exists.
31635
31636 2003-08-18  Paul Eggert  <eggert@twinsun.com>
31637
31638         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
31639         in makefile rules.
31640
31641 2003-08-18  Jim Meyering  <jim@meyering.net>
31642
31643         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
31644         * m4/lib-ld.m4: Likewise.
31645
31646 2003-08-18  Jim Meyering  <jim@meyering.net>
31647
31648         * lib/setenv.h: Indent nested cpp directive.
31649         * lib/vasnprintf.c: Remove trailing blanks.
31650
31651 2003-08-17  Simon Josefsson  <jas@extundo.com>
31652
31653         * modules/xstrndup: New file.
31654         * MODULES.html.sh (func_all_modules): Add xstrndup.
31655
31656 2003-08-17  Simon Josefsson  <jas@extundo.com>
31657
31658         * modules/argp: Fix autoconf macro name. Add more dependencies.
31659
31660 2003-08-17  Simon Josefsson  <jas@extundo.com>
31661
31662         * m4/xstrndup.m4: New file.
31663
31664 2003-08-17  Simon Josefsson  <jas@extundo.com>
31665
31666         * m4/argp.m4: New file.
31667
31668 2003-08-17  Simon Josefsson  <jas@extundo.com>
31669             Bruno Haible  <bruno@clisp.org>
31670
31671         * lib/xstrndup.h: New file.
31672         * lib/xstrndup.c: New file.
31673
31674 2003-08-17  Bruno Haible  <bruno@clisp.org>
31675
31676         * modules/strndup (Files, Include): Add lib/strndup.h.
31677
31678 2003-08-17  Bruno Haible  <bruno@clisp.org>
31679
31680         * modules/euidaccess (Files): Add lib/euidaccess.h.
31681
31682 2003-08-17  Bruno Haible  <bruno@clisp.org>
31683
31684         * lib/strndup.h: New file.
31685
31686 2003-08-17  Bruno Haible  <bruno@clisp.org>
31687
31688         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
31689         like AC_GNU_SOURCE.
31690         * modules/extensions (configure.ac): Comment out the invocation of
31691         gl_USE_SYSTEM_EXTENSIONS.
31692
31693 2003-08-16  Paul Eggert  <eggert@twinsun.com>
31694
31695         Merges from coreutils, etc.
31696         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
31697         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
31698         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
31699         fixing a typo.
31700         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
31701         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
31702
31703 2003-08-16  Paul Eggert  <eggert@twinsun.com>
31704
31705         Document merge from coreutils.
31706         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
31707         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
31708         * modules/utime: Add m4/utimes-null.m4.
31709
31710 2003-08-16  Paul Eggert  <eggert@twinsun.com>
31711
31712         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
31713         space, undoing this 2003-08-12 change:
31714         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
31715
31716 2003-08-16  Paul Eggert  <eggert@twinsun.com>
31717
31718         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
31719         strtoul.c from libc, undoing this 2003-08-12 change:
31720         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
31721
31722 2003-08-16  Jim Meyering  <jim@meyering.net>
31723
31724         Merges from coreutils.
31725         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
31726         prefix.  Adjust cache variables similarly.  Create 500 rather than
31727         just 300 files, to exercise bug on Darwin6.5, too.
31728         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
31729         $missing_dir.
31730         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
31731         AM_SYS_POSIX_TERMIOS.
31732         Reported by mkc@mathdogs.com.
31733         Also change use of $am_cv_sys_posix_termios
31734         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
31735         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
31736         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
31737         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
31738         in /proc/mounts until it finds one with matching device number.  This
31739         is unnecessary when the FILE argument *is* a mount point.  No stat call
31740         is necessary in that case.  So, disable the statvfs-testing code on
31741         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
31742         as RedHat bug# 84846.
31743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
31744         to 1MB, so as not to render systems with no stack size limit (e.g.,
31745         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
31746         Include <unistd.h>.  On some systems,
31747         it is required for the definition of _SC_PAGESIZE.
31748
31749 2003-08-16  Jim Meyering  <jim@meyering.net>
31750
31751         Merge from coreutils.
31752         * lib/xstrtoimax.c: #else #if -> #elif.
31753         * lib/xstrtoumax.c: Likewise.
31754
31755 2003-08-16  Jim Meyering  <jim@meyering.net>
31756
31757         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
31758         * m4/utimes.m4: Removed.
31759         * m4/utimes-null.m4: Renamed from utimes.m4.
31760
31761         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
31762         to 1MB, so as not to render systems with no stack size limit (e.g.,
31763         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
31764         Include <unistd.h>.  On some systems,
31765         it is required for the definition of _SC_PAGESIZE.
31766
31767 2003-08-16  Jim Meyering  <jim@meyering.net>
31768         and Paul Eggert  <eggert@cs.ucla.edu>
31769
31770         Merges from coreutils, etc.
31771
31772         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
31773         using the latest version from cvs.  This avoids problems with #line
31774         directives using a vendor (Sun) compiler.
31775         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
31776         Don't set GETGROUPS_LIB here; now it's
31777         done via getgroups.m4's wrapper function.
31778         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
31779         rather than just in sh-util/configure.in, so that the
31780         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
31781         same.
31782         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
31783         AC_FUNC_GETLOADAVG where to find getloadavg.c.
31784         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
31785         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
31786         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
31787         Remove code that is now done by the newly-required macros.
31788         Append $(EXEEXT) to DF_PROG.
31789         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
31790         Do not invoke or require the following here,
31791         since prereq.m4 or some gnulib .m4 now does this for us:
31792         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
31793         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
31794         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
31795         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
31796         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
31797         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
31798         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
31799         AC_FUNC_OBSTACK.
31800         Do not replace the following functions, as this is now the job
31801         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
31802         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
31803         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
31804         atexit getpass, strdup, getpagesize.
31805         Replace 'raise'.
31806         Do not check for the following functions, as this is now the job
31807         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
31808         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
31809         setregid.
31810         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
31811         Check for sys/sysctl.h.
31812         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
31813         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
31814         of checking for ssize_t ourselves.
31815
31816         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
31817         Require every macro that gnulib/modules/* suggests for us.
31818         (jm_PREREQ_ADDEXT): New macro.
31819         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
31820         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
31821
31822         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
31823         (gl_PHYSMEM): Use it.
31824         Also check for `table' function.
31825         Check for new headers and functions.
31826         Add check for sys/sysmp.h.
31827         With suggestions from Kaveh Ghazi.
31828         Ignore headers that are present but cannot be compiled.  This
31829         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
31830         C 5.4.
31831
31832 2003-08-15  Paul Eggert  <eggert@twinsun.com>
31833
31834         Document merge from coreutils.
31835         * modules/userspec: Depend on posixver.
31836         * modules/strftime: Depend on tzset.
31837
31838 2003-08-15  Paul Eggert  <eggert@twinsun.com>
31839
31840         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
31841         rather than tab, after '#' in shell-script copyright notices.
31842         Suggested by Bruno Haible.
31843
31844 2003-08-15  Paul Eggert  <eggert@twinsun.com>
31845
31846         * config/srclist-update: Use three spaces, rather than tab, after '#'
31847         in shell-script copyright notices.  Suggested by Bruno Haible.
31848         Remove unnecessary parenthesization in regular expression.
31849
31850 2003-08-15  Jim Meyering  <jim@meyering.net>
31851
31852         Merge from coreutils.
31853         * lib/xgethostname.c: Include <stdlib.h>.
31854         (xghostname): Don't exit for anything other than memory-related
31855         failure; just return NULL.
31856         * lib/userspec.c: Include "posixver.h".
31857         (parse_user_spec): Accept `.' as a separator only
31858         in pre-POSIX-200112 mode.
31859         * lib/strtoimax.c: Use #elif rather than #else #if.
31860         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
31861         Remove function, now that we can rely on a working tzset function.
31862         [!_LIBC]: Ensure that the required autoconf test has been run.
31863         [!defined _NL_CURRENT && HAVE_STRFTIME]:
31864         Use underlying_strftime for %r.
31865         * lib/sha.c: Merge in some clean-up and optimization changes from
31866         glibc.
31867         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
31868         Ensure that it is a multiple of 64.
31869         Rearrange loop exit tests so as to avoid performing an
31870         additional fread after encountering an error or EOF.
31871         * lib/realloc.c: Update copyright date.
31872
31873 2003-08-15  Jim Meyering  <jim@meyering.net>
31874         and Paul Eggert  <eggert@twinsun.com>
31875
31876         Merge from coreutils.
31877         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
31878         member but strut utmpx does not.  Needed for AIX 4.3.3.
31879         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
31880
31881 2003-08-15  Jim Meyering  <jim@meyering.net>
31882         and Paul Eggert  <eggert@cs.ucla.edu>
31883
31884         Merges from coreutils, etc.
31885         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
31886         Require gl_FUNC_TZSET_CLOBBER.
31887         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
31888         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
31889         members.
31890
31891 2003-08-14  Paul Eggert  <eggert@twinsun.com>
31892
31893         Help the merge from coreutils.
31894         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
31895         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
31896         * m4/tzset.m4: Use it too.
31897
31898 2003-08-14  Paul Eggert  <eggert@twinsun.com>
31899
31900         * modules/tzset: New file.
31901
31902 2003-08-14  Jim Meyering  <jim@meyering.net>
31903
31904         Merges from coreutils.
31905         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
31906         variable names, rather than @FNMATCH_H@.
31907         * modules/alloca: Likewise for $(ALLOCA_H).
31908
31909         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
31910         the three copies of the literal target, `fnmatch.h'.
31911         * modules/alloca (alloca.h): Likewise.
31912
31913 2003-08-14  Jim Meyering  <jim@meyering.net>
31914
31915         Merge from coreutils.
31916         * m4/tzset.m4: New file.
31917         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
31918         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
31919         otherwise, AIX 5.1 systems would end up using the latter.
31920         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
31921         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
31922         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
31923         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
31924
31925 2003-08-14  Jim Meyering  <jim@meyering.net>
31926
31927         Merge from coreutils.
31928         * lib/obstack.h: Whitespace changes.
31929         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
31930         and xcalloc return values.
31931         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
31932         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
31933         hang on OSF/1 5.1 for DIR on both local and remote file systems.
31934         Reported by (and fix confirmed by) Nelson H. F. Beebe.
31935         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
31936         error from mntctl.
31937         Use mntctl's return value to drive the entry-processing loop, since
31938         we can't rely on the value of the vmt_length member in the last
31939         entry.  On some systems doing so could result in exhausting
31940         virtual memory.  Based in part on a patch from Mike Jetzer.
31941
31942 2003-08-14  Jim Meyering  <jim@meyering.net>
31943         and Paul Eggert  <eggert@twinsun.com>
31944
31945         Merges from coreutils, plus other fixes.
31946         * lib/physmem.c: Merge in portability changes from gcc/libiberty
31947         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
31948         for credits and details.  Thanks to Kaveh Ghazi for helping
31949         to keep these files in sync.
31950         (ARRAY_SIZE): Define it.
31951         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
31952         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
31953         (memcasecmp): Don't assume size_t fits in unsigned int.
31954         Remove casts and duplicate code.
31955         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
31956         (memcpy): Remove definition.
31957         Merge in some clean-up and optimization changes from glibc.
31958         [BLOCKSIZE]: Move definition to top of file.
31959         Ensure that it is a multiple of 64.
31960         Rearrange loop exit tests so as to avoid performing an
31961         additional fread after encountering an error or EOF.
31962         * lib/md5.h (md5_uintptr): Define.
31963         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
31964         return to the initial working directory.  Preserve errno
31965         for caller.
31966         * lib/idcache.c: Include "xalloc.h".
31967         (xmalloc, xrealloc): Remove decls.
31968         (getuser): Remove casts no longer required in C89.
31969         * lib/human.c: Include stdio.h, for sprintf.
31970         * lib/group-member.c: Include "xalloc.h".
31971         (xmalloc, xrealloc): Remove decls.
31972         (get_group_info): Remove casts no longer required in C89.
31973         * lib/getusershell.c (readname): Remove casts no longer required in
31974         C89.
31975         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
31976         * lib/getline.c: Whitespace fix, from coreutils.
31977
31978 2003-08-13  Paul Eggert  <eggert@twinsun.com>
31979
31980         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
31981         Check for isascii.
31982
31983         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
31984         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
31985         Undo previous (whitespace-only) change.
31986
31987 2003-08-13  Paul Eggert  <eggert@twinsun.com>
31988
31989         * lib/exclude.c: Include <ctype.h>
31990         (IN_CTYPE_DOMAIN): New macro.
31991         (is_space): New fn.
31992         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
31993         and empty lines.
31994
31995         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
31996         Undo previous (whitespace-only) change.
31997
31998 2003-08-13  Paul Eggert  <eggert@twinsun.com>
31999
32000         * config/srclist-update: Change update back to the old behavior,
32001         leaving whitespace alone.  Use one 'sed' command rather than a
32002         pipeline.
32003         (fixlicense): Now a variable, not a function.
32004         (remove_trailing_blanks): Remove.
32005         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
32006         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
32007         Undo previous (whitespace-only) change.
32008
32009 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32010
32011         Merge from coreutils.
32012         * modules/euidaccess: Add lib_SOURCES, include for new
32013         file euidaccess.h
32014
32015 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32016
32017         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
32018         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
32019         Normalize leading white space and remove trailing white space.
32020
32021         Merge from coreutils
32022         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
32023
32024         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
32025         0.12.1.  These files are now being upgraded automatically by
32026         ../config/srclist-update.
32027
32028 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32029
32030         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
32031         Normalize leading white space and remove trailing white space.
32032         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
32033         notice, as per ../config/srclist-update.
32034
32035         Merge from coreutils.
32036         * lib/euidaccess.h: New file.
32037         * lib/euidaccess.c: Include it.
32038         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
32039         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
32040         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
32041
32042 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32043
32044         * config/srclist-update: Add copyright notice.
32045         (remove_id_lines, remove_trailing_blanks): New constants.
32046         (fixfile): Use them to normalize spacing a bit in copied files.
32047         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
32048         Normalize leading white space and remove trailing white space.
32049
32050         * config/texinfo.tex: Sync with texinfo.
32051
32052         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
32053         strtoul.c from libc, to merge coreutils whitespace changes.
32054
32055         * config/srclist.txt: Get the following m4 files from gettext:
32056         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
32057         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
32058         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
32059         wint_t.m4.
32060
32061 2003-08-12  Karl Berry  <karl@gnu.org>
32062
32063         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
32064         been made.
32065
32066 2003-08-11  Paul Eggert  <eggert@twinsun.com>
32067
32068         * modules/gnu-source, m4/gnu-source.m4:
32069         Remove; we're assuming Autoconf 2.54 or later now.
32070         Suggested by Bruno Haible.
32071         * MODULES.html.sh (func_all_modules): Remove gnu-source.
32072
32073 2003-08-11  Bruno Haible  <bruno@clisp.org>
32074
32075         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
32076
32077 2003-08-11  Bruno Haible  <bruno@clisp.org>
32078
32079         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
32080         (vasnprintf): Use it instead of wcslen.
32081
32082 2003-08-11  Bruno Haible  <bruno@clisp.org>
32083
32084         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
32085         value to ensure that _Bool promotes to int. Use #define for _Bool when
32086         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
32087
32088 2003-08-10  Karl Berry  <karl@gnu.org>
32089
32090         * lib/regex.h: update from libc (whitespace fix).
32091
32092 2003-08-09  Paul Eggert  <eggert@twinsun.com>
32093
32094         Merge some files from coreutils.  These changes were
32095         originally made by Jim Meyering.
32096         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
32097         many older Unixes require this.
32098         * lib/alloca.c (alloca): Remove cast to argument of free;
32099         no longer needed in C89.
32100         * lib/alloca_.h, regex.h: Fix white space to match
32101         what GNU indent does.
32102
32103 2003-08-09  Paul Eggert  <eggert@twinsun.com>
32104
32105         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
32106         apparently Emacs's Unicode mode got confused before my 2003-08-05
32107         checkin.
32108
32109 2003-08-08  Paul Eggert  <eggert@twinsun.com>
32110
32111         * m4/extensions.m4: New file.
32112         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
32113         Require gl_USE_SYSTEM_EXTENSIONS.
32114         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
32115         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
32116
32117 2003-08-08  Paul Eggert  <eggert@twinsun.com>
32118
32119         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
32120         * modules/extensions, modules/gnu-source: New files.
32121         * modules/timespec, modules/unlocked-io: Depend on extensions.
32122
32123 2003-08-07  Paul Eggert  <eggert@twinsun.com>
32124
32125         * modules/restrict: New file.
32126         * MODULES.html.sh (func_all_modules): Add restrict.
32127         * modules/regex: Depend on restrict.
32128
32129 2003-08-07  Paul Eggert  <eggert@twinsun.com>
32130
32131         * m4/restrict.m4: New file.
32132         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
32133
32134 2003-08-07  Bruno Haible  <bruno@clisp.org>
32135
32136         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
32137         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
32138
32139 2003-08-07  Bruno Haible  <bruno@clisp.org>
32140
32141         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
32142         makes the module 'getndelim2' compatible with the module 'getline'.
32143
32144 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32145
32146         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
32147         byte with "\201" to avoid glitches when editing that source file
32148         with multi-gnome-terminal.
32149
32150 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32151
32152         * lib/bumpalloc.h: Remove.
32153
32154 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32155
32156         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
32157         * modules/bumpalloc: Remove.
32158
32159 2003-08-04  Paul Eggert  <eggert@twinsun.com>
32160
32161         * lib/getloadavg.c: Change copyright notice and spacing to conform to
32162         GNU coding style.
32163
32164         Merge from coreutils.
32165         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
32166         1. From glibc.
32167         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
32168         from Karl Berry, implemented by Jim Meyering.
32169         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
32170         from Dmitry V. Levin.
32171         Remove anachronistic cast of xrealloc.
32172         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
32173         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
32174         type. Otherwise, it wouldn't compile with at least /bin/cc on
32175         ymp-cray-unicos9.0.2.X.
32176         Combine two mostly-identical uses of alloca into one.
32177         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
32178
32179 2003-08-04  Dave Love  <d.love@dl.ac.uk>
32180
32181         [From Emacs.]
32182
32183         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
32184         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
32185         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
32186         obsolete NLIST_NAME_UNION.
32187         [__GNU__]: Undef BSD and FSCALE.
32188         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
32189
32190 2003-08-03  Paul Eggert  <eggert@twinsun.com>
32191
32192         * lib/stdbool_.h (_Bool): Make it signed char, instead of
32193         an enum type, so that it's guaranteed to promote to int.  See:
32194         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
32195
32196 2003-08-03  Karl Berry  <karl@gnu.org>
32197
32198         * config/depcomp: update from automake.
32199
32200 2003-07-31  Paul Eggert  <eggert@twinsun.com>
32201
32202         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
32203         (strerror): Don't assume that a printable int fits in 14 bytes.
32204
32205 2003-07-31  Bruno Haible  <bruno@clisp.org>
32206
32207         * modules/getpass-gnu: New file.
32208         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
32209
32210 2003-07-31  Bruno Haible  <bruno@clisp.org>
32211
32212         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
32213
32214 2003-07-24  Karl Berry  <karl@gnu.org>
32215
32216         * config/missing: update from automake.
32217
32218 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
32219             Bruno Haible  <bruno@clisp.org>
32220
32221         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
32222         * lib/getline.c (getline, getdelim): Likewise.
32223         Remove _GNU_SOURCE define; now it's defined in config.h through
32224         m4/getline.m4.
32225
32226 2003-07-23  Karl Berry  <karl@gnu.org>
32227
32228         * config/config.sub: update from prep.
32229
32230 2003-07-22  Paul Eggert  <eggert@twinsun.com>
32231
32232         * modules/xalloc (Depends-on): Add exitfail.
32233         * modules/xmemcoll: Likewise.
32234
32235 2003-07-22  Paul Eggert  <eggert@twinsun.com>
32236
32237         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
32238         over-parenthesization in macros.
32239
32240         Sync with coreutils.
32241
32242         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
32243         required by C99.
32244
32245         Use `exit_failure' for xalloc and xmemcoll instead of their own
32246         private exit-failure variables.
32247         * lib/xalloc.h (xalloc_exit_failure): Remove.
32248         * lib/xmalloc.c: Likewise.  Include exitfail.h.
32249         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
32250         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
32251         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
32252         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
32253
32254 2003-07-20  Jim Meyering  <jim@meyering.net>
32255
32256         * modules/closeout (Depends-on): Add exitfail.
32257         Suggestion from Bruno Haible.
32258
32259 2003-07-19  Karl Berry  <karl@gnu.org>
32260
32261         * config/config.sub: update from prep.
32262
32263 2003-07-18  Paul Eggert  <eggert@twinsun.com>
32264
32265         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
32266         Remove.
32267         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
32268         to test that it can stand by itself.  Include "exitfail.h".
32269         Clients should set exit_failure instead.
32270         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
32271
32272 2003-07-18  Bruno Haible  <bruno@clisp.org>
32273
32274         * modules/getndelim2: New file.
32275         * modules/getline: Share files with module getndelim2.
32276         * modules/getnline: Depend on getndelim2 instead of sharing files with
32277         it. Add getnline.c to lib_SOURCES.
32278         * MODULES.html.sh (func_all_modules): Add getndelim2.
32279
32280 2003-07-18  Bruno Haible  <bruno@clisp.org>
32281
32282         * m4/getndelim2.m4: New file.
32283         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
32284         invoke gl_PREREQ_GETNDELIM2.
32285         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
32286         gl_PREREQ_GETNDELIM2.
32287         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
32288         gl_GETNDELIM2.
32289
32290 2003-07-18  Bruno Haible  <bruno@clisp.org>
32291
32292         * lib/getndelim2.h: New file.
32293         * lib/getndelim2.c: Make into a module of its own. Include config.h,
32294         getndelim2.h.
32295         (getndelim2): Make non-static. Change return type to ssize_t.
32296         * lib/getline.h: Change argument names.
32297         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
32298         * lib/getnline.c: Include getndelim2.h.
32299
32300 2003-07-18  Andreas Schwab  <schwab@suse.de>
32301
32302         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
32303
32304 2003-07-17  Karl Berry  <karl@gnu.org>
32305
32306         * config/config.sub: update from prep.
32307
32308 2003-07-17  Bruno Haible  <bruno@clisp.org>
32309
32310         * modules/getnline: New file.
32311         * modules/getline: Add lib/getndelim2.c to source file list.
32312         * MODULES.html.sh (func_all_modules): Add getnline.
32313
32314 2003-07-17  Bruno Haible  <bruno@clisp.org>
32315
32316         * m4/getnline.m4: New file.
32317
32318 2003-07-17  Bruno Haible  <bruno@clisp.org>
32319
32320         * m4/Makefile.am.in: Remove file.
32321         * m4/Makefile.am: Remove file.
32322         * m4/Makefile.in: Remove file.
32323
32324 2003-07-17  Bruno Haible  <bruno@clisp.org>
32325
32326         * lib/getnline.h: New file.
32327         * lib/getnline.c: New file.
32328         * lib/getndelim2.c: New file, extracted from getline.c.
32329         (getndelim2): Renamed from getdelim2, with added nmax argument.
32330         * lib/getline.c: Include getndelim2.c.
32331         (getdelim2): Moved out to getndelim2.c.
32332         (getline, getdelim): Update.
32333
32334 2003-07-17  Bruno Haible  <bruno@clisp.org>
32335
32336         * lib/Makefile.am: Remove file.
32337         * lib/Makefile.in: Remove file.
32338
32339 2003-07-17  Bruno Haible  <bruno@clisp.org>
32340
32341         * configure.in: Remove file.
32342         * Makefile.in: Remove file.
32343
32344 2003-07-17  Bruno Haible  <bruno@clisp.org>
32345
32346         * MODULES.html.sh: Put the </BODY> right before </HTML>.
32347
32348 2003-07-16  Karl Berry  <karl@gnu.org>
32349
32350         * config/srclist-update: was running fixlicense twice, which caused
32351                 texinfo.tex to be nullified for some reason.  Simplify,
32352                 $gplsrc is no longer needed as far as I can see?
32353
32354 2003-07-16  Jim Meyering  <jim@meyering.net>
32355
32356         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
32357
32358 2003-07-15  Paul Eggert  <eggert@twinsun.com>
32359
32360         * config/srclist.txt: Get the following files from gettext-runtime/intl
32361         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
32362         ref-del.sin.  From Bruno Haible.
32363         * config/srclist-update (fixfile): Change grep pattern again, since the
32364         previous fix didn't work (there was another trailing $).  Use
32365         '[$]' to escape the $s.
32366
32367 2003-07-15  Karl Berry  <karl@gnu.org>
32368
32369         * lib/vasnprintf.c: update from gettext.
32370
32371 2003-07-15  Karl Berry  <karl@gnu.org>
32372
32373         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
32374         gets expanded when surrounded by '$'.
32375
32376 2003-07-15  Jim Meyering  <jim@meyering.net>
32377
32378         * modules/save-cwd: Don't depend on error.  From Derek Price.
32379
32380 2003-07-15  Jim Meyering  <jim@meyering.net>
32381
32382         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
32383
32384 2003-07-14  Simon Josefsson  <jas@extundo.com>
32385
32386         * modules/mempcpy: New file.
32387         * MODULES.html.sh (func_all_modules): Add mempcpy.
32388
32389 2003-07-14  Simon Josefsson  <jas@extundo.com>
32390
32391         * m4/mempcpy.m4: New file.
32392
32393 2003-07-14  Simon Josefsson  <jas@extundo.com>
32394
32395         * lib/mempcpy.h: New file.
32396         * lib/mempcpy.c: New file.
32397
32398 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32399
32400         * modules/getdate, modules/posixtm: Depend on mktime.
32401
32402 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32403
32404         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
32405         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
32406         unicodeio.c, unicodeio.h, unlocked-io.h:
32407         Switch from LGPL to GPL.
32408
32409 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32410
32411         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
32412         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
32413         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
32414         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
32415         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
32416         updated automatically by ../config/srclist-update.  This changes
32417         their license from LPGL to GPL.
32418
32419 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32420
32421         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
32422         assumed to refer to the root of the most recent stable gettext version.
32423         * config/srclistvars.sh: Add defaults for eggert.
32424         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
32425         Match "This program" as well as "The program".  This is needed
32426         for gettext.
32427
32428 2003-07-14  Jim Meyering  <jim@meyering.net>
32429
32430         Don't emit diagnostics.  Let callers do that.
32431         * lib/save-cwd.c: Don't include "error.h".
32432         (save_cwd): Don't call error.  Ensure that errno is valid
32433         when returning nonzero.
32434
32435         * lib/save-cwd.h (restore_cwd): Update prototype.
32436         * lib/save-cwd.c (restore_cwd): Remove two parameters.
32437         Simplify.  Don't call error upon failure.  Let callers do that.
32438         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
32439         when auditing is enabled.  But don't bother updating the #if.
32440
32441 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
32442
32443         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
32444         it breaks C++ compilation.
32445         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
32446
32447 2003-07-10  Simon Josefsson  <jas@extundo.com>
32448
32449         * modules/strchrnul (Makefile.am): Add strchrnul.h.
32450
32451 2003-07-10  Jim Meyering  <jim@meyering.net>
32452
32453         * m4/clock_time.m4: Remove trailing blank.
32454         * m4/intmax_t.m4: Likewise.
32455
32456 2003-07-10  Jim Meyering  <jim@meyering.net>
32457
32458         * lib/vasnprintf.c: Remove trailing blanks.
32459         Make cpp indentation consistent.
32460
32461 2003-07-09  Paul Eggert  <eggert@twinsun.com>
32462
32463         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
32464         posixver.c, strftime.c, strnlen.c, strverscmp.c:
32465         Switch from LGPL to GPL.
32466
32467 2003-07-09  Paul Eggert  <eggert@twinsun.com>
32468
32469         * config/srclist.txt: Sort sublists.  Add
32470         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
32471         that differ from gnulib for one reason or another; we'd like this list
32472         to be smaller but for now let's document what we have.
32473
32474 2003-07-08  Paul Eggert  <eggert@twinsun.com>
32475
32476         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
32477         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
32478         and sweeter "eval x=$x".
32479         * config/srclist.txt: Get lib/argp* from glibc.
32480
32481 2003-07-07  Paul Eggert  <eggert@twinsun.com>
32482
32483         * lib/mktime.c: Fix some boundary cases and remove need for floating
32484         point.
32485
32486         Issue a compile-time diagnostic if time_t is floating point, or if
32487         two's complement arithmetic is not in effect, or if arithmetic
32488         right shift does not propagate the sign.  These assumptions were
32489         all in the original code but they weren't checked.
32490
32491         (TIME_T_MIDPOINT, verify): New macros.
32492         (__isleap): Remove; it has integer overflow problems.
32493         (leapyear): New function, without those problems.
32494         (ydhms_tm_diff): Remove; splitting into two parts.
32495         (ydhms_diff): New function, containing the arithmetic part of
32496         the old ydhms_tm_diff function.  Issue a compile-time
32497         diagnostic if we are not using C99 integer division.
32498         Avoid casts when possible.
32499         (guess_time_tm): New function, containing the checking part of
32500         the old ydhms_tm_diff function.  Return the new value, rather than
32501         the difference between it and the old.  Accept a new argument T
32502         so that *T specifies the old value.  Check for overflow in the result.
32503
32504         (__mktime_internal): Use a time_t offset, not a long int offset.
32505         This undoes the 2003-06-04 change, which is no longer needed now
32506         that we have better overflow checking.
32507         (localtime_offset): Likewise.
32508
32509         (__mktime_internal): Avoid harmful overflow on hosts where time_t
32510         and long are 64-bit but int is only 32-bit.
32511         (ydhms_diff): Use long int to store year1 and yday1.
32512         Issue a compile-time diagnostic if long int is not wide enough.
32513
32514         (__mktime_internal): Use long int to store adjusted year and yday.
32515         Use plain C rather than preprocessor commands, if that doesn't
32516         affect efficiency.
32517         Check for overflow (and try to repair) after each probe
32518         rather than checking only at the very end.  This avoids some bugs
32519         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
32520         does not equal GMT offset at maximum time).
32521         Use integer to check for overflow rather than floating point; this
32522         is more portable to non-IEEE hosts, and is a tad faster.
32523         When we detect that we are oscillating between two values,
32524         don't check whether tm_isdst has the requested value, since
32525         we already know the answer.  When tm_isdst has the wrong value,
32526         use a different heuristic to find the right one, based on the
32527         extreme values actually observed in practice in tz2003a,
32528         rather than the (overly optimistic) "previous 3 calendar quarters".
32529
32530         (not_equal_tm, print_tm, check_result): Use "const T" rather than
32531         "T const" to accommodate glibc style.
32532         (check_result): Use less-confusing report format.  "long" -> "long int.
32533         (main): Likewise.
32534         Don't loop if the iteration overflows time_t.
32535         Allow a negative step in the iteration.
32536
32537 2003-07-06  Karl Berry  <karl@gnu.org>
32538
32539         * config/depcomp: update from automake.
32540         * config/config.sub: update from prep.
32541
32542 2003-07-03  Karl Berry  <karl@gnu.org>
32543
32544         * config/config.guess: update from prep.
32545
32546 2003-07-01  Paul Eggert  <eggert@twinsun.com>
32547
32548         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
32549         xreadlink.c now includes it unconditionally.
32550
32551 2003-07-01  Paul Eggert  <eggert@twinsun.com>
32552
32553         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
32554         having it depend on HAVE_SYS_TYPES_H.
32555
32556 2003-07-01  Bruno Haible  <bruno@clisp.org>
32557
32558         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
32559         <sys/types.h> should be sufficient.
32560         Reported by Paul Eggert.
32561
32562 2003-06-26  Karl Berry  <karl@gnu.org>
32563
32564         * config/depcomp: update from automake.
32565
32566 2003-06-26  Bruno Haible  <bruno@clisp.org>
32567
32568         * modules/human: Depend on module stdbool.
32569
32570 2003-06-25  Bruno Haible  <bruno@clisp.org>
32571
32572         * modules/readlink: New file.
32573         * modules/xreadlink: Depend on it.
32574         * MODULES.html.sh (func_all_modules): Add readlink.
32575
32576 2003-06-25  Bruno Haible  <bruno@clisp.org>
32577
32578         * m4/readlink.m4: New file.
32579
32580 2003-06-25  Bruno Haible  <bruno@clisp.org>
32581
32582         * lib/readlink.c: New file.
32583
32584 2003-06-22  Karl Berry  <karl@gnu.org>
32585
32586         * config/srclist.txt: update mkinstalldirs from automake.
32587         * config/mkinstalldirs: update.
32588
32589 2003-06-22  Bruno Haible  <bruno@clisp.org>
32590
32591         Portability to mingw32.
32592         * m4/ssize_t.m4: New file, from GNU gettext.
32593         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
32594         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
32595
32596 2003-06-22  Bruno Haible  <bruno@clisp.org>
32597
32598         * modules/safe-read: Add m4/ssize_t.m4.
32599         * modules/xreadlink: Add m4/ssize_t.m4.
32600
32601 2003-06-20  Bruno Haible  <bruno@clisp.org>
32602
32603         Assume C89, so PARAMS isn't needed.
32604         * lib/unicodeio.h (PARAMS): Remove.
32605         * lib/unicodeio.c: Don't use PARAMS.
32606
32607 2003-06-18  Karl Berry  <karl@gnu.org>
32608
32609         * config/config.{guess,sub}: update from prep.
32610
32611 2003-06-18  Jim Meyering  <jim@meyering.net>
32612
32613         Merge changes from coreutils.
32614         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
32615         Remove explicit declarations of xmalloc and realloc.
32616         Include xalloc.h.
32617         (read_utmp): Remove anachronistic cast of xmalloc.
32618
32619 2003-06-17  Paul Eggert  <eggert@twinsun.com>
32620
32621         Assume C89, so PARAMS isn't needed.
32622         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
32623         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
32624         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
32625         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
32626         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
32627         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
32628         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
32629         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
32630         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
32631         lib/xstrtod.h, lib/xstrtol.h: Likewise.
32632         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
32633         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
32634         no longer needed. Anyway, config.h should always be included before any
32635         other file.
32636
32637 2003-06-11  Simon Josefsson  <jas@extundo.com>
32638
32639         * modules/sysexits: New file.
32640         * MODULES.html.sh (func_all_modules): Add sysexits.
32641
32642 2003-06-11  Simon Josefsson  <jas@extundo.com>
32643
32644         * lib/sysexit_.h: New file.
32645
32646 2003-06-11  Derek Price  <derek@ximbiot.com>
32647
32648         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
32649         necessary.
32650
32651 2003-06-11  Bruno Haible  <bruno@clisp.org>
32652
32653         * m4/sysexits.m4: New file.
32654
32655 2003-06-10  Simon Josefsson  <jas@extundo.com>
32656
32657         * lib/argp.h: New file, from glibc.
32658         * lib/argp-ba.c: New file, from glibc.
32659         * lib/argp-eexst.c: New file, from glibc.
32660         * lib/argp-fmtstream.c: New file, from glibc.
32661         * lib/argp-fmtstream.h: New file, from glibc.
32662         * lib/argp-fs-xinl.c: New file, from glibc.
32663         * lib/argp-help.c: New file, from glibc.
32664         * lib/argp-namefrob.h: New file, from glibc.
32665         * lib/argp-parse.c: New file, from glibc.
32666         * lib/argp-pv.c: New file, from glibc.
32667         * lib/argp-pvh.c: New file, from glibc.
32668         * lib/argp-xinl.c: New file, from glibc.
32669
32670 2003-06-10  Simon Josefsson  <jas@extundo.com>
32671
32672         * modules/strchrnul: New file.
32673
32674 2003-06-10  Simon Josefsson  <jas@extundo.com>
32675
32676         * modules/argp: New file.
32677
32678 2003-06-10  Simon Josefsson  <jas@extundo.com>
32679
32680         * m4/strchrnul.m4: New file.
32681
32682 2003-06-10  Simon Josefsson  <jas@extundo.com>
32683
32684         * lib/strchrnul.h: New file.
32685         * lib/strchrnul.c: New file.
32686
32687 2003-06-10  Bruno Haible  <bruno@clisp.org>
32688
32689         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
32690
32691 2003-06-07  Karl Berry  <karl@gnu.org>
32692
32693         * config/config.{guess,sub}: update from prep.
32694
32695 2003-06-07  Jim Meyering  <jim@meyering.net>
32696
32697         * modules/strtod: Use $(...) notation, not @...@ for
32698         AC_REPLACE'd variables.
32699         * modules/localcharset: Likewise.
32700
32701 2003-06-07  Jim Meyering  <jim@meyering.net>
32702
32703         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
32704         in place of my name in the copyright comment.
32705         Remove definition and uses of __P.
32706
32707         From coreutils.
32708         * lib/stat.c: Don't declare xmalloc explicitly.
32709         Instead, include "xalloc.h".
32710         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
32711         xrealloc, and xcalloc return values.
32712         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
32713         Improve comment.
32714         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
32715
32716 2003-06-07  Bruno Haible  <bruno@clisp.org>
32717
32718         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
32719         avoid AC_CONFIG_LINKS.
32720         * modules/fnmatch (Makefile.am): Use explicit creation rule for
32721         fnmatch.h, to avoid AC_CONFIG_LINKS.
32722         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
32723
32724 2003-06-07  Bruno Haible  <bruno@clisp.org>
32725
32726         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
32727         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
32728         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
32729         directory.
32730         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
32731         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
32732         directory.
32733
32734 2003-06-06  Jim Meyering  <jim@meyering.net>
32735
32736         Merge from coreutils.
32737         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
32738         Consolidate declarations and initializations of *_base* locals.
32739
32740         Merge from coreutils.
32741         This avoids a core dump on systems without GNU putenv,
32742         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
32743         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
32744         (unsetenv): New static function, from GNU libc.
32745         (rpl_putenv): Use it.
32746
32747         * lib/modechange.c: Remove trailing blanks.
32748
32749         Merge from coreutils.
32750         * lib/fsusage.c: Remove declaration of statfs.
32751         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
32752
32753         * lib/posixtm.c: Include <stdbool.h> unconditionally.
32754
32755 2003-06-06  Jim Meyering  <jim@meyering.net>
32756
32757         * lib/stdbool_.h: Renamed from stdbool.h.in.
32758
32759 2003-06-06  Jim Meyering  <jim@meyering.net>
32760             Bruno Haible  <bruno@clisp.org>
32761
32762         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
32763         Adjust Makefile.am snippet not to redirect directly to target.
32764         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
32765
32766 2003-06-05  Paul Eggert  <eggert@twinsun.com>
32767
32768         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
32769         mismatch, look in future quarters as well as past.  This fixes a
32770         bug when processing fall-backwards gaps immediately after a long
32771         period of daylight-saving time.
32772
32773         * lib/mktime.c: Assume freestanding C89 or better.
32774         (HAVE_LIMITS_H): Remove.  Assume it's 1.
32775         (__P): Remove; not used.
32776         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
32777         (mktime, not_equal_tm, print_tm, check_result,
32778         main): Use prototypes.  Use const * where appropriate.
32779         (main): Fix typo in testing code that uncovered by above changes.
32780         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
32781
32782 2003-06-04  Paul Eggert  <eggert@twinsun.com>
32783
32784         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
32785         locale.h, localeconv.  This merges changes from coreutils.
32786
32787         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
32788         It can be removed after the next Autoconf is released.
32789         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
32790         needed.
32791
32792 2003-06-04  Paul Eggert  <eggert@twinsun.com>
32793
32794         * lib/mktime.c: Fix Debian bug 177940
32795         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
32796         (localtime_offset): Now long int, not time_t, because we want it
32797         to be guaranteed to be signed.  All uses changed.
32798         (__mktime_internal): If overflow would occur when adding offset,
32799         don't add it.
32800
32801         Merge 'human' changes from coreutils.  Rewrite to support
32802         locale-specific notations like thousands separators.
32803         * lib/human.c: Simplify authorship notice.
32804         Include human.h immediately after config.h.
32805         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
32806         <limits.h>: Do not include, since human.h does.
32807         (SIZE_MAX, UINTMAX_MAX): New macros.
32808         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
32809         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
32810         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
32811         (power_letter): Renamed from suffixes.
32812         (generate_suffix_backwards): Remove.
32813         (adjust_value): Now takes int style (because of human.h changes)
32814         and long double value (for greater precision on some platforms).
32815         (group_number): New function.
32816         (human_readable): Use it.  Use integer options, not enum.
32817         Put the options before the sizes in the arg list.
32818         Support all the new options.
32819         The old human_readable function has been removed;
32820         use inttostr.h instead.
32821         (human_readable, default_block_size, humblock):
32822         Use uintmax_t, not int, for block sizes.
32823         (human_readable_inexact, block_size_types): Remove.
32824         (block_size_opts): New constant.
32825         (human_options): Renamed from human_block_size, with new signature
32826         that allows block sizes up to UINTMAX_MAX.  All callers changed.
32827         * lib/human.h: Add copyright and authorship notice.
32828         Include <limits.h> and <stdbool.h> unconditionally.
32829         (PARAMS): Remove.  All uses removed.
32830         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
32831         (enum human_inexact_style): Remove tag; now a nameless enum.
32832         (human_floor, human_ceiling, human_round_to_even): Now have
32833         values 2, 0, 1 rather than -1, 1, 0.
32834         (human_group_digits, human_suppress_point_zero, human_autoscale,
32835         human_base_1024, human_SI, human_B): New constants.
32836         (human_readable_inexact, human_block_size): Remove.
32837         (human_readable): Size args are now uintmax_t, not int.
32838         (human_options): New decl.
32839
32840         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
32841         unnecessary now that we assume C89 or better.  This change
32842         imported from coreutils.
32843
32844         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
32845         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
32846         in the 2003-05-30 sync from glibc.
32847
32848         .h files should stand alone, but we shouldn't include <sys/types.h>
32849         if we can get away with just <stddef.h>.
32850
32851         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
32852         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
32853         rather than <sys/types.h>, as we merely need size_t.
32854         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
32855         to get size_t.
32856         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
32857         Include <stdio.h>, to get FILE.
32858         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
32859         memcasecmp.h has included <stddef.h> and all we need is size_t.
32860         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
32861         our interface, instead of including <sys/types.h>
32862
32863 2003-06-04  Paul Eggert  <eggert@twinsun.com>
32864
32865         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
32866         now, as glibc mktime is buggy on non-glibc systems.
32867
32868 2003-06-03  Karl Berry  <karl@gnu.org>
32869
32870         * config/config.sub: update from prep.
32871
32872 2003-06-02  Paul Eggert  <eggert@twinsun.com>
32873
32874         [from coreutils]
32875         Fix some minor time-related bugs with POSIX time arguments.
32876         Some valid time stamps were being rejected (notably -1, and
32877         time stamps before 1900 on 64-bit hosts).  And some invalid
32878         time stamps were being accepted, e.g. September 31.
32879
32880         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
32881         that we can return (time_t) -1 successfully.
32882         * lib/posixtm.c: Likewise.
32883         [HAVE_STDBOOL_H]: Include <stdbool.h>.
32884         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
32885         (t): Remove static var.
32886         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
32887         of static var.  All uses changed.
32888         (year): Do not reject years before 1900; they can occur with
32889         64-bit time_t.
32890         (posix_time_parse): Do not check for out-of-range components;
32891         that is now the caller's responsibility, since our checks were
32892         only approximations.
32893         (posixtime): Use mktime to check for out-of-range components,
32894         since it knows them exactly.
32895         If mktime returns (time_t) -1, check whether an error actually occurred
32896         by invoking localtime on -1.
32897         (main) [TEST_POSIXTIME]: Check for input data errors, and report
32898         posixtime failures better.
32899         Improve the test data (in comments only).
32900
32901 2003-06-02  Karl Berry  <karl@gnu.org>
32902
32903         * config/mkinstalldirs (version): new variable.
32904         (--version): new option.
32905         (usage): improve message.
32906
32907 2003-05-30  Karl Berry  <karl@gnu.org>
32908
32909         * lib/mktime.c: update from libc.
32910
32911 2003-05-30  Bruno Haible  <bruno@clisp.org>
32912
32913         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
32914         * config/config.rpath: Upgrade to gettext-0.12.1.
32915
32916 2003-05-30  Bruno Haible  <bruno@clisp.org>
32917
32918         * m4/gettext.m4: Upgrade to gettext-0.12.1.
32919         * m4/nls.m4: New file, from gettext-0.12.1.
32920         * m4/po.m4: New file, from gettext-0.12.1.
32921         * m4/progtest.m4: Upgrade to gettext-0.12.1.
32922
32923 2003-05-30  Bruno Haible  <bruno@clisp.org>
32924
32925         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
32926         * lib/localcharset.h: Likewise.
32927         * lib/localcharset.c: Likewise.
32928
32929 2003-05-29  Karl Berry  <karl@gnu.org>
32930
32931         * config/config.rpath: update from gettext.
32932
32933 2003-05-28  Paul Eggert  <eggert@twinsun.com>
32934
32935         Assume the headers required for C89 freestanding compilers.
32936         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
32937         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
32938         * m4/human.m4 (gl_HUMAN): Likewise.
32939         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
32940         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
32941         * m4/userspec.m4 (gl_USERSPEC): Likewise.
32942         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
32943         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
32944         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
32945
32946 2003-05-28  Paul Eggert  <eggert@twinsun.com>
32947
32948         Assume the headers required for C89 freestanding compilers.
32949         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
32950         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
32951         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
32952         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
32953         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
32954         define, since <limits.h> is guaranteed to do that.
32955         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
32956         * lib/exclude.c: Include <stdbool.h> unconditionally.
32957         * lib/tempname.c: Include <stddef.h> unconditionally.
32958         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
32959         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
32960         <stddef.h> does that.
32961         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
32962         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
32963         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
32964         needed.
32965         * lib/xstrtol.c: Likewise.
32966         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
32967         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
32968
32969         * lib/addext.c (addext): Use assignment rather than cast, to avoid
32970         warnings on some platforms.
32971
32972         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
32973         arbitrarily.
32974
32975 2003-05-26  Jim Meyering  <jim@meyering.net>
32976
32977         Merge in a change from coreutils:
32978         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
32979         that is guaranteed to be `no'.  Use `no_such_member' to indicate
32980         that condition, rather than `-1' which is slightly misleading.
32981         Change the name of the cache variable to have the gl_ prefix.
32982         Prompted by a patch from Richard Dawe for DJGPP.
32983
32984 2003-05-24  Karl Berry  <karl@gnu.org>
32985
32986         * config/config.guess: update from prep.
32987
32988 2003-05-22  Karl Berry  <karl@gnu.org>
32989
32990         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
32991
32992 2003-05-20  Karl Berry  <karl@gnu.org>
32993
32994         * config/config.guess: update from prep.
32995
32996 2003-05-18  Karl Berry  <karl@gnu.org>
32997
32998         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
32999         might actually be set by the user.
33000
33001         * config/depcomp, install-sh, mdate-sh: update from automake.
33002
33003 2003-05-17  Bruno Haible  <bruno@clisp.org>
33004
33005         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
33006         invalid expansion for AC_EGREP_CPP.
33007         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
33008         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
33009         Suggested by Akim Demaille <akim@epita.fr> in
33010         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
33011
33012 2003-05-12  Jim Meyering  <jim@meyering.net>
33013
33014         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
33015         the space-padded-by-default conversion specifiers, %e, %k, %l.
33016
33017 2003-05-12  Bruno Haible  <bruno@clisp.org>
33018
33019         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
33020         the string is longer than 4 KB.
33021
33022 2003-05-11  Karl Berry  <karl@gnu.org>
33023
33024         * config/config.{guess,sub}: update from prep.
33025
33026 2003-05-09  Bruno Haible  <bruno@clisp.org>
33027
33028         * modules/error: Add m4/strerror_r.m4 to file list.
33029
33030 2003-05-03  Bruno Haible  <bruno@clisp.org>
33031
33032         Upgrade to Unicode-4.0.
33033         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
33034         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
33035         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
33036         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
33037         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
33038         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
33039         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
33040         Change width of U+E0100..U+E01EF from 1 to 0.
33041
33042 2003-04-25  Jim Meyering  <jim@meyering.net>
33043
33044         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
33045         of type size_t, not int.
33046
33047 2003-04-25  Bruno Haible  <bruno@clisp.org>
33048
33049         * lib/copy-file.c: Include <stddef.h>, for size_t.
33050
33051 2003-04-21  Paul Eggert  <eggert@twinsun.com>
33052
33053         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
33054         code which expansion is under static control.  Patch imported from
33055         Akim Demaille's patch to Bison; see
33056         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
33057
33058 2003-04-14  Bruno Haible  <bruno@clisp.org>
33059
33060         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
33061
33062 2003-04-11  Jim Meyering  <jim@meyering.net>
33063
33064         Merge changes from Coreutils.
33065
33066         2003-03-22  Jim Meyering  <jim@meyering.net>
33067
33068         * lib/strftime.c (widen): Cast alloca return value to proper type.
33069
33070         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
33071
33072         From GNU libc.
33073         * lib/strftime.c (my_strftime): Handle very large width
33074         specifications for numeric values correctly.  Improve checks for
33075         overflow.
33076
33077         2003-01-19  Jim Meyering  <jim@meyering.net>
33078
33079         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
33080         definitions.
33081         (nl_get_alt_digit) [! defined my_strftime]: Define.
33082         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
33083         _nl_get_alt_digit and _nl_get_walt_digit.
33084
33085         * lib/strftime.c (my_strftime): Merge in locale-related changes from
33086         libc. These changes have no effect outside of _LIBC.
33087
33088 2003-04-10  Bruno Haible  <bruno@clisp.org>
33089
33090         * modules/findprog: New file.
33091         * MODULES.html.sh (func_all_modules): Add it.
33092
33093 2003-04-10  Bruno Haible  <bruno@clisp.org>
33094
33095         * m4/findprog.m4: New file.
33096         * m4/eaccess.m4: New file.
33097
33098 2003-04-10  Bruno Haible  <bruno@clisp.org>
33099
33100         * lib/findprog.h: New file, from GNU gettext.
33101         * lib/findprog.c: New file, from GNU gettext.
33102
33103 2003-04-05  Jim Meyering  <jim@meyering.net>
33104
33105         Merge changes from Coreutils.
33106
33107         * lib/exclude.h (PARAMS): Remove definition and uses.
33108         * lib/exclude.c: Remove uses of `PARAMS'.
33109
33110         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
33111         Add test-cases for DOS filenames. Declare program_name.
33112         (main): Set up program_name.  Patch by Rich Dawe.
33113
33114         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
33115         error from mntctl.
33116         Use mntctl's return value to drive the entry-processing loop, since
33117         we can't rely on the value of the vmt_length member in the last
33118         entry.  On some systems doing so could result in exhausting
33119         virtual memory.  Based in part on a patch from Mike Jetzer.
33120
33121 2003-04-04  Bruno Haible  <bruno@clisp.org>
33122
33123         * modules/linebreak: New file.
33124         * MODULES.html.sh (func_all_modules): Add it.
33125
33126 2003-04-04  Bruno Haible  <bruno@clisp.org>
33127
33128         * m4/linebreak.m4: New file.
33129
33130 2003-04-04  Bruno Haible  <bruno@clisp.org>
33131
33132         * lib/linebreak.h: New file, from GNU gettext.
33133         * lib/linebreak.c: New file, from GNU gettext with slight
33134         modifications.
33135         * lib/lbrkprop.h: New file, from GNU gettext.
33136
33137 2003-04-03  Bruno Haible  <bruno@clisp.org>
33138
33139         * modules/utf8-ucs4: New file.
33140         * modules/utf16-ucs4: New file.
33141         * modules/ucs4-utf8: New file.
33142         * modules/ucs4-utf16: New file.
33143         * MODULES.html.sh (func_all_modules): Add them.
33144
33145 2003-04-03  Bruno Haible  <bruno@clisp.org>
33146
33147         * m4/utf-ucs4.m4: New file.
33148         * m4/ucs4-utf.m4: New file.
33149
33150 2003-04-03  Bruno Haible  <bruno@clisp.org>
33151
33152         * lib/utf8-ucs4.h: New file, from GNU gettext.
33153         * lib/utf16-ucs4.h: New file, from GNU gettext.
33154         * lib/ucs4-utf8.h: New file, from GNU gettext.
33155         * lib/ucs4-utf16.h: New file, from GNU gettext.
33156
33157 2003-04-02  Bruno Haible  <bruno@clisp.org>
33158
33159         * modules/binary-io: New file.
33160         * MODULES.html.sh (func_all_modules): Add it.
33161
33162 2003-04-02  Bruno Haible  <bruno@clisp.org>
33163
33164         * lib/binary-io.h: New file, from GNU gettext.
33165
33166 2003-04-01  Bruno Haible  <bruno@clisp.org>
33167
33168         * modules/pathname: New file.
33169         * MODULES.html.sh (func_all_modules): Add it.
33170
33171 2003-04-01  Bruno Haible  <bruno@clisp.org>
33172
33173         * lib/pathname.h: New file, from GNU gettext.
33174         * lib/concatpath.c: New file, from GNU gettext.
33175
33176 2003-03-30  Bruno Haible  <bruno@clisp.org>
33177
33178         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
33179
33180 2003-03-30  Bruno Haible  <bruno@clisp.org>
33181
33182         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
33183         function chown() doesn't exist.
33184
33185 2003-03-28  Bruno Haible  <bruno@clisp.org>
33186
33187         * modules/copy-file: New file.
33188         * MODULES.html.sh (func_all_modules): Add it.
33189
33190 2003-03-28  Bruno Haible  <bruno@clisp.org>
33191
33192         * m4/copy-file.m4: New file.
33193
33194 2003-03-28  Bruno Haible  <bruno@clisp.org>
33195
33196         * lib/copy-file.h: New file, from GNU gettext.
33197         * lib/copy-file.c: New file, from GNU gettext.
33198
33199 2003-03-18  Jim Meyering  <jim@meyering.net>
33200
33201         * lib/quote.c (quote_n): Fix typo in comment.
33202
33203 2003-03-18  Bruno Haible  <bruno@clisp.org>
33204
33205         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
33206         checking.
33207         * m4/onceonly_2_57.m4: Likewise.
33208
33209 2003-03-17  Bruno Haible  <bruno@clisp.org>
33210
33211         * m4/onceonly.m4: Require autoconf 2.54 or newer.
33212         (m4_quote): Remove macro.
33213         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
33214
33215 2003-03-14  Jim Meyering  <jim@meyering.net>
33216
33217         Merge changes from Coreutils.
33218         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
33219         to be const, in order to avoid warnings.
33220         (obstack_room): Likewise.
33221         (obstack_empty_p): Likewise.
33222
33223 2003-03-14  Bruno Haible  <bruno@clisp.org>
33224
33225         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
33226         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
33227
33228 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33229
33230         Merge changes from Bison.
33231         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
33232         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
33233         when compiling Bison 1.875's `bitset bset = obstack_alloc
33234         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
33235         * lib/hash.c: Include <stdbool.h> unconditionally.
33236
33237 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33238
33239         * m4/onceonly.m4 (m4_quote): New macro.
33240         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
33241         Quote AC_FOREACH variable-expansions properly.
33242
33243 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33244
33245         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
33246
33247 2003-03-09  Paul Eggert  <eggert@twinsun.com>
33248
33249         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
33250         Reported by Bruce Becker; see:
33251         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
33252
33253 2003-03-03  Paul Eggert  <eggert@twinsun.com>
33254             Bruno Haible  <bruno@clisp.org>
33255
33256         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
33257         Reported by John Hughes, see
33258         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
33259
33260 2003-02-20  Bruno Haible  <bruno@clisp.org>
33261
33262         * MODULES.html.sh (func_all_modules): Add poll.
33263
33264 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33265
33266         * modules/poll: New file.
33267
33268 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33269
33270         * lib/poll_.h: New file.
33271         * lib/poll.c: New file.
33272
33273 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33274
33275         * m4/poll.m4: New file.
33276
33277 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33278
33279         * modules/mathl: New file.
33280
33281 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33282
33283         * lib/mathl.h: New file.
33284         * lib/acosl.c: New file.
33285         * lib/asinl.c: New file.
33286         * lib/atanl.c: New file.
33287         * lib/ceill.c: New file.
33288         * lib/cosl.c: New file.
33289         * lib/expl.c: New file.
33290         * lib/floorl.c: New file.
33291         * lib/frexpl.c: New file.
33292         * lib/ldexpl.c: New file.
33293         * lib/logl.c: New file.
33294         * lib/sincosl.c: New file.
33295         * lib/sinl.c: New file.
33296         * lib/sqrtl.c: New file.
33297         * lib/tanl.c: New file.
33298         * lib/trigl.c: New file.
33299         * lib/trigl.h: New file.
33300
33301 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33302
33303         * m4/mathl.m4: New file.
33304
33305 2003-02-18  Bruno Haible  <bruno@clisp.org>
33306
33307         * MODULES.html.sh (func_all_modules): Add mathl.
33308
33309 2003-02-17  Bruno Haible  <bruno@clisp.org>
33310
33311         * modules/mkdtemp: New module.
33312         * MODULES.html.sh (func_all_modules): Add it.
33313
33314 2003-02-17  Bruno Haible  <bruno@clisp.org>
33315
33316         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
33317
33318 2003-02-17  Bruno Haible  <bruno@clisp.org>
33319
33320         * lib/mkdtemp.h: New file, from GNU gettext.
33321         * lib/mkdtemp.c: New file, from GNU gettext.
33322
33323 2003-02-02  Jim Meyering  <jim@meyering.net>
33324
33325         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
33326         e.g. glibc-2.2.93.
33327
33328 2003-01-31  Bruno Haible  <bruno@clisp.org>
33329
33330         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
33331         'rpl_rename'.
33332         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
33333         'rpl_strnlen'.
33334         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
33335         'rpl_strtod'.
33336         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
33337         'rpl_utime'.
33338
33339 2003-01-31  Bruno Haible  <bruno@clisp.org>
33340
33341         * lib/rename.c: #undef rename before defining rpl_rename.
33342         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
33343
33344 2003-01-30  Bruno Haible  <bruno@clisp.org>
33345
33346         * modules/vasnprintf, modules/vasprintf: New modules.
33347         * MODULES.html.sh (func_all_modules): Add them.
33348
33349 2003-01-30  Bruno Haible  <bruno@clisp.org>
33350
33351         * m4/signed.m4: New file, from GNU gettext.
33352         * m4/longdouble.m4: New file, from GNU gettext.
33353         * m4/wchar_t.m4: New file, from GNU gettext.
33354         * m4/wint_t.m4: New file, from GNU gettext.
33355         * m4/vasnprintf.m4: New file.
33356         * m4/vasprintf.m4: New file.
33357
33358 2003-01-30  Bruno Haible  <bruno@clisp.org>
33359
33360         * lib/printf-args.h: New file, from GNU gettext.
33361         * lib/printf-args.c: New file, from GNU gettext.
33362         * lib/printf-parse.h: New file, from GNU gettext.
33363         * lib/printf-parse.c: New file, from GNU gettext.
33364         * lib/vasnprintf.h: New file, from GNU gettext.
33365         * lib/vasnprintf.c: New file, from GNU gettext.
33366         * lib/asnprintf.c: New file, from GNU gettext.
33367         * lib/vasprintf.h: New file, from GNU gettext with modifications.
33368         * lib/vasprintf.c: New file, from GNU gettext.
33369         * lib/asprintf.c: New file, from GNU gettext.
33370
33371 2003-01-29  Bruno Haible  <bruno@clisp.org>
33372
33373         * modules/stpncpy: New module.
33374         * MODULES.html.sh (func_all_modules): Add it.
33375
33376 2003-01-29  Bruno Haible  <bruno@clisp.org>
33377
33378         * m4/stpncpy.m4: New file.
33379
33380 2003-01-29  Bruno Haible  <bruno@clisp.org>
33381
33382         * lib/stpncpy.h: New file, from GNU gettext with modifications.
33383         * lib/stpncpy.c: New file, from GNU gettext with modifications.
33384
33385 2003-01-28  Bruno Haible  <bruno@clisp.org>
33386
33387         * modules/c-ctype: New module.
33388         * MODULES.html.sh (func_all_modules): Add it.
33389
33390 2003-01-28  Bruno Haible  <bruno@clisp.org>
33391
33392         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
33393         Paul Eggert.
33394         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
33395         Paul Eggert.
33396
33397 2003-01-27  Bruno Haible  <bruno@clisp.org>
33398
33399         * modules/xsetenv: New module.
33400         * MODULES.html.sh (func_all_modules): Add it.
33401
33402 2003-01-27  Bruno Haible  <bruno@clisp.org>
33403
33404         * lib/xsetenv.h: New file, from GNU gettext.
33405         * lib/xsetenv.c: New file, from GNU gettext.
33406
33407 2003-01-23  Jim Meyering  <jim@meyering.net>
33408
33409         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
33410         from working on systems without dirfd (at least Irix and OSF1/Tru64).
33411
33412 2003-01-23  Bruno Haible  <bruno@clisp.org>
33413
33414         * modules/minmax: New module.
33415         * MODULES.html.sh (func_all_modules): Add it.
33416
33417 2003-01-23  Bruno Haible  <bruno@clisp.org>
33418
33419         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
33420         Eggert.
33421
33422 2003-01-22  Bruno Haible  <bruno@clisp.org>
33423
33424         * modules/exit: New module.
33425         * MODULES.html.sh (func_all_modules): Add it.
33426
33427 2003-01-22  Bruno Haible  <bruno@clisp.org>
33428
33429         * lib/exit.h: New file, from GNU gettext.
33430
33431 2003-01-19  Bruno Haible  <bruno@clisp.org>
33432
33433         * gnulib-tool: Recognize option --extract-maintainer.
33434         (func_get_maintainer): New function.
33435         * modules/*: Add Maintainer entry.
33436
33437 2003-01-16  Jim Meyering  <jim@meyering.net>
33438
33439         * m4/regex.m4: The `regex' struct is both input and output.
33440         Initialize it before each use.  Patch by Tim Waugh.
33441
33442 2003-01-16  Bruno Haible  <bruno@clisp.org>
33443
33444         * MODULES.html.sh: Add a table of contents. Add the module name as
33445         leftmost column. Add hyperlinks.
33446
33447 2003-01-15  Bruno Haible  <bruno@clisp.org>
33448
33449         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
33450
33451 2003-01-15  Bruno Haible  <bruno@clisp.org>
33452
33453         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
33454         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
33455         suffix.
33456
33457 2003-01-15  Bruno Haible  <bruno@clisp.org>
33458
33459         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
33460
33461 2003-01-15  Bruno Haible  <bruno@clisp.org>
33462
33463         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
33464         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
33465
33466 2003-01-14  Jim Meyering  <jim@meyering.net>
33467
33468         * lib/same.c (same_name): Tweak a comment.
33469
33470 2003-01-14  Bruno Haible  <bruno@clisp.org>
33471
33472         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
33473         when a string comparison is sufficient.
33474
33475 2003-01-14  Bruno Haible  <bruno@clisp.org>
33476
33477         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
33478         'unsigned int'.
33479
33480 2003-01-14  Bruno Haible  <bruno@clisp.org>
33481
33482         * lib/hash-pjw.c: Add comment about low quality of this function.
33483
33484 2003-01-13  Bruno Haible  <bruno@clisp.org>
33485
33486         * modules/stpcpy: Distribute lib/stpcpy.h.
33487         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
33488
33489 2003-01-13  Bruno Haible  <bruno@clisp.org>
33490
33491         * modules/*: Add a description.
33492         * modules/strpbrk: Fix Makefile.am snippet.
33493         * modules/strtoimax: Fix dependencies.
33494         * modules/strtoumax: Likewise.
33495
33496 2003-01-13  Bruno Haible  <bruno@clisp.org>
33497
33498         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
33499         * modules/alloca (Makefile.am): All object files depend on alloca.h.
33500         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
33501
33502 2003-01-13  Bruno Haible  <bruno@clisp.org>
33503
33504         * gnulib-tool (func_create_testdir): Store config/* files in the main
33505         directory.
33506         * config.rpath: Move to ...
33507         * config/config.rpath: ... here.
33508         * modules/gettext: Contains config/config.rpath, not config.rpath.
33509         * modules/iconv: Likewise.
33510
33511 2003-01-12  Paul Eggert  <eggert@twinsun.com>
33512
33513         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33514         to avoid collisions with libcurses and libreadline.
33515
33516         * m4/getstr.m4: Remove.
33517         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
33518
33519 2003-01-12  Paul Eggert  <eggert@twinsun.com>
33520
33521         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33522         to avoid collisions with libcurses and libreadline.
33523
33524         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
33525         * lib/getstr.h, getstr.c: Remove.
33526         * lib/getline.c: Include "getline.h", to check interface.
33527         Move body of old getstr.c here: this defines MIN_CHUNK and
33528         declares getdelim2, which is renamed from getstr.
33529         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
33530
33531         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
33532         All uses changed.
33533         * lib/linebuffer.h: Likewise.
33534         (readline): Remove backward-compatibility macro.
33535
33536 2003-01-12  Paul Eggert  <eggert@twinsun.com>
33537
33538         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33539         to avoid collisions with libcurses and libreadline.
33540         * getstr: Remove.
33541         * MODULES.html.sh: Remove getstr.
33542         * modules/getline: Depend on unlocked-io, not getstr.
33543
33544 2003-01-12  Jim Meyering  <jim@meyering.net>
33545
33546         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
33547
33548 2003-01-10  Bruno Haible  <bruno@clisp.org>
33549
33550         * modules/alloca: Change Makefile.am requirements. Simplify Include
33551         requirements. Add lib/alloca_.h to file list.
33552
33553 2003-01-10  Bruno Haible  <bruno@clisp.org>
33554
33555         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
33556
33557 2003-01-10  Bruno Haible  <bruno@clisp.org>
33558
33559         * lib/alloca_.h: New file.
33560         * lib/getdate.y: Unconditionally include alloca.h.
33561         * lib/makepath.c: Likewise.
33562         * lib/setenv.c: Likewise.
33563         * lib/userspec.c: Likewise.
33564
33565 2003-01-09  Karl Berry  <karl@gnu.org>
33566
33567         * MODULES.html.sh: include `dirname $0` in PATH, to find
33568         gnulib-tool.
33569
33570 2003-01-09  Bruno Haible  <bruno@clisp.org>
33571
33572         * modules/stdbool: Change configure.ac, Makefile.am requirements.
33573         Simplify Include requirements. Add lib/stdbool.h.in to file list.
33574
33575 2003-01-09  Bruno Haible  <bruno@clisp.org>
33576
33577         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
33578
33579 2003-01-09  Bruno Haible  <bruno@clisp.org>
33580
33581         * lib/stdbool.h.in: New file.
33582
33583 2003-01-09  Bruno Haible  <bruno@clisp.org>
33584
33585         * gnulib-tool (func_all_modules): Ignore files ending in ~.
33586         * MODULES.html.sh: Likewise.
33587
33588 2003-01-08  Jim Meyering  <jim@meyering.net>
33589
33590         * lib/full-write.c: Undefine and define-away `const' after inclusion
33591         of errno.h, not before.  Suggestion from Bruno Haible.
33592
33593 2003-01-08  Bruno Haible  <bruno@clisp.org>
33594
33595         * modules/full-read: Depend on full-write.
33596
33597 2003-01-08  Bruno Haible  <bruno@clisp.org>
33598
33599         * lib/safe-read.c: Include specification header first, to ensure its
33600         selfcontainedness.
33601         * lib/full-write.c: Likewise.
33602
33603 2003-01-07  Jim Meyering  <jim@meyering.net>
33604
33605         * lib/full-write.c: Rework so that it may serve to define full_read,
33606         too.
33607         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
33608
33609 2003-01-07  Bruno Haible  <bruno@clisp.org>
33610
33611         * lib/strtoimax.c: Include <stdint.h> as an alternative to
33612         <inttypes.h>.
33613         * lib/xstrtol.h: Likewise.
33614         * lib/xstrtoimax.c: Likewise.
33615         * lib/xstrtoumax.c: Likewise.
33616         * lib/human.h: Likewise.
33617
33618         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
33619         on systems that have <inttypes.h> but not <stdint.h>.
33620
33621 2003-01-07  Bruno Haible  <bruno@clisp.org>
33622
33623         * MODULES.html.sh: Add copyright notice.
33624         (missed_files): Omit CVS directory entries.
33625         (func_module): Make it work with sed-3.02.
33626         * MODULES.txt: Remove file.
33627
33628 2003-01-06  Jim Meyering  <jim@meyering.net>
33629
33630         * lib/version-etc.c: Update year in translatable copyright string.
33631
33632 2003-01-03  Karl Berry  <karl@gnu.org>
33633
33634         * config/config.{guess,sub}: update from prep.
33635
33636 2003-01-02  Karl Berry  <karl@gnu.org>
33637
33638         * doc/COPYING.DOC: belatedly updated to 1.2.
33639
33640 2003-01-01  Karl Berry  <karl@gnu.org>
33641
33642         * gnulib-tool (func_verify_module): report module name $module in
33643         error message, not $1.
33644         * gnulib-tool (create-testdir): don't complain if destdir couldn't
33645         be created, only if it doesn't exist.
33646         * gnulib-tool (last_checkin_date): don't expand the $Date here.
33647
33648 2002-12-31  Paul Eggert  <eggert@twinsun.com>
33649
33650         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
33651
33652 2002-12-31  Paul Eggert  <eggert@twinsun.com>
33653
33654         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
33655         memcmp if strcoll doesn't work.
33656
33657 2002-12-31  Bruno Haible  <bruno@clisp.org>
33658
33659         * lib/utime.c (utime_null): No need to call ftruncate if the file was
33660         nonempty.
33661
33662 2002-12-31  Bruno Haible  <bruno@clisp.org>
33663
33664         * lib/memcoll.c (STRCOLL): New macro.
33665         (memcoll): Use it.
33666
33667 2002-12-31  Bruno Haible  <bruno@clisp.org>
33668
33669         * lib/localcharset.h: New file.
33670         * lib/localcharset.c: Include it.
33671         * lib/unicodeio.c: Likewise.
33672
33673 2002-12-31  Bruno Haible  <bruno@clisp.org>
33674
33675         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
33676         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
33677
33678 2002-12-31  Bruno Haible  <bruno@clisp.org>
33679
33680         * lib/getline.h: Include <stddef.h>, for size_t.
33681
33682         * lib/unicodeio.h: Include <stddef.h>, for size_t.
33683         * lib/unicodeio.c: Don't include <stddef.h>.
33684
33685 2002-12-31  Bruno Haible  <bruno@clisp.org>
33686
33687         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
33688         HAVE_TM_ZONE.
33689
33690 2002-12-24  Karl Berry  <karl@gnu.org>
33691
33692         * config/config.guess: update from prep.
33693
33694 2002-12-24  Bruno Haible  <bruno@clisp.org>
33695
33696         General infrasructure.
33697         * m4/README: Rewritten.
33698         * m4/onceonly.m4: New file.
33699         * m4/onceonly_2_57.m4: New file.
33700
33701         Module atexit.
33702         * m4/atexit.m4: New file.
33703
33704         Module strtod.
33705         * m4/strtod.m4: New file.
33706
33707         Module strtol.
33708         * m4/strtol.m4: New file.
33709
33710         Module strtoul.
33711         * m4/strtoul.m4: New file.
33712
33713         Module memchr.
33714         * m4/memchr.m4: New file.
33715
33716         Module memcmp.
33717         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
33718         (jm_FUNC_MEMCMP): Invoke it.
33719
33720         Module memcpy.
33721         * m4/memcpy.m4: New file.
33722
33723         Module memmove.
33724         * m4/memmove.m4: New file.
33725
33726         Module memset.
33727         * m4/memset.m4: New file.
33728
33729         Module strcspn.
33730         * m4/strcspn.m4: New file.
33731
33732         Module strpbrk.
33733         * m4/strpbrk.m4: New file.
33734
33735         Module strstr.
33736         * m4/strstr.m4: New file.
33737
33738         Module strerror.
33739         * m4/strerror.m4: New file.
33740
33741         Module mktime.
33742         * m4/mktime.m4: Renamed from jm-mktime.m4.
33743         (gl_PREREQ_MKTIME): New macro.
33744         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
33745
33746         Module malloc.
33747         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
33748         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
33749         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
33750
33751         Module realloc.
33752         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
33753         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
33754         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
33755
33756         Module strftime.
33757         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
33758         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
33759         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
33760         gl_TM_GMTOFF.
33761         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
33762
33763         Module xalloc.
33764         * m4/xalloc.m4: New file.
33765
33766         Module alloca.
33767         * m4/alloca.m4: New file.
33768
33769         Module putenv.
33770         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
33771         (jm_FUNC_PUTENV): Invoke it.
33772
33773         Module setenv.
33774         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
33775         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
33776         when invoked twice.
33777         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
33778         gt_FUNC_SETENV.
33779
33780         Module memrchr.
33781         * m4/memrchr.m4: New file.
33782
33783         Module stpcpy.
33784         * m4/stpcpy.m4: New file.
33785
33786         Module strcase.
33787         * m4/strcase.m4: New file.
33788
33789         Module strdup.
33790         * m4/strdup.m4: New file.
33791
33792         Module strnlen.
33793         * m4/strnlen.m4: New file.
33794
33795         Module strndup.
33796         * m4/strndup.m4: New file.
33797
33798         Module xstrtod.
33799         * m4/xstrtod.m4: New file.
33800
33801         Module xstrtol.
33802         * m4/xstrtol.m4: New file.
33803
33804         Module getdate.
33805         * m4/getdate.m4: New file.
33806
33807         Module unlocked-io.
33808         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
33809         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
33810         * m4/jm-glibc-io.m4n: Remove file.
33811
33812         Module long-options.
33813         * m4/long-options.m4: New file.
33814
33815         Module md5.
33816         * m4/md5.m4: New file.
33817
33818         Module sha.
33819         * m4/sha.m4: New file.
33820
33821         Module getstr.
33822         * m4/getstr.m4: New file.
33823
33824         Module getline.
33825         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
33826         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
33827         <sys/types.h>, for size_t. Use the function name gnu_getline, not
33828         simply getline. Infoke gl_PREREQ_GETLINE.
33829
33830         Module obstack.
33831         * m4/obstack.m4: New file.
33832
33833         Module hash.
33834         * m4/hash.m4: New file.
33835
33836         Module readtokens.
33837         * m4/readtokens.m4: New file.
33838
33839         Module strverscmp.
33840         * m4/strverscmp.m4: New file.
33841
33842         Module stdbool.
33843         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
33844         OSF/1.
33845
33846         Module strtoll.
33847         * m4/strtoll.m4: New file.
33848
33849         Module strtoull.
33850         * m4/strtoull.m4: New file.
33851
33852         Module strtoimax.
33853         * m4/strtoimax.m4: New file.
33854
33855         Module strtoumax.
33856         * m4/strtoumax.m4: New file.
33857
33858         Module xstrtoimax.
33859         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
33860         jm_AC_PREREQ_XSTRTOIMAX.
33861         Moved the strtol prerequisites to strtol.m4.
33862         Moved the strtoll prerequisites to strtoll.m4.
33863         Moved the strtoimax prerequisites to strtoimax.m4.
33864
33865         Module xstrtoumax.
33866         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
33867         jm_AC_PREREQ_XSTRTOUMAX.
33868         Moved the strtoul prerequisites to strtoul.m4.
33869         Moved the strtoull prerequisites to strtoull.m4.
33870         Moved the strtoumax prerequisites to strtoumax.m4.
33871
33872         Module chown.
33873         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
33874         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
33875
33876         Module dup2.
33877         * m4/dup2.m4: New file.
33878
33879         Module ftruncate.
33880         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
33881         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
33882
33883         Module getgroups.
33884         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
33885         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
33886
33887         Module gettimeofday.
33888         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
33889         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
33890         gl_PREREQ_GETTIMEOFDAY.
33891
33892         Module mkdir.
33893         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
33894         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
33895
33896         Module mkstemp.
33897         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
33898         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
33899         jm_AC_TYPE_UINTMAX_T.
33900         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
33901
33902         Module stat.
33903         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
33904         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
33905
33906         Module lstat.
33907         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
33908         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
33909
33910         Module timespec.
33911         * m4/timespec.m4 (gl_TIMESPEC): New macro.
33912         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
33913         * m4/st_mtim.m4: Indentation.
33914
33915         Module nanosleep.
33916         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
33917         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
33918         gl_PREREQ_NANOSLEEP.
33919
33920         Module regex.
33921         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
33922         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
33923         (gl_REGEX): New macro.
33924
33925         Module rename.
33926         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
33927         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
33928
33929         Module rmdir.
33930         * m4/rmdir.m4: New file.
33931
33932         Module utime.
33933         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
33934         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
33935         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
33936
33937         Module dirname.
33938         * m4/dirname.m4: New file.
33939
33940         Module getopt.
33941         * m4/getopt.m4: New file.
33942
33943         Module unistd-safer.
33944         * m4/unistd-safer.m4: New file.
33945
33946         Module fnmatch.
33947         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
33948         declaration.
33949         (gl_PREREQ_FNMATCH_EXTRA): New macro.
33950         (gl_FUNC_FNMATCH_POSIX): New macro.
33951         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
33952         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
33953         simply fnmatch.
33954
33955         Module exclude.
33956         * m4/exclude.m4: New file.
33957
33958         Module human.
33959         * m4/human.m4: New file.
33960
33961         Module acl.
33962         * m4/acl.m4: Nop.
33963
33964         Module backupfile.
33965         * m4/backupfile.m4: New file.
33966         * m4/d-ino.m4: Indentation.
33967
33968         Module fsusage.
33969         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
33970         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
33971         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
33972
33973         Module dirfd.
33974         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
33975         requirements.
33976
33977         Module euidaccess.
33978         * m4/euidaccess.m4: New file.
33979
33980         Module file-type.
33981         * m4/file-type.m4: New file.
33982
33983         Module fileblocks.
33984         * m4/fileblocks.m4: New file.
33985
33986         Module filemode.
33987         * m4/filemode.m4: New file.
33988
33989         Module isdir.
33990         * m4/isdir.m4: New file.
33991
33992         Module lchown.
33993         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
33994         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
33995
33996         Module makepath.
33997         * m4/makepath.m4: New file.
33998
33999         Module modechange.
34000         * m4/modechange.m4: New file.
34001
34002         Module mountlist.
34003         * m4/mountlist.m4: New file.
34004         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
34005         Indentation.
34006
34007         Module path-concat.
34008         * m4/path-concat.m4: New file.
34009
34010         Module pathmax.
34011         * m4/pathmax.m4: New file.
34012
34013         Module same.
34014         * m4/same.m4: New file.
34015
34016         Module save-cwd.
34017         * m4/save-cwd.m4: New file.
34018
34019         Module savedir.
34020         * m4/savedir.m4: New file.
34021
34022         Module xgetcwd.
34023         * m4/xgetcwd.m4: New file.
34024         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
34025
34026         Module xreadlink.
34027         * m4/xreadlink.m4: New file.
34028
34029         Module safe-read.
34030         * m4/safe-read.m4: New file.
34031
34032         Module safe-write.
34033         * m4/safe-write.m4: New file.
34034
34035         Module closeout.
34036         * m4/closeout.m4: New file.
34037
34038         Module stdio-safer.
34039         * m4/stdio-safer.m4: New file.
34040
34041         Module getpass.
34042         * m4/getpass.m4: New file.
34043
34044         Module getugroups.
34045         * m4/getugroups.m4: New file.
34046
34047         Module group-member.
34048         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
34049         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
34050
34051         Module idcache.
34052         * m4/idcache.m4: New file.
34053
34054         Module userspec.
34055         * m4/userspec.m4: New file.
34056
34057         Module gettime.
34058         * m4/clock_time.m4: New file.
34059         * m4/gettime.m4: New file.
34060
34061         Module settime.
34062         * m4/settime.m4: New file.
34063
34064         Module posixtm.
34065         * m4/posixtm.m4: New file.
34066
34067         Module gethostname.
34068         * m4/gethostname.m4: New file.
34069
34070         Module canon-host.
34071         * m4/canon-host.m4: New file.
34072
34073         Module gettext.
34074         * m4/codeset.m4: New file, from gettext-0.11.5.
34075         * m4/gettext.m4: New file, from gettext-0.11.5.
34076         * m4/glibc21.m4: New file, from gettext-0.11.5.
34077         * m4/iconv.m4: New file, from gettext-0.11.5.
34078         * m4/intdiv0.m4: New file, from gettext-0.11.5.
34079         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
34080         * m4/inttypes.m4: New file, from gettext-0.11.5.
34081         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
34082         * m4/isc-posix.m4: New file, from gettext-0.11.5.
34083         * m4/lcmessage.m4: New file, from gettext-0.11.5.
34084         * m4/lib-ld.m4: New file, from gettext-0.11.5.
34085         * m4/lib-link.m4: New file, from gettext-0.11.5.
34086         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
34087         * m4/progtest.m4: New file, from gettext-0.11.5.
34088         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
34089         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
34090         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
34091
34092         Module localcharset.
34093         * m4/localcharset.m4: New file.
34094
34095         Module hard-locale.
34096         * m4/hard-locale.m4: New file.
34097
34098         Module mbswidth.
34099         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
34100         onceonly macros.
34101         * m4/mbrtowc.m4: Add comment.
34102
34103         Module memcasecmp.
34104         * m4/memcasecmp.m4: New file.
34105
34106         Module memcoll.
34107         * m4/memcoll.m4: New file.
34108
34109         Module unicodeio.
34110         * m4/unicodeio.m4: New file.
34111
34112         Module rpmatch.
34113         * m4/rpmatch.m4: New file.
34114
34115         Module yesno.
34116         * m4/yesno.m4: New file.
34117
34118         Module exitfail.
34119         * m4/exitfail.m4: New file.
34120
34121         Module c-stack.
34122         * m4/c-stack.m4 (gl_C_STACK): New macro.
34123         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
34124
34125         Module error.
34126         * m4/error.m4 (gl_ERROR): New macro.
34127         (jm_PREREQ_ERROR): Use onceonly macros.
34128
34129         Module fatal.
34130         * m4/fatal.m4: New file.
34131
34132         Module getloadavg.
34133         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
34134         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
34135
34136         Module getpagesize.
34137         * m4/getpagesize.m4: New file.
34138
34139         Module getusershell.
34140         * m4/getusershell.m4: New file.
34141
34142         Module physmem.
34143         * m4/physmem.m4: New file.
34144
34145         Module posixver.
34146         * m4/posixver.m4: New file.
34147
34148         Module quotearg.
34149         * m4/quotearg.m4: New file.
34150
34151         Module quote.
34152         * m4/quote.m4: New file.
34153
34154         Module readutmp.
34155         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
34156
34157         Module sig2str.
34158         * m4/sig2str.m4: New file.
34159
34160         Other.
34161         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
34162         ulonglong.m4.
34163         * m4/intmax_t.m4: New file.
34164         * m4/d-type.m4: Indentation.
34165         * m4/jm-macros.m4: Update.
34166         * m4/prereq.m4 (jm_PREREQ): Update.
34167         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
34168         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
34169         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
34170         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
34171         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
34172         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
34173         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
34174         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
34175         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
34176         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
34177         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
34178         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
34179         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
34180         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
34181         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
34182         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
34183         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
34184         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
34185         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
34186
34187 2002-12-24  Bruno Haible  <bruno@clisp.org>
34188
34189         * MODULES.txt: Update according to m4/ changes.
34190
34191         Module gettext.
34192         * config.rpath: New file, from gettext-0.11.5.
34193
34194         * modules/*: New module descriptions.
34195         * gnulib-tool: New file.
34196         * MODULES.html.sh: New file.
34197
34198 2002-12-21  Karl Berry  <karl@gnu.org>
34199
34200         * doc/fdl.texi: update to version 1.2.
34201
34202 2002-12-19  Karl Berry  <karl@gnu.org>
34203
34204         * config/config.guess: update from prep.
34205
34206 2002-12-18  Bruno Haible  <bruno@clisp.org>
34207
34208         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
34209         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
34210
34211 2002-12-17  Bruno Haible  <bruno@clisp.org>
34212
34213         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
34214         stdlib.h, string.h.
34215
34216 2002-12-17  Bruno Haible  <bruno@clisp.org>
34217
34218         * lib/canon-host.c (strdup): Remove unused declaration.
34219
34220         * lib/fsusage.c: Include full_read.h.
34221         (get_fs_usage): Use full_read instead of safe_read.
34222
34223         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
34224
34225 2002-12-12  Karl Berry  <karl@gnu.org>
34226
34227         * config/config.guess: update from prep.
34228
34229 2002-12-11  Bruno Haible  <bruno@clisp.org>
34230
34231         * m4/setenv.m4: New file, from gettext-0.11.5.
34232
34233 2002-12-11  Bruno Haible  <bruno@clisp.org>
34234
34235         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
34236         not unsetenv().
34237         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
34238         modifications:
34239
34240         2002-12-11  Bruno Haible  <bruno@clisp.org>
34241
34242                 * setenv.c (alloca): Fall back to malloc.
34243                 (freea): New macro.
34244                 (setenv): Use freea() to free memory allocated with alloca().
34245
34246         2002-11-13  Bruno Haible  <bruno@clisp.org>
34247
34248                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
34249                 function declarations.
34250                 * unsetenv.c (unsetenv): Likewise.
34251
34252         2002-03-04  Bruno Haible  <bruno@clisp.org>
34253
34254                 Portability to AIX 4.3.3.
34255                 * unsetenv.c: New file, extracted from setenv.c.
34256                 * setenv.c: Move the unsetenv() function to unsetenv.c.
34257
34258         2001-12-20  Bruno Haible  <bruno@clisp.org>
34259
34260                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
34261                 use malloc instead. For SunOS 4.
34262
34263         2001-12-11  Bruno Haible  <bruno@clisp.org>
34264
34265                 * setenv.c: Declare alloca.
34266                 (compar_fn_t): New typedef.
34267                 (KNOWN_VALUE, STORE_VALUE): Use it.
34268
34269         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
34270         setenv.h.
34271
34272 2002-12-10  Paul Eggert  <eggert@twinsun.com>
34273
34274         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
34275         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
34276         Choose values that are less likely to collide with system fnmatch
34277         options.
34278         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
34279         defined (e.g., a pure POSIX system).
34280         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
34281         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
34282
34283 2002-12-06  Paul Eggert  <eggert@twinsun.com>
34284
34285         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
34286         a pain in practice to deal with generated m4 files.  This change
34287         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
34288
34289         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
34290         and jm-glibc-io.m4, as they are no longer a special case.
34291         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
34292         kludge and the auto-generation stuff.  Check only whether the
34293         functions are declared, not whether they exist, since older hosts
34294         that don't declare the functions can't use the optimization anyway.
34295
34296 2002-12-06  Jim Meyering  <jim@meyering.net>
34297
34298         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
34299
34300         Merge in changes from libc's misc/error.c, in preparation
34301         for the merge of gnulib's changes back into libc.
34302
34303         * lib/error.c (_): Define only if not already defined.
34304         Move definition to follow all #include directives.
34305         Include unlocked-io.h only if !_LIBC.
34306         [_LIBC]: Include <libio/libioP.h>.
34307         [USE_IN_LIBIO]: Include <libio/iolibio.h>
34308         (fflush): Tweak definition to use INTUSE.
34309         (putc): Define.
34310
34311 2002-12-05  Paul Eggert  <eggert@twinsun.com>
34312
34313         * lib/alloca.c [defined emacs]: Include "lisp.h".
34314         (xalloc_die) [defined emacs]: New macro.
34315         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
34316         [! defined emacs]: Include <xalloc.h>.
34317         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
34318         (pointer): Typedef to POINTER_TYPE *.
34319         (malloc): Remove decl; we now always use xmalloc.
34320         (alloca): Use old-style definition, since Emacs needs this.
34321         Check for arithmetic overflow when computing combined size.
34322
34323 2002-12-04  Paul Eggert  <eggert@twinsun.com>
34324
34325         Do not generate unlocked-io.h automatically, since it's easier to
34326         maintain it by hand.
34327
34328         * lib/unlocked-io.h: New file, from GNU diffutils,
34329         but with proper copyright notice and attribution.
34330         * lib/gen-uio: Remove.
34331         * lib/Makefile.am: Add copyright notice.
34332         (libfetish_a_SOURCES): Add unlocked-io.h.
34333         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
34334         (DISTCLEANFILES, io_functions): Remove macros.
34335         (EXTRA_DIST): Remove gen_uio.
34336         (unlocked-io.h): Remove rule.
34337
34338 2002-12-04  Jim Meyering  <jim@meyering.net>
34339
34340         Reflect the fact that stat.c and lstat.c are no longer generated.
34341         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
34342         (DISTCLEANFILES): Likewise.
34343         (EXTRA_DIST): Likewise.
34344         (all_local): Don't depend on stat.c or lstat.c.
34345         (stat.c, lstat.c): Remove rules.
34346         (EXTRA_DIST): Remove xstat.in.
34347
34348         * lib/xstat.in: Remove file.  Contents moved into stat.c.
34349         * lib/stat.c: New file.  Contents mostly from xstat.in.
34350         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
34351         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
34352
34353         * lib/safe-read.c: Rework so that it may serve to define safe_write,
34354         too.
34355         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
34356
34357 2002-12-03  Jim Meyering  <jim@meyering.net>
34358
34359         * lib/safe-read.c, safe-write.c: Change variable names and comments,
34360         but not semantics, to minimize the differences between these two files.
34361         (safe_read): Change comment to mention SAFE_READ_ERROR.
34362
34363         * lib/safe-read.c (IS_EINTR): Define.
34364         (safe_read): Use IS_EINTR in place of in-function cpp directives.
34365
34366 2002-12-02  Jim Meyering  <jim@meyering.net>
34367
34368         * lib/safe-read.c (EINTR): Define.
34369         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
34370         (INT_MAX): Provide fallback.
34371         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
34372
34373         * lib/safe-read.h (SAFE_READ_ERROR): Define.
34374
34375 2002-12-02  Bruno Haible  <bruno@clisp.org>
34376
34377         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
34378         Define, taken from safe-read.c.
34379         (INT_MAX): Provide fallback.
34380         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
34381         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
34382
34383         * lib/safe-read.c (EINTR): Remove definition.
34384         (safe_read): Don't use EINTR if it is absent.
34385
34386 2002-12-01  Jim Meyering  <jim@meyering.net>
34387
34388         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
34389         zero.
34390         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
34391
34392 2002-11-27  Paul Eggert  <eggert@twinsun.com>
34393
34394         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
34395         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
34396         with `if (! (value < limit)) abort ();', for readability.
34397
34398 2002-11-26  Karl Berry  <karl@gnu.org>
34399
34400         * lib/strdup.c: copy from libc again, with jim's ok.
34401         * lib/.cppi-disable: re-add strdup.c
34402
34403 2002-11-25  Karl Berry  <karl@gnu.org>
34404
34405         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
34406         instead of "strtol.c".
34407
34408 2002-11-25  Karl Berry  <karl@gnu.org>
34409
34410         * config/install-sh: update from automake for variable quoting, $0 in
34411         error msgs, etc.
34412
34413         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
34414         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
34415         entry.
34416
34417 2002-11-25  Jim Meyering  <jim@meyering.net>
34418
34419         * lib/mktime.c: Sync from libc, now that it has the latest fix.
34420
34421 2002-11-24  Karl Berry  <karl@gnu.org>
34422
34423         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
34424         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
34425
34426 2002-11-24  Jim Meyering  <jim@meyering.net>
34427
34428         Update from coreutils:
34429
34430         * lib/mktime.c: Merge in changes from libc.
34431
34432         Avoid a link-time failure on some Linux systems.
34433         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
34434         (otherwise).
34435         (__mon_yday): Declare with the STATIC attribute.
34436         (__mktime_internal): Likewise.
34437         Based on a report from Greg Schafer.
34438
34439 2002-11-23  Jim Meyering  <jim@meyering.net>
34440
34441         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
34442         Use `unsigned', not `int', as type of index.
34443
34444         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
34445
34446         * lib/fsusage.c: Remove unneeded parentheses around operands of
34447         `defined'.
34448
34449 2002-11-22  Paul Eggert  <eggert@twinsun.com>
34450
34451         * lib/quotearg.h: Allow multiple inclusion by surrounding with
34452         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
34453         so that we can be included first.
34454         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
34455         * lib/quotearg.c: Include quotearg.h immediately after config.h.
34456         No need to include stddef.h or sys/types.h any more.
34457         Surround local include files with "", not "<>".
34458         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
34459         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
34460         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
34461         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
34462         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
34463         (ISPRINT): Remove; no longer needed now that we assume C89.
34464
34465         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
34466         Preserve errno.
34467
34468         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
34469         quotearg_char): Use SIZE_MAX rather than
34470         (size_t) -1 when we are talking about "infinity".
34471
34472         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
34473
34474 2002-11-22  Paul Eggert  <eggert@twinsun.com>
34475
34476         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
34477         hint that one should use `if (! x) abort ();' rather than `assert
34478         (x);', and anyway it's one less thing to worry about configuring.
34479         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
34480         hash_rehash, hash_insert): Use abort rather than assert.
34481
34482 2002-11-22  Bruno Haible  <bruno@clisp.org>
34483
34484         * lib/safe-read.h: Assume C89. Add comments.
34485         (safe_read): Change return type to size_t.
34486         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
34487         byte counts > SSIZE_MAX correctly.
34488         * lib/safe-write.h: New file.
34489         * lib/safe-write.c: New file.
34490         * lib/full-read.h: New file.
34491         * lib/full-read.c: New file.
34492         * lib/full-write.h: Assume C89. Add comments.
34493         * lib/full-write.c: Include safe-write.h.
34494         (full_write): Rewritten to use safe_write.
34495         Suggested by Jim Meyering and Paul Eggert.
34496
34497 2002-11-21  Jim Meyering  <jim@meyering.net>
34498
34499         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
34500
34501         Merge in changes from the coreutils.
34502
34503         2002-09-25  Paul Eggert  <eggert@twinsun.com>
34504         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
34505         <stdint.h>.
34506         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
34507         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
34508         int.  Work more efficiently if X is the same width as uintmax_t.
34509         Do not compare X to -1, to avoid bogus compiler warning.
34510         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
34511         Don't assume that f_frsize and f_bsize are the same type.
34512
34513         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
34514         warning on FreeBSD.
34515
34516         * lib/makepath.c (make_path): Restore umask *before* creating the final
34517         component.
34518         (make_path): Minor reformatting.
34519
34520         * lib/xmalloc.c: Adjust to work with new autoconf macros,
34521         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
34522         HAVE_MALLOC/HAVE_REALLOC.
34523
34524         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
34525         dummy ones.  At least on GNU/Linux systems, `auto' means something
34526         else.
34527         From Michael Stone.
34528
34529 2002-11-21  Bruno Haible  <bruno@clisp.org>
34530
34531         Remove case insensitive option matching.
34532         * lib/argmatch.h (argcasematch): Remove declaration.
34533         (ARGCASEMATCH): Remove macro.
34534         (__xargmatch_internal): Remove case_sensitive argument.
34535         (XARGMATCH): Update.
34536         (XARGCASEMATCH): Remove macro.
34537         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
34538         case_sensitive argument.
34539         (argcasematch): Remove function.
34540         (__xargmatch_internal): Remove case_sensitive argument.
34541         (main): Use XARGMATCH instead of XARGCASEMATCH.
34542
34543         * lib/xmalloc.c: Change compile-time error message. Add comment about
34544         required autoconf version.
34545
34546 2002-11-20  Paul Eggert  <eggert@twinsun.com>
34547
34548         Merge argmatch cleanups from Bison.  Assume C89.
34549
34550         * lib/argmatch.c: Include config.h here, not in argmatch.h.
34551         Include stdlib.h, for EXIT_FAILURE.
34552         Always include <string.h>, since we assume C89.
34553         (EXIT_FAILURE): Remove pre-C89 bug workaround.
34554         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
34555         Include <stddef.h> instead, since it's all we need for size_t.
34556         (PARAMS): Remove.  All uses removed.
34557         (ARRAY_CARDINALITY): Do not bother to #undef.
34558         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
34559         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
34560         Remove unnecessary parentheses.
34561         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
34562         Insert necessary parentheses.
34563         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
34564         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
34565
34566 2002-11-19  Bruno Haible  <bruno@clisp.org>
34567
34568         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
34569         * lib/mbswidth.h: Include <stddef.h>, for size_t.
34570
34571         * lib/mbswidth.h (PARAMS): Remove macro.
34572         (mbswidth, mbsnwidth): Use ANSI C function declarations.
34573         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
34574
34575         * lib/gcd.h (PARAMS): Remove macro.
34576         (gcd): Use ANSI C function declarations.
34577         * lib/gcd.c (gcd): Likewise.
34578
34579 2002-11-15  Bruno Haible  <bruno@clisp.org>
34580
34581         * lib/strcspn.c: Include <stddef.h>.
34582         (strcspn): Use ANSI C function declaration. Change return type to
34583         size_t. Use NULL.
34584         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
34585         (strpbrk): Use NULL.
34586         * lib/strpbrk.h (PARAMS): Remove macro.
34587         (strpbrk): Use ANSI C function declaration.
34588         * lib/strstr.c: Don't include <sys/types.h>.
34589         * lib/strstr.h (PARAMS): Remove macro.
34590         (strstr): Use ANSI C function declarations.
34591
34592 2002-11-14  Karl Berry  <karl@gnu.org>
34593
34594         * config/mkinstalldirs: `do' on separate line, instead of
34595         `for var; do'.
34596
34597 2002-11-06  Bruno Haible  <bruno@clisp.org>
34598
34599         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
34600         * lib/gcd.c (gcd): Likewise.
34601
34602 2002-11-05  Bruno Haible  <bruno@clisp.org>
34603
34604         * lib/gcd.h: New file, from gettext-0.11.5.
34605         * lib/gcd.c: New file, from gettext-0.11.5.
34606
34607 2002-11-05  Bruno Haible  <bruno@clisp.org>
34608
34609         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34610         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34611         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34612         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34613
34614         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
34615         <libintl.h>.
34616         * lib/makepath.c: Include gettext.h instead of <locale.h> and
34617         <libintl.h>.
34618
34619         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
34620         * lib/human.c: Include gettext.h instead of <libintl.h>.
34621         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
34622         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
34623         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
34624         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
34625         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
34626         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
34627         (textdomain): Remove definition.
34628         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
34629
34630         * lib/long-options.c: Remove include of <libintl.h> and definition of
34631         _.
34632         * lib/same.c: Remove include of <libintl.h> and definition of _.
34633
34634 2002-11-04  Owen Taylor  <otaylor@redhat.com>
34635
34636         * lib/config.charset: A few additions for Solaris.
34637
34638 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
34639
34640         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
34641         * lib/localcharset.c (locale_charset): Declare as extern "C".
34642
34643 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
34644
34645         * lib/config.charset: msdos in uk_UA uses CP1125.
34646
34647 2002-11-04  Bruno Haible  <bruno@clisp.org>
34648
34649         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
34650         * lib/strcase.h: New file, from GNU gettext-0.11.5.
34651         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
34652         * lib/strstr.h: New file, from GNU gettext-0.11.5.
34653         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
34654
34655 2002-11-04  Bruno Haible  <bruno@clisp.org>
34656
34657         * lib/localcharset.c (locale_charset): Don't return an empty string.
34658
34659 2002-11-04  Bruno Haible  <bruno@clisp.org>
34660
34661         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
34662         aliases.
34663
34664 2002-11-04  Bruno Haible  <bruno@clisp.org>
34665
34666         * lib/config.charset: Update for newest glibc. Add canonical names
34667         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
34668
34669 2002-11-04  Bruno Haible  <bruno@clisp.org>
34670
34671         * lib/config.charset: Add support for NetBSD.
34672
34673 2002-11-04  Bruno Haible  <bruno@clisp.org>
34674
34675         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
34676
34677 2002-11-01  Bruno Haible  <bruno@clisp.org>
34678
34679         * configure.in: Add AC_CONFIG_AUX_DIR call.
34680         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
34681         test/Makefile.
34682         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
34683
34684 2002-09-28  Karl Berry  <karl@gnu.org>
34685
34686         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
34687         installed automake until the next release, since changes have been
34688         made.
34689
34690 2002-09-25  Karl Berry  <karl@gnu.org>
34691
34692         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
34693         * lib/getopt*: copy from libc/posix.
34694         * lib/gettext.h: copy from gettext.
34695         * lib/.cppi-disable: add strdup.c, gettext.h.
34696
34697 2002-09-25  Karl Berry  <karl@gnu.org>
34698
34699         * config/srclist.txt: enable gettext.h check.
34700         * config/config.{guess,sub}: update from prep.
34701         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
34702                 from automake 1.6.3.
34703         See srclist*.
34704
34705 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
34706
34707         * regex.c (PATFETCH): Remove the translating fetch.
34708         (PATFETCH_RAW): Rename to PATFETCH.
34709         (set_image_of_range): New fun.
34710         (SET_RANGE_TABLE_WORK_AREA): Use it.
34711         (regex_compile): Don't translate the pattern chars so eagerly.
34712         Only do it when inserting an `exactn' bytecode or when handling
34713         a char-range.
34714         (mutually_exclusive_p): Avoid empty statement.
34715
34716 2002-07-06  Jim Meyering  <meyering@lucent.com>
34717
34718         * m4/README: Don't mention Makefile.am.in.
34719         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
34720
34721 2002-07-01  Jim Meyering  <meyering@lucent.com>
34722
34723         * lib/c-stack.c: Include sys/time.h.
34724         From Volker Borchert.
34725
34726 2002-06-26  Paul Eggert  <eggert@twinsun.com>
34727
34728         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
34729
34730 2002-06-26  Paul Eggert  <eggert@twinsun.com>
34731
34732         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
34733         New macro.  Use it uniformly instead of
34734         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
34735         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
34736         reported by Vin Shelton.
34737
34738 2002-06-22  Paul Eggert  <eggert@twinsun.com>
34739
34740         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
34741         Do not assume SA_SIGINFO behavior.
34742         Bug reported by Jim Meyering on NetBSD 1.5.2.
34743
34744 2002-06-22  Jim Meyering  <meyering@lucent.com>
34745
34746         * m4/c-stack.m4: New file, from diffutils-2.8.2.
34747         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
34748
34749         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
34750         now that configure.ac uses AC_GNU_SOURCE.
34751         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
34752         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
34753
34754         Update to latest tools.  Suggestions from Paul Eggert.
34755         * m4/stdbool.m4: New file, from diffutils-2.8.2.
34756         * m4/gnu-source.m4: Update from diffutils-2.8.2.
34757         * m4/fnmatch.m4: Likewise.
34758         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
34759         to AC_HEADER_STDBOOL
34760
34761 2002-06-22  Jim Meyering  <meyering@lucent.com>
34762
34763         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
34764         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
34765
34766 2002-06-22  Jim Meyering  <meyering@lucent.com>
34767
34768         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
34769
34770         * lib/exitfail.c, exitfail.h: Likewise.
34771         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
34772
34773         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
34774         of fnmatch.h.
34775         (EXTRA_DIST): Add fnmatch_loop.c.
34776         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
34777
34778         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
34779         * lib/fnmatch.c: Update from diffutils-2.8.2.
34780         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
34781         * lib/fnmatch.h: Remove file.
34782
34783 2002-06-21  Jim Meyering  <meyering@lucent.com>
34784
34785         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
34786         * m4/mbrtowc.m4: Likewise.
34787
34788         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
34789         * m4/mbswidth.m4: Reflect name change:
34790         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
34791         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
34792
34793         * m4/lib-link.m4: Update from gettext-0.11.2.
34794         * m4/gettext.m4: Likewise.
34795
34796         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
34797         From Alfred M. Szmidt.
34798
34799 2002-06-18  Paul Eggert  <eggert@twinsun.com>
34800
34801         * lib/file-type.h: Report an error if neither S_ISREG nor
34802         S_IFREG is defined, instead of using a test specific to glibc
34803         2.2.  This should be safe, since POSIX requires S_ISREG and
34804         Unix Version 7 had S_IFREG.  We don't need to check for
34805         <sys/types.h> since we don't use any symbols that it defines.
34806
34807 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
34808
34809         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
34810         $@-t, so that each temporary file name is unique and valid in the first
34811         8 characters, for operation under DOS.
34812
34813 2002-06-15  Paul Eggert  <eggert@twinsun.com>
34814
34815         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
34816
34817 2002-06-15  Jim Meyering  <meyering@lucent.com>
34818
34819         Work even with DJGPP 2.03, which lacks support for symlinks.
34820         From Richard Dawe.
34821         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
34822         is defined.
34823         * lib/lchown.c (S_ISLNK): Likewise.
34824
34825 2002-06-15  Jim Meyering  <meyering@lucent.com>
34826
34827         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
34828         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
34829         have been included before this file.
34830
34831 2002-06-14  Jim Meyering  <meyering@lucent.com>
34832
34833         * lib/file-type.h: Use the version from diffutils-2.8.2.
34834         * lib/file-type.c: Likewise.
34835
34836 2002-06-07  Jim Meyering  <meyering@lucent.com>
34837
34838         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
34839         They're needed at least for NetBSD 1.5.2.
34840         ($statxfs_includes): Include those same headers.
34841         ($statxfs_includes): Include sys/vfs.h if available.
34842         ($statxfs_includes): Likewise for sys/statvfs.h.
34843         Check for the following members in both structs statfs and statvfs:
34844         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
34845
34846 2002-06-01  Jim Meyering  <meyering@lucent.com>
34847
34848         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
34849         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
34850
34851 2002-05-28  Jim Meyering  <meyering@lucent.com>
34852
34853         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
34854         Reported by Volker Borchert.
34855
34856 2002-05-27  Jim Meyering  <meyering@lucent.com>
34857
34858         Fix a problem seen only on nonconforming systems whereby ls.c's
34859         use of localtime, and then of gettimeofday would cause trouble:
34860         the localtime call used to initialize rpl_gettimeofday's save
34861         mechanism would clobber ls's current local time information so
34862         that in any long listing the first file would always be listed
34863         with date 1970-01-01.  Analysis by Volker Borchert.
34864
34865         * lib/gettimeofday.c (localtime): Undefine.
34866         (rpl_localtime): New function.
34867
34868 2002-05-27  Jim Meyering  <meyering@lucent.com>
34869
34870         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
34871         localtime.
34872
34873         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
34874         use the replacement function; it wouldn't resolve at link time.
34875         Reported by Volker Borchert.
34876
34877 2002-05-22  Jim Meyering  <meyering@lucent.com>
34878
34879         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
34880         file-type.h.
34881         * lib/file-type.h: New file.
34882         * lib/file-type.c (file_type): New file/function.  Extracted from
34883         diffutils.
34884
34885 2002-04-30  Jim Meyering  <meyering@lucent.com>
34886
34887         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
34888
34889 2002-04-29  Paul Eggert  <eggert@twinsun.com>
34890
34891         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
34892
34893 2002-04-29  Paul Eggert  <eggert@twinsun.com>
34894
34895         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
34896         Do not check for alloca.h (no longer used) or stdbool.h (was never
34897         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
34898
34899 2002-04-29  Paul Eggert  <eggert@twinsun.com>
34900
34901         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
34902
34903 2002-04-29  Jim Meyering  <meyering@lucent.com>
34904
34905         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
34906         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
34907         Use AC_FUNC_STRNLEN here instead.
34908
34909         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
34910         With autoconf-2.53a, it's part of AC_PROG_CC.
34911
34912 2002-04-28  Paul Eggert  <eggert@twinsun.com>
34913
34914         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
34915         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
34916
34917 2002-04-28  Paul Eggert  <eggert@twinsun.com>
34918
34919         * lib/sig2str.h, lib/sig2str.c: New files.
34920         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
34921
34922 2002-04-28  Paul Eggert  <eggert@twinsun.com>
34923
34924         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
34925         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
34926         of 127, since 64 is the largest conceivable number for ancient
34927         nonstandard hosts.
34928         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
34929
34930 2002-04-28  Jim Meyering  <meyering@lucent.com>
34931
34932         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
34933
34934 2002-04-24  Jim Meyering  <meyering@lucent.com>
34935
34936         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
34937         (jm_PREREQ): Use it.
34938
34939         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
34940         mach/mach.h fcntl.h.
34941         Check for this function: setlocale.
34942
34943 2002-04-24  Jim Meyering  <meyering@lucent.com>
34944
34945         * lib/gettext.h: New file, from Gettext.
34946         * lib/Makefile.am (INCLUDES): Remove -I../intl.
34947         (libfetish_a_SOURCES): Add gettext.h.
34948
34949 2002-04-16  Jim Meyering  <meyering@lucent.com>
34950
34951         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
34952         ut_pid, ut_id, ut_exit.
34953
34954 2002-04-16  Jim Meyering  <meyering@lucent.com>
34955
34956         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
34957         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
34958         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
34959
34960 2002-04-12  Jim Meyering  <meyering@lucent.com>
34961
34962         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
34963         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
34964         existence of the getmntinfo function.  Needed for Darwin 5.3.
34965
34966         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
34967         This is necessary at least on Darwin 5.3.
34968
34969         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
34970         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
34971         strnlen.o in the library, and that makes some versions of ranlib
34972         object.
34973
34974 2002-04-12  Jim Meyering  <meyering@lucent.com>
34975
34976         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
34977
34978 2002-04-09  Jim Meyering  <meyering@lucent.com>
34979
34980         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
34981         to be more precise.  Rather than saying we're checking whether the
34982         function `works', say what we're testing.
34983         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
34984         Reported by Bruno Haible.
34985
34986 2002-03-10  Jim Meyering  <meyering@lucent.com>
34987
34988         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
34989         Suggestion from Santiago Vila.
34990
34991 2002-03-08  Jim Meyering  <meyering@lucent.com>
34992
34993         * lib/rename.c: Mention that this wrapper is needed also on
34994         mips-dec-ultrix4.4 systems.
34995
34996 2002-03-02  Jim Meyering  <meyering@lucent.com>
34997
34998         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
34999         not HAVE_CLOCK_SETTIME.
35000
35001 2002-02-27  Paul Eggert  <eggert@twinsun.com>
35002
35003         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
35004         Check for clock_settime.
35005
35006 2002-02-27  Paul Eggert  <eggert@twinsun.com>
35007
35008         * lib/nanosleep.h: Rename to....
35009         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
35010
35011         * lib/gettime.c: New file.
35012         * lib/settime.c: New file.
35013         * lib/stime.c: Remove.
35014
35015         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
35016         timespec.h.  Remove nanosleep.h.
35017
35018 2002-02-25  Paul Eggert  <eggert@twinsun.com>
35019
35020         * m4/acl.m4: New file.
35021         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
35022         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
35023
35024 2002-02-25  Paul Eggert  <eggert@twinsun.com>
35025
35026         * lib/acl.c, lib/acl.h: New files.
35027         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
35028
35029 2002-02-24  Jim Meyering  <meyering@lucent.com>
35030
35031         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
35032         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
35033         cause trouble.  Reported by Nelson Beebe.
35034
35035 2002-02-23  Paul Eggert  <eggert@twinsun.com>
35036
35037         * lib/path-concat.c (xpath_concat): Reorder code to pacify
35038         compilers that don't know that xalloc_die never returns.
35039
35040 2002-02-20  Jim Meyering  <meyering@lucent.com>
35041
35042         * lib/getdate.c: Regenerate using bison-1.33.
35043
35044 2002-02-17  Jim Meyering  <meyering@lucent.com>
35045
35046         * config/config.guess (main): Don't use `head -1'; it's no longer
35047         portable. Use `sed 1q' instead.
35048
35049 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
35050
35051         * m4/codeset.m4: Upgrade to gettext-0.11.
35052         * m4/gettext.m4: Upgrade to gettext-0.11.
35053         * m4/glibc21.m4: Upgrade to gettext-0.11.
35054         * m4/iconv.m4: Upgrade to gettext-0.11.
35055         * m4/isc-posix.m4: Upgrade to gettext-0.11.
35056         * m4/lcmessage.m4: Upgrade to gettext-0.11.
35057         * m4/lib-ld.m4: New file, from gettext-0.11.
35058         * m4/lib-link.m4: New file, from gettext-0.11.
35059         * m4/lib-prefix.m4: New file, from gettext-0.11.
35060         * m4/progtest.m4: Upgrade to gettext-0.11.
35061
35062 2002-02-15  Paul Eggert  <eggert@twinsun.com>
35063
35064         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
35065         (jm_PREREQ): Use it.
35066
35067 2002-02-15  Paul Eggert  <eggert@twinsun.com>
35068
35069         * lib/posixver.c, lib/posixver.h: New files.
35070         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35071
35072 2002-02-02  Paul Eggert  <eggert@twinsun.com>
35073             Bruno Haible  <bruno@clisp.org>
35074
35075         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
35076         (fwrite_success_callback): New declaration.
35077         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
35078         print_unicode_char. Call failure callback instead of error.
35079         (fwrite_success_callback): New function.
35080         (exit_failure_callback): New function.
35081         (fallback_failure_callback): New function.
35082         (print_unicode_char): Call unicode_to_mb.
35083
35084 2002-01-26  Jim Meyering  <meyering@lucent.com>
35085
35086         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
35087         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
35088
35089 2002-01-26  Jim Meyering  <meyering@lucent.com>
35090
35091         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
35092
35093 2002-01-22  Paul Eggert  <eggert@twinsun.com>
35094
35095         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
35096
35097 2002-01-22  Jim Meyering  <meyering@lucent.com>
35098
35099         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
35100         Otherwise, some versions of automake would omit the rule that makes
35101         Makefile from Makefile.in.
35102
35103 2002-01-21  Paul Eggert  <eggert@twinsun.com>
35104
35105         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
35106         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35107         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
35108         (memcoll): Set errno to zero if there is no error.
35109
35110         * lib/quotearg.c (quotearg_buffer_restyled):
35111         Fix bug with quoting buffers containing NUL when backslashing escapes.
35112         This bug was exposed by the other changes in this patch.
35113         (quotearg_n_options): New arg ARGSIZE.
35114         All callers changed.
35115         (quoting_options_from_style): New function.
35116         (quotearg_n_style): Use it.
35117         (quotearg_n_style_mem): New function.
35118
35119         * lib/quotearg.h (quotearg_n_style_mem): New function.
35120
35121 2002-01-19  Jim Meyering  <meyering@lucent.com>
35122
35123         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
35124         Remove useless quotes: DF_PROG="df".
35125         * m4/strnlen.m4: New file.
35126
35127 2002-01-16  Paul Eggert  <eggert@twinsun.com>
35128
35129         * lib/backupfile.c (ISDIGIT): Comment fix.
35130         * lib/getdate.y (ISDIGIT): Likewise.
35131         * lib/posixtm.c (ISDIGIT, year): Likewise.
35132         * lib/strverscmp.c (ISDIGIT): Likewise.
35133         * lib/userspec.c (ISDIGIT): Likewise.
35134
35135 2002-01-16  Jim Meyering  <meyering@lucent.com>
35136
35137         * lib/getdate.y: Add three semicolons, each just before a closing
35138         brace. Bison (as of version 1.31) no longer papers over that mistake.
35139
35140 2002-01-05  Jim Meyering  <meyering@lucent.com>
35141
35142         * lib/version-etc.c (version_etc_copyright): Update copyright year.
35143
35144 2001-12-19  Paul Eggert  <eggert@twinsun.com>
35145
35146         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
35147         not silently exit merely because the output buffer happens to
35148         have nothing pending.
35149
35150 2001-12-18  Paul Eggert  <eggert@twinsun.com>
35151
35152         See the big note in ../ChangeLog.
35153         * lib/human.c (suffixes): Prefer K to k for 1024.
35154         (generate_suffix_backwards): New function.
35155         (human_readable_inexact): Use it.
35156         * lib/xstrtol.c (__xstrtol): If there is no number but there
35157         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
35158         Accept 'K' as well as 'k'.
35159
35160 2001-12-15  Jim Meyering  <meyering@lucent.com>
35161
35162         * lib/regex.h (__restrict_arr): Update from libc.
35163
35164         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
35165         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
35166         (STREQ): Define.
35167
35168 2001-12-14  Jim Meyering  <meyering@lucent.com>
35169
35170         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
35171         Suggestion from Bruno Haible.
35172
35173 2001-12-10  Jim Meyering  <meyering@lucent.com>
35174
35175         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
35176         xrealloc, Instead, include "xalloc.h".
35177         (initbuffer): Don't cast xmalloc return value to char*.
35178         (readline): Reword comment.
35179         Don't cast xrealloc return value to char*
35180         Return NULL, not 0.
35181
35182 2001-12-09  Jim Meyering  <meyering@lucent.com>
35183
35184         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
35185         about `signed and unsigned type in conditional expression'.
35186         * lib/posixtm.c (posix_time_parse): Likewise.
35187
35188         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
35189
35190         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
35191         to avoid a pedantic warning.
35192
35193         * lib/getstr.c: Don't include assert.h.
35194         (getstr): Remove warning-evoking assertions.
35195         Return -1 if offset parameter is out of bounds.
35196         Change the type of a local from int to size_t.
35197
35198         * lib/strftime.c (my_strftime_localtime_r): Include this function
35199         definition in the `#if ! HAVE_TM_GMTOFF' block.
35200
35201         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
35202         Include xalloc.h instead.
35203
35204 2001-12-02  Jim Meyering  <meyering@lucent.com>
35205
35206         * lib/tempname.c: Don't declare getenv, thus reverting the change of
35207         2001-11-18.  It's no longer necessary, now that stdlib.h is always
35208         included.
35209
35210         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
35211         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
35212
35213 2001-11-30  Akim Demaille  <akim@epita.fr>
35214
35215         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
35216         before being defined.
35217
35218 2001-11-27  Paul Eggert  <eggert@twinsun.com>
35219
35220         * lib/quotearg.h (quotearg_n, quotearg_n_style):
35221         First arg is int, not unsigned.
35222         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
35223         (SIZE_MAX, UINT_MAX): New macros.
35224         (quotearg_n_options): Abort if N is negative.
35225         Avoid overflow check on hosts where size_t is 64 bits and int
35226         is 32 bits, as overflow is impossible there.
35227         Fix off-by-one typo that caused unnecessary reallocation.
35228
35229 2001-11-27  Jim Meyering  <meyering@lucent.com>
35230
35231         * lib/tempname.c: Merge with version from libc.
35232         * lib/regex.c: Likewise.
35233
35234         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
35235         systems for which STDC_HEADERS is 0, it was not included, resulting in
35236         a warning about an integer-to-pointer conversion problem with getenv.
35237         Reported by Volker Borchert.
35238
35239 2001-11-26  Jim Meyering  <meyering@lucent.com>
35240
35241         * lib/gtod.h: Remove file.
35242         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
35243         * lib/gettimeofday.c: Don't include gtod.h.
35244         (GTOD_init): Remove function.
35245         (rpl_gettimeofday): Do its job here instead, rather than aborting.
35246         Suggestion from Volker Borchert.
35247
35248 2001-11-23  Jim Meyering  <meyering@lucent.com>
35249
35250         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
35251         it.
35252         * lib/hash.c (struct hash_table): Define it here instead.
35253
35254 2001-11-22  Jim Meyering  <meyering@lucent.com>
35255
35256         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
35257
35258 2001-11-20  Jim Meyering  <meyering@lucent.com>
35259
35260         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
35261         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
35262
35263 2001-11-19  Jim Meyering  <meyering@lucent.com>
35264
35265         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
35266         directory.  Use "conftestXXXXXX" as the template.
35267         Suggestion from Paul Eggert.
35268
35269         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
35270         immediately, so the test doesn't mistakenly hit the max-open-files
35271         limit.
35272
35273 2001-11-18  Paul Eggert  <eggert@twinsun.com>
35274
35275         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
35276         (TEMPORARIES): New macro.
35277         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
35278         removes an artificial limitation (e.g. HP-UX 10.20, where
35279         TMP_MAX is 17576).
35280
35281 2001-11-18  Jim Meyering  <meyering@lucent.com>
35282
35283         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
35284
35285 2001-11-18  Jim Meyering  <meyering@lucent.com>
35286
35287         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
35288         on SunOS 4.
35289
35290         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
35291         files will be created before anything else.
35292
35293 2001-11-17  Paul Eggert  <eggert@twinsun.com>
35294
35295         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
35296         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
35297
35298 2001-11-17  Jim Meyering  <meyering@lucent.com>
35299
35300         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
35301         Prompted by a report from Bob Proulx.
35302
35303         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
35304         Instead, require UTILS_FUNC_MKSTEMP.
35305
35306 2001-11-17  Jim Meyering  <meyering@lucent.com>
35307
35308         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
35309         Now, that's done as part of AC_FUNC_STRTOD.
35310
35311 2001-11-17  Jim Meyering  <meyering@lucent.com>
35312
35313         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
35314         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
35315         rather than group writable.  Patch by Juan F. Codagnone.
35316
35317         * lib/readtokens.c: Remove explicit declarations of xmalloc and
35318         xrealloc, Instead, include "xalloc.h".
35319
35320         * lib/mountlist.c: Include unlocked-io.h after all system headers.
35321         Remove explicit declarations of xmalloc, xrealloc,
35322         and xstrdup.  Instead, include "xalloc.h".
35323
35324         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
35325         unlocked-io.h.
35326         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
35327         Likewise.
35328         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
35329
35330         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
35331         Reported by Padraig Brady.
35332
35333         * lib/mkstemp.c: #undef mkstemp.
35334         Include config.h.
35335         (rpl_mkstemp): Rename from mkstemp.
35336         Protoize.
35337
35338 2001-11-16  Jim Meyering  <meyering@lucent.com>
35339
35340         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
35341         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
35342         determine the amount of total physical memory, use pstat_getstatic.
35343         HPUX-11 doesn't define _SC_PHYS_PAGES.
35344         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
35345         If sysconf couldn't be used to determine the amount of available
35346         physical memory, use both pstat_getstatic and pstat_getdynamic.
35347         Based on a patch from Bob Proulx.
35348
35349 2001-11-10  Jim Meyering  <meyering@lucent.com>
35350
35351         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
35352         (jm_PREREQ): Use it.
35353
35354 2001-11-09  Jim Meyering  <meyering@lucent.com>
35355
35356         * m4/jm-macros.m4: Require autoconf-2.52f.
35357         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
35358         Use these AC_-prefixed names, not the AM_-prefixed ones.
35359
35360         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
35361
35362 2001-11-05  Jim Meyering  <meyering@lucent.com>
35363
35364         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
35365
35366 2001-11-04  Jim Meyering  <meyering@lucent.com>
35367
35368         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
35369         $DEFS.
35370
35371 2001-11-03  Jim Meyering  <meyering@lucent.com>
35372
35373         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
35374         of AC_DEFUN.
35375
35376         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
35377         know the name of the variable in the macro definition.
35378
35379 2001-11-03  Jim Meyering  <meyering@lucent.com>
35380
35381         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
35382         in argmatch_to_argument call.
35383
35384         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
35385         argument.
35386
35387         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
35388         e.g., a fault due to an attempt to free a NULL pointer.
35389
35390 2001-11-01  Jim Meyering  <meyering@lucent.com>
35391
35392         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
35393         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
35394
35395 2001-11-01  Jim Meyering  <meyering@lucent.com>
35396
35397         * lib/dirfd.c, lib/dirfd.h: New files.
35398         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
35399
35400         * lib/hash.c (hash_print) [TESTING]: Clean up.
35401
35402 2001-10-22  Paul Eggert  <eggert@twinsun.com>
35403
35404         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
35405         to avoid a warning if -Wall.
35406
35407 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
35408
35409         * README: New file
35410         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
35411         (per RMS's instructions, this is now the canonical source)
35412         * lgpl/, gpl/: New directories.
35413
35414 2001-10-21  Paul Eggert  <eggert@twinsun.com>
35415
35416         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
35417
35418 2001-10-21  Jim Meyering  <meyering@lucent.com>
35419
35420         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
35421         this code would end up calling gettext even in packages built
35422         with --disable-nls.
35423         * lib/getopt.c (_): Likewise.
35424         * lib/regex.c (_): Likewise.
35425
35426 2001-10-20  Paul Eggert  <eggert@twinsun.com>
35427
35428         * m4/error.m4 (jm_PREREQ_ERROR):
35429         Do not invoke AC_CHECK_FUNCS with strerror_r, as
35430         AC_FUNC_STRERROR_R does that.
35431         Check for strerror declaration.
35432
35433         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
35434         are supposed to have them these days.
35435         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
35436         Merge changes from latest Autoconf CVS.
35437         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
35438         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
35439         POSIX decided to standardize on the int flavor of strerror_r.
35440
35441 2001-10-20  Paul Eggert  <eggert@twinsun.com>
35442
35443         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
35444         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
35445         Use strerror_r that is only a macro, even if it is not a function.
35446         (strerror): Check for HAVE_DECL_STRERROR before declaring.
35447         (private_strerror): Use prototypes, not old-style function definition.
35448         (print_errno_message): New function.
35449         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
35450         char*-flavored one.
35451         (error_tail, error, error_at_line): Use it.
35452
35453 2001-10-11  Jim Meyering  <meyering@lucent.com>
35454
35455         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
35456         and quote_n (1, ... to avoid clobbering a buffer.
35457
35458 2001-10-05  Jim Meyering  <meyering@lucent.com>
35459
35460         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
35461         hash-pjw.h.
35462         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
35463         * lib/hash-pjw.h: New file.
35464
35465 2001-09-30  Jim Meyering  <meyering@lucent.com>
35466
35467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
35468         `struct fsstat' has the `f_fstypename' member.
35469         Use that to define FS_TYPE, which is now used to make
35470         the getfsstat link test tighter.
35471
35472 2001-09-30  Jim Meyering  <meyering@lucent.com>
35473
35474         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
35475         Include <sys/ucred.h>, for Apple Darwin.
35476         Include sys/mount.h and sys/fs_types.h only if available.
35477         (FS_TYPE): Define.
35478         (read_filesystem_list): Use FS_TYPE.
35479
35480 2001-09-29  Paul Eggert  <eggert@twinsun.com>
35481
35482         * lib/exclude.c (excluded_filename): 0 -> false, since it's
35483         a boolean context.
35484
35485 2001-09-29  Jim Meyering  <meyering@lucent.com>
35486
35487         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
35488         [one-argument getmntent function]): Include stdio.h before mntent.h.
35489         SunOS 4.1.x needs it for the declaration of `FILE'.
35490         Patch by Volker Borchert.
35491
35492         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
35493         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
35494         sys/fs_types.h, and make the link-test for getfsstat guard #include
35495         directives with appropriate #if HAVE_*_H tests so that we can
35496         detect getfsstat on Apple Darwin1.3.7 systems.
35497         Reported by Nelson Beebe.
35498         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
35499
35500 2001-09-28  Paul Eggert  <eggert@twinsun.com>
35501
35502         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
35503         #defines strtoimax.  Also treat the other strto* functions
35504         like strtoimax.
35505
35506         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
35507         Check for strtoul and strtoumax,
35508         as those declarations are made even in the signed case.
35509         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
35510         Likewise, for strtol and strtoimax.
35511
35512 2001-09-28  Paul Eggert  <eggert@twinsun.com>
35513
35514         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
35515         #defines strtoimax.  Also treat the other strto* functions
35516         like strtoimax.
35517
35518         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
35519         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
35520         (strtoimax, strtoumax): Do not declare if already defined as a macro.
35521
35522 2001-09-26  Jim Meyering  <meyering@lucent.com>
35523
35524         Most macros in unlocked-io.h had the wrong number of arguments.
35525         * lib/gen-uio: New script.
35526         (USE_UNLOCKED_IO): Define to 1 if not already defined.
35527         * lib/unlocked-io.hin: Remove file.
35528         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
35529         rather than trying to embed it here.
35530         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
35531         Reported by Padraig Brady.
35532
35533 2001-09-25  Volker Borchert  <bt@teknon.de>
35534
35535         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
35536         `result'.
35537
35538 2001-09-24  Jim Meyering  <meyering@lucent.com>
35539
35540         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
35541
35542 2001-09-23  Jim Meyering  <meyering@lucent.com>
35543
35544         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
35545         instead of the mere test for existence of mntent.h.  The latter
35546         would get a false-positive on AIX 3.4 systems.
35547         In the outer getmntent if-block, don't die if neither of the getmntent
35548         tests succeeds.  Instead, just fall through and continue with the
35549         remaining tests.
35550
35551 2001-09-23  Jim Meyering  <meyering@lucent.com>
35552
35553         * lib/mountlist.c: Remove useless parentheses in #if directives.
35554         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
35555         the deprecated MOUNTED symbol is no longer defined in mntent.h.
35556
35557 2001-09-22  Jim Meyering  <meyering@lucent.com>
35558
35559         * m4/gettext.m4: New file.  From gettext.
35560         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
35561         * m4/progtest.m4: Likewise
35562         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
35563         * m4/glibc21.m4: Likewise.
35564
35565         * m4/libintl.m4: Remove.  No longer used.
35566
35567 2001-09-22  Jim Meyering  <meyering@lucent.com>
35568
35569         * lib/localcharset.c: Update from latest gettext.
35570         * lib/config.charset: Likewise.
35571
35572 2001-09-20  Jim Meyering  <meyering@lucent.com>
35573
35574         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
35575         strtoimax.
35576         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
35577         strtoumax.
35578
35579 2001-09-20  Jim Meyering  <meyering@lucent.com>
35580
35581         * lib/xstrtol.c (strtoimax): Guard declaration with
35582         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
35583         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
35584         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
35585         (strtoumax): Likewise, for completeness (it wasn't necessary).
35586
35587 2001-09-17  Paul Eggert  <eggert@twinsun.com>
35588
35589         * lib/strtoimax.c (HAVE_LONG_LONG):
35590         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
35591         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
35592         to work around bug in IBM C compiler.
35593
35594 2001-09-17  Jim Meyering  <meyering@lucent.com>
35595
35596         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
35597         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
35598         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
35599         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
35600         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
35601         whenever the right hand side need not be expanded by the shell.
35602
35603 2001-09-16  Paul Eggert  <eggert@twinsun.com>
35604
35605         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
35606         library.  It's not correct, as some older glibcs are buggy.
35607         fnmatch wasn't fixed until glibc 2.2.
35608
35609         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
35610         special shell magic here.
35611
35612 2001-09-16  Jim Meyering  <meyering@lucent.com>
35613
35614         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
35615         * m4/jm-macros.m4: Require it.
35616
35617 2001-09-16  Jim Meyering  <meyering@lucent.com>
35618
35619         * lib/mkdir.c: New file.
35620
35621 2001-09-15  Jim Meyering  <meyering@lucent.com>
35622
35623         * m4/jm-macros.m4: Check for help2man.
35624
35625 2001-09-11  Jim Meyering  <meyering@lucent.com>
35626
35627         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
35628         The body, by Paul Eggert, was moved here from configure.in.
35629         * m4/jm-macros.m4: Require UTILS_HOST_OS.
35630
35631 2001-09-04  Paul Eggert  <eggert@twinsun.com>
35632
35633         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
35634         (jm_PREREQ): Use it.
35635
35636 2001-09-04  Paul Eggert  <eggert@twinsun.com>
35637
35638         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
35639         Use ssize_t, not int, to store result of readlink.
35640         Check for ssize_t overflow as well as size_t overflow,
35641         as POSIX says the result of readlink is implementation-defined
35642         when ssize_t overflows.
35643         Remove unnecessary cast to char*.
35644         Use free+malloc instead of realloc, as the storage doesn't need
35645         to be preserved and it's clearer and can be more efficient that way.
35646         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
35647         * lib/xreadlink.h (xreadlink): Update prototype.
35648
35649 2001-09-04  Paul Eggert  <eggert@twinsun.com>
35650
35651         * lib/xgetcwd.c: Revert some of the previous change; intead,
35652         fix the HAVE_GETCWD_NULL code to behave more like the
35653         !HAVE_GETCWD_NULL code used to.
35654
35655         Include "xalloc.h".
35656         (xgetcwd): Do not return NULL when memory is exhausted; instead,
35657         invoke xalloc_die.
35658
35659 2001-09-03  Paul Eggert  <eggert@twinsun.com>
35660
35661         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
35662         sys/param.h, as pathmax.h includes them.
35663
35664 2001-09-03  Paul Eggert  <eggert@twinsun.com>
35665
35666         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
35667         (jm_PREREQ_XGETCWD): New macro.
35668
35669         * m4/getcwd.m4: New file.
35670
35671 2001-09-03  Paul Eggert  <eggert@twinsun.com>
35672
35673         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
35674         like the HAVE_GETCWD_NULL code.
35675         Include pathmax.h if not HAVE_GETCWD.
35676         Do not include xalloc.h.
35677         (INITIAL_BUFFER_SIZE): New symbol.
35678         Do not use xmalloc / xrealloc, since the caller is responsible for
35679         handling errors.  Preserve errno around `free' during failure.
35680         Do not overrun buffer when using getwd.
35681
35682 2001-09-03  Paul Eggert  <eggert@twinsun.com>
35683
35684         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
35685         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
35686         getcwd (NULL, 0).
35687
35688 2001-09-03  Paul Eggert  <eggert@twinsun.com>
35689
35690         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
35691         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
35692         spotted by Jim Meyering.
35693
35694 2001-09-03  Jim Meyering  <meyering@lucent.com>
35695
35696         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
35697         failure.
35698
35699 2001-09-02  Jim Meyering  <meyering@lucent.com>
35700
35701         * lib/error.c: Update from GNU libc.
35702
35703 2001-09-01  Jim Meyering  <meyering@lucent.com>
35704
35705         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
35706         Used by df.
35707
35708 2001-09-01  Jim Meyering  <meyering@lucent.com>
35709
35710         * lib/xreadlink.c: New file.
35711         * lib/xreadlink.h: New file.
35712         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
35713         xreadlink.h.
35714
35715         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
35716         doesn't conflict with sparc Solaris 7's definition in
35717         /usr/include/sys/int_types.h.
35718
35719         * lib/exclude.c: Use `""', not `<>' to #include non-system header
35720         files.
35721         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
35722         and strncasecmp as r-values.  Unixware didn't have declarations.
35723
35724 2001-08-31  Paul Eggert  <eggert@twinsun.com>
35725
35726         * lib/xstrtol.h: Add copyright notice.
35727         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
35728         LONGINT_INVALID_SUFFIX_CHAR.
35729
35730 2001-08-31  Paul Eggert  <eggert@twinsun.com>
35731
35732         * lib/xstrtol.c (strtoimax): New decl.
35733
35734 2001-08-31  Paul Eggert  <eggert@twinsun.com>
35735
35736         * lib/xgetcwd.c: Don't include pathmax.h.
35737         Include stdlib.h and unistd.h if available.
35738         Include xalloc.h.
35739         (xmalloc, xstrdup, free): Remove decls.
35740         (xgetcwd): Don't assume sizes fit in unsigned.
35741         Check for overflow when computing sizes.
35742         Simplify reallocation code.
35743
35744 2001-08-31  Paul Eggert  <eggert@twinsun.com>
35745
35746         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
35747         a directory's st_size can have an arbitrary value, so the old
35748         usage could waste an arbitrary amount of memory.  All uses
35749         changed.
35750         * lib/savedir.h: Update prototype.
35751
35752 2001-08-31  Paul Eggert  <eggert@twinsun.com>
35753
35754         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
35755
35756         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
35757         old strtoimax.c.
35758
35759         Also, make the following further changes to make this file's
35760         configuration more similar to that of strtol.c:
35761         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
35762         (strtoumax, uintmax_t, strtoull, strtol): Remove.
35763         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
35764         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
35765         changed to signed values.
35766
35767         And make the following changes as well:
35768         Fix copyright notice, as 1999 was missing.
35769         (verify): New macro.
35770         (strtoimax): Check sizes at compile-time, not run-time.
35771         Prefer strtol to strtoll if both work.
35772         (main): Remove; it was not that useful and was a pain to maintain.
35773
35774         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
35775
35776 2001-08-31  Jim Meyering  <meyering@lucent.com>
35777
35778         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
35779         Use an initial, malloc'd, buffer of length 128 rather than
35780         a statically allocated one of length 1024.
35781
35782 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35783
35784         Simplify code, partly by assuming autoconf 2.52 semantics.
35785
35786         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
35787
35788         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
35789         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
35790         All uses removed.
35791         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
35792         Move AC_REQUIRE to next-to-top level, to avoid confusion.
35793         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
35794         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
35795         jm_AC_HEADER_INTTYPES_H.
35796         * m4/jm-macros.m4 (jm_MACROS): Likewise.
35797
35798         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
35799
35800         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
35801         Quote first arg of AC_DEFUN.
35802         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
35803         since they are needed to parse the include file even if we need
35804         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
35805         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
35806         but with opposite signedness.
35807
35808 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35809
35810         Merge 'exclude' changes from tar 1.13.22.
35811         This fixes one or two unlikely storage allocation overflow bugs,
35812         but doesn't change user-visible behavior otherwise.
35813
35814 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35815
35816         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
35817         (jm_PREREQ_EXCLUDE): New macro.
35818
35819 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35820
35821         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
35822         tm to be declared.
35823
35824 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35825
35826         * lib/hash.c: Remove '2001' from copyright notice.
35827
35828 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35829
35830         * lib/full-write.h: New file.
35831         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
35832         * lib/full-write.c: Correct credits, as cccp.c no longer
35833         exists and anyway it was so heavily changed from the old cccp
35834         code as to be unrecognizable.  Include full-write.h.
35835         (full_write) Return size_t, with short writes meaning failure.
35836         All callers changed.  This fixes a bug with large buffers
35837         on 64-bit hosts.
35838         * lib/utime.c: Include full-write.h.
35839
35840 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35841
35842         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
35843         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
35844         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
35845         Include if available.
35846         (<xalloc.h>): Include
35847         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
35848         (verify): New macro.  Use it to verify that EXCLUDE macros do not
35849         collide with FNM macros.
35850         (struct patopts): New struct.
35851         (struct exclude): Use it, as exclude patterns now come with options.
35852         (new_exclude): Support above changes.
35853         (new_exclude, add_exclude_file):
35854         Initial size must now be a power of two to simplify overflow checking.
35855         (free_exclude, fnmatch_no_wildcards): New function.
35856         (excluded_filename): No longer requires options arg, as the options
35857         are determined by add_exclude.  Now returns bool, not int.
35858         (excluded_filename, add_exclude):
35859         Add support for the fancy new exclusion options.
35860         (add_exclude, add_exclude_file): Now takes int options arg.
35861         Check for arithmetic overflow when computing sizes.
35862         (add_exclude_file): xrealloc might modify errno, so don't
35863         realloc until after errno might be used.
35864
35865         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
35866         New macros.
35867         (free_exclude): New decl.
35868         (add_exclude, add_exclude_file): Now takes int options arg.
35869         (excluded_filename): No longer requires options arg, as the options
35870         are determined by add_exclude.  Now returns bool, not int.
35871
35872 2001-08-30  Paul Eggert  <eggert@twinsun.com>
35873
35874         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
35875
35876 2001-08-27  Jim Meyering  <meyering@lucent.com>
35877
35878         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
35879
35880         * lib/version-etc.c (N_): Remove definition.
35881         Revert most of last change.
35882         Instead, simply don't mark the `Copyright...' string for translation.
35883         Based on advice from Paul Eggert.
35884
35885         * lib/strtoxmax.c: Tweak comment.
35886
35887 2001-08-26  Jim Meyering  <meyering@lucent.com>
35888
35889         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
35890
35891         * m4/xstrtoimax.m4: New file.
35892         * m4/xstrtoumax.m4: Add comments explaining why we
35893         AC_REPLACE_FUNCS(strtol).
35894
35895 2001-08-26  Jim Meyering  <meyering@lucent.com>
35896
35897         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
35898         of copyright with `%s' so translators don't get an untranslated
35899         message in 2002.
35900         (COPYRIGHT_YEAR): Define.
35901         (version_etc): Use fprintf rather than fputs.
35902         Suggestion from Ulrich Drepper.
35903
35904         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
35905
35906         * lib/strtoll.c: New file, from GNU libc.
35907         * lib/xstrtoimax.c: New file.
35908
35909         * lib/xstrtol.h: Add xstrtoimax.
35910         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
35911         * lib/strtoimax.c: New file.  Likewise, but first define
35912         STRTOUXMAX_SIGNED.
35913
35914         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
35915         ...
35916         * lib/strtoxmax.c: ... then renamed to this.
35917
35918 2001-08-18  Paul Eggert  <eggert@twinsun.com>
35919
35920         * m4/inttypes.m4: Add AC_PREREQ(2.13).
35921         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
35922         (jm_AC_TYPE_INTMAX_T): New macro.
35923         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
35924
35925         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
35926
35927         * m4/longlong.m4: Renamed from ulonglong.m4.
35928         * m4/inttypes.m4: Renamed from inttypes_h.m4.
35929         * m4/uintmax_t.m4: Removed.
35930
35931 2001-08-13  Paul Eggert  <eggert@twinsun.com>
35932
35933         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
35934         Port to Solaris 8, where 'sed' requires a space after the 'r'
35935         command, and where sh dislikes "$/".  Clean up the spacing a bit.
35936         Redirect output to $tmp just once.
35937
35938 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
35939
35940         * lib/addext.c (<errno.h>): Include.
35941         (errno): Declare if not defined.
35942         (addext): Work correctly when pathconf returns -1 and leaves
35943         errno alone because there is no limit.  Also, work even if
35944         pathconf returns a value greater than SIZE_MAX.
35945
35946 2001-08-12  Jim Meyering  <meyering@lucent.com>
35947
35948         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
35949         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
35950         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
35951         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
35952         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
35953         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
35954         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
35955         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
35956         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
35957         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
35958         utime.m4, utimes.m4, xstrtoumax.m4:
35959         Quote the first argument in each use of AC_DEFUN.
35960
35961 2001-08-12  Jim Meyering  <meyering@lucent.com>
35962
35963         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
35964         Simply `return getcwd (NULL, 0);'.
35965         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
35966         Use 1300 as initial value for length, not PATH_MAX.
35967
35968         * lib/pathmax.h: Clean up cpp syntax.
35969
35970 2001-08-12  Jim Meyering  <meyering@lucent.com>
35971
35972         * lib/gettimeofday.c: New file.
35973         * lib/gtod.h: New file.
35974         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
35975
35976 2001-08-05  Jim Meyering  <meyering@lucent.com>
35977
35978         * m4/jm-macros.m4: Require autoconf-2.52.
35979
35980 2001-08-04  Jim Meyering  <meyering@lucent.com>
35981
35982         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
35983         stmt, to get in sync with glibc.
35984
35985 2001-08-03  Paul Eggert  <eggert@twinsun.com>
35986
35987         The following changes are from gettext 0.10.39 as maintained by
35988         Bruno Haible.
35989
35990         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
35991         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
35992         with inverted sense.  All uses changed.
35993
35994         * lib/mbswidth.c: Don't include <limits.h>.
35995         Include <stdlib.h> and <string.h> unconditionally.
35996         (iswcntrl, mbsinit, ISCNTRL): New macros.
35997         (mbsnwidth): Use K&R style function declarations.
35998         Don't bother checking for MB_LEN_MAX == 1, since the compiler
35999         can optimize it when MB_CUR_MAX == 1.
36000         The width of control characters is zero, not 1.
36001
36002 2001-08-03  Paul Eggert  <eggert@twinsun.com>
36003
36004         The following changes are from gettext 0.10.39 as maintained by
36005         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
36006
36007         * m4/codeset.m4: Upgrade to serial AM1.
36008         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
36009         all uses changed.  Quote first arg of AC_DEFUN.
36010         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
36011
36012         * m4/iconv.m4: Upgrade to serial AM2.
36013         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
36014         Add --with-libconv-prefix.
36015         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
36016         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
36017         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
36018         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
36019         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
36020
36021         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
36022         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
36023         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
36024         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
36025         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
36026         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
36027         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36028         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
36029         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
36030
36031         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
36032         string.h any more.
36033
36034         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
36035         not the default value.
36036
36037         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
36038         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
36039         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
36040         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
36041         Also check for iswcntrl, used for wcwidth fallback.
36042         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
36043         to Autoconf 2.13.
36044
36045 2001-08-03  Jim Meyering  <meyering@lucent.com>
36046
36047         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
36048         as it was in the original.  Reported by Paul Eggert.
36049
36050 2001-07-16  Jim Meyering  <meyering@lucent.com>
36051
36052         * m4/gettimeofday.m4: New file.
36053         Prompted by a report from Bernhard Baehr.
36054
36055 2001-07-15  Jim Meyering  <meyering@lucent.com>
36056
36057         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
36058         stuff. Now it's in ../Makefile.cfg.
36059
36060 2001-07-15  Jim Meyering  <meyering@lucent.com>
36061
36062         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
36063         (BUILT_SOURCES): Add unlocked-io.h.
36064         (io_functions): Define.
36065         (unlocked-io.h): New rule.
36066         (DISTCLEANFILES): Add unlocked-io.h.
36067         (all-local): Depend on unlocked-io.h, to ensure it is created.
36068
36069         * lib/unlocked-io.hin: New file
36070
36071         * lib/regex.c: Update from glibc.
36072
36073 2001-07-05  Jim Meyering  <meyering@lucent.com>
36074
36075         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
36076         recommendation.
36077         (libfetish_a_SOURCES): Put all .h files here instead.
36078         Remove a thus-exposed (better checks in automake) duplicate and
36079         two unnecessary .h files.
36080
36081 2001-07-04  Jim Meyering  <meyering@lucent.com>
36082
36083         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
36084         that generates jm-glibc-io.m4 so that it doesn't trigger any make
36085         distcheck failure.
36086
36087 2001-07-02  Jim Meyering  <meyering@lucent.com>
36088
36089         The following changes were prompted by suggestions from Bruno Haible.
36090
36091         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
36092         is now generated.
36093         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
36094         definition of EXTRA_DIST.
36095         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
36096         ensure that the generated file is created/updated whenever the list
36097         of $(unlocked_functions) is changed.
36098         (jm-glibc-io.m4): New rule.
36099         (unlocked-io.h): New rule -- currently unused.
36100
36101 2001-06-24  Jim Meyering  <meyering@lucent.com>
36102
36103         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
36104         unmatched right bracket, rather than kludging it with an extra,
36105         falsely-matching quote in a comment.  Patch by Akim Demaille.
36106
36107 2001-06-11  Jim Meyering  <meyering@lucent.com>
36108
36109         * lib/regex.c: Update from GNU libc.
36110
36111 2001-05-27  Jim Meyering  <meyering@lucent.com>
36112
36113         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
36114         Check for ut_type in struct utmp.
36115
36116 2001-05-27  Jim Meyering  <meyering@lucent.com>
36117
36118         * lib/readutmp.h (UT_TYPE): Define.
36119
36120 2001-05-24  Jim Meyering  <meyering@lucent.com>
36121
36122         * lib/argmatch.c: Include "quote.h".
36123         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
36124         quote function.  Reported by Göran Uddeborg.
36125
36126 2001-05-22  Jim Meyering  <meyering@lucent.com>
36127
36128         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
36129         now that we use the package-supplied version unconditionally.
36130         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
36131
36132 2001-05-21  Jim Meyering  <meyering@lucent.com>
36133
36134         * m4/regex.m4: Change a couple backticks to single quotes to avoid
36135         shell syntax errors.
36136
36137 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
36138
36139         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
36140
36141 2001-05-20  Paul Eggert  <eggert@twinsun.com>
36142
36143         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
36144         Don't bother to check library strftime, since
36145         we'll be using our own my_strftime function anyway.
36146         Define my_strftime instead of strftime.
36147
36148 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
36149
36150         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
36151         which is not yet declared.
36152
36153 2001-05-15  Jim Meyering  <meyering@lucent.com>
36154
36155         * m4/regex.m4: Use proper quoting so brackets appear in the test
36156         program.
36157         Reported by, and with help from, Bruno Haible.
36158
36159 2001-05-13  Jim Meyering  <meyering@lucent.com>
36160
36161         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
36162         undefined.
36163
36164 2001-05-11  Paul Eggert  <eggert@twinsun.com>
36165
36166         dirname code cleanup.  base_name now behaves more compatibly
36167         with POSIX basename when given file names that have trailing
36168         slashes, and similarly for dir_name.  Add new primitives
36169         base_len and dir_len.  Put the directory-name-related decls
36170         into dirname.h.
36171
36172         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
36173         * lib/backupfile.c (base_name): Likewise.
36174         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
36175         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
36176         * lib/makepath.c (strip_trailing_slashes): Likewise.
36177         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
36178         ISSLASH): Likewise.
36179         * lib/rename.c (strip_trailing_slashes): Likewise.
36180         * lib/same.c (base_name): Likewise.
36181         * lib/stripslash.c (ISSLASH): Likewise.
36182
36183         * lib/addext.c: Include <dirname.h> after size_t is defined.
36184         * lib/backupfile.c: Likewise.
36185
36186         * lib/addext.c (addext): Use base_len to trim redundant
36187         trailing slashes instead of doing it ourselves.
36188         But do not trim the last slash if it is not redundant.
36189
36190         * lib/backupfile.c (find_backup_file_name,
36191         max_backup_version): Use base_len instead of rolling it ourselves.
36192         Handle the case of "" and (on DOS) "C:" correctly.
36193
36194         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
36195         needed. Include <string.h>, <dirname.h>.
36196         (base_name): Allow file names ending in slashes, other than names
36197         that are all slashes.  In this case, return the basename followed
36198         by the slashes.  This is more general, and can be used in places
36199         where the original base_name purposely had an assertion failure.
36200         (base_len): New function.
36201
36202         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
36203         Do not include <assert.h>; no longer needed.
36204         Include xalloc.h.
36205         (memrchr): Remove decl.
36206         (dir_name_r): Remove.
36207         (dir_len): Renamed from dirlen.  All callers changed.
36208         Rewrite in terms of base_name, for simplicity and consistency.
36209         (dir_name): Never return NULL.  All callers changed.
36210         Do not include <stdlib.h> in test program; no longer needed.
36211         return 0; is fine for test program.
36212
36213         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
36214         New macros.
36215         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
36216
36217         * lib/path-concat.c (path_concat): Use base_len to compute
36218         base length, not strlen; this means we cannot rely on memcpy
36219         to null-terminate.
36220
36221         * lib/same.c (STREQ): Remove.
36222         (same_name): Handle the case where the basename ends in trailing '/'.
36223
36224         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
36225         a slash was stripped.  Do not strip the last slash after a
36226         file system prefix.
36227
36228 2001-05-11  Paul Eggert  <eggert@twinsun.com>
36229
36230         * lib/Makefile.am (libfetish_a_SOURCES):
36231         Add strftime.c, since we now compile it on all hosts.
36232
36233         * lib/strftime.c (my_strftime):
36234         Define to nstrftime if emacs, but only if my_strftime is not defined.
36235         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
36236         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
36237         Add one more extra argument: a nanoseconds value.
36238         All uses changed.
36239         (ns): New macro.
36240         (my_strftime function): Add %N format.
36241         (emacs_strftimeu): Renamed from emacs_strftime,
36242         with extra ut argument.
36243
36244 2001-05-09  Paul Eggert  <eggert@twinsun.com>
36245
36246         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
36247
36248 2001-04-21  Jim Meyering  <meyering@lucent.com>
36249
36250         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
36251         doesn't interfere.
36252
36253 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
36254
36255         * m4/ftruncate.m4: Check for chsize.
36256         Link with ftruncate.o unconditionally if ftruncate is missing.
36257         This was required when cross-compiling to i586-mingw32msvc.
36258
36259 2001-04-08  Jim Meyering  <meyering@lucent.com>
36260
36261         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
36262         recomputed; that's necessary when the offset spans a DST transition.
36263         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
36264
36265 2001-04-02  Jim Meyering  <meyering@lucent.com>
36266
36267         * lib/regex.h, regex.c: Update from GNU libc.
36268
36269 2001-03-24  Jim Meyering  <meyering@lucent.com>
36270
36271         * m4/jm-macros.m4: Require autoconf-2.49d.
36272
36273 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
36274
36275         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
36276
36277 2001-03-19  Paul Eggert  <eggert@twinsun.com>
36278
36279         * lib/version-etc.c (version_etc_copyright): Update to 2001.
36280
36281 2001-03-17  Jim Meyering  <meyering@lucent.com>
36282
36283         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
36284         now that the version in autoconf is equivalent.
36285         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
36286
36287         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
36288         Suggestion from Akim Demaille.
36289
36290         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
36291         (jm_PREREQ_TEMPNAME): New function.
36292
36293 2001-03-16  Paul Eggert  <eggert@twinsun.com>
36294
36295         * lib/tempname.c (uint64_t): Define to uintmax_t if
36296         not defined, and if UINT64_MAX is not defined.
36297         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
36298         Reported by John David Anglin.
36299
36300 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
36301
36302         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
36303         resolve alias if codeset is empty.
36304         * lib/config.charset (BeOS): Use wildcard syntax.
36305
36306 2001-03-13  Jim Meyering  <meyering@lucent.com>
36307
36308         * lib/path-concat.c (path_concat)
36309         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
36310         concatenating e.g., `C:' and `foo'.
36311         From Bruno Haible.
36312
36313 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
36314
36315         * lib/localcharset.c (locale_charset): Don't use
36316         setlocale(LC_CTYPE,NULL). Don't return NULL.
36317         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
36318
36319 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
36320
36321         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
36322         support for DOS/DJGPP.
36323
36324 2001-03-01  Paul Eggert  <eggert@twinsun.com>
36325
36326         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
36327         lacks mkstemp.  Compile our own tempname.c if we compile our own
36328         mkstemp.c, as mkstemp relies on tempname.
36329
36330 2001-03-01  Jim Meyering  <meyering@lucent.com>
36331
36332         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
36333         AH_VERBATIM really does output its argument verbatim.
36334
36335 2001-02-28  Paul Eggert  <eggert@twinsun.com>
36336
36337         * lib/Makefile.am (libfetish_a_SOURCES):
36338         Add dup-safer.c, fopen-safer.c.
36339         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
36340
36341         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
36342         * lib/unistd-safer.h: New files.
36343
36344 2001-02-25  Paul Eggert  <eggert@twinsun.com>
36345
36346         The mkstemp replacement is taken from glibc 2.2.2, with some
36347         portability fixes for use outside glibc, as follows:
36348
36349         * lib/tempname.c (struct_stat64): New macro.
36350         (direxists, __gen_tempname): Use it.
36351         This avoids a portability problem with Solaris 8.
36352
36353         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
36354         (<stddef.h>, <stdint.h>, <string.h>):
36355         Include only if STDC_HEADERS || _LIBC.
36356         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
36357         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
36358         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
36359         (__set_errno): Define this macro if <errno.h> doesn't.
36360         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
36361         Define these macros if <stdio.h> doesn't.
36362         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
36363         Define these macros if <sys/stat.h>
36364         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
36365         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
36366         __xstat64): Define if not _LIBC.
36367         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
36368         (__gen_tempname): Invoke gettimeofday only if
36369         HAVE_GETTIMEOFDAY || _LIBC;
36370         otherwise, fall back on plain "time".
36371         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
36372
36373         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
36374
36375         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
36376
36377 2001-02-18  Paul Eggert  <eggert@twinsun.com>
36378
36379         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
36380
36381 2001-02-17  Paul Eggert  <eggert@twinsun.com>
36382
36383         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
36384         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
36385         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
36386         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
36387
36388 2001-02-17  Paul Eggert  <eggert@twinsun.com>
36389
36390         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
36391         Remove workaround macros for hosts that have mbrtowc but not
36392         mbstate_t, as we now insist on proper declarations for both
36393         before using mbrtowc.
36394
36395 2001-02-17  Jim Meyering  <meyering@lucent.com>
36396
36397         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
36398         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
36399         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
36400         UnixWare 7.1.1.
36401
36402         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
36403         rather than AC_CACHE_VAL.
36404
36405 2001-02-17  Jim Meyering  <meyering@lucent.com>
36406
36407         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
36408         around included file name.
36409
36410         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
36411
36412         * lib/strftime.c: Update from GNU libc (the only changes were to
36413         comments).
36414
36415 2001-02-17  Jim Meyering  <meyering@lucent.com>
36416
36417         * lib/regex.c: Update from libc.
36418
36419 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
36420
36421         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
36422         clash.
36423
36424 2001-02-16  Paul Eggert  <eggert@twinsun.com>
36425
36426         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
36427         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
36428         Reported by Mark Hounschell via Paul Eggert.
36429
36430 2001-02-07  Jim Meyering  <meyering@lucent.com>
36431
36432         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
36433
36434 2001-02-05  Jim Meyering  <meyering@lucent.com>
36435
36436         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
36437         it includes the patch required for `large file' support with at least
36438         HP-UX's 10.20 /bin/cc.
36439
36440 2001-02-03  Jim Meyering  <meyering@lucent.com>
36441
36442         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
36443         AS_IF, now that it works once again (mysteriously).
36444         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
36445
36446 2001-01-30  Jim Meyering  <meyering@lucent.com>
36447
36448         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
36449         * m4/chown.m4: Rename conftestchown to conftest.chown.
36450         * m4/rename.m4: s/conftestdir/conftest.d1/ and
36451         s/conftestdir2/conftest.d2/.
36452         * m4/utimes.m4: s/conftestdata/conftest.data/
36453         Inspired by Pavel Roskin's change in autoconf.
36454
36455 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
36456
36457         * lib/config.charset: Update for FreeBSD 4.2.
36458
36459 2001-01-27  Jim Meyering  <meyering@lucent.com>
36460
36461         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
36462         a use of AS_IF.
36463         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
36464
36465 2001-01-26  Jim Meyering  <meyering@lucent.com>
36466
36467         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
36468         quotearg.c includes it.
36469
36470 2001-01-26  Jim Meyering  <meyering@lucent.com>
36471
36472         * lib/quotearg.c: Include stddef.h.
36473         * lib/quote.c: Include stddef.h.
36474         Reported by Axel Kittenberger.
36475
36476         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
36477         line in double quotes so that it evokes a better diagnostic.
36478         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
36479         Reported by Axel Kittenberger.
36480
36481 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
36482
36483         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
36484         as if it was a `charset'.
36485
36486 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
36487
36488         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
36489         has const.
36490
36491 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
36492
36493         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
36494         to avoid a warning.  Add back 'const' to inptr.
36495
36496 2001-01-20  Jim Meyering  <meyering@lucent.com>
36497
36498         Be sure that headers are checked before used in code compiled
36499         for the type checks.
36500         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
36501         In place of that, invoke jm_CHECK_ALL_TYPES.
36502         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
36503         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
36504         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
36505         The check for ssize_t was mistakenly run before the test for unistd.h.
36506
36507         The configure-time check for stdbool.h was missing.
36508         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
36509         (jm_PREREQ_HASH): New function.
36510
36511 2001-01-17  Jim Meyering  <meyering@lucent.com>
36512
36513         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
36514         for autoconf-2.49c.
36515         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
36516
36517 2001-01-16  Jim Meyering  <meyering@lucent.com>
36518
36519         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
36520         From Bruno Haible.
36521
36522 2001-01-14  Jim Meyering  <meyering@lucent.com>
36523
36524         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
36525         foo and bar.  Create conftestdir/ in the script, not in the C code.
36526         Remove directories in the script, not in the C code.
36527         Remove conftestdir{,2} before trying to create the directory.
36528         Make the entire configure script fail if the mkdir fails.
36529
36530 2001-01-14  Jim Meyering  <meyering@lucent.com>
36531
36532         * lib/rename.c: New file.  From Volker Borchert.
36533         Include stdlib.h, string.h or strings.h, and xalloc.h.
36534         Use strip_trailing_slashes rather than open-coding it.
36535
36536 2001-01-03  Paul Eggert  <eggert@twinsun.com>
36537
36538         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
36539
36540 2001-01-03  Jim Meyering  <meyering@lucent.com>
36541
36542         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
36543         of local `inptr' to avoid warning with some system declarations of
36544         iconv.
36545
36546 2001-01-02  Volker Borchert  <bt@teknon.de>
36547
36548         * m4/rename.m4: New file.
36549         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
36550
36551 2001-01-01  Jim Meyering  <meyering@lucent.com>
36552
36553         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
36554         even on systems with utmpx.h.  It's necessary for the declaration of
36555         utmp's ut_user member.  Reported by Andreas Jaeger.
36556
36557         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
36558         available. They are required for the declarations of getgrgid and
36559         getpwuid resp.
36560         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
36561         Reported by Andreas Jaeger.
36562
36563 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
36564
36565         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
36566         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
36567         so `make install' also works in VPATH builds.
36568
36569 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
36570
36571         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
36572         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
36573         can be used in subdirectories.
36574
36575 2000-12-29  Paul Eggert  <eggert@twinsun.com>
36576
36577         * lib/modechange.c: Do not assume that mode_t uses the
36578         traditional octal encoding.  E.g. "chmod 1 FOO" should set
36579         the other-execute bit of FOO even if S_IXOTH != 1.
36580
36581         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
36582         WOTH, XOTH, ALLM): New macros.
36583         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
36584          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
36585         Use them.
36586         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
36587         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
36588         (mode_compile):
36589         No need to use uintmax_t; unsigned long is long enough.
36590         Don't bother to get suffix since we don't use it.
36591
36592 2000-12-26  Jim Meyering  <meyering@lucent.com>
36593
36594         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
36595         better with autoheader.
36596
36597 2000-12-24  Jim Meyering  <meyering@lucent.com>
36598
36599         * lib/hash.c (is_prime): Return explicit boolean values.
36600         (hash_get_first): Return NULL to appease Irix5.6's 89.
36601         Reported by Nelson Beebe.
36602
36603 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
36604
36605         * lib/localcharset.c (locale_charset): Add support for Win32.
36606
36607 2000-12-18  Paul Eggert  <eggert@twinsun.com>
36608
36609         * lib/physmem.h, lib/physmem.c: New files.
36610
36611         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
36612         (noinst_HEADERS): Add physmem.h.
36613
36614         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
36615         't' for compatibility with Solaris 8 sort.
36616
36617 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
36618
36619         * lib/config.charset: Add support for BeOS.
36620
36621 2000-12-17  Jim Meyering  <meyering@lucent.com>
36622
36623         * m4/dos.m4 (jm_AC_DOS): New file and macro.
36624         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
36625
36626 2000-12-16  Jim Meyering  <meyering@lucent.com>
36627
36628         This bug had a serious impact on chown: `chown N:M FILE' (for integer
36629         N and M) would have treated it like `chown N:N FILE'.
36630
36631         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
36632
36633 2000-12-16  Jim Meyering  <meyering@lucent.com>
36634
36635         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
36636         SHELLS_FILE to a file name that's useful on djgpp systems.
36637         Include stdlib.h.
36638         (ADDITIONAL_DEFAULT_SHELLS): Define.
36639         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
36640         Based mostly on a patch from Prashant TR.
36641
36642 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
36643
36644         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
36645         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
36646         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
36647
36648 2000-12-08  Andreas Schwab  <schwab@suse.de>
36649
36650         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
36651         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
36652
36653 2000-12-07  Jim Meyering  <meyering@lucent.com>
36654
36655         * lib/stripslash.c (ISSLASH): Define.
36656         (strip_trailing_slashes): Use ISSLASH rather than comparing against
36657         `/'.
36658         From Prashant TR.
36659
36660         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
36661         (dir_name_r): Declare this function as static.
36662         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
36663         manifest itself on a name containing a mix of slashes and
36664         backslashes.
36665         Make this function work with names starting with a DOS-style
36666         drive letter and colon prefix.
36667         (dir_name): Append `.' if necessary.
36668         Based mostly on patches from Prashant TR and Eli Zaretskii.
36669
36670         * lib/dirname.h (dir_name_r): Remove prototype.
36671
36672 2000-12-06  Paul Eggert  <eggert@twinsun.com>
36673
36674         * m4/off_t-format.m4: Remove this file.
36675         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
36676
36677 2000-12-06  Jim Meyering  <meyering@lucent.com>
36678
36679         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
36680         replacement strtoull, we may well need the replacement strtoul, too.
36681         Check for declarations of strtoul and strtoull.
36682         Check for strtol.  Mainly as a cue to cause automake to include
36683         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
36684         Check for limits.h -- strtol.c needs it.
36685
36686 2000-12-05  Jim Meyering  <meyering@lucent.com>
36687
36688         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
36689
36690 2000-12-04  Jim Meyering  <meyering@lucent.com>
36691
36692         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
36693         Also include memory.h, stdlib.h, unistd.h if appropriate.
36694         Reported by Andreas Jaeger (conflicting declaration of malloc).
36695
36696 2000-12-02  Jim Meyering  <meyering@lucent.com>
36697
36698         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
36699         * m4/jm-macros.m4 (jm_MACROS): require it.
36700
36701 2000-12-02  Jim Meyering  <meyering@lucent.com>
36702
36703         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
36704
36705 2000-12-01  Paul Eggert  <eggert@twinsun.com>
36706
36707         * lib/memrchr.c: Include <config.h> before any system include file.
36708
36709 2000-11-30  Jim Meyering  <meyering@lucent.com>
36710
36711         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
36712
36713 2000-11-30  Jim Meyering  <meyering@lucent.com>
36714
36715         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
36716
36717 2000-11-29  Paul Eggert  <eggert@twinsun.com>
36718
36719         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
36720
36721 2000-11-26  Jim Meyering  <meyering@lucent.com>
36722
36723         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
36724
36725 2000-11-22  Paul Eggert  <eggert@twinsun.com>
36726
36727         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
36728         size of (size_t) -1; it's not portable.
36729
36730 2000-11-17  Jim Meyering  <meyering@lucent.com>
36731
36732         * lib/strstr.c: Update from GNU libc.
36733
36734 2000-11-17  Akim Demaille  <akim@epita.fr>
36735
36736         * lib/obstack.h: Formatting changes.
36737         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
36738         prevent type checking.
36739         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
36740         cast the value to (void *): assigning a `foo *' to a `void *'
36741         variable is valid.
36742         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
36743
36744 2000-11-16  Jim Meyering  <meyering@lucent.com>
36745
36746         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
36747
36748 2000-11-11  Jim Meyering  <meyering@lucent.com>
36749
36750         * lib/error.c: Add a couple #includes, merging from GNU libc version.
36751
36752 2000-11-10  Jim Meyering  <meyering@lucent.com>
36753
36754         * lib/obstack.h: Update from GNU libc.
36755         * lib/obstack.c: Likewise.
36756
36757 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
36758
36759         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
36760
36761 2000-11-06  Paul Eggert  <eggert@twinsun.com>
36762
36763         * lib/getusershell.c (setusershell): Use rewind rather than
36764         fseek/fseeko, to avoid configuration hassles with fseeko.
36765         Don't bother opening SHELLS_FILE if shellstream is NULL;
36766         it's not necessary.
36767
36768 2000-11-05  Jim Meyering  <meyering@lucent.com>
36769
36770         * lib/makepath.h (make_dir): Declare.
36771         * lib/makepath.c (make_dir): Remove `static' attribute.
36772         Tweak a comment.
36773
36774 2000-11-04  Jim Meyering  <meyering@lucent.com>
36775
36776         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
36777
36778 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
36779
36780         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
36781         last one in a bucket, advance to the next bucket.
36782
36783 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
36784
36785         * lib/fnmatch.c: Do not comment out all the code if we are using
36786         the GNU C library, because in some cases we are replacing buggy
36787         code in the GNU C library itself.
36788
36789 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
36790
36791         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
36792         (regex_compile): Catch bogus \(\1\).
36793
36794 2000-10-30  Paul Eggert  <eggert@twinsun.com>
36795
36796         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
36797         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
36798         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
36799
36800 2000-10-30  Paul Eggert  <eggert@twinsun.com>
36801
36802         * lib/error.h, getline.h, modechange.h:
36803         Remove "2000" from Copyright line, as the file hasn't been
36804         changed this year other than in the copyright notice.
36805
36806         * lib/xalloc.h: Add "2000" to Copyright line, as this file
36807         was changed this year.
36808
36809 2000-10-29  Jim Meyering  <meyering@lucent.com>
36810
36811         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
36812         renaming.
36813         * m4/ls-mntd-fs.m4: Likewise
36814
36815 2000-10-29  Jim Meyering  <meyering@lucent.com>
36816
36817         * lib/xstat.in: Fix grammar in comment.
36818
36819 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
36820
36821         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
36822         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
36823         doesn't define __restrict_arr.
36824
36825 2000-10-28  Jim Meyering  <meyering@lucent.com>
36826
36827         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
36828         (jm_PREREQ_MEMCHR): New function.
36829
36830 2000-10-28  Jim Meyering  <meyering@lucent.com>
36831
36832         * lib/memchr.c: Update from libc.
36833         Adjust for portability:
36834         [HAVE_STDLIB_H]: Include stdlib.h.
36835         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
36836         Undef __memchr, too.
36837         [!weak_alias]: Define __memchr to memchr.
36838
36839         * lib/regex.c: Update from libc.
36840         * lib/regex.h: Likewise.
36841         * lib/getopt1.c: Likewise.
36842         * lib/memcmp.c: Likewise.
36843
36844         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
36845         Avoid using fseek, when possible -- it's broken by design.
36846         Patch by Ulrich Drepper.
36847
36848 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
36849
36850         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
36851         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
36852         Giving in to popular pressure to shut up the compiler with casts.
36853
36854 2000-10-26  Jim Meyering  <meyering@lucent.com>
36855
36856         * lib/strftime.c: Update from libc.
36857
36858 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
36859
36860         * regex.c: More `unsigned char' -> `re_char' changes.
36861         Also change several `int' into `re_wchar_t'.
36862         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
36863         (PUSH_FAILURE_POINTER): Don't cast any more.
36864         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
36865         We want GCC to complain, since this piece of code makes
36866         re_match non-reentrant, which *should* be fixed.
36867         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
36868         (EXTEND_BUFFER): Use RETALLOC.
36869         (SET_LIST_BIT): Don't cast.
36870         (re_wchar_t): New type.
36871         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
36872         that those two functions will always properly return.
36873         (IMMEDIATE_QUIT_CHECK): Cast to void.
36874         (analyse_first): Use recursion rather than an explicit stack.
36875         (re_compile_fastmap): Can't fail anymore.
36876         (re_search_2): Don't check re_compile_fastmap for failure.
36877         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
36878         Now also sets the new value (passed in a new argument).
36879         (re_match_2_internal): Use it.
36880         Also, use a new var `reg' of type size_t when looping through regs
36881         rather than reuse the inappropriate `mcnt'.
36882
36883 2000-10-25  Jim Meyering  <meyering@lucent.com>
36884
36885         * lib/obstack.c: Update from libc.
36886
36887 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
36888
36889         * regex.c (regex_compile): Change the way of handling a range from
36890         a char less than 256 to a char not less than 256.
36891
36892 2000-10-24  Andrew Innes  <andrewi@gnu.org>
36893
36894         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
36895         NT-Emacs only.
36896         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
36897         so that re_search functions only quit when callers expect them to.
36898
36899 2000-10-23  Jim Meyering  <meyering@lucent.com>
36900
36901         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
36902         wrong.  That set_locale call must not have any side effects.
36903         From Paul Eggert.
36904
36905 2000-10-22  Jim Meyering  <meyering@lucent.com>
36906
36907         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
36908         [CYCLIC]: Remove now-unused definition.
36909
36910         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
36911         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
36912         Suggestion from Ulrich Drepper.
36913
36914 2000-10-21  Jim Meyering  <meyering@lucent.com>
36915
36916         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
36917         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
36918         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
36919
36920 2000-10-21  Jim Meyering  <meyering@lucent.com>
36921
36922         * lib/dirname.c (memrchr): Declare if necessary.
36923         (dir_name): Remove the restriction that there be no
36924         trailing slashes.  Now, this code skips past them, effectively
36925         ignoring them.
36926         [TEST_DIRNAME] (main): New unit tests.
36927
36928         * lib/memrchr.c: New file from GNU libc.
36929         Undef __memrchr, too.
36930         [!weak_alias]: Define __memrchr to memrchr.
36931         Guard weak_alias use with `#ifdef weak_alias'.
36932
36933 2000-10-21  Jim Meyering  <meyering@lucent.com>
36934
36935         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
36936         (dir_name): Use dir_name_r.
36937         * lib/dirname.h (dir_name_r): Declare it.
36938
36939 2000-10-17  Jim Meyering  <meyering@lucent.com>
36940
36941         * lib/quote.h (PARAMS): Define and use.
36942         Reported by Akim Demaille.
36943
36944         * lib/getopt.c: Update from libc.
36945
36946 2000-10-16  Jim Meyering  <meyering@lucent.com>
36947
36948         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
36949         setlocale.
36950         From Jan Fedak.
36951
36952 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
36953
36954         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
36955
36956 2000-09-25  Jim Meyering  <meyering@lucent.com>
36957
36958         * lib/md5.h (rol): Define (from GnuPG).
36959
36960         * lib/sha.c: Give credit (GnuPG) where due.
36961         (M): Use rol rather than open-coding it.
36962         Add a FIXME comment.
36963
36964 2000-09-21  Jim Meyering  <meyering@lucent.com>
36965
36966         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
36967         Reported by Michael Stone.
36968
36969 2000-09-20  Jim Meyering  <meyering@lucent.com>
36970
36971         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
36972         (noinst_HEADERS): Add sha.h.
36973         Based on code from Scott G. Miller and from GnuPG.
36974
36975 2000-09-18  Jim Meyering  <meyering@lucent.com>
36976
36977         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
36978         LIBS. Otherwise, everyone ends up linking with -lelf for some
36979         configurations.
36980         Reported by Mike Stone.
36981
36982 2000-09-15  Jim Meyering  <meyering@lucent.com>
36983
36984         * lib/regex.c: Update from libc.
36985
36986 2000-09-10  Jim Meyering  <meyering@lucent.com>
36987
36988         * lib/getopt.c (_getopt_internal): Update from glibc.
36989
36990 2000-09-09  Jim Meyering  <meyering@lucent.com>
36991
36992         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
36993         think it should be used as a general replacement for isascii.
36994         * lib/fnmatch.c: Likewise.
36995         * lib/mbswidth.c: Likewise
36996         * lib/regex.c: Likewise.
36997
36998         Don't use atoi.
36999         * lib/userspec.c: Include sys/param.h and limits.h.
37000         Include xstrtol.h.
37001         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
37002         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
37003         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
37004         UID, GID.  Check range.
37005
37006 2000-09-06  Jim Meyering  <meyering@lucent.com>
37007
37008         * lib/getopt.c (_getopt_internal): Update from glibc.
37009
37010 2000-08-30  Jim Meyering  <meyering@lucent.com>
37011
37012         * lib/strftime.c: Merge in changes from GNU libc.
37013
37014 2000-08-26  Jim Meyering  <meyering@lucent.com>
37015
37016         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
37017         * m4/fpending.m4: New file.
37018
37019 2000-08-26  Jim Meyering  <meyering@lucent.com>
37020
37021         * lib/closeout.c: Include "__fpending.h".
37022         (close_stdout_status): Return right away if there's nothing to flush.
37023
37024         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
37025         * lib/__fpending.c: New file.
37026         * lib/__fpending.h: New file.
37027
37028 2000-08-20  Jim Meyering  <meyering@lucent.com>
37029
37030         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
37031         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
37032         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
37033
37034 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
37035
37036         Improve fileutils installation on systems where running
37037         programs (like install) can't be unlinked.
37038         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
37039         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
37040
37041 2000-08-07  Paul Eggert  <eggert@twinsun.com>
37042
37043         Standardize on "memory exhausted" instead of "Memory exhausted"
37044         or "virtual memory exhausted".
37045         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
37046         "virtual memory exhausted".
37047         * lib/same.c (same_name): Invoke xalloc_die instead of printing
37048         our own message.
37049         * lib/userspec.c (parse_user_spec): Likewise.
37050         * lib/bumpalloc.h: comment fix
37051         * lib/same.c, userspec.c: Include xalloc.h.
37052
37053         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
37054         not char *const and pointing to a constant array.
37055         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
37056         (xrealloc): Comment fix.
37057
37058         * lib/userspec.c (parse_user_spec):
37059         Don't translate a message until just before returning,
37060         to avoid unnecessary translation.
37061
37062 2000-08-07  Jim Meyering  <meyering@lucent.com>
37063
37064         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
37065         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
37066         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
37067         getgroups.c, gethostname.c, getopt.h, group-member.c,
37068         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
37069         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
37070         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
37071         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
37072         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
37073         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
37074         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
37075         yesno.c: Back out Copyright date changes for each file with no change
37076         this year.  This eases coordination with other programs using the same
37077         source code modules.  From Paul Eggert.
37078
37079 2000-08-06  Paul Eggert  <eggert@twinsun.com>
37080
37081         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
37082         not char, for compatibility with glibc 2.1.3 strftime.c.
37083
37084 2000-08-03  Greg McGary  <greg@mcgary.org>
37085
37086         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
37087         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
37088         (EXTEND_BUFFER): Use them.
37089
37090 2000-08-01  Jim Meyering  <meyering@lucent.com>
37091
37092         * lib/dirname.c (ISSLASH): Define.
37093         (BACKSLASH_IS_PATH_SEPARATOR): Define.
37094         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
37095         both `\' and `/' may be use as path separators.
37096         Based on a patch from Prashant TR.
37097
37098 2000-07-31  Paul Eggert  <eggert@twinsun.com>
37099
37100         * lib/quotearg.c (quotearg_n_options): Don't make the initial
37101         slot vector a constant, since it might get modified.
37102
37103 2000-07-31  Jim Meyering  <meyering@lucent.com>
37104
37105         * lib/xmalloc.c: Use `virtual memory exhausted', not
37106         `Memory exhausted'.
37107         * lib/obstack.c (print_and_abort): Likewise.
37108
37109 2000-07-30  Paul Eggert  <eggert@twinsun.com>
37110
37111         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
37112         buffer, so that the caller can always quote one small
37113         component of a "memory exhausted" message in slot 0.
37114         From a suggestion by Jim Meyering.
37115
37116 2000-07-30  Jim Meyering  <meyering@lucent.com>
37117
37118         * lib/makepath.c (make_path): Quote the other instance, too.
37119
37120         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
37121         (STATIC_BUF_SIZE): Define.
37122         (quotearg_n_options): Use only statically allocated storage when
37123         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
37124         than STATIC_BUF_SIZE.
37125
37126 2000-07-29  Jim Meyering  <meyering@lucent.com>
37127
37128         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
37129         * lib/dirname.c (dir_name): Likewise.
37130
37131         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
37132         `/'.
37133
37134         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
37135         (dir_name): Assert that there are no trailing slashes.
37136
37137 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
37138
37139         * lib/mbswidth.h (mbswidth): Add a flags argument.
37140         (mbswidth): New declaration.
37141         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
37142         * lib/mbswidth.c (mbswidth): Add a flags argument.
37143         (mbsnwidth): New function.
37144
37145 2000-07-24  Jim Meyering  <meyering@lucent.com>
37146
37147         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
37148
37149 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37150
37151         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
37152
37153 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37154
37155         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
37156         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
37157         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
37158         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
37159         invoke multibyte primitives.
37160
37161 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37162
37163         * lib/quotearg.c:
37164         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
37165         so that mbstate_t is always defined.
37166
37167         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
37168         be 1 in at least one GCC installation, and this configuration
37169         error is likely to be common.  Ignoring MB_LEN_MAX hurts
37170         performance on hosts that have mbrtowc but have only unibyte
37171         locales, but I assume these hosts are rare.
37172
37173 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37174
37175         * lib/mbswidth.c (_XOPEN_SOURCE):
37176         Don't define; this causes problems on Solaris 7.
37177         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
37178
37179 2000-07-23  Jim Meyering  <meyering@lucent.com>
37180
37181         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
37182         too: getgrgid, getpwuid, getuid.
37183
37184 2000-07-23  Jim Meyering  <meyering@lucent.com>
37185
37186         * lib/basename.c (base_name): Add an assertion.
37187
37188 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
37189
37190         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
37191         shadow its mbsinit function.
37192
37193 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
37194
37195         * lib/mbswidth.h: New file.
37196         * lib/mbswidth.c: New file.
37197         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
37198         (noinst_HEADERS): Add mbswidth.h.
37199
37200 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
37201
37202         * lib/config.charset: Add support for FreeBSD. Improve support for
37203         HP-UX and IRIX 6.
37204
37205 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
37206
37207         * m4/mbswidth.m4: New file.
37208         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
37209
37210 2000-07-15  Jim Meyering  <meyering@lucent.com>
37211
37212         * lib/makepath.c: Include quote.h.
37213         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
37214         corresponding argument in a `quote (...)' call.
37215         Give better diagnostics.
37216
37217         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
37218         (noinst_HEADERS): Add quote.h.
37219
37220         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
37221         from tar's src/misc.c.
37222         * lib/quote.h: New file.  Prototypes for same.
37223
37224 2000-07-14  Paul Eggert  <eggert@twinsun.com>
37225
37226         From a suggestion by Bruno Haible.
37227         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
37228         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
37229         to decide whether to define the BeOS workaround macro;
37230         this adjusts to the change to AC_MBSTATE_T.
37231
37232 2000-07-14  Jim Meyering  <meyering@lucent.com>
37233
37234         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
37235         jm_AC_TYPE_UINTMAX_T.
37236
37237 2000-07-13  Paul Eggert  <eggert@twinsun.com>
37238
37239         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
37240
37241         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
37242         quotearg_buffer_restyled): Add support for
37243         clocale_quoting_style.  Undo previous change to
37244         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
37245         and "{RIGHT QUOTATION MARK}" msgids.
37246
37247 2000-07-10  Paul Eggert  <eggert@twinsun.com>
37248
37249         From a suggestion by Bruno Haible.
37250         * m4/mbstate_t.m4 (AC_MBSTATE_T):
37251         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
37252         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
37253         and mbstate_t, to a single-part test that simply defines mbstate_t.
37254         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
37255         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
37256
37257 2000-07-10  Jim Meyering  <meyering@lucent.com>
37258
37259         * m4/strerror_r.m4: Mirror the correction made in autoconf.
37260
37261         * m4/gnu-source.m4: Output to confdefs.h directly.
37262         Suggestion from Akim Demaille.
37263
37264 2000-07-09  Paul Eggert  <eggert@twinsun.com>
37265
37266         The old behavior of quoting `like this' doesn't look good with
37267         newer, ISO-style fonts.  See:
37268         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
37269
37270         Instead, quote "like this" by default.  Let the translator
37271         tailor the locale-specific quoting behavior by providing
37272         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
37273
37274         * lib/quotearg.c (N_): New macro.
37275         (gettext_default): New function.
37276         (quotearg_buffer_restyled): Use
37277         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
37278         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
37279
37280 2000-07-09  Jim Meyering  <meyering@lucent.com>
37281
37282         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
37283         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
37284
37285         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
37286         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
37287
37288 2000-07-09  Jim Meyering  <meyering@lucent.com>
37289
37290         * lib/Most files: Update copyright dates to include 2000.
37291
37292 2000-07-08  Jim Meyering  <meyering@lucent.com>
37293
37294         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
37295         if not defined.
37296         (xgethostname): Remove now-unnecessary #ifdef.
37297         Move declaration of `err' into loop where it's used.
37298
37299 2000-07-05  Paul Eggert  <eggert@twinsun.com>
37300         and Bruno Haible  <haible@clisp.cons.org>
37301
37302         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
37303         only if the test for an object-type mbstate_t fails.  This
37304         prevents us from mistakenly reporting that mbstate_t is a
37305         system object type after we "#define mbstate_t int" to work
37306         around its lack.
37307
37308 2000-07-05  Paul Eggert  <eggert@twinsun.com>
37309         and Bruno Haible  <haible@clisp.cons.org>
37310
37311         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
37312
37313 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
37314
37315         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
37316         to strerror_r.
37317         Include <ctype.h> for use of isalpha.
37318
37319 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
37320
37321         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
37322         by allocating a larger buffer. Test the gethostname return value for
37323         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
37324         returns an error and ENAMETOOLONG isn't defined.
37325
37326 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
37327
37328         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
37329         dimension.
37330
37331 2000-07-04  Jim Meyering  <meyering@lucent.com>
37332
37333         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
37334         of the deprecated AC_CHECKING.
37335
37336 2000-07-04  Jim Meyering  <meyering@lucent.com>
37337
37338         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
37339         Reported by Bruno Haible.
37340
37341 2000-07-04  Jim Meyering  <meyering@lucent.com>
37342
37343         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
37344         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
37345         lacks mbrtowc.
37346
37347 2000-07-03  Paul Eggert  <eggert@twinsun.com>
37348
37349         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
37350         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
37351
37352 2000-07-03  Paul Eggert  <eggert@twinsun.com>
37353         and Bruno Haible  <haible@clisp.cons.org>
37354
37355         * lib/quotearg.c (mbrtowc):
37356         Assign to *pwc, and return 1 only if result is nonzero.
37357         (iswprint): Use ISPRINT when substituting our own mbrtowc.
37358
37359 2000-07-03  Jim Meyering  <meyering@lucent.com>
37360
37361         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
37362
37363 2000-07-03  Jim Meyering  <meyering@lucent.com>
37364
37365         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
37366         This is necessary to get a definition of e.g., UTMP_FILE on
37367         HP-UX 10.20.
37368         From Bob Proulx.
37369
37370 2000-07-02  Jim Meyering  <meyering@lucent.com>
37371
37372         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
37373
37374         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
37375         AC_LIBOBJ(function_name).
37376         * m4/chown.m4: Likewise.
37377         * m4/fnmatch.m4: Likewise.
37378         * m4/ftruncate.m4: Likewise.
37379         * m4/getgroups.m4: Likewise.
37380         * m4/getline.m4: Likewise.
37381         * m4/group-member.m4: Likewise.
37382         * m4/jm-macros.m4: Likewise.
37383         * m4/lstat.m4: Likewise.
37384         * m4/malloc.m4: Likewise.
37385         * m4/memcmp.m4: Likewise.
37386         * m4/nanosleep.m4: Likewise.
37387         * m4/putenv.m4: Likewise.
37388         * m4/realloc.m4: Likewise.
37389         * m4/regex.m4: Likewise.
37390         * m4/stat.m4: Likewise.
37391         * m4/strftime.m4: Likewise.
37392
37393 2000-07-02  Jim Meyering  <meyering@lucent.com>
37394
37395         * lib/quotearg.c (mbstate_t): Don't define here.
37396
37397 2000-07-02  Jim Meyering  <meyering@lucent.com>
37398
37399         * lib/nanosleep.c (SIGCONT): Define if not already defined.
37400
37401 2000-07-01  Jim Meyering  <meyering@lucent.com>
37402
37403         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
37404
37405 2000-07-01  Jim Meyering  <meyering@lucent.com>
37406
37407         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
37408         problem.
37409
37410 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
37411
37412         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
37413         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
37414
37415 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
37416
37417         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
37418         per change in ../m4/ls-mntd-fs.m4.
37419         (read_filesystem_list): Ignore symbolic links.
37420
37421 2000-06-29  Jim Meyering  <meyering@lucent.com>
37422
37423         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
37424         for declaration of strcmp.
37425
37426         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
37427
37428         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
37429         Avoid warning by casting result to `char *' to remove `const'.
37430
37431 2000-06-28  Jim Meyering  <meyering@lucent.com>
37432
37433         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
37434         included by quotearg.c, for which we perform this test.  From
37435         Bruno Haible.
37436
37437 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
37438
37439         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
37440         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
37441         <utmpx.h> exists, put readutmp.o into LIBOBJS.
37442
37443 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
37444
37445         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
37446
37447 2000-06-26  Paul Eggert  <eggert@twinsun.com>
37448
37449         savedir now sets errno on failure and invokes xmalloc to get memory.
37450         Fix a couple of other minor bugs while we're at it.
37451
37452         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
37453         (NAMLEN): Remove macro.
37454         (malloc, realloc): Remove decls.
37455         (stpcpy): Likewise.
37456         ("xalloc.h"): Include.
37457         (NAME_SIZE_DEFAULT): New macro.
37458         (savedir): Use xmalloc / xrealloc to allocate memory.
37459         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
37460         Skip "" directory entries.
37461         Use strlen to calculate directory entry length, since the old method
37462         is rarely used these days and isn't worth supporting.
37463         Don't use a pointer after freeing it.
37464         Check for integer overflow when calculating allocation size.
37465         Use memcpy to copy entries, instead of stpcpy.
37466         Set errno properly when returning NULL.
37467         Check for readdir error.
37468
37469 2000-06-26  Jim Meyering  <meyering@lucent.com>
37470
37471         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
37472
37473 2000-06-25  Jim Meyering  <meyering@lucent.com>
37474
37475         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
37476         Linux header bug when _XOPEN_SOURCE is defined to 500.
37477
37478 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
37479
37480         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
37481         deficiency.
37482
37483 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
37484
37485         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
37486         Include xalloc.h.
37487         Don't include <stdlib.h>.  Don't declare malloc, realloc.
37488
37489 2000-06-24  Jim Meyering  <meyering@lucent.com>
37490
37491         * m4/strerror_r.m4: Revive this file -- to try out an experimental
37492         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
37493         for which strerror does return char*, but which lacks a conveniently
37494         accessible declaration of the function.  If the compile-test says
37495         strerror_r doesn't work, then resort to a `run'-test that works on
37496         BeOS and segfaults on DEC Unix.
37497
37498 2000-06-24  Jim Meyering  <meyering@lucent.com>
37499
37500         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
37501
37502 2000-06-23  Paul Eggert  <eggert@twinsun.com>
37503
37504         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
37505         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
37506
37507 2000-06-23  Paul Eggert  <eggert@twinsun.com>
37508
37509         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
37510         (mbrtowc, mbstate_t): Define substitutes if
37511         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
37512         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
37513         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
37514
37515 2000-06-23  Jim Meyering  <meyering@lucent.com>
37516
37517         * m4/afs.m4: Add missing AC_MSG_RESULT.
37518         Reported by Bruno Haible.
37519
37520         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
37521         Suggestion from Bruno Haible.
37522
37523 2000-06-23  Jim Meyering  <meyering@lucent.com>
37524
37525         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
37526
37527 2000-06-21  Jim Meyering  <meyering@lucent.com>
37528
37529         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
37530
37531 2000-06-21  Jim Meyering  <meyering@lucent.com>
37532
37533         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
37534         (noinst_HEADERS): Add getstr.h.
37535
37536         * lib/getline.c (getstr): Move into a separate file.
37537         * lib/getstr.c (getstr): New file, extracted from getline.c, with
37538         the following changes: new parameter, delim2; both delim[12]
37539         parameters have type `int', not `char'.  The latter would lose
37540         with 8-bit delimiters.
37541         * lib/getstr.h: New file.
37542
37543 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
37544
37545         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
37546         than 1024, return a memory chunk of least possible size, instead
37547         of size PATH_MAX + 2. In the loop, increment the size proportionally.
37548         Use free/xmalloc instead of xrealloc to avoid copying for very long
37549         paths.
37550
37551 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
37552
37553         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
37554         the empty string.
37555
37556 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
37557
37558         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
37559         address, not strdup.  Include <stdlib.h> and don't declare free().
37560
37561 2000-06-19  Jim Meyering  <meyering@lucent.com>
37562
37563         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
37564
37565 2000-06-18  Jim Meyering  <meyering@lucent.com>
37566
37567         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
37568
37569         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
37570         `checking whether...' message to be consistent with that of the
37571         lstat test.
37572
37573 2000-06-18  Jim Meyering  <meyering@lucent.com>
37574
37575         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
37576         Besides, these days every porting target provides a mkdir function.
37577
37578         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
37579         needed. (this snippet comes from src/system.h).
37580
37581 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
37582
37583         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
37584
37585 2000-06-15  Paul Eggert  <eggert@twinsun.com>
37586
37587         * lib/human.c (adjust_value): New function.
37588         (human_readable_inexact): Apply rounding style even when
37589         printing approximate values.
37590
37591 2000-06-14  Paul Eggert  <eggert@twinsun.com>
37592
37593         * lib/human.c (human_readable_inexact): Allow an input block
37594         size that is not a multiple of the output block size, and vice versa.
37595         Reported by Piergiorgio Sartor.
37596
37597 2000-06-14  Paul Eggert  <eggert@twinsun.com>
37598
37599         * lib/getdate.y (get_date): Apply relative times after time
37600         zone indicator, not before.  Reported by Todd A. Jacobs.
37601
37602 2000-06-13  Jim Meyering  <meyering@lucent.com>
37603
37604         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
37605
37606         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
37607
37608 2000-06-12  Paul Eggert  <eggert@twinsun.com>
37609
37610         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
37611
37612 2000-06-12  Jim Meyering  <meyering@lucent.com>
37613
37614         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
37615         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
37616         optional argument.
37617         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
37618         the optional argument, `lib'.
37619
37620 2000-06-08  Jim Meyering  <meyering@lucent.com>
37621
37622         * m4/largefile.m4: Remove file (now that it's part of autoconf).
37623
37624 2000-06-04  Paul Eggert  <eggert@twinsun.com>
37625
37626         Rewrite largefile configuration so that we don't need to run
37627         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
37628         AC_CANONICAL_HOST in configure.in -- jmm]
37629
37630         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
37631         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
37632         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
37633         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
37634         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
37635         All uses changed.
37636         Instead of inspecting the output of getconf, try to compile the
37637         test program without and with the macro definition.
37638         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
37639         for getconf.  Instead, check for the needed flags by compiling
37640         test programs.
37641
37642 2000-06-04  Paul Eggert  <eggert@twinsun.com>
37643
37644         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
37645
37646 2000-06-04  Jim Meyering  <meyering@lucent.com>
37647
37648         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
37649         SunOS 4.1.4 for which gid_t is an unsigned type.
37650
37651 2000-06-03  Jim Meyering  <meyering@lucent.com>
37652
37653         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
37654         now that autoconf requires that.
37655
37656         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
37657         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
37658         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
37659
37660 2000-06-03  Jim Meyering  <meyering@lucent.com>
37661
37662         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
37663
37664 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
37665
37666         * m4/glibc21.m4: New file.
37667         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
37668
37669 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
37670
37671         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
37672         newer, don't install charset.alias.
37673         * lib/config.charset: Change the Linux/glibc rules so they become empty
37674         on glibc-2.1 or newer.
37675
37676 2000-06-02  Jim Meyering  <meyering@lucent.com>
37677
37678         * lib/mountlist.c: Back out last change.  Instead, do this...
37679         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
37680         me_dummy member using the same `ignore'-testing code.
37681         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
37682         fs_type strings.
37683         From Mark D. Roth.
37684
37685 2000-05-29  Jim Meyering  <meyering@lucent.com>
37686
37687         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
37688         mounts with the `ignore' attribute.  Based on a patch from
37689         Mark D. Roth.
37690
37691 2000-05-28  Jim Meyering  <meyering@lucent.com>
37692
37693         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
37694         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37695         * m4/stat.m4: Likewise.
37696         * m4/lstat.m4: Likewise.
37697         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
37698
37699         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
37700         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
37701
37702 2000-05-26  Jim Meyering  <meyering@lucent.com>
37703
37704         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
37705
37706 2000-05-24  Jim Meyering  <meyering@lucent.com>
37707
37708         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
37709         autoconf requires that.
37710         * m4/lib-check.m4: Likewise.
37711         * m4/jm-macros.m4: Likewise.
37712         * m4/strftime.m4: Likewise.
37713
37714         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
37715         AC_CHECK_DECLS, now that autoconf requires that.
37716
37717 2000-05-22  Jim Meyering  <meyering@lucent.com>
37718
37719         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37720         * m4/lstat.m4: Likewise.
37721
37722 2000-05-22  Jim Meyering  <meyering@lucent.com>
37723
37724         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
37725
37726 2000-05-20  Jim Meyering  <meyering@lucent.com>
37727
37728         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
37729         (jm_PREREQ): Use it.
37730
37731 2000-05-18  Jim Meyering  <meyering@lucent.com>
37732
37733         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
37734         back, too, since it may have been modified by allocate_entry.
37735         (hash_delete): Rewrite to use neither the assignment operator
37736         nor the comma operator in an if-expression.
37737
37738 2000-05-15  Paul Eggert  <eggert@twinsun.com>
37739
37740         * lib/closeout.c:
37741         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
37742         Remove; no longer needed.
37743         "quotearg.h": Add include.
37744         (file_name): Do not bother to explicitly initialize to NULL; it's less
37745         efficient on some hosts.
37746         (close_stdout_status): Remove test as to whether stdout was already
37747         closed; it breaks for the case "echo x | sort >&-".
37748         Quote file name colons.
37749         Do not assume that _("write error") lacks format strings.
37750
37751 2000-05-15  Jim Meyering  <meyering@lucent.com>
37752
37753         * lib/version-etc.c (version_etc_copyright): Update the copyright
37754         string used in all --version output.
37755
37756 2000-05-14  Jim Meyering  <meyering@lucent.com>
37757
37758         * lib/closeout.c (close_stdout_set_file_name): New function.
37759         (close_stdout_status): Use new file-scoped global.
37760         Return right away if fstat says the stdout file descriptor is invalid.
37761         * lib/closeout.h (close_stdout_set_file_name): Declare.
37762
37763 2000-05-10  Jim Meyering  <meyering@lucent.com>
37764
37765         * lib/closeout.c [default_exit_status]: New file-scoped variable.
37766         (close_stdout_set_status): New function.
37767         * lib/closeout.h (close_stdout_set_status): Declare.
37768
37769 2000-05-09  Jim Meyering  <meyering@lucent.com>
37770
37771         * m4/gettext.m4: Rename this...
37772         * m4/libintl.m4: ...to this.
37773
37774 2000-05-08  Jim Meyering  <meyering@lucent.com>
37775
37776         * lib/long-options.c: Don't include closeout.h.
37777         (parse_long_options): Don't call close_stdout for --version.
37778
37779 2000-05-06  Paul Eggert  <eggert@twinsun.com>
37780
37781         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
37782         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
37783         2.1.3 bug.  This avoids a clash when files like regex.c define
37784         _GNU_SOURCE.
37785
37786 2000-05-06  Jim Meyering  <meyering@lucent.com>
37787
37788         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
37789         (AC_REPLACE_FUNCS): Add strnlen.
37790
37791         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
37792         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
37793
37794         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
37795         AC_SEARCH_LIBS call for nanosleep.
37796         (LIB_NANOSLEEP): Set and AC_SUBST.
37797
37798 2000-05-06  Jim Meyering  <meyering@lucent.com>
37799
37800         * lib/strnlen.c: Undefine __strnlen and strnlen.
37801         [!weak_alias]: Define __strnlen to strnlen.
37802
37803         * lib/atexit.c: New file, from libiberty.
37804
37805 2000-05-06  Jim Meyering  <meyering@lucent.com>
37806
37807         * lib/closeout.c (close_stdout_status): Also check for errors on the
37808         stderr stream.
37809
37810 2000-05-05  Jim Meyering  <meyering@lucent.com>
37811
37812         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
37813         AC_SEARCH_LIBS call for clock_gettime.
37814         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
37815
37816         * m4/search-libs.m4: Update from autoconf.
37817
37818         su doesn't work on Solaris 2.6.
37819         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
37820         <shadow.h>.  Reported by Dragos Harabor.
37821
37822 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
37823
37824         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
37825         memcpy instead of xmalloc, xrealloc, path_concat.
37826         (locale_charset): Treat empty environment variables as absent.
37827         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
37828
37829 2000-05-04  Jim Meyering  <meyering@lucent.com>
37830
37831         * lib/getopt.c: Update from glibc.
37832         * lib/obstack.c: Likewise.
37833         * lib/obstack.h: Likewise.
37834         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
37835         file
37836
37837         * lib/regex.h: Likewise.
37838         * lib/strndup.c: Likewise.
37839         * lib/strnlen.c: New file, from glibc.
37840
37841 2000-05-03  Jim Meyering  <meyering@lucent.com>
37842
37843         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
37844
37845 2000-05-02  Paul Eggert  <eggert@twinsun.com>
37846
37847         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
37848         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
37849         compile-time test, rather than inspecting host and OS, to
37850         decide whether to define _LARGEFILE_SOURCE.
37851
37852 2000-05-01  Jim Meyering  <meyering@lucent.com>
37853
37854         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
37855
37856         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
37857         Based on a patch from Bruno Haible.
37858
37859 2000-05-01  Jim Meyering  <meyering@lucent.com>
37860
37861         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
37862
37863 2000-04-29  Jim Meyering  <meyering@lucent.com>
37864
37865         * lib/path-concat.c: Declare strdup only if it's not defined.
37866         * lib/canon-host.c: Likewise.
37867
37868 2000-04-28  Jim Meyering  <meyering@lucent.com>
37869
37870         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
37871         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
37872         is included first, then limits.h is included by locale.h by libintl.h.
37873         From John David Anglin.
37874
37875 2000-04-25  Jim Meyering  <meyering@lucent.com>
37876
37877         * lib/makepath.c (S_IRWXUGO): Define.
37878         (make_path): Always perform explicit chmod if MODE specifies any
37879         of the `special' permission bits.  Prompted by a bug report against
37880         install from Mate Wierdl and Joost van Baal.
37881
37882 2000-04-18  Jim Meyering  <meyering@lucent.com>
37883
37884         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
37885         (jm_PREREQ): Use it.
37886
37887 2000-04-18  Jim Meyering  <meyering@lucent.com>
37888
37889         * lib/README: New file.
37890
37891         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
37892         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
37893
37894 2000-04-17  Jim Meyering  <meyering@lucent.com>
37895
37896         Get it right :-)
37897         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
37898         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
37899         Suggestion from Akim Demaille.
37900
37901 2000-04-17  Jim Meyering  <meyering@lucent.com>
37902
37903         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
37904         the definition of it to rpl_strftime also defined-away the system's
37905         declaration.
37906
37907 2000-04-15  Jim Meyering  <meyering@lucent.com>
37908
37909         Use `C' to denote so-called `contiguous' files, the same way
37910         that tar does.
37911         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
37912         (ftypelet): Use S_ISCTG.
37913         From Michael Deutschmann.
37914
37915 2000-04-14  Jim Meyering  <meyering@lucent.com>
37916
37917         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
37918         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
37919         clobbered.
37920
37921 2000-04-14  Jim Meyering  <meyering@lucent.com>
37922
37923         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
37924
37925 2000-04-13  Jim Meyering  <meyering@lucent.com>
37926
37927         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
37928         AH_VERBATIM to insert required #ifndef into config.h.in.
37929         Suggestion from Akim Demaille.
37930
37931 2000-04-12  Jim Meyering  <meyering@lucent.com>
37932
37933         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
37934         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
37935         Christian Krackowizer.
37936
37937         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
37938         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
37939         (AC_SYS_LARGEFILE): Require.
37940         (AM_C_PROTOTYPES): Require.
37941
37942 2000-04-08  Jim Meyering  <meyering@lucent.com>
37943
37944         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
37945         names don't conflict.  Reported by Eli Zaretskii.
37946
37947 2000-04-07  Jim Meyering  <meyering@lucent.com>
37948
37949         * lib/putenv.c: Move inclusion of errno.h so it follows that of
37950         sys/types.h, to work around system header problems on AIX 3.2.5.
37951         From Bruno Haible.
37952
37953 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
37954
37955         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
37956         bug.  Deal with the different error behavior of Irix iconv.
37957
37958 2000-04-05  Paul Eggert  <eggert@twinsun.com>
37959
37960         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
37961         IRIX if the installer said otherwise.
37962
37963 2000-04-05  Jim Meyering  <meyering@lucent.com>
37964
37965         Portability tweaks required for ultrix4.3.
37966         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
37967         (jm_CHECK_DECLS): Add getutent to the list of functions.
37968         (_jm_DECL_HEADERS): Add utmpx.h.
37969         From John David Anglin.
37970
37971         * m4/strftime.m4: Back out the 2000-04-02 change.
37972         Instead of that change, simply undefine putenv in the test program.
37973
37974 2000-04-05  Jim Meyering  <meyering@lucent.com>
37975
37976         Portability tweaks required for ultrix4.3.
37977         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
37978         getutent.
37979         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
37980         * lib/canon-host.c: Declare strdup.
37981         * lib/path-concat.c: Likewise.
37982         From John David Anglin.
37983
37984 2000-04-04  Jim Meyering  <meyering@lucent.com>
37985
37986         Be more DOS 8.3-friendly.
37987         * lib/ref-add.sin: Renamed from ref-add.sed.in.
37988         * lib/ref-del.sin: Renamed from ref-del.sed.in.
37989         * lib/Makefile.am: Reflect renaming.
37990         Reported by Eli Zaretskii.
37991
37992         Use a temporary file name that won't clash with `charset.alias'
37993         in the DOS 8.3 name space.
37994         * lib/Makefile.am (charset_tmp): Define.
37995         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
37996         (uninstall-local): Likewise.
37997         Reported by Eli Zaretskii.
37998
37999 2000-04-03  Jim Meyering  <meyering@lucent.com>
38000
38001         * m4/gettext.m4: Fix typo in comment.
38002
38003         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
38004         textutils/configure.in).  Suggestion from Paul Eggert.
38005         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
38006
38007 2000-04-02  Paul Eggert  <eggert@twinsun.com>
38008
38009         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
38010         variable in the shell rather than using putenv, which isn't
38011         portable.  This avoids the configure-time inter-test dependency
38012         on the potentially-renamed putenv function.
38013
38014 2000-03-30  Paul Eggert  <eggert@twinsun.com>
38015
38016         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
38017         before checking struct stat.st_blksize, so that
38018         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
38019
38020 2000-03-29  Paul Eggert  <eggert@twinsun.com>
38021
38022         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
38023         since strftime.c uses HAVE_STRFTIME to decide whether to use
38024         the underlying strftime.
38025
38026 2000-03-29  Paul Eggert  <eggert@twinsun.com>
38027
38028         * lib/time/strftime.c (my_strftime): Make sure we call the system
38029         strftime, not ourselves, when invoking the underlying strftime.
38030
38031 2000-03-24  Jim Meyering  <meyering@lucent.com>
38032
38033         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
38034         (charset_alias): Define.
38035         (install-exec-local): Factor out common code.
38036         (uninstall-local): Split lines longer than 80.
38037         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
38038         (SUFFIXES): Define.
38039         (.sed.in.sed): New rule.  Don't redirect directly to $@.
38040         (CLEANFILES): Add ref-add.sed and ref-del.sed.
38041
38042 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
38043
38044         * lib/config.charset: Output a line containing "Packages using this
38045         file".
38046         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
38047         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
38048         ref-del.sed): New rules.
38049
38050 2000-03-17  Jim Meyering  <meyering@lucent.com>
38051
38052         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
38053         Otherwise, include <strings.h>
38054
38055 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
38056
38057         * lib/unicodeio.c (utf8_wctomb): New function.
38058         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
38059         format instead of in UCS-4 with platform dependent endianness.
38060
38061 2000-03-10  Jim Meyering  <meyering@lucent.com>
38062
38063         * m4/lib-check.m4: Look for getspnam in -lgen, too.
38064         From Marco Franzen.
38065
38066 2000-03-07  Paul Eggert  <eggert@twinsun.com>
38067
38068         * lib/savedir.c (savedir): Work even if directory size is
38069         negative; this can happen with some screwy NFS configurations.
38070
38071 2000-03-06  Jim Meyering  <meyering@lucent.com>
38072
38073         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
38074         if it's NULL (because we ran out of memory).  From Bruno Haible.
38075
38076 2000-03-05  Jim Meyering  <meyering@lucent.com>
38077
38078         * lib/localcharset.c ("path-concat.h"): Include.
38079         (get_charset_aliases): Use path_concat instead of ANSI string
38080         concatenation.
38081
38082         * lib/unicodeio.h (PARAMS): Define.
38083         Use it to guard prototype.
38084
38085 2000-03-04  Jim Meyering  <meyering@lucent.com>
38086
38087         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
38088         for lib/localcharset.c.
38089
38090 2000-03-04  Jim Meyering  <meyering@lucent.com>
38091
38092         * lib/Makefile.am (install-exec-local): Create $(libdir) before
38093         installing into it.
38094         (uninstall-local): Uncomment this rule so `make distcheck' works
38095         once again.
38096
38097         * lib/unicodeio.c (<errno.h>): Include it.
38098         (errno): Declare if not defined.
38099
38100         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
38101
38102         * lib/config.charset: New version, incorporating remarks from a linux
38103         i18n mailing list.  From Bruno Haible.
38104
38105 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
38106
38107         * m4/codeset.m4: New file.
38108         * m4/iconv.m4: New file.
38109         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
38110
38111 2000-03-03  Jim Meyering  <meyering@lucent.com>
38112
38113         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
38114
38115 2000-03-02  Jim Meyering  <meyering@lucent.com>
38116
38117         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
38118         the messages come out on separate lines.
38119
38120         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
38121         rather than jm_CHECK_DECLARATIONS.
38122         * m4/decl.m4: Remove now-unused file.
38123
38124         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
38125         geteuid.
38126
38127 2000-03-02  Jim Meyering  <meyering@lucent.com>
38128
38129         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
38130
38131 2000-03-01  Jim Meyering  <meyering@lucent.com>
38132
38133         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
38134         * lib/unicodeio.c: Likewise.
38135
38136 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
38137
38138         * lib/config.charset: New file.
38139         * lib/localcharset.c: New file.
38140         * lib/unicodeio.h, lib/unicodeio.c: New files.
38141         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
38142         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
38143         (noinst_HEADERS): Add unicodeio.h.
38144         (all-local, install-exec-local, charset.alias): New targets.
38145
38146 2000-02-28  Paul Eggert  <eggert@twinsun.com>
38147
38148         * lib/quotearg.c (ALERT_CHAR): New macro.
38149         (quotearg_buffer_restyled): Use it.
38150
38151 2000-02-27  Jim Meyering  <meyering@lucent.com>
38152
38153         * m4/check-decl.m4: Add getenv to the list.
38154
38155 2000-02-27  Jim Meyering  <meyering@lucent.com>
38156
38157         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
38158         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
38159
38160         * lib/backupfile.c: Guard inclusion of stdlib.h with
38161         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
38162         Declare malloc if needed.
38163
38164         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
38165         `#ifndef HAVE_DECL..'
38166         now that autoconf always defines the HAVE_DECL_ symbols.
38167         * lib/human.c: Likewise.
38168         * lib/same.c: Likewise.
38169         * lib/strtoumax.c: Likewise.
38170
38171         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
38172         declaration check was not run.
38173         * lib/hash.c: Likewise.
38174         * lib/human.c: Likewise.
38175         * lib/same.c: Likewise.
38176         * lib/strtoumax.c: Likewise.
38177
38178         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
38179         `.', then first look up the entire `.'-containing string as a login
38180         name.
38181
38182 2000-02-23  Jim Meyering  <meyering@lucent.com>
38183
38184         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
38185         in place of my hack.
38186
38187 2000-02-18  Paul Eggert  <eggert@twinsun.com>
38188
38189         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
38190         (textint): New typedef.
38191         (parser_control): Member year changed from int to textint.
38192         All uses changed.
38193         (YYSTYPE): Removed; replaced by %union with int and textint members.
38194         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
38195         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
38196         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
38197         (tSNUMBER, tUNUMBER): Now of type <textintval>.
38198         (date, number, to_year): Use width of number in digits, not its value,
38199         to determine whether it's a 2-digit year, or a 2-digit time.
38200         (yylex): Store number of digits of numeric tokens.
38201         Reported by John Kendall.
38202
38203         (parser_control): Changed from struct parser_control to typedef (for
38204         consistency).  All uses changed.
38205
38206         (tID): Removed; not used.
38207         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
38208
38209 2000-02-14  Paul Eggert  <eggert@twinsun.com>
38210
38211         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
38212         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
38213
38214 2000-02-12  Jim Meyering  <meyering@lucent.com>
38215
38216         * lib/userspec.c (ISDIGIT): Define it.
38217         (isdigit): Remove definition.
38218         (is_number): Use ISDIGIT, not isdigit.
38219         <libintl.h>: Include.
38220         (_ and N_): Define.
38221         (parse_user_spec): Mark translatable strings.
38222
38223 2000-02-10  Jim Meyering  <meyering@lucent.com>
38224
38225         With these changes, nanosleep.[ch] are finally enough like the other
38226         lib/* replacement files to compile on a few more losing systems.
38227
38228         * lib/nanosleep.h: Don't include config.h.
38229         Remove prototype from declaration of nanosleep.
38230         (PARAMS): Remove now-unneeded definition.
38231         * lib/nanosleep.c: #undef nanosleep.
38232         (rpl_nanosleep): Rename from nanosleep.
38233
38234 2000-02-10  Jim Meyering  <meyering@lucent.com>
38235
38236         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
38237         gnu_nanosleep to rpl_nanosleep.
38238
38239 2000-02-09  Jim Meyering  <meyering@lucent.com>
38240
38241         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
38242         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
38243
38244 2000-02-08  Akim Demaille  <akim@epita.fr>
38245
38246         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
38247         `[' and `]' and remove uses of `changequote'.
38248         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
38249         (AC_SYS_LARGEFILE): Likewise.
38250         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38251         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
38252         of changequote.
38253         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
38254         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
38255         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
38256         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
38257
38258 2000-02-05  Jim Meyering  <meyering@lucent.com>
38259
38260         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
38261         Remove explicit use of AC_HEADER_TIME.  It is required by
38262         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
38263         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
38264         in autoconf whereby the expansion of the latter ended up preceding
38265         the expansion of its prerequisite, AC_HEADER_TIME.
38266         Reported by Volker Borchert.
38267
38268 2000-02-03  Jim Meyering  <meyering@lucent.com>
38269
38270         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
38271
38272 2000-02-03  Jim Meyering  <meyering@lucent.com>
38273
38274         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
38275         rather than with `#if HAVE_UTMPNAME'.
38276
38277 2000-02-02  Jim Meyering  <meyering@lucent.com>
38278
38279         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
38280         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
38281         Reported by Eli Zaretskii.
38282
38283 2000-02-01  Jim Meyering  <meyering@lucent.com>
38284
38285         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
38286
38287 2000-01-31  Jim Meyering  <meyering@lucent.com>
38288
38289         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
38290         functions.  Add the time.h and sys/time.h headers along with the
38291         AC_REQUIRE'ment of AC_HEADER_TIME.
38292
38293 2000-01-31  Jim Meyering  <meyering@lucent.com>
38294
38295         * lib/nanosleep.h (nanosleep): Guard declaration with
38296         `#if ! HAVE_DECL_NANOSLEEP'.
38297         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
38298         the declaration in that vendor's sys/timers.h.
38299         Reported by Christian Krackowizer.
38300
38301         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
38302         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
38303         (ISPRINT): Likewise.
38304         Reported by Tom Tromey.
38305
38306 2000-01-30  Jim Meyering  <meyering@lucent.com>
38307
38308         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
38309
38310         * m4/prereq.m4 (utmp_includes): Define.
38311         Check for ut_user and ut_name members in both struct utmpx
38312         and struct utmp.
38313
38314 2000-01-30  Jim Meyering  <meyering@lucent.com>
38315
38316         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
38317         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
38318         header files where only utmpx.ut_user is declared.
38319
38320         * lib/readutmp.h (UT_USER): Define.
38321
38322 2000-01-29  Jim Meyering  <meyering@lucent.com>
38323
38324         * m4/lib-check.m4: New file containing library-related checks from
38325         fileutils and sh-utils (textutils had none).
38326
38327 2000-01-28  Jim Meyering  <meyering@lucent.com>
38328
38329         * m4/perl.m4: Change format of warning message to look more like that
38330         from the missing script.  Suggestion from François Pinard.
38331
38332 2000-01-25  Jim Meyering  <meyering@lucent.com>
38333
38334         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
38335         well as time.h in the compile check.
38336         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
38337         Fix typo in cross-compiling case: s/yes/no/.
38338
38339 2000-01-23  Jim Meyering  <meyering@lucent.com>
38340
38341         * m4/jm-macros.m4: Move df-related tests here from
38342         fileutils/configure.in
38343
38344         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
38345         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
38346
38347         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
38348         s/space/ac_fsusage_space/.
38349         (jm_FILE_SYSTEM_USAGE): Take two parameters.
38350
38351         * m4/ftruncate.m4: New file (derived from part of
38352         fileutils/configure.in).
38353         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
38354         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
38355
38356         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
38357         AC_SUBST these here, rather than just in sh-util/configure.in, so
38358         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
38359         all the same.
38360         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
38361         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
38362         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
38363         (AC_SUBST(POW_LIBM)): Likewise.
38364         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
38365
38366 2000-01-23  Jim Meyering  <meyering@lucent.com>
38367
38368         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
38369         obstack.c.
38370
38371 2000-01-22  Jim Meyering  <meyering@lucent.com>
38372
38373         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
38374
38375         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
38376
38377         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
38378         configure.in
38379         (AC_CHECK_HEADERS): Likewise for sh-utils.
38380         (AC_CHECK_HEADERS): Likewise for textutils.
38381         Merge the three lists of headers.
38382
38383         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
38384         from fileutils' configure.in.
38385
38386         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
38387         code. Moved tests into their own function (_jm_DECL_HEADERS) in
38388         check-decl.m4.
38389
38390         * m4/check-decl.m4: Use #if rather than #ifdef.
38391         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
38392         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
38393         (_jm_DECL_HEADERS): Define new function.
38394         (jm_CHECK_DECLARATIONS): Require it.
38395
38396 2000-01-22  Jim Meyering  <meyering@lucent.com>
38397
38398         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
38399         [! HAVE_DECL_STRTOULL]: Declare strtoull.
38400         Required for some AIX systems.  Reported by Christian Krackowizer.
38401         [TESTING] (main): New function.
38402
38403         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
38404         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
38405         letters.
38406
38407         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
38408         iswprint.
38409
38410         * lib/strverscmp.c (ISDIGIT): Define.
38411         (strverscmp): Use ISDIGIT, not isdigit.
38412
38413 2000-01-19  Jim Meyering  <meyering@lucent.com>
38414
38415         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
38416         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
38417         defines `struct timespec' in <sys/time.h>
38418
38419         * m4/c-bs-a.m4: Remove uses of changequote altogether.
38420         Thanks to Akim for explaining.
38421
38422 2000-01-17  Paul Eggert  <eggert@twinsun.com>
38423
38424         * lib/nanosleep.c (nanosleep):
38425         Don't use SA_INTERRUPT to decide whether to call sigaction, as
38426         POSIX.1 doesn't require SA_INTERRUPT and some systems
38427         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
38428         it's been part of POSIX.1 since day 1 (in 1988).
38429
38430 2000-01-17  Jim Meyering  <meyering@lucent.com>
38431
38432         * lib/interlock: Remove unused file.  Reported by François Pinard.
38433
38434 2000-01-16  Paul Eggert  <eggert@twinsun.com>
38435
38436         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
38437         alert, backslash, formfeed, and vertical tab unnecessarily in
38438         shell quoting style.
38439
38440 2000-01-16  Jim Meyering  <meyering@lucent.com>
38441
38442         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
38443         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
38444         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
38445         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
38446
38447 2000-01-16  Jim Meyering  <meyering@lucent.com>
38448
38449         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
38450         because the latter didn't work.
38451
38452 2000-01-15  Jim Meyering  <meyering@lucent.com>
38453
38454         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
38455         (AC_REPLACE_FUNCS): Add memcpy and memset.
38456         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
38457         Add strpbrk.
38458         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
38459
38460 2000-01-12  Jim Meyering  <meyering@lucent.com>
38461
38462         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
38463         (jm_PREREQ): Use it.
38464         (jm_PREREQ_READUTMP): New macro.
38465         (jm_PREREQ): Use it.
38466
38467 2000-01-11  Paul Eggert  <eggert@twinsun.com>
38468
38469         Quote multibyte characters correctly.
38470         * m4/c-bs-a.m4: New file.
38471         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
38472         (jm_PREREQ): Use it.
38473
38474 2000-01-11  Paul Eggert  <eggert@twinsun.com>
38475
38476         * m4/uintmax_t.m4: Port to autoconf 2.13.
38477
38478 2000-01-08  Jim Meyering  <meyering@ascend.com>
38479
38480         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
38481         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
38482
38483 2000-01-04  Jim Meyering  <meyering@ascend.com>
38484
38485         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
38486         jm_STRUCT_DIRENT_D_TYPE.
38487         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
38488         jm_STRUCT_DIRENT_D_INO.
38489         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
38490         jm_STRUCT_UTIMBUF.
38491         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
38492         renamings.
38493         * m4/utime.m4: Likewise.
38494
38495         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
38496         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
38497
38498 2000-01-03  Paul Eggert  <eggert@twinsun.com>
38499
38500         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
38501         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
38502
38503 2000-01-02  Jim Meyering  <meyering@ascend.com>
38504
38505         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
38506         remember if this is necessary.
38507
38508 1999-12-26  Jim Meyering  <meyering@ascend.com>
38509
38510         * m4/jm-macros.m4: Use it here.
38511         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
38512
38513 1999-12-23  Jim Meyering  <meyering@ascend.com>
38514
38515         * m4/jm-macros.m4: Check for clock_gettime (moved from
38516         fileutils/configure.in)
38517         Check for gettimeofday.
38518
38519 1999-12-20  Jim Meyering  <meyering@ascend.com>
38520
38521         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
38522         autoconf-2.14a-1999-12-20.
38523
38524 1999-12-19  Jim Meyering  <meyering@ascend.com>
38525
38526         * m4/lstat-slash.m4: New file.
38527         * m4/jm-macros.m4: Use the new macro:
38528         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38529
38530 1999-12-07  Jim Meyering  <meyering@ascend.com>
38531
38532         * m4/perl.m4: Require that File::Compare be available, too.
38533         Too many systems seem to lack it.
38534
38535         * m4/strftime.m4: Add checks for most of the cpp macros tested in
38536         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
38537
38538 1999-11-18  Paul Eggert  <eggert@twinsun.com>
38539
38540         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
38541         problem with the QNX 4.25 shell, which doesn't propagate exit
38542         status of failed commands inside shell assignments.
38543
38544 1999-11-17  Jim Meyering  <meyering@ascend.com>
38545
38546         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
38547
38548 1999-11-07  Jim Meyering  <meyering@ascend.com>
38549
38550         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
38551
38552 1999-11-06  Jim Meyering  <meyering@ascend.com>
38553
38554         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
38555         * m4/jm-macros.m4 (jm_MACROS): Use it here.
38556
38557 1999-11-05  Jim Meyering  <meyering@ascend.com>
38558
38559         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
38560         configure.in of textutils, fileutils, and sh-utils into this one
38561         (shared between those packages) file.
38562         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
38563         AC_STRUCT_ST_BLKSIZE.
38564
38565 1999-11-03  Jim Meyering  <meyering@ascend.com>
38566
38567         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
38568         of AC_CHECK_TYPE checks includes unistd.h.
38569         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
38570         Suggestion from Akim Demaille.
38571
38572 1999-10-30  Jim Meyering  <meyering@ascend.com>
38573
38574         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
38575         m4-quoted string.
38576         * m4/ls-mntd-fs.m4: Likewise.
38577         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
38578         * m4/jm-winsz1.m4: Likewise.
38579
38580         * m4/const.m4: Remove file, since the fix made it into the experimental
38581         version of autoconf.
38582         * m4/mktime.m4: Likewise.
38583
38584         * m4/check-type.m4: Remove file, now that the latest version of
38585         AC_CHECK_TYPE takes a third arg to specify additional #includes.
38586
38587         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
38588         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
38589         AC_CHECK_TYPE.
38590
38591 1999-10-04  Jim Meyering  <meyering@ascend.com>
38592
38593         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
38594
38595 1999-09-22  Paul Eggert  <eggert@twinsun.com>
38596
38597         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
38598         2.95.1 bug with HP-UX 10.20.
38599
38600 1999-09-17  Jim Meyering  <meyering@ascend.com>
38601
38602         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
38603         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
38604         due to missing strdup (against sh-utils-2.0).
38605
38606 1999-08-29  Jim Meyering  <meyering@ascend.com>
38607
38608         * m4/jm-macros.m4: Require jm_BISON.
38609         * m4/bison.m4: New file.
38610
38611 1999-08-17  Paul Eggert  <eggert@twinsun.com>
38612
38613         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
38614         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
38615
38616 1999-08-05  Jim Meyering  <meyering@ascend.com>
38617
38618         * m4/getline.m4: Rename test file from conftestdata to conftest.data
38619         to avoid conflicts with `conftest' on 8+3 filesystems.
38620         Suggestion from Eli Zaretskii.
38621
38622 1999-08-04  Jim Meyering  <meyering@ascend.com>
38623
38624         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
38625         fileutils and sh-utils (textutils's getline test was inadequate).
38626         (AM_FUNC_GETLINE): Run this test.
38627         (AC_CHECK_FUNCS): Check for getdelim.
38628         Reported by Bob Proulx.
38629
38630 1999-08-02  Jim Meyering  <meyering@ascend.com>
38631
38632         * m4/jm-macros.m4: Add a comment.
38633
38634 1999-08-01  Paul Eggert  <eggert@twinsun.com>
38635
38636         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
38637         <inttypes.h> defines strtoumax as a macro (and not as a
38638         function).
38639
38640 1999-08-01  Paul Eggert  <eggert@twinsun.com>
38641
38642         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
38643         that we can shift, multiply and divide unsigned long long
38644         values; Ultrix cc can't do it.
38645
38646 1999-08-01  Paul Eggert  <eggert@twinsun.com>
38647
38648         * m4/mktime.m4: New file, which is a preview of what should appear
38649         in the next public autoconf release.
38650
38651 1999-08-01  Paul Eggert  <eggert@twinsun.com>
38652
38653         * m4/lfs.m4: Remove this file.
38654         * m4/largefile.m4: New file.  It contains the old contents of
38655         lfs.m4, except that all names with prefix AC_LFS have been
38656         changed to use the prefix AC_SYS_LARGEFILE instead, to be
38657         compatible with future autoconf versions.  Also, some minor m4
38658         quoting problems have been fixed.
38659
38660 1999-08-01  Paul Eggert  <eggert@twinsun.com>
38661
38662         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
38663         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
38664         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
38665         and simplify the shell code.
38666
38667 1999-08-01  Jim Meyering  <meyering@ascend.com>
38668
38669         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
38670         m4.
38671
38672 1999-07-20  Jim Meyering  <meyering@ascend.com>
38673
38674         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
38675
38676 1999-07-15  Jim Meyering  <meyering@ascend.com>
38677
38678         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
38679
38680 1999-05-22  Jim Meyering  <meyering@ascend.com>
38681
38682         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
38683
38684 1999-05-20  Jim Meyering  <meyering@ascend.com>
38685
38686         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
38687         Add a colon after each `then' in case $4 is empty.
38688
38689 1999-05-16  Jim Meyering  <meyering@ascend.com>
38690
38691         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
38692
38693 1999-05-10  Jim Meyering  <meyering@ascend.com>
38694
38695         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
38696
38697         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
38698         AC_FUNC_MKTIME.
38699
38700 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
38701
38702         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
38703
38704 1999-05-04  Paul Eggert  <eggert@twinsun.com>
38705
38706         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
38707         not CPPFLAGS, so that linking works correctly in IRIX.
38708
38709 1999-04-30  Paul Eggert  <eggert@twinsun.com>
38710
38711         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
38712
38713 1999-04-20  Paul Eggert  <eggert@twinsun.com>
38714
38715         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
38716         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
38717         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
38718         jm_AC_TYPE_UNSIGNED_LONG_LONG.
38719         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
38720
38721         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
38722
38723 1999-04-20  Jim Meyering  <meyering@ascend.com>
38724
38725         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
38726         AC_REPLACE xstroull if necessary.  From Paul Eggert.
38727         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
38728
38729 1999-04-18  Jim Meyering  <meyering@ascend.com>
38730
38731         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
38732         * m4/jm-macros.m4: Use it.
38733
38734 1999-04-06  Jim Meyering  <meyering@ascend.com>
38735
38736         * m4/strftime.m4: Remove test for %f.
38737
38738 1999-03-29  Jim Meyering  <meyering@ascend.com>
38739
38740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
38741         superset of the AC_TYPE_* checks in the textutils, fileutils,
38742         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
38743         AC_TYPE_PID_T.
38744
38745 1999-03-28  Jim Meyering  <meyering@ascend.com>
38746
38747         * m4/jm-macros.m4: Define GNU_PACKAGE here.
38748         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
38749         replaced e.g., in the *.sh files of the sh-utils.
38750
38751 1999-03-20  Jim Meyering  <meyering@ascend.com>
38752
38753         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
38754         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
38755         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
38756
38757 1999-03-19  Jim Meyering  <meyering@ascend.com>
38758
38759         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
38760
38761 1999-03-12  Jim Meyering  <meyering@ascend.com>
38762
38763         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
38764
38765 1999-03-07  Jim Meyering  <meyering@ascend.com>
38766
38767         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
38768         declared.
38769
38770 1999-02-17  Jim Meyering  <meyering@ascend.com>
38771
38772         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
38773         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
38774
38775 1999-02-07  Jim Meyering  <meyering@ascend.com>
38776
38777         * m4/group-member.m4: New file -- extracted from sh-utils'
38778         configure.in.
38779
38780         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
38781         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
38782
38783 1999-02-06  Jim Meyering  <meyering@ascend.com>
38784
38785         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
38786         * m4/fnmatch.m4: Likewise.
38787         * m4/getgroups.m4: Likewise.
38788         * m4/lstat.m4: Likewise.
38789         * m4/malloc.m4: Likewise.
38790         * m4/putenv.m4: Likewise.
38791         * m4/realloc.m4: Likewise.
38792         * m4/regex.m4: Likewise.
38793         * m4/stat.m4: Likewise.
38794         * m4/strftime.m4: Likewise.
38795         Suggestion from Alain Magloire.
38796
38797         * m4/chown.m4: Use `.$ac_objext', not `.o'.
38798         * m4/fnmatch.m4: Likewise.
38799         * m4/getgroups.m4: Likewise.
38800         * m4/getline.m4: Likewise.
38801         * m4/lstat.m4: Likewise.
38802         * m4/malloc.m4: Likewise.
38803         * m4/memcmp.m4: Likewise.
38804         * m4/putenv.m4: Likewise.
38805         * m4/realloc.m4: Likewise.
38806         * m4/regex.m4: Likewise.
38807         * m4/stat.m4: Likewise.
38808         * m4/strftime.m4: Likewise.
38809         Suggestion from Alain Magloire.
38810
38811         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
38812         an argument.
38813
38814         * m4/regex.m4: Add a run-time Test for proper operation of
38815         re_compile_pattern.
38816
38817 1999-01-31  Jim Meyering  <meyering@ascend.com>
38818
38819         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
38820
38821 1999-01-30  Jim Meyering  <meyering@ascend.com>
38822
38823         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
38824
38825         * m4/jm-mktime.m4: Make this a wrapper around the official
38826         AM_FUNC_MKTIME rather than my private copy, now that the official one
38827         is up to date.
38828         * m4/mktime.m4: Remove file.
38829
38830         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
38831         * m4/uptime.m4: Likewise.
38832         * m4/uintmax_t.m4: Likewise.
38833
38834 1999-01-28  Jim Meyering  <meyering@ascend.com>
38835
38836         * m4/jm-macros.m4: Use jm_AFS.
38837         * m4/afs.m4: New file (from fileutils' configure.in).
38838
38839         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
38840         * m4/chown.m4: Likewise.
38841         * m4/d-ino.m4: Likewise.
38842         * m4/d-type.m4: Likewise.
38843         * m4/fnmatch.m4: Likewise.
38844         * m4/getgroups.m4: Likewise.
38845         * m4/gettext.m4: Likewise.
38846         * m4/jm-mktime.m4: Likewise.
38847         * m4/jm-winsz2.m4: Likewise.
38848         * m4/lcmessage.m4: Likewise.
38849         * m4/ls-mntd-fs.m4: Likewise.
38850         * m4/malloc.m4: Likewise.
38851         * m4/memcmp.m4: Likewise.
38852         * m4/putenv.m4: Likewise.
38853         * m4/realloc.m4: Likewise.
38854         * m4/st_mtim.m4: Likewise.
38855         * m4/strftime.m4: Likewise.
38856
38857 1999-01-16  Jim Meyering  <meyering@ascend.com>
38858
38859         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
38860         (ARGMATCH_DIE_DECL): Define.
38861
38862 1999-01-12  Jim Meyering  <meyering@ascend.com>
38863
38864         * m4/Makefile.am.in: Rewrite to avoid using fmt.
38865         Reported by Lars Hecking.
38866
38867 1999-01-10  Jim Meyering  <meyering@ascend.com>
38868
38869         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
38870         gross kludge.
38871         * m4/inttypes_h.m4: Likewise.
38872         * m4/lstat.m4: Likewise.
38873         * m4/malloc.m4: Likewise.
38874         * m4/readdir.m4: Likewise.
38875         * m4/realloc.m4: Likewise.
38876         * m4/st_dm_mode.m4: Likewise.
38877         * m4/stat.m4: Likewise.
38878         * m4/utimbuf.m4: Likewise.
38879         * m4/utimes.m4: Likewise.
38880
38881         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
38882         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
38883         comments in config.h.in are meaningful.
38884
38885         * m4/jm-macros.m4: Require autoconf-2.13 here.
38886
38887         * m4/regex.m4: By default, don't use the included regex.c on systems
38888         with glibc 2.  Suggestion from Uli Drepper.
38889
38890 1999-01-02  Jim Meyering  <meyering@ascend.com>
38891
38892         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
38893
38894 1998-12-18  Jim Meyering  <meyering@ascend.com>
38895
38896         * m4/Makefile.am.in (Makefile.am): Simplify rule.
38897         Based on a suggestion from Lars Hecking.
38898
38899 1998-11-16  Paul Eggert  <eggert@twinsun.com>
38900
38901         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
38902
38903 1998-11-16  Jim Meyering  <meyering@ascend.com>
38904
38905         * m4/lfs.m4: Double-quote the `uname...` expression.
38906
38907 1998-11-14  Jim Meyering  <meyering@ascend.com>
38908
38909         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
38910         * m4/stat.m4: Likewise.
38911
38912 1998-11-03  Jim Meyering  <meyering@ascend.com>
38913
38914         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
38915         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
38916
38917 1998-10-18  Jim Meyering  <meyering@ascend.com>
38918
38919         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
38920
38921 1998-10-17  Jim Meyering  <meyering@ascend.com>
38922
38923         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
38924         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
38925         calls for those previously hard-coded headers.  Instead, take a new
38926         parameter.
38927         (jm_CHECK_DECLARATIONS): Reflect interface change.
38928         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
38929         (jm_CHECK_DECL_LOCALTIME_R): New macro.
38930
38931         * m4/mktime.m4: Test for spring-forward gap before long-running test.
38932
38933 1998-10-14  Jim Meyering  <meyering@ascend.com>
38934
38935         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
38936         instead of "TZ=America/Vancouver".  From Paul Eggert.
38937
38938 1998-10-11  Jim Meyering  <meyering@ascend.com>
38939
38940         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
38941         This adds a test for a recently added compatibility fix for mktime.c.
38942         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
38943
38944 1998-09-27  Jim Meyering  <meyering@ascend.com>
38945
38946         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
38947
38948         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
38949         ../configure.in, including a change from Gordon Matzigkeit to allow
38950         cross-compiling for the Hurd.
38951
38952         * m4/glibc.m4: New file/macro to test for the GNU C Library
38953         versions 1 and 2.  From Gordon Matzigkeit.
38954         Indent.
38955
38956 1998-09-21  Jim Meyering  <meyering@ascend.com>
38957
38958         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
38959
38960 1998-08-18  Paul Eggert  <eggert@twinsun.com>
38961
38962         Port nanosecond-resolution times to UnixWare 2.1.2 and
38963         pedantic Solaris 2.6.
38964
38965         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
38966         AC_STRUCT_ST_MTIM.
38967         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
38968         Generate name of ns member, instead of just 1 or undef.
38969         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
38970
38971 1998-08-15  Jim Meyering  <meyering@ascend.com>
38972
38973         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
38974         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
38975         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
38976         instead of jm_TYPE_SSIZE_T.
38977
38978 1998-08-12  Jim Meyering  <meyering@ascend.com>
38979
38980         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
38981
38982 1998-08-02  Jim Meyering  <meyering@ascend.com>
38983
38984         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
38985         in acconfig.h manually.
38986
38987 1998-07-31  Paul Eggert  <eggert@twinsun.com>
38988
38989         * m4/st_mtim.m4: New file.
38990
38991 1998-07-28  Jim Meyering  <meyering@ascend.com>
38992
38993         * m4/utimes.m4: Undef stat.
38994
38995 1998-07-25  Jim Meyering  <meyering@ascend.com>
38996
38997         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
38998         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
38999
39000 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
39001
39002         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
39003         uid and gid actually remain unchanged.
39004
39005 1998-07-07  Jim Meyering  <meyering@ascend.com>
39006
39007         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
39008
39009 1998-07-04  Jim Meyering  <meyering@ascend.com>
39010
39011         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
39012         to prove that this macro can be used in packages without regex.c.
39013
39014 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
39015
39016         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
39017         is to be used.
39018
39019 1998-07-03  Jim Meyering  <meyering@ascend.com>
39020
39021         * m4/gettext.m4: Add -lintl if it's found to be necessary.
39022
39023         * m4/gettext.m4: New file -- from gettext-0.10.35.
39024         * m4/lcmessage.m4: Likewise.
39025         * m4/progtest.m4: Likewise.
39026
39027         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
39028         * m4/jm-macros.m4: Require the new macro.
39029
39030 1998-06-29  Jim Meyering  <meyering@ascend.com>
39031
39032         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
39033         for the definition of NGROUPS (used in a system header included
39034         by sys/mount.h).
39035
39036 1998-06-28  Jim Meyering  <meyering@ascend.com>
39037
39038         * m4/ls-mntd-fs.m4: New file.
39039         * m4/fstypename.m4: New file.
39040
39041         * m4/jm-macros.m4: Require the new macro.
39042         * m4/jm-glibc-io.m4: New file.
39043
39044 1998-05-19  Jim Meyering  <meyering@ascend.com>
39045
39046         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
39047         * m4/lchown.m4: New file.
39048
39049         * m4/Makefile.am.in: New file.
39050         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
39051
39052 1998-05-14  Jim Meyering  <meyering@ascend.com>
39053
39054         * m4/Makefile.am (EXTRA_DIST): Add them.
39055         * m4/jm-macros.m4: New file.
39056         * m4/utimbuf.m4: New file.
39057
39058 1998-05-12  Jim Meyering  <meyering@ascend.com>
39059
39060         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
39061
39062 1998-05-11  Jim Meyering  <meyering@ascend.com>
39063
39064         * m4/isc-posix.m4: New file.
39065
39066 1998-05-10  Jim Meyering  <meyering@ascend.com>
39067
39068         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
39069
39070 1998-05-09  Jim Meyering  <meyering@ascend.com>
39071
39072         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
39073         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
39074         with automake.
39075
39076         * m4/ssize_t.m4: New file.
39077         * m4/mktime.m4: Remove file -- the new automake has this now.
39078
39079 1998-04-26  Jim Meyering  <meyering@ascend.com>
39080
39081         * m4/assert.m4: New file.
39082         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
39083
39084 1998-04-05  Jim Meyering  <meyering@ascend.com>
39085
39086         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
39087         (jm_PREREQ): Use it here.
39088
39089 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
39090
39091         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
39092         in acconfig.h.
39093
39094 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
39095
39096         * m4/prereq.m4: New file.
39097         * m4/error.m4: New file.
39098         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
39099
39100 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
39101
39102         * m4/getline.m4: Don't set am_cv_func_working_getline before the
39103         cache-check for the same variable -- that defeated the purpose of
39104         the test; the test program was never run.  This was a problem only
39105         on systems with losing getline functions -- HP-UX 10.20 is one.
39106         Reported by Bjorn Helgaas.
39107
39108 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
39109
39110         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
39111
39112 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
39113
39114         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
39115
39116         * m4/const.m4: New file.  Use an initializer in this declaration
39117         typedef int charset[2]; const charset x;
39118         Reported by Bob Glickstein.
39119
39120 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
39121
39122         * m4/chown.m4: Fix reversed types on -1 args to chown.
39123         From Kaveh Ghazi.
39124
39125 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
39126
39127         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
39128         Add lseek and memchr.
39129
39130         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
39131         T.E.Dickey <dickey@clark.net> said that some older preprocessors
39132         have a 20-character limit on names.
39133
39134 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
39135
39136         * m4/inttypes_h.m4: New file.
39137         * m4/uintmax_t.m4: New file.
39138         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
39139
39140
39141         -----
39142
39143         Copyright (C) 1997-2008 Free Software Foundation, Inc.
39144
39145         Copying and distribution of this file, with or without
39146         modification, are permitted provided the copyright notice
39147         and this notice are preserved.